PortRange.fromJson constructor

PortRange.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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