ChildWorkflowExecutionFailedEventAttributes.fromJson constructor

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

Implementation

factory ChildWorkflowExecutionFailedEventAttributes.fromJson(
    Map<String, dynamic> json) {
  return ChildWorkflowExecutionFailedEventAttributes(
    initiatedEventId: json['initiatedEventId'] as int,
    startedEventId: json['startedEventId'] as int,
    workflowExecution: WorkflowExecution.fromJson(
        json['workflowExecution'] as Map<String, dynamic>),
    workflowType:
        WorkflowType.fromJson(json['workflowType'] as Map<String, dynamic>),
    details: json['details'] as String?,
    reason: json['reason'] as String?,
  );
}