LoadBalancerInfo.fromJson constructor

LoadBalancerInfo.fromJson(
  1. Map json_
)

Implementation

LoadBalancerInfo.fromJson(core.Map json_)
    : this(
        backendType: json_.containsKey('backendType')
            ? json_['backendType'] as core.String
            : null,
        backendUri: json_.containsKey('backendUri')
            ? json_['backendUri'] as core.String
            : null,
        backends: json_.containsKey('backends')
            ? (json_['backends'] as core.List)
                .map((value) => LoadBalancerBackend.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        healthCheckUri: json_.containsKey('healthCheckUri')
            ? json_['healthCheckUri'] as core.String
            : null,
        loadBalancerType: json_.containsKey('loadBalancerType')
            ? json_['loadBalancerType'] as core.String
            : null,
      );