BackendServiceFailoverPolicy.fromJson constructor
BackendServiceFailoverPolicy.fromJson(
- Object? j
Implementation
factory BackendServiceFailoverPolicy.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BackendServiceFailoverPolicy(
disableConnectionDrainOnFailover:
switch (json['disableConnectionDrainOnFailover']) {
null => null,
Object $1 => decodeBool($1),
},
dropTrafficIfUnhealthy: switch (json['dropTrafficIfUnhealthy']) {
null => null,
Object $1 => decodeBool($1),
},
failoverRatio: switch (json['failoverRatio']) {
null => null,
Object $1 => decodeDouble($1),
},
);
}