BotCommandScopeChatMember.fromJson constructor

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

Parses a BotCommandScopeChatMember from TDLib JSON.

Implementation

factory BotCommandScopeChatMember.fromJson(Map<String, dynamic> json) =>
    BotCommandScopeChatMember(
      chatId: _readInt(json['chat_id']),
      userId: _readInt(json['user_id']),
    );