fromMap static method
- Map<
String, dynamic> ? map, { - EnumMethod? enumMethod,
Gets a possible ProxyRelayHop instance from a Map value.
Implementation
static ProxyRelayHop? fromMap(
Map<String, dynamic>? map, {
EnumMethod? enumMethod,
}) {
if (map == null) {
return null;
}
final instance = ProxyRelayHop(
additionalHTTPHeaders: map['additionalHTTPHeaders']
?.cast<String, String>(),
http2RelayEndpoint: map['http2RelayEndpoint'],
http3RelayEndpoint: map['http3RelayEndpoint'],
);
return instance;
}