StartChildWorkflowExecutionFailedEventAttributes.fromJson constructor

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

Implementation

factory StartChildWorkflowExecutionFailedEventAttributes.fromJson(
    Map<String, dynamic> json) {
  return StartChildWorkflowExecutionFailedEventAttributes(
    cause:
        (json['cause'] as String).toStartChildWorkflowExecutionFailedCause(),
    decisionTaskCompletedEventId: json['decisionTaskCompletedEventId'] as int,
    initiatedEventId: json['initiatedEventId'] as int,
    workflowId: json['workflowId'] as String,
    workflowType:
        WorkflowType.fromJson(json['workflowType'] as Map<String, dynamic>),
    control: json['control'] as String?,
  );
}