fromMap static method

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

Gets a possible FetchRequestCredential instance from a Map value.

Implementation

static FetchRequestCredential? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = FetchRequestCredential(
    type: map['type'],
  );
  return instance;
}