BusinessConnectedBot.fromJson constructor

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

Parses a BusinessConnectedBot from TDLib JSON.

Implementation

factory BusinessConnectedBot.fromJson(Map<String, dynamic> json) =>
    BusinessConnectedBot(
      botUserId: _readInt(json['bot_user_id']),
      recipients: _readObject(
        json['recipients'],
        BusinessRecipients.fromJson,
      ),
      rights: _readObject(json['rights'], BusinessBotRights.fromJson),
    );