BotCommand.fromJson constructor

BotCommand.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory BotCommand.fromJson(Map<String, dynamic> json) => BotCommand(
      command: json['command'],
      description: json['description'],
    );