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: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue 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 num).toInt(); })(),
randomPassword: (() { final guardedValue = map['randomPassword']; if (guardedValue == null) return null; return guardedValue as String; })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
requireEachIncludedType: (() { final guardedValue = map['requireEachIncludedType']; if (guardedValue == null) return null; return guardedValue as bool; })(),
);
}