PortMapping.fromJson constructor

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

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(),
  );
}