toMap method
Converts this ToolChoice into a JSON-compatible map.
Implementation
@override
Map<String, Object?> toMap() {
return {if (mode != null) 'mode': mode};
}
Converts this ToolChoice into a JSON-compatible map.
@override
Map<String, Object?> toMap() {
return {if (mode != null) 'mode': mode};
}