toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': type, // "conversation.item.truncate"
'item_id': itemId,
'content_index': contentIndex,
'audio_end_ms': audioEndMs,
if (eventId != null) 'event_id': eventId,
};