IngressBackend.fromJson constructor
Creates a IngressBackend from JSON data.
Implementation
factory IngressBackend.fromJson(Map<String, dynamic> json) {
final tempResourceJson = json['resource'];
final tempServiceJson = json['service'];
final TypedLocalObjectReference? tempResource = tempResourceJson != null
? TypedLocalObjectReference.fromJson(tempResourceJson)
: null;
final IngressServiceBackend? tempService = tempServiceJson != null
? IngressServiceBackend.fromJson(tempServiceJson)
: null;
return IngressBackend(
resource: tempResource,
service: tempService,
);
}