toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"fcmToken": fcmToken,
"health1": health1 == null ? null : List<dynamic>.from(health1!.map((String x) => x)),
"foodAllergies": foodAllergies == null ? null : List<dynamic>.from(foodAllergies!.map((String x) => x)),
"drugAllergies": drugAllergies == null ? null : List<dynamic>.from(drugAllergies!.map((String x) => x)),
"sickness": sickness == null ? null : List<dynamic>.from(sickness!.map((String x) => x)),
"weight": weight,
"height": height,
"address": address,
"fatherName": fatherName,
"visitCounts": visitCounts == null ? null : List<dynamic>.from(visitCounts!.map((UVisitCount x) => x.toMap())),
"userAnswerJson": List<dynamic>.from(userAnswerJson.map((UUserAnswerJson x) => x.toMap())),
};