‘_Map’ is not a subtype of type ‘String’

i am getting this error “_Map<String, dynamic>’ is not a subtype of type ‘String” while trying to use provider and i confused where the error is have a look my model

// ignore_for_file: public_member_api_docs, sort_constructors_first
import 'dart:convert';

class User {
  final String id;
  final String name;
  final String email;
  final int phone;
  final String? image;
  final String location;
  final String sex;
  final String password;
  final String? age;
  final String? preferredLocation;
  final List<dynamic>? education;
  final List<dynamic>? workExperience;
  final String role;
  final List<dynamic>? applications;
  final List<dynamic>? favoriteJobs;
  User({
    required this.id,
    required this.name,
    required this.email,
    required this.phone,
    this.image,
    required this.location,
    required this.sex,
    required this.password,
    this.age,
    this.preferredLocation,
    this.education,
    this.workExperience,
    required this.role,
    this.applications,
    this.favoriteJobs,
  });

  Map<String, dynamic> toMap() {
    return <String, dynamic>{
      'id': id,
      'name': name,
      'email': email,
      'phone': phone,
      'image': image,
      'location': location,
      'sex': sex,
      'password': password,
      'age': age,
      'preferredLocation': preferredLocation,
      'education': education,
      'workExperience': workExperience,
      'role': role,
      'applications': applications,
      'favoriteJobs': favoriteJobs,
    };
  }

  factory User.fromMap(Map<String, dynamic> map) {
    return User(
      id: map['_id'] ?? "",
      name: map['name'] ?? "",
      email: map['email'] ?? "",
      phone: map['phone'] ?? 0,
      image: map['image'] ?? "",
      location: map['location'] ?? "",
      sex: map['sex'] ?? "",
      password: map['password'] ?? "",
      age: map['age'] ?? "",
      preferredLocation: map['preferredLocation'] ?? "",
      education: map['education'] != null
          ? List<Map<String, dynamic>>.from(
              (map['education']?.map((x) => Map<String, dynamic>.from(x))))
          : [],
      workExperience: map['workExperience'] != null
          ? List<Map<String, dynamic>>.from(
              (map['workExperience']?.map((x) => Map<String, dynamic>.from(x))))
          : [],
      role: map['role'] ?? "job_seeker",
      applications: map['applications'] != null
          ? List<Map<String, dynamic>>.from(
              (map['applications']?.map((x) => Map<String, dynamic>.from(x))))
          : [],
      favoriteJobs: map['favoriteJobs'] != null
          ? List<Map<String, dynamic>>.from(
              (map['favoriteJobs']?.map((x) => Map<String, dynamic>.from(x))))
          : [],
    );
  }

  String toJson() => json.encode(toMap());

  factory User.fromJson(String source) =>
      User.fromMap(json.decode(source) as Map<String, dynamic>);
}

and my provider is looking like this

import 'package:flutter/material.dart';
import 'package:job_finder_app/models/usermodel.dart';

class AllusersProvider extends ChangeNotifier {
  List<User> _users = [];

  List<User> get users => _users;


`  void setUsers(List<User> users) {
`    _users = users;
    notifyListeners();
  }

  void addUser(User user) {
    _users.add(user);
    notifyListeners();
  }

  void removeUser(User user) {
    _users.remove(user);
    notifyListeners();
  }

}

i printed the response and i am getting my responses as json and it looks the data but i cant use it in Ui becaouse i am geting _Map<String, dynamic>’ is not a subtype of type ‘String this error