toMap method
Converts ChatMessageContentMultiModal to a map along with a type hint for deserialization.
Implementation
@override
Map<String, dynamic> toMap() => {
...super.toMap(),
'type': 'multi_modal',
'parts': parts.map((p) => p.toMap()).toList(growable: false),
};