UdpHop.fromJson constructor
UdpHop.fromJson(
- Object? json
Implementation
factory UdpHop.fromJson(Object? json) {
final map = asJsonMap(json, 'udp hop');
return UdpHop(
ports: map['ports'] == null ? null : XrayPortList.fromJson(map['ports']),
interval: map['interval'] == null
? null
: XrayInt32Range.fromJson(map['interval']),
);
}