SignalExternalWorkflowExecutionFailedEventAttributes.fromJson constructor

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

Implementation

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