fromJson static method

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

Creates a object from a json

Implementation

static BotCommand fromJson(Map<String, dynamic> json) {
  return BotCommand(
    command: json['command']!,
    description: json['description']!,
  );
}