HealthStatusForNetworkEndpoint.fromJson constructor

HealthStatusForNetworkEndpoint.fromJson(
  1. Object? j
)

Implementation

factory HealthStatusForNetworkEndpoint.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return HealthStatusForNetworkEndpoint(
    backendService: switch (json['backendService']) {
      null => null,
      Object $1 => BackendServiceReference.fromJson($1),
    },
    forwardingRule: switch (json['forwardingRule']) {
      null => null,
      Object $1 => ForwardingRuleReference.fromJson($1),
    },
    healthCheck: switch (json['healthCheck']) {
      null => null,
      Object $1 => HealthCheckReference.fromJson($1),
    },
    healthCheckService: switch (json['healthCheckService']) {
      null => null,
      Object $1 => HealthCheckServiceReference.fromJson($1),
    },
    healthState: switch (json['healthState']) {
      null => null,
      Object $1 => decodeString($1),
    },
    ipv6HealthState: switch (json['ipv6HealthState']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}