OutlierDetection.fromJson constructor
OutlierDetection.fromJson(
- Object? j
Implementation
factory OutlierDetection.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return OutlierDetection(
baseEjectionTime: switch (json['baseEjectionTime']) {
null => null,
Object $1 => Duration.fromJson($1),
},
consecutiveErrors: switch (json['consecutiveErrors']) {
null => null,
Object $1 => decodeInt($1),
},
consecutiveGatewayFailure: switch (json['consecutiveGatewayFailure']) {
null => null,
Object $1 => decodeInt($1),
},
enforcingConsecutiveErrors: switch (json['enforcingConsecutiveErrors']) {
null => null,
Object $1 => decodeInt($1),
},
enforcingConsecutiveGatewayFailure:
switch (json['enforcingConsecutiveGatewayFailure']) {
null => null,
Object $1 => decodeInt($1),
},
enforcingSuccessRate: switch (json['enforcingSuccessRate']) {
null => null,
Object $1 => decodeInt($1),
},
interval: switch (json['interval']) {
null => null,
Object $1 => Duration.fromJson($1),
},
maxEjectionPercent: switch (json['maxEjectionPercent']) {
null => null,
Object $1 => decodeInt($1),
},
successRateMinimumHosts: switch (json['successRateMinimumHosts']) {
null => null,
Object $1 => decodeInt($1),
},
successRateRequestVolume: switch (json['successRateRequestVolume']) {
null => null,
Object $1 => decodeInt($1),
},
successRateStdevFactor: switch (json['successRateStdevFactor']) {
null => null,
Object $1 => decodeInt($1),
},
);
}