toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'updateNewInlineQuery',
    if (extra != null) '@extra': extra,
    'id': id,
    'sender_user_id': sender_user_id,
    'user_location': user_location,
    'chat_type': chat_type,
    'query': query,
    'offset': offset
  };
}