KeyboardButtonTypeRequestUser.fromJson constructor

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

Parse from a json

Implementation

factory KeyboardButtonTypeRequestUser.fromJson(Map<String, dynamic> json) =>
    KeyboardButtonTypeRequestUser(
      id: json['id'],
      restrictUserIsBot: json['restrict_user_is_bot'],
      userIsBot: json['user_is_bot'],
      restrictUserIsPremium: json['restrict_user_is_premium'],
      userIsPremium: json['user_is_premium'],
    );