toMap method

  1. @override
Map<String, dynamic> toMap()
override

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,
    };