BackendServiceFailoverPolicy.fromJson constructor

BackendServiceFailoverPolicy.fromJson(
  1. Map json_
)

Implementation

BackendServiceFailoverPolicy.fromJson(core.Map json_)
    : this(
        disableConnectionDrainOnFailover:
            json_.containsKey('disableConnectionDrainOnFailover')
                ? json_['disableConnectionDrainOnFailover'] as core.bool
                : null,
        dropTrafficIfUnhealthy: json_.containsKey('dropTrafficIfUnhealthy')
            ? json_['dropTrafficIfUnhealthy'] as core.bool
            : null,
        failoverRatio: json_.containsKey('failoverRatio')
            ? (json_['failoverRatio'] as core.num).toDouble()
            : null,
      );