IngressStatus.fromJson constructor

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

Creates a IngressStatus from JSON data.

Implementation

factory IngressStatus.fromJson(Map<String, dynamic> json) {
  final tempLoadBalancerJson = json['loadBalancer'];

  final IngressLoadBalancerStatus? tempLoadBalancer =
      tempLoadBalancerJson != null
          ? IngressLoadBalancerStatus.fromJson(tempLoadBalancerJson)
          : null;

  return IngressStatus(
    loadBalancer: tempLoadBalancer,
  );
}