UUserCreateParams.fromMap constructor

UUserCreateParams.fromMap(
  1. 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"],
  landLine: json["landLine"],
  firstName: json["firstName"],
  lastName: json["lastName"],
  nationalCode: json["nationalCode"],
  bio: json["bio"],
  birthdate: json["birthdate"] == null ? null : DateTime.parse(json["birthdate"]),
  weight: json["weight"]?.toDouble(),
  height: json["height"]?.toDouble(),
  fatherName: json["fatherName"],
  fcmToken: json["fcmToken"],
  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"],
  tags: List<int>.from(json["tags"].map((dynamic x) => x)),
  categories: json["categories"] == null ? null : List<String>.from(json["categories"].map((dynamic x) => x)),
  detail1: json["detail1"],
  detail2: json["detail2"],
  id: json["id"],
  creatorId: json["creatorId"],
  adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
);