fromMap static method
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"],
);
}