toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (currentNumWorkers != null) 'currentNumWorkers': currentNumWorkers!,
      if (description != null) 'description': description!,
      if (eventType != null) 'eventType': eventType!,
      if (targetNumWorkers != null) 'targetNumWorkers': targetNumWorkers!,
      if (time != null) 'time': time!,
      if (workerPool != null) 'workerPool': workerPool!,
    };