UUserJson.fromMap constructor
UUserJson.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UUserJson.fromMap(Map<String, dynamic> json) => UUserJson(
fcmToken: json["fcmToken"],
health1: json["health1"] == null ? <String>[] : List<String>.from(json["health1"].map((dynamic x) => x)),
foodAllergies: json["foodAllergies"] == null ? <String>[] : List<String>.from(json["foodAllergies"].map((dynamic x) => x)),
drugAllergies: json["drugAllergies"] == null ? <String>[] : List<String>.from(json["drugAllergies"].map((dynamic x) => x)),
sickness: json["sickness"] == null ? <String>[] : List<String>.from(json["sickness"].map((dynamic x) => x)),
weight: json["weight"],
height: json["height"],
address: json["address"],
fatherName: json["fatherName"],
visitCounts: json["visitCounts"] == null ? <UVisitCount>[] : List<UVisitCount>.from(json["visitCounts"].map((dynamic x) => UVisitCount.fromMap(x))),
userAnswerJson: json["userAnswerJson"] == null ? <UUserAnswerJson>[] : List<UUserAnswerJson>.from(json["userAnswerJson"].map((dynamic x) => UUserAnswerJson.fromMap(x))),
);