GetRandomPasswordResult.fromMap constructor
GetRandomPasswordResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetRandomPasswordResult.fromMap(Map<String, dynamic> map) {
return GetRandomPasswordResult(
excludeCharacters: (() { final guardedValue = map['excludeCharacters']; if (guardedValue == null) return null; return guardedValue as String; })(),
excludeLowercase: (() { final guardedValue = map['excludeLowercase']; if (guardedValue == null) return null; return guardedValue as bool; })(),
excludeNumbers: (() { final guardedValue = map['excludeNumbers']; if (guardedValue == null) return null; return guardedValue as bool; })(),
excludePunctuation: (() { final guardedValue = map['excludePunctuation']; if (guardedValue == null) return null; return guardedValue as bool; })(),
excludeUppercase: (() { final guardedValue = map['excludeUppercase']; if (guardedValue == null) return null; return guardedValue as bool; })(),
id: map['id'] as String,
includeSpace: (() { final guardedValue = map['includeSpace']; if (guardedValue == null) return null; return guardedValue as bool; })(),
passwordLength: (() { final guardedValue = map['passwordLength']; if (guardedValue == null) return null; return guardedValue as int; })(),
randomPassword: map['randomPassword'] as String,
region: map['region'] as String,
requireEachIncludedType: (() { final guardedValue = map['requireEachIncludedType']; if (guardedValue == null) return null; return guardedValue as bool; })(),
);
}