toJson method

Map<String, Object> toJson()

Converts a IngressLoadBalancerStatus instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempIngress = ingress;

  if (tempIngress != null) {
    jsonData['ingress'] =
        tempIngress.map((e) => e.toJson()).toList(growable: false);
  }

  return jsonData;
}