BotVerification.fromJson constructor

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

Parses a BotVerification from TDLib JSON.

Implementation

factory BotVerification.fromJson(Map<String, dynamic> json) =>
    BotVerification(
      botUserId: _readInt(json['bot_user_id']),
      iconCustomEmojiId: _readInt(json['icon_custom_emoji_id']),
      customDescription: _readObject(
        json['custom_description'],
        FormattedText.fromJson,
      ),
    );