toMap method
Converts this ChatMessageContent to a map along with a type hint for deserialization.
Implementation
@override
/// Converts this ChatMessageContent to a map along with a type hint for deserialization.
Map<String, dynamic> toMap() => {
...super.toMap(),
'type': 'text',
'content': text,
};