VirtualGatewayPortMapping.fromJson constructor

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

Implementation

factory VirtualGatewayPortMapping.fromJson(Map<String, dynamic> json) {
  return VirtualGatewayPortMapping(
    port: json['port'] as int,
    protocol: (json['protocol'] as String).toVirtualGatewayPortProtocol(),
  );
}