KeyboardButtonPollType.fromJson constructor

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

Creates a KeyboardButtonPollType object from JSON object

Implementation

factory KeyboardButtonPollType.fromJson(Map<String, dynamic> json) {
  return KeyboardButtonPollType(
    type: PollType.fromJson(json['type']),
  );
}