fromMap static method

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

Gets a possible FetchRequestFederatedCredential instance from a Map value.

Implementation

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