fromMap static method

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

Gets a possible ProxyRule instance from a Map value.

Implementation

static ProxyRule? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = ProxyRule(
    schemeFilter: ProxySchemeFilter.fromNativeValue(map['schemeFilter']),
    url: map['url'],
  );
  return instance;
}