toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'jobId': jobId,
  'terminal': terminal,
  'events': events.map((item) => item.toJson()).toList(growable: false),
};