EnterpriseCrmFrontendsEventbusProtoTaskConfig.fromJson constructor

EnterpriseCrmFrontendsEventbusProtoTaskConfig.fromJson(
  1. Map json_
)

Implementation

EnterpriseCrmFrontendsEventbusProtoTaskConfig.fromJson(core.Map json_)
    : this(
        alertConfigs: json_.containsKey('alertConfigs')
            ? (json_['alertConfigs'] as core.List)
                .map((value) =>
                    EnterpriseCrmEventbusProtoTaskAlertConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        conditionalFailurePolicies: json_
                .containsKey('conditionalFailurePolicies')
            ? EnterpriseCrmEventbusProtoConditionalFailurePolicies.fromJson(
                json_['conditionalFailurePolicies']
                    as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creatorEmail: json_.containsKey('creatorEmail')
            ? json_['creatorEmail'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disableStrictTypeValidation:
            json_.containsKey('disableStrictTypeValidation')
                ? json_['disableStrictTypeValidation'] as core.bool
                : null,
        errorCatcherId: json_.containsKey('errorCatcherId')
            ? json_['errorCatcherId'] as core.String
            : null,
        externalTaskType: json_.containsKey('externalTaskType')
            ? json_['externalTaskType'] as core.String
            : null,
        failurePolicy: json_.containsKey('failurePolicy')
            ? EnterpriseCrmEventbusProtoFailurePolicy.fromJson(
                json_['failurePolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        incomingEdgeCount: json_.containsKey('incomingEdgeCount')
            ? json_['incomingEdgeCount'] as core.int
            : null,
        jsonValidationOption: json_.containsKey('jsonValidationOption')
            ? json_['jsonValidationOption'] as core.String
            : null,
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        lastModifiedTime: json_.containsKey('lastModifiedTime')
            ? json_['lastModifiedTime'] as core.String
            : null,
        nextTasks: json_.containsKey('nextTasks')
            ? (json_['nextTasks'] as core.List)
                .map((value) => EnterpriseCrmEventbusProtoNextTask.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextTasksExecutionPolicy:
            json_.containsKey('nextTasksExecutionPolicy')
                ? json_['nextTasksExecutionPolicy'] as core.String
                : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  EnterpriseCrmFrontendsEventbusProtoParameterEntry.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        position: json_.containsKey('position')
            ? EnterpriseCrmEventbusProtoCoordinate.fromJson(
                json_['position'] as core.Map<core.String, core.dynamic>)
            : null,
        precondition: json_.containsKey('precondition')
            ? json_['precondition'] as core.String
            : null,
        preconditionLabel: json_.containsKey('preconditionLabel')
            ? json_['preconditionLabel'] as core.String
            : null,
        rollbackStrategy: json_.containsKey('rollbackStrategy')
            ? EnterpriseCrmFrontendsEventbusProtoRollbackStrategy.fromJson(
                json_['rollbackStrategy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        successPolicy: json_.containsKey('successPolicy')
            ? EnterpriseCrmEventbusProtoSuccessPolicy.fromJson(
                json_['successPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        synchronousCallFailurePolicy:
            json_.containsKey('synchronousCallFailurePolicy')
                ? EnterpriseCrmEventbusProtoFailurePolicy.fromJson(
                    json_['synchronousCallFailurePolicy']
                        as core.Map<core.String, core.dynamic>)
                : null,
        taskEntity: json_.containsKey('taskEntity')
            ? EnterpriseCrmFrontendsEventbusProtoTaskEntity.fromJson(
                json_['taskEntity'] as core.Map<core.String, core.dynamic>)
            : null,
        taskExecutionStrategy: json_.containsKey('taskExecutionStrategy')
            ? json_['taskExecutionStrategy'] as core.String
            : null,
        taskName: json_.containsKey('taskName')
            ? json_['taskName'] as core.String
            : null,
        taskNumber: json_.containsKey('taskNumber')
            ? json_['taskNumber'] as core.String
            : null,
        taskSpec: json_.containsKey('taskSpec')
            ? json_['taskSpec'] as core.String
            : null,
        taskTemplateName: json_.containsKey('taskTemplateName')
            ? json_['taskTemplateName'] as core.String
            : null,
        taskType: json_.containsKey('taskType')
            ? json_['taskType'] as core.String
            : null,
      );