UUserCreateParams.fromMap constructor
UUserCreateParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UUserCreateParams.fromMap(Map<String, dynamic> json) => UUserCreateParams(
userName: json["userName"],
password: json["password"],
phoneNumber: json["phoneNumber"],
email: json["email"],
firstName: json["firstName"],
lastName: json["lastName"],
bio: json["bio"],
country: json["country"],
state: json["state"],
city: json["city"],
birthdate: json["birthdate"] == null ? null : DateTime.parse(json["birthdate"]),
weight: json["weight"],
height: json["height"],
address: json["address"],
fatherName: json["fatherName"],
fcmToken: json["fcmToken"],
health1: json["health1"] == null ? null : List<String>.from(json["health1"].map((dynamic x) => x)),
foodAllergies: json["foodAllergies"] == null ? null : 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 ? null : List<String>.from(json["sickness"].map((dynamic x) => x)),
tags: List<int>.from(json["tags"].map((dynamic x) => x)),
categories: json["categories"] == null ? null : List<String>.from(json["categories"].map((dynamic x) => x)),
);