toJson method
Converts the object to a map.
Implementation
@override
Map<String, dynamic> toJson() {
final map = super.toJson();
map['runId'] = runId;
map['threadId'] = threadId;
map['text'] = text;
map['toolCallId'] = toolCallId;
map['tags'] = tags ?? [];
map['quotedMessageId'] = quotedMessageId;
if (quotedMessage != null) {
map['quotedMessage'] = quotedMessage!.toJson();
}
return map;
}