BusinessBotManageBar.fromJson constructor

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

Parses a BusinessBotManageBar from TDLib JSON.

Implementation

factory BusinessBotManageBar.fromJson(Map<String, dynamic> json) =>
    BusinessBotManageBar(
      botUserId: _readInt(json['bot_user_id']),
      manageUrl: _readString(json['manage_url']),
      isBotPaused: _readBool(json['is_bot_paused']),
      canBotReply: _readBool(json['can_bot_reply']),
    );