factory PortRange.fromJson(Map<String, dynamic> json) { return PortRange( fromPort: json['FromPort'] as int?, toPort: json['ToPort'] as int?, ); }