fromMap static method

URLAuthenticationChallenge? fromMap(
  1. Map<String, dynamic>? map, {
  2. EnumMethod? enumMethod,
})

Gets a possible URLAuthenticationChallenge instance from a Map value.

Implementation

static URLAuthenticationChallenge? fromMap(
  Map<String, dynamic>? map, {
  EnumMethod? enumMethod,
}) {
  if (map == null) {
    return null;
  }
  final instance = URLAuthenticationChallenge(
    protectionSpace: URLProtectionSpace.fromMap(
      map['protectionSpace']?.cast<String, dynamic>(),
      enumMethod: enumMethod,
    )!,
  );
  return instance;
}