toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'game',
if (extra != null) '@extra': extra,
'id': id,
'short_name': short_name,
'title': title,
'text': text,
'description': description,
'photo': photo,
'animation': animation
};
}