BackendServiceFailoverPolicy.fromJson constructor

BackendServiceFailoverPolicy.fromJson(
  1. Map json_
)

Implementation

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