toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'messagePhoto',
if (extra != null) '@extra': extra,
'photo': photo,
'caption': caption,
'has_spoiler': has_spoiler,
'is_secret': is_secret
};
}