fromJson static method

KeyboardButtonTypeRequestPoll? fromJson(
  1. Map<String, dynamic>? json
)
override

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,
  );
}