KeyboardButtonRequestUsers.fromJson constructor

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

Creates a new KeyboardButtonRequestUsers from a JSON object.

Implementation

factory KeyboardButtonRequestUsers.fromJson(Map<String, dynamic> json) {
  return KeyboardButtonRequestUsers(
    requestId: json['request_id']!,
    userIsBot: json['user_is_bot'],
    userIsPremium: json['user_is_premium'],
    maxQuantity: json['max_quantity'],
    requestName: json['request_name'],
    requestUsername: json['request_username'],
    requestPhoto: json['request_photo'],
  );
}