EnterpriseCrmEventbusProtoWorkflowAlertConfig.fromJson constructor

EnterpriseCrmEventbusProtoWorkflowAlertConfig.fromJson(
  1. Map json_
)

Implementation

EnterpriseCrmEventbusProtoWorkflowAlertConfig.fromJson(core.Map json_)
  : this(
      aggregationPeriod: json_['aggregationPeriod'] as core.String?,
      alertDisabled: json_['alertDisabled'] as core.bool?,
      alertName: json_['alertName'] as core.String?,
      clientId: json_['clientId'] as core.String?,
      durationThresholdMs: json_['durationThresholdMs'] as core.String?,
      errorEnumList:
          json_.containsKey('errorEnumList')
              ? EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.fromJson(
                json_['errorEnumList'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      metricType: json_['metricType'] as core.String?,
      numAggregationPeriods: json_['numAggregationPeriods'] as core.int?,
      onlyFinalAttempt: json_['onlyFinalAttempt'] as core.bool?,
      playbookUrl: json_['playbookUrl'] as core.String?,
      thresholdType: json_['thresholdType'] as core.String?,
      thresholdValue:
          json_.containsKey('thresholdValue')
              ? EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.fromJson(
                json_['thresholdValue']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      warningEnumList:
          json_.containsKey('warningEnumList')
              ? EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.fromJson(
                json_['warningEnumList']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
    );