toJson method
Implementation
Map<String, dynamic> toJson() {
final activityId = this.activityId;
final activityType = this.activityType;
final control = this.control;
final heartbeatTimeout = this.heartbeatTimeout;
final input = this.input;
final scheduleToCloseTimeout = this.scheduleToCloseTimeout;
final scheduleToStartTimeout = this.scheduleToStartTimeout;
final startToCloseTimeout = this.startToCloseTimeout;
final taskList = this.taskList;
final taskPriority = this.taskPriority;
return {
'activityId': activityId,
'activityType': activityType,
if (control != null) 'control': control,
if (heartbeatTimeout != null) 'heartbeatTimeout': heartbeatTimeout,
if (input != null) 'input': input,
if (scheduleToCloseTimeout != null)
'scheduleToCloseTimeout': scheduleToCloseTimeout,
if (scheduleToStartTimeout != null)
'scheduleToStartTimeout': scheduleToStartTimeout,
if (startToCloseTimeout != null)
'startToCloseTimeout': startToCloseTimeout,
if (taskList != null) 'taskList': taskList,
if (taskPriority != null) 'taskPriority': taskPriority,
};
}