toJson method
Converts a BotCommand to a Map for JSON encoding.
Implementation
Map<String, dynamic> toJson() {
return {
'command': command,
'description': description,
};
}
Converts a BotCommand to a Map for JSON encoding.
Map<String, dynamic> toJson() {
return {
'command': command,
'description': description,
};
}