UserList.fromJson constructor
Creates a UserList instance from a JSON map.
This factory constructor is used to create an instance of UserList from a map structure representing JSON data. This is useful for deserializing JSON data retrieved from a database or an API.
Parameters:
json - A map representing JSON data.
Returns: An instance of UserList.
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"],
    );