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