User constructor

User({
  1. String? key,
  2. String? id,
  3. String? rev,
  4. String? uuid,
  5. String? merchantId,
  6. String? createdAt,
  7. String? password,
  8. String? email,
  9. String? country,
  10. UserType? userType,
  11. Iterable<String>? roles,
  12. UserStatus? status,
  13. Kyc? kyc,
  14. OTP? otp,
  15. String? hash,
  16. String? ref,
  17. IsApproved? isApproved,
})

Implementation

factory User({
  $core.String? key,
  $core.String? id,
  $core.String? rev,
  $core.String? uuid,
  $core.String? merchantId,
  $core.String? createdAt,
  $core.String? password,
  $core.String? email,
  $core.String? country,
  UserType? userType,
  $core.Iterable<$core.String>? roles,
  UserStatus? status,
  Kyc? kyc,
  OTP? otp,
  $core.String? hash,
  $core.String? ref,
  IsApproved? isApproved,
}) {
  final $result = create();
  if (key != null) {
    $result.key = key;
  }
  if (id != null) {
    $result.id = id;
  }
  if (rev != null) {
    $result.rev = rev;
  }
  if (uuid != null) {
    $result.uuid = uuid;
  }
  if (merchantId != null) {
    $result.merchantId = merchantId;
  }
  if (createdAt != null) {
    $result.createdAt = createdAt;
  }
  if (password != null) {
    $result.password = password;
  }
  if (email != null) {
    $result.email = email;
  }
  if (country != null) {
    $result.country = country;
  }
  if (userType != null) {
    $result.userType = userType;
  }
  if (roles != null) {
    $result.roles.addAll(roles);
  }
  if (status != null) {
    $result.status = status;
  }
  if (kyc != null) {
    $result.kyc = kyc;
  }
  if (otp != null) {
    $result.otp = otp;
  }
  if (hash != null) {
    $result.hash = hash;
  }
  if (ref != null) {
    $result.ref = ref;
  }
  if (isApproved != null) {
    $result.isApproved = isApproved;
  }
  return $result;
}