toJson method
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'protocolVersion': protocolVersion,
'requestId': requestId,
'admission': admission,
if (code != null)
'rejection': <String, Object?>{'code': code, 'details': details},
if (capabilities != null) 'capabilities': capabilities!.toJson(),
if (before != null) 'before': before!.toJson(),
if (after != null) 'after': after!.toJson(),
'evidence': <Map<String, Object?>>[
for (final PatchbayPermissionEvidence item in evidence) item.toJson(),
],
if (interruption != null) 'interruption': interruption!.toJson(),
if (notice != null) 'notice': notice,
};