factory PortRange.fromJson(Map<String, dynamic> json) { return PortRange( begin: json['Begin'] as int?, end: json['End'] as int?, ); }