IngressPortStatus.fromJson constructor

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

Creates a IngressPortStatus from JSON data.

Implementation

factory IngressPortStatus.fromJson(Map<String, dynamic> json) {
  final tempErrorJson = json['error'];
  final tempPortJson = json['port'];
  final tempProtocolJson = json['protocol'];

  final String? tempError = tempErrorJson;
  final int tempPort = tempPortJson;
  final String tempProtocol = tempProtocolJson;

  return IngressPortStatus(
    error: tempError,
    port: tempPort,
    protocol: tempProtocol,
  );
}