InlineKeyboardButtonTypeUser.fromJson constructor

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

Parses a InlineKeyboardButtonTypeUser from TDLib JSON.

Implementation

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