toJson method
Converts a ServiceStatus instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempConditions = conditions;
final tempLoadBalancer = loadBalancer;
if (tempConditions != null) {
jsonData['conditions'] =
tempConditions.map((e) => e.toJson()).toList(growable: false);
}
if (tempLoadBalancer != null) {
jsonData['loadBalancer'] = tempLoadBalancer.toJson();
}
return jsonData;
}