toJson method

Map toJson()

Implementation

Map toJson() {
  return {
    'name': name,
    'title': title,
    'is_animated': isAnimated,
    'contains_masks': containsMasks,
    'stickers': stickers,
    'photo_size': thumb,
  }..removeWhere((_, v) => v == null);
}