toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final signalName = this.signalName;
  final workflowId = this.workflowId;
  final control = this.control;
  final input = this.input;
  final runId = this.runId;
  return {
    'signalName': signalName,
    'workflowId': workflowId,
    if (control != null) 'control': control,
    if (input != null) 'input': input,
    if (runId != null) 'runId': runId,
  };
}