toJson method
Serializes a Game object to a JSON map
Implementation
Map<String, dynamic> toJson() {
return {
'title': title,
'description': description,
'photo': photo.map((e) => e.toJson()).toList(),
'text': text,
'text_entities': textEntities?.map((e) => e.toJson()).toList(),
'animation': animation?.toJson(),
}..removeWhere(_nullFilter);
}