toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'inputMessagePoll',
    if (extra != null) '@extra': extra,
    'question': question,
    'options': options,
    'is_anonymous': is_anonymous,
    'type': type,
    'open_period': open_period,
    'close_date': close_date,
    'is_closed': is_closed
  };
}