GoogleCloudIntegrationsV1alphaTaskConfig.fromJson constructor

GoogleCloudIntegrationsV1alphaTaskConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIntegrationsV1alphaTaskConfig.fromJson(core.Map json_)
    : this(
        conditionalFailurePolicies:
            json_.containsKey('conditionalFailurePolicies')
                ? GoogleCloudIntegrationsV1alphaConditionalFailurePolicies
                    .fromJson(json_['conditionalFailurePolicies']
                        as core.Map<core.String, core.dynamic>)
                : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : 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')
            ? GoogleCloudIntegrationsV1alphaFailurePolicy.fromJson(
                json_['failurePolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        jsonValidationOption: json_.containsKey('jsonValidationOption')
            ? json_['jsonValidationOption'] as core.String
            : null,
        nextTasks: json_.containsKey('nextTasks')
            ? (json_['nextTasks'] as core.List)
                .map((value) =>
                    GoogleCloudIntegrationsV1alphaNextTask.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,
                  GoogleCloudIntegrationsV1alphaEventParameter.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        position: json_.containsKey('position')
            ? GoogleCloudIntegrationsV1alphaCoordinate.fromJson(
                json_['position'] as core.Map<core.String, core.dynamic>)
            : null,
        successPolicy: json_.containsKey('successPolicy')
            ? GoogleCloudIntegrationsV1alphaSuccessPolicy.fromJson(
                json_['successPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        synchronousCallFailurePolicy:
            json_.containsKey('synchronousCallFailurePolicy')
                ? GoogleCloudIntegrationsV1alphaFailurePolicy.fromJson(
                    json_['synchronousCallFailurePolicy']
                        as core.Map<core.String, core.dynamic>)
                : null,
        task: json_.containsKey('task') ? json_['task'] as core.String : null,
        taskExecutionStrategy: json_.containsKey('taskExecutionStrategy')
            ? json_['taskExecutionStrategy'] as core.String
            : null,
        taskId: json_.containsKey('taskId')
            ? json_['taskId'] as core.String
            : null,
        taskTemplate: json_.containsKey('taskTemplate')
            ? json_['taskTemplate'] as core.String
            : null,
      );