SniffingConfig.fromJson constructor
SniffingConfig.fromJson(
- Object? json
Implementation
factory SniffingConfig.fromJson(Object? json) {
final map = asJsonMap(json, 'sniffing');
return SniffingConfig(
enabled: map['enabled'] as bool?,
destOverride: map['destOverride'] == null
? null
: XrayStringList.fromJson(map['destOverride']),
domainsExcluded: map['domainsExcluded'] == null
? null
: XrayStringList.fromJson(map['domainsExcluded']),
ipsExcluded: map['ipsExcluded'] == null
? null
: XrayStringList.fromJson(map['ipsExcluded']),
metadataOnly: map['metadataOnly'] as bool?,
routeOnly: map['routeOnly'] as bool?,
);
}