WorkflowExecutionStartedEventAttributes.fromJson constructor

WorkflowExecutionStartedEventAttributes.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WorkflowExecutionStartedEventAttributes.fromJson(
    Map<String, dynamic> json) {
  return WorkflowExecutionStartedEventAttributes(
    childPolicy: (json['childPolicy'] as String).toChildPolicy(),
    taskList: TaskList.fromJson(json['taskList'] as Map<String, dynamic>),
    workflowType:
        WorkflowType.fromJson(json['workflowType'] as Map<String, dynamic>),
    continuedExecutionRunId: json['continuedExecutionRunId'] as String?,
    executionStartToCloseTimeout:
        json['executionStartToCloseTimeout'] as String?,
    input: json['input'] as String?,
    lambdaRole: json['lambdaRole'] as String?,
    parentInitiatedEventId: json['parentInitiatedEventId'] as int?,
    parentWorkflowExecution: json['parentWorkflowExecution'] != null
        ? WorkflowExecution.fromJson(
            json['parentWorkflowExecution'] as Map<String, dynamic>)
        : null,
    tagList: (json['tagList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    taskPriority: json['taskPriority'] as String?,
    taskStartToCloseTimeout: json['taskStartToCloseTimeout'] as String?,
  );
}