fromMap method Null safety

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

Implementation

static ClientCertChallenge? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  return ClientCertChallenge(
      protectionSpace: URLProtectionSpace.fromMap(
          map["protectionSpace"].cast<String, dynamic>())!,
      androidPrincipals: map["androidPrincipals"]?.cast<String>(),
      androidKeyTypes: map["androidKeyTypes"]?.cast<String>());
}