fromJson static method
Creates a object from a json
Implementation
static KeyboardButton fromJson(Map<String, dynamic> json) {
return KeyboardButton._(
text: json['text']!,
requestContact: json['request_contact'],
requestLocation: json['request_location'],
requestPoll: callIfNotNull(
KeyboardButtonPollType.fromJson,
json['request_poll'],
),
webApp: callIfNotNull(
WebAppInfo.fromJson,
json['web_app'],
),
);
}