fromMap static method
Gets a possible ClientCertChallenge instance from a Map value.
Implementation
static ClientCertChallenge? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = ClientCertChallenge(
protectionSpace: URLProtectionSpace.fromMap(
map['protectionSpace']?.cast<String, dynamic>())!,
androidKeyTypes: map['keyTypes'] != null
? List<String>.from(map['keyTypes']!.cast<String>())
: null,
androidPrincipals: map['principals'] != null
? List<String>.from(map['principals']!.cast<String>())
: null,
keyTypes: map['keyTypes'] != null
? List<String>.from(map['keyTypes']!.cast<String>())
: null,
principals: map['principals'] != null
? List<String>.from(map['principals']!.cast<String>())
: null,
);
return instance;
}