RichTextBotCommand.fromJson constructor

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

Parses a RichTextBotCommand from TDLib JSON.

Implementation

factory RichTextBotCommand.fromJson(Map<String, dynamic> json) =>
    RichTextBotCommand(
      text: _readObject(json['text'], RichText.fromJson),
      botCommand: _readString(json['bot_command']),
    );