OutlierDetection.fromJson constructor

OutlierDetection.fromJson(
  1. Map json_
)

Implementation

OutlierDetection.fromJson(core.Map json_)
  : this(
      baseEjectionTime:
          json_.containsKey('baseEjectionTime')
              ? Duration.fromJson(
                json_['baseEjectionTime']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      consecutiveErrors: json_['consecutiveErrors'] as core.int?,
      consecutiveGatewayFailure:
          json_['consecutiveGatewayFailure'] as core.int?,
      enforcingConsecutiveErrors:
          json_['enforcingConsecutiveErrors'] as core.int?,
      enforcingConsecutiveGatewayFailure:
          json_['enforcingConsecutiveGatewayFailure'] as core.int?,
      enforcingSuccessRate: json_['enforcingSuccessRate'] as core.int?,
      interval:
          json_.containsKey('interval')
              ? Duration.fromJson(
                json_['interval'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      maxEjectionPercent: json_['maxEjectionPercent'] as core.int?,
      successRateMinimumHosts: json_['successRateMinimumHosts'] as core.int?,
      successRateRequestVolume:
          json_['successRateRequestVolume'] as core.int?,
      successRateStdevFactor: json_['successRateStdevFactor'] as core.int?,
    );