Encodes this value as a JSON object.
Map<String, Object?> toJson() => <String, Object?>{ 'jobId': jobId, 'terminal': terminal, 'events': events.map((item) => item.toJson()).toList(growable: false), };