EnterpriseCrmEventbusProtoWorkflowAlertConfig.fromJson constructor

EnterpriseCrmEventbusProtoWorkflowAlertConfig.fromJson(
  1. Map json_
)

Implementation

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