ZaloProfileModel.fromJson constructor

ZaloProfileModel.fromJson(
  1. Map json
)

Implementation

factory ZaloProfileModel.fromJson(Map<dynamic, dynamic> json) =>
    ZaloProfileModel(
      birthday: json["birthday"] == null ? null : json["birthday"],
      gender: json["gender"] == null ? null : json["gender"],
      name: json["name"] == null ? null : json["name"],
      id: json["id"] == null ? null : json["id"].toString(),
      picture:
          json["picture"] == null ? null : Picture.fromJson(json["picture"]),
    );