RequestCancelExternalWorkflowExecutionFailedEventAttributes.fromJson constructor

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

Implementation

factory RequestCancelExternalWorkflowExecutionFailedEventAttributes.fromJson(
    Map<String, dynamic> json) {
  return RequestCancelExternalWorkflowExecutionFailedEventAttributes(
    cause: (json['cause'] as String)
        .toRequestCancelExternalWorkflowExecutionFailedCause(),
    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?,
  );
}