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