fromMap static method
Gets a possible URLCredential instance from a Map value.
Implementation
static URLCredential? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = URLCredential(
certificates: _certificatesDeserializer(map['certificates']),
iosCertificates: _certificatesDeserializer(map['certificates']),
iosPersistence:
IOSURLCredentialPersistence.fromNativeValue(map['persistence']),
password: map['password'],
persistence: URLCredentialPersistence.fromNativeValue(map['persistence']),
username: map['username'],
);
return instance;
}