UUserUpdateParams.fromMap constructor

UUserUpdateParams.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UUserUpdateParams.fromMap(Map<String, dynamic> json) => UUserUpdateParams(
      password: json["password"],
      firstName: json["firstName"],
      lastName: json["lastName"],
      country: json["country"],
      state: json["state"],
      city: json["city"],
      userName: json["userName"],
      phoneNumber: json["phoneNumber"],
      email: json["email"],
      bio: json["bio"],
      birthdate: json["birthdate"] == null ? null : DateTime.parse(json["birthdate"]),
      fcmToken: json["fcmToken"],
      address: json["address"],
      fatherName: json["fatherName"],
      weight: json["weight"],
      height: json["height"],
      addHealth1: json["addHealth1"] == null ? null : List<String>.from(json["addHealth1"].map((dynamic x) => x)),
      removeHealth1: json["removeHealth1"] == null ? null : List<String>.from(json["removeHealth1"].map((dynamic x) => x)),
      foodAllergies: json["foodAllergies"] == null ? null : List<String>.from(json["foodAllergies"].map((dynamic x) => x)),
      drugAllergies: json["drugAllergies"] == null ? null : List<String>.from(json["drugAllergies"].map((dynamic x) => x)),
      sickness: json["sickness"] == null ? null : List<String>.from(json["sickness"].map((dynamic x) => x)),
      health1: json["health1"] == null ? null : List<String>.from(json["health1"].map((dynamic x) => x)),
      categories: json["categories"] == null ? null : List<String>.from(json["categories"].map((dynamic x) => x)),
      id: json["id"],
      addTags: json["addTags"] == null ? null : List<int>.from(json["addTags"].map((dynamic x) => x)),
      removeTags: json["removeTags"] == null ? null : List<int>.from(json["removeTags"].map((dynamic x) => x)),
      tags: json["tags"] == null ? null : List<int>.from(json["tags"].map((dynamic x) => x)),
    );