factory PortRange.fromJson(Map<String, dynamic> json) { return PortRange( minRange: json['MinRange'] as int, maxRange: json['MaxRange'] as int?, ); }