BotCommand.fromJson constructor

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

Implementation

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