InternalLinkTypeAttachmentMenuBot.fromJson constructor

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

Parses a InternalLinkTypeAttachmentMenuBot from TDLib JSON.

Implementation

factory InternalLinkTypeAttachmentMenuBot.fromJson(
        Map<String, dynamic> json) =>
    InternalLinkTypeAttachmentMenuBot(
      targetChat: _readObject(json['target_chat'], TargetChat.fromJson),
      botUsername: _readString(json['bot_username']),
      url: _readString(json['url']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );