toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final decisionType = this.decisionType;
  final cancelTimerDecisionAttributes = this.cancelTimerDecisionAttributes;
  final cancelWorkflowExecutionDecisionAttributes =
      this.cancelWorkflowExecutionDecisionAttributes;
  final completeWorkflowExecutionDecisionAttributes =
      this.completeWorkflowExecutionDecisionAttributes;
  final continueAsNewWorkflowExecutionDecisionAttributes =
      this.continueAsNewWorkflowExecutionDecisionAttributes;
  final failWorkflowExecutionDecisionAttributes =
      this.failWorkflowExecutionDecisionAttributes;
  final recordMarkerDecisionAttributes = this.recordMarkerDecisionAttributes;
  final requestCancelActivityTaskDecisionAttributes =
      this.requestCancelActivityTaskDecisionAttributes;
  final requestCancelExternalWorkflowExecutionDecisionAttributes =
      this.requestCancelExternalWorkflowExecutionDecisionAttributes;
  final scheduleActivityTaskDecisionAttributes =
      this.scheduleActivityTaskDecisionAttributes;
  final scheduleLambdaFunctionDecisionAttributes =
      this.scheduleLambdaFunctionDecisionAttributes;
  final signalExternalWorkflowExecutionDecisionAttributes =
      this.signalExternalWorkflowExecutionDecisionAttributes;
  final startChildWorkflowExecutionDecisionAttributes =
      this.startChildWorkflowExecutionDecisionAttributes;
  final startTimerDecisionAttributes = this.startTimerDecisionAttributes;
  return {
    'decisionType': decisionType.toValue(),
    if (cancelTimerDecisionAttributes != null)
      'cancelTimerDecisionAttributes': cancelTimerDecisionAttributes,
    if (cancelWorkflowExecutionDecisionAttributes != null)
      'cancelWorkflowExecutionDecisionAttributes':
          cancelWorkflowExecutionDecisionAttributes,
    if (completeWorkflowExecutionDecisionAttributes != null)
      'completeWorkflowExecutionDecisionAttributes':
          completeWorkflowExecutionDecisionAttributes,
    if (continueAsNewWorkflowExecutionDecisionAttributes != null)
      'continueAsNewWorkflowExecutionDecisionAttributes':
          continueAsNewWorkflowExecutionDecisionAttributes,
    if (failWorkflowExecutionDecisionAttributes != null)
      'failWorkflowExecutionDecisionAttributes':
          failWorkflowExecutionDecisionAttributes,
    if (recordMarkerDecisionAttributes != null)
      'recordMarkerDecisionAttributes': recordMarkerDecisionAttributes,
    if (requestCancelActivityTaskDecisionAttributes != null)
      'requestCancelActivityTaskDecisionAttributes':
          requestCancelActivityTaskDecisionAttributes,
    if (requestCancelExternalWorkflowExecutionDecisionAttributes != null)
      'requestCancelExternalWorkflowExecutionDecisionAttributes':
          requestCancelExternalWorkflowExecutionDecisionAttributes,
    if (scheduleActivityTaskDecisionAttributes != null)
      'scheduleActivityTaskDecisionAttributes':
          scheduleActivityTaskDecisionAttributes,
    if (scheduleLambdaFunctionDecisionAttributes != null)
      'scheduleLambdaFunctionDecisionAttributes':
          scheduleLambdaFunctionDecisionAttributes,
    if (signalExternalWorkflowExecutionDecisionAttributes != null)
      'signalExternalWorkflowExecutionDecisionAttributes':
          signalExternalWorkflowExecutionDecisionAttributes,
    if (startChildWorkflowExecutionDecisionAttributes != null)
      'startChildWorkflowExecutionDecisionAttributes':
          startChildWorkflowExecutionDecisionAttributes,
    if (startTimerDecisionAttributes != null)
      'startTimerDecisionAttributes': startTimerDecisionAttributes,
  };
}