fromMap static method

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

Implementation

static HttpAuthenticationChallenge? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  return HttpAuthenticationChallenge(
    previousFailureCount: map["previousFailureCount"],
    protectionSpace: URLProtectionSpace.fromMap(
        map["protectionSpace"].cast<String, dynamic>())!,
    proposedCredential: URLCredential.fromMap(
        map["proposedCredential"]?.cast<String, dynamic>()),
    iosFailureResponse: IOSURLResponse.fromMap(
        map["iosFailureResponse"]?.cast<String, dynamic>()),
    iosError: map["iosError"],
  );
}