ProfileModel.fromJson constructor

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

Creates a ProfileModel object from a JSON map.

Implementation

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