EndpointPort.fromJson constructor
Creates a EndpointPort from JSON data.
Implementation
factory EndpointPort.fromJson(Map<String, dynamic> json) {
final tempAppProtocolJson = json['appProtocol'];
final tempNameJson = json['name'];
final tempPortJson = json['port'];
final tempProtocolJson = json['protocol'];
final String? tempAppProtocol = tempAppProtocolJson;
final String? tempName = tempNameJson;
final int tempPort = tempPortJson;
final String? tempProtocol = tempProtocolJson;
return EndpointPort(
appProtocol: tempAppProtocol,
name: tempName,
port: tempPort,
protocol: tempProtocol,
);
}