toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'id': id,
    'from': from,
    'query': query,
    'offset': offset,
    'chat_type': chatType,
    'location': location,
  }..removeWhere((_, v) => v == null);
}