fromJson static method

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

Creates a object from a json

Implementation

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