PortMapping.fromJson constructor

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

Implementation

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