fromMap static method

FetchRequestPasswordCredential? fromMap(
  1. Map<String, dynamic>? map
)
override

Gets a possible FetchRequestPasswordCredential instance from a Map value.

Implementation

static FetchRequestPasswordCredential? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = FetchRequestPasswordCredential(
    iconURL: map['iconURL'] != null ? WebUri(map['iconURL']) : null,
    id: map['id'],
    name: map['name'],
    password: map['password'],
  );
  instance.type = map['type'];
  return instance;
}