toJson method

Map<String, dynamic> toJson()

Converts an InlineQuery object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'from': from.toJson(),
    'query': query,
    'offset': offset,
    'chat_type': chatType?.value,
    'location': location?.toJson(),
  }..removeWhere(_nullFilter);
}