UUserUpdateParams.fromMap constructor

UUserUpdateParams.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UUserUpdateParams.fromMap(Map<String, dynamic> json) => UUserUpdateParams(
  password: json["password"],
  landLine: json["landLine"],
  firstName: json["firstName"],
  lastName: json["lastName"],
  nationalCode: json["nationalCode"],
  userName: json["userName"],
  phoneNumber: json["phoneNumber"],
  email: json["email"],
  bio: json["bio"],
  birthdate: json["birthdate"] == null ? null : DateTime.parse(json["birthdate"]),
  fcmToken: json["fcmToken"],
  fatherName: json["fatherName"],
  weight: json["weight"]?.toDouble(),
  height: json["height"]?.toDouble(),
  nationalCardFront: json["nationalCardFront"],
  nationalCardBack: json["nationalCardBack"],
  birthCertificateFirst: json["birthCertificateFirst"],
  birthCertificateSecond: json["birthCertificateSecond"],
  birthCertificateThird: json["birthCertificateThird"],
  birthCertificateForth: json["birthCertificateForth"],
  birthCertificateFifth: json["birthCertificateFifth"],
  visualAuthentication: json["visualAuthentication"],
  eSignature: json["eSignature"],
  nationalCardFrontRejectionReason: json["nationalCardFrontRejectionReason"],
  nationalCardBackRejectionReason: json["nationalCardBackRejectionReason"],
  birthCertificateFirstRejectionReason: json["birthCertificateFirstRejectionReason"],
  birthCertificateSecondRejectionReason: json["birthCertificateSecondRejectionReason"],
  birthCertificateThirdRejectionReason: json["birthCertificateThirdRejectionReason"],
  birthCertificateForthRejectionReason: json["birthCertificateForthRejectionReason"],
  birthCertificateFifthRejectionReason: json["birthCertificateFifthRejectionReason"],
  visualAuthenticationRejectionReason: json["visualAuthenticationRejectionReason"],
  eSignatureRejectionReason: json["eSignatureRejectionReason"],
  categories: json["categories"] == null ? null : List<String>.from(json["categories"].map((dynamic x) => x)),
  id: json["id"],
  addTags: json["addTags"] == null ? null : List<int>.from(json["addTags"].map((dynamic x) => x)),
  removeTags: json["removeTags"] == null ? null : List<int>.from(json["removeTags"].map((dynamic x) => x)),
  tags: json["tags"] == null ? null : List<int>.from(json["tags"].map((dynamic x) => x)),
  detail1: json["detail1"],
  detail2: json["detail2"],
  adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
  addAdminUserIds: json["addAdminUserIds"] == null ? <String>[] : List<String>.from(json["addAdminUserIds"]!.map((dynamic x) => x)),
  removeAdminUserIds: json["removeAdminUserIds"] == null ? <String>[] : List<String>.from(json["removeAdminUserIds"]!.map((dynamic x) => x)),
);