toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'title': title,
    'description': description,
    'photo': photo,
    'text': text,
    'text_entities': textEntities,
    'animation': animation,
  }..removeWhere((_, v) => v == null);
}