toJson method

Map<String, dynamic> toJson()

Converts a KeyboardButtonPollType object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type?.type,
  }..removeWhere(_nullFilter);
}