toJson method
The protocol's content object.
Implementation
@override
Map<String, Object?> toJson() => <String, Object?>{
'type': 'resource',
'resource': <String, Object?>{
'uri': uri,
'mimeType': ?mimeType,
'text': ?text,
if (blob case final Uint8List bytes) 'blob': base64Encode(bytes),
},
};