BotDescription.fromJson constructor

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

Creates the Bot Description object from a JSON object.

Implementation

factory BotDescription.fromJson(Map<String, dynamic> json) {
  return BotDescription(
    description: json['description'] as String,
  );
}