toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"userName": userName,
"password": password,
"phoneNumber": phoneNumber,
"email": email,
"firstName": firstName,
"lastName": lastName,
"bio": bio,
"country": country,
"state": state,
"city": city,
"birthdate": birthdate?.toIso8601String(),
"weight": weight,
"height": height,
"address": address,
"fatherName": fatherName,
"fcmToken": fcmToken,
"health1": health1 == null ? null : List<dynamic>.from(health1!.map((dynamic x) => x)),
"foodAllergies": foodAllergies == null ? null : List<dynamic>.from(foodAllergies!.map((dynamic x) => x)),
"drugAllergies": drugAllergies == null ? null : List<dynamic>.from(drugAllergies!.map((dynamic x) => x)),
"sickness": sickness == null ? null : List<dynamic>.from(sickness!.map((dynamic x) => x)),
"tags": List<dynamic>.from(tags.map((dynamic x) => x)),
"categories": categories == null ? null : List<dynamic>.from(categories!.map((dynamic x) => x)),
};