toJson method
The message body (without the t discriminator).
Implementation
@override
Map<String, dynamic> toJson() => {
'requestId': requestId,
if (capability != null) 'capability': capability,
'labels': labels,
if (filter.isNotEmpty) 'filter': filter,
};