toJson method

Map<String, dynamic> toJson()

Converts a BotCommand to a Map for JSON encoding.

Implementation

Map<String, dynamic> toJson() {
  return {
    'command': command,
    'description': description,
  };
}