toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "userName": userName,
  "password": password,
  "phoneNumber": phoneNumber,
  "email": email,
  "landLine": landLine,
  "firstName": firstName,
  "lastName": lastName,
  "nationalCode": nationalCode,
  "bio": bio,
  "birthdate": birthdate?.toIso8601String(),
  "weight": weight,
  "height": height,
  "fatherName": fatherName,
  "fcmToken": fcmToken,
  "nationalCardFront": nationalCardFront,
  "nationalCardBack": nationalCardBack,
  "birthCertificateFirst": birthCertificateFirst,
  "birthCertificateSecond": birthCertificateSecond,
  "birthCertificateThird": birthCertificateThird,
  "birthCertificateForth": birthCertificateForth,
  "birthCertificateFifth": birthCertificateFifth,
  "visualAuthentication": visualAuthentication,
  "eSignature": eSignature,
  "tags": List<dynamic>.from(tags.map((dynamic x) => x)),
  "categories": categories == null ? null : List<dynamic>.from(categories!.map((dynamic x) => x)),
  "detail1": detail1,
  "detail2": detail2,
  "id": id,
  "creatorId": creatorId,
  "adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
};