BotCommandScopeChatMember.fromJson constructor

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

Creates a new BotCommandScopeChatMember object from json.

Implementation

factory BotCommandScopeChatMember.fromJson(Map<String, dynamic> json) {
  return BotCommandScopeChatMember(
    chatId: ID.create(json['chat_id']),
    userId: json['user_id'] as int,
  );
}