Config constructor

Config({
  1. String? name,
  2. bool? disableSignup,
  3. bool? disableLogin,
  4. Timestamp? createdAt,
  5. Timestamp? updatedAt,
  6. bool? validatePassword,
  7. bool? verifyEmail,
  8. Iterable<LoginType>? supportedLoginMechanisms,
  9. bool? verifyPhone,
  10. String? publicKey,
  11. Iterable<String>? roles,
})

Implementation

factory Config({
  $core.String? name,
  $core.String? logo,
  $core.bool? disableSignup,
  $core.bool? disableLogin,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  $core.bool? validatePassword,
  $core.bool? verifyEmail,
  $core.Iterable<LoginType>? supportedLoginMechanisms,
  $core.bool? verifyPhone,
  $core.String? publicKey,
  $core.Iterable<$core.String>? roles,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (logo != null) {
    _result.logo = logo;
  }
  if (disableSignup != null) {
    _result.disableSignup = disableSignup;
  }
  if (disableLogin != null) {
    _result.disableLogin = disableLogin;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (validatePassword != null) {
    _result.validatePassword = validatePassword;
  }
  if (verifyEmail != null) {
    _result.verifyEmail = verifyEmail;
  }
  if (supportedLoginMechanisms != null) {
    _result.supportedLoginMechanisms.addAll(supportedLoginMechanisms);
  }
  if (verifyPhone != null) {
    _result.verifyPhone = verifyPhone;
  }
  if (publicKey != null) {
    _result.publicKey = publicKey;
  }
  if (roles != null) {
    _result.roles.addAll(roles);
  }
  return _result;
}