Config constructor

Config({
  1. LanguageCode? id,
  2. String? name,
  3. bool? enableNuntioConnect,
  4. bool? disableDefaultSignup,
  5. bool? disableDefaultLogin,
  6. Timestamp? createdAt,
  7. Timestamp? updatedAt,
  8. GeneralText? generalText,
  9. WelcomeText? welcomeText,
  10. LoginText? loginText,
  11. RegisterText? registerText,
  12. int? internalEncryptionLevel,
  13. bool? validatePassword,
  14. String? nuntioConnectId,
  15. bool? requireEmailVerification,
  16. ProfileText? profileText,
  17. LoginType? loginType,
  18. bool? requirePhoneNumberVerification,
  19. Iterable<LanguageCode>? availableLanguages,
})

Implementation

factory Config({
  LanguageCode? id,
  $core.String? name,
  $core.String? logo,
  $core.bool? enableNuntioConnect,
  $core.bool? disableDefaultSignup,
  $core.bool? disableDefaultLogin,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  GeneralText? generalText,
  WelcomeText? welcomeText,
  LoginText? loginText,
  RegisterText? registerText,
  $core.int? internalEncryptionLevel,
  $core.bool? validatePassword,
  $core.String? nuntioConnectId,
  $core.bool? requireEmailVerification,
  ProfileText? profileText,
  LoginType? loginType,
  $core.bool? requirePhoneNumberVerification,
  $core.Iterable<LanguageCode>? availableLanguages,
}) {
  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 (generalText != null) {
    _result.generalText = generalText;
  }
  if (welcomeText != null) {
    _result.welcomeText = welcomeText;
  }
  if (loginText != null) {
    _result.loginText = loginText;
  }
  if (registerText != null) {
    _result.registerText = registerText;
  }
  if (internalEncryptionLevel != null) {
    _result.internalEncryptionLevel = internalEncryptionLevel;
  }
  if (validatePassword != null) {
    _result.validatePassword = validatePassword;
  }
  if (nuntioConnectId != null) {
    _result.nuntioConnectId = nuntioConnectId;
  }
  if (requireEmailVerification != null) {
    _result.requireEmailVerification = requireEmailVerification;
  }
  if (profileText != null) {
    _result.profileText = profileText;
  }
  if (loginType != null) {
    _result.loginType = loginType;
  }
  if (requirePhoneNumberVerification != null) {
    _result.requirePhoneNumberVerification = requirePhoneNumberVerification;
  }
  if (availableLanguages != null) {
    _result.availableLanguages.addAll(availableLanguages);
  }
  return _result;
}