GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.fromJson constructor

GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.fromJson(core.Map json_)
    : this(
        aggregationPeriod: json_.containsKey('aggregationPeriod')
            ? json_['aggregationPeriod'] as core.String
            : null,
        alertThreshold: json_.containsKey('alertThreshold')
            ? json_['alertThreshold'] as core.int
            : null,
        disableAlert: json_.containsKey('disableAlert')
            ? json_['disableAlert'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        durationThreshold: json_.containsKey('durationThreshold')
            ? json_['durationThreshold'] as core.String
            : null,
        metricType: json_.containsKey('metricType')
            ? json_['metricType'] as core.String
            : null,
        onlyFinalAttempt: json_.containsKey('onlyFinalAttempt')
            ? json_['onlyFinalAttempt'] as core.bool
            : null,
        thresholdType: json_.containsKey('thresholdType')
            ? json_['thresholdType'] as core.String
            : null,
        thresholdValue: json_.containsKey('thresholdValue')
            ? GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue
                .fromJson(json_['thresholdValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );