UserList.fromJson constructor
UserList.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UserList.fromJson(Map<String, dynamic> json) => UserList(
clientId: json["clientId"],
createdAt: json["createdAt"] == null ? null : DateTime.parse(json["createdAt"]),
email: json["email"],
fcmToken: json["fcmToken"],
firstName: json["firstName"]??"",
isActive: json["isActive"],
isDeleted: json["isDeleted"],
lastName: json["lastName"]??"",
name: json["name"],
phone: json["phone"],
profilePicture: json["profilePicture"],
roleId: json["roleId"],
secretKey: json["secretKey"],
updatedAt: json["updatedAt"] == null ? null : DateTime.parse(json["updatedAt"]),
userId: json["userId"],
username: json["username"],
);