PortMapping.fromJson constructor
Implementation
factory PortMapping.fromJson(Map<String, dynamic> json) {
return PortMapping(
containerPort: json['containerPort'] as int?,
hostPort: json['hostPort'] as int?,
protocol: (json['protocol'] as String?)?.toTransportProtocol(),
);
}