toMap method
This method used to convert the OpenAIResponseToolCall to a Map<String, dynamic> object.
Implementation
Map<String, dynamic> toMap() {
return {
"id": id,
"type": type,
"function": function.toMap(),
};
}
This method used to convert the OpenAIResponseToolCall to a Map<String, dynamic> object.
Map<String, dynamic> toMap() {
return {
"id": id,
"type": type,
"function": function.toMap(),
};
}