Config constructor

Config({
  1. String? id,
  2. String? name,
  3. bool? enableNuntioConnect,
  4. bool? disableDefaultSignup,
  5. bool? disableDefaultLogin,
  6. Timestamp? createdAt,
  7. Timestamp? updatedAt,
  8. bool? validatePassword,
  9. String? nuntioConnectId,
  10. bool? requireEmailVerification,
  11. LoginType? loginType,
  12. bool? requirePhoneNumberVerification,
  13. Iterable<LanguageCode>? availableLanguages,
  14. Iterable<LanguageCode>? supportedLanguages,
})

Implementation

factory Config({
  $core.String? id,
  $core.String? name,
  $core.String? logo,
  $core.bool? enableNuntioConnect,
  $core.bool? disableDefaultSignup,
  $core.bool? disableDefaultLogin,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  $core.bool? validatePassword,
  $core.String? nuntioConnectId,
  $core.bool? requireEmailVerification,
  LoginType? loginType,
  $core.bool? requirePhoneNumberVerification,
  $core.Iterable<LanguageCode>? availableLanguages,
  $core.Iterable<LanguageCode>? supportedLanguages,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (name != null) {
    _result.name = name;
  }
  if (logo != null) {
    _result.logo = logo;
  }
  if (enableNuntioConnect != null) {
    _result.enableNuntioConnect = enableNuntioConnect;
  }
  if (disableDefaultSignup != null) {
    _result.disableDefaultSignup = disableDefaultSignup;
  }
  if (disableDefaultLogin != null) {
    _result.disableDefaultLogin = disableDefaultLogin;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (validatePassword != null) {
    _result.validatePassword = validatePassword;
  }
  if (nuntioConnectId != null) {
    _result.nuntioConnectId = nuntioConnectId;
  }
  if (requireEmailVerification != null) {
    _result.requireEmailVerification = requireEmailVerification;
  }
  if (loginType != null) {
    _result.loginType = loginType;
  }
  if (requirePhoneNumberVerification != null) {
    _result.requirePhoneNumberVerification = requirePhoneNumberVerification;
  }
  if (availableLanguages != null) {
    _result.availableLanguages.addAll(availableLanguages);
  }
  if (supportedLanguages != null) {
    _result.supportedLanguages.addAll(supportedLanguages);
  }
  return _result;
}