fromJson static method
Inherited by: KeyboardButtonTypeRequestChat KeyboardButtonTypeRequestLocation KeyboardButtonTypeRequestManagedBot KeyboardButtonTypeRequestPhoneNumber KeyboardButtonTypeRequestPoll KeyboardButtonTypeRequestUsers KeyboardButtonTypeText KeyboardButtonTypeWebApp
Implementation
static KeyboardButtonTypeRequestPoll? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return KeyboardButtonTypeRequestPoll(
forceRegular: (json['force_regular'] as bool?) ?? false,
forceQuiz: (json['force_quiz'] as bool?) ?? false,
);
}