ProfileModel.fromJson constructor

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

Converts a JSON object into a ProfileModel instance.

Implementation

factory ProfileModel.fromJson(Map<String, dynamic> json) => ProfileModel(
      data: json["data"] == null ? null : ProfileData.fromJson(json["data"]),
      status: json["status"],
    );