HealthStatus.fromJson constructor

HealthStatus.fromJson(
  1. Map json_
)

Implementation

HealthStatus.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        forwardingRule: json_.containsKey('forwardingRule')
            ? json_['forwardingRule'] as core.String
            : null,
        forwardingRuleIp: json_.containsKey('forwardingRuleIp')
            ? json_['forwardingRuleIp'] as core.String
            : null,
        healthState: json_.containsKey('healthState')
            ? json_['healthState'] as core.String
            : null,
        instance: json_.containsKey('instance')
            ? json_['instance'] as core.String
            : null,
        ipAddress: json_.containsKey('ipAddress')
            ? json_['ipAddress'] as core.String
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        weight: json_.containsKey('weight')
            ? json_['weight'] as core.String
            : null,
        weightError: json_.containsKey('weightError')
            ? json_['weightError'] as core.String
            : null,
      );