toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'schemaVersion': schemaVersion,
  'requestId': requestId,
  'admission': admission.toJson(),
  'payload': _wireJsonObject(payload, r'$.payload'),
  'notice': notice == null ? null : notice!,
  'jobId': jobId == null ? null : jobId!,
  'rejection': rejection == null ? null : rejection!.toJson(),
};