PasswordRequirements.fromJson constructor

PasswordRequirements.fromJson(
  1. Map json_
)

Implementation

PasswordRequirements.fromJson(core.Map json_)
    : this(
        maximumFailedPasswordsForWipe:
            json_.containsKey('maximumFailedPasswordsForWipe')
                ? json_['maximumFailedPasswordsForWipe'] as core.int
                : null,
        passwordExpirationTimeout:
            json_.containsKey('passwordExpirationTimeout')
                ? json_['passwordExpirationTimeout'] as core.String
                : null,
        passwordHistoryLength: json_.containsKey('passwordHistoryLength')
            ? json_['passwordHistoryLength'] as core.int
            : null,
        passwordMinimumLength: json_.containsKey('passwordMinimumLength')
            ? json_['passwordMinimumLength'] as core.int
            : null,
        passwordMinimumLetters: json_.containsKey('passwordMinimumLetters')
            ? json_['passwordMinimumLetters'] as core.int
            : null,
        passwordMinimumLowerCase:
            json_.containsKey('passwordMinimumLowerCase')
                ? json_['passwordMinimumLowerCase'] as core.int
                : null,
        passwordMinimumNonLetter:
            json_.containsKey('passwordMinimumNonLetter')
                ? json_['passwordMinimumNonLetter'] as core.int
                : null,
        passwordMinimumNumeric: json_.containsKey('passwordMinimumNumeric')
            ? json_['passwordMinimumNumeric'] as core.int
            : null,
        passwordMinimumSymbols: json_.containsKey('passwordMinimumSymbols')
            ? json_['passwordMinimumSymbols'] as core.int
            : null,
        passwordMinimumUpperCase:
            json_.containsKey('passwordMinimumUpperCase')
                ? json_['passwordMinimumUpperCase'] as core.int
                : null,
        passwordQuality: json_.containsKey('passwordQuality')
            ? json_['passwordQuality'] as core.String
            : null,
        passwordScope: json_.containsKey('passwordScope')
            ? json_['passwordScope'] as core.String
            : null,
        requirePasswordUnlock: json_.containsKey('requirePasswordUnlock')
            ? json_['requirePasswordUnlock'] as core.String
            : null,
        unifiedLockSettings: json_.containsKey('unifiedLockSettings')
            ? json_['unifiedLockSettings'] as core.String
            : null,
      );