UserList.fromJson constructor

UserList.fromJson(
  1. Map<String, dynamic> json
)

Converts a UserList object into a map.

Implementation

factory UserList.fromJson(Map<String, dynamic> json) => UserList(
      data: json["data"] == null
          ? null
          : List<ProfileDetails>.from(
              json["data"].map((x) => ProfileDetails.fromJson(x))),
      status: json["status"],
    );