toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'sendStory',
if (extra != null) '@extra': extra,
'chat_id': chat_id,
'content': content,
'areas': areas,
'caption': caption,
'privacy_settings': privacy_settings,
'active_period': active_period,
'is_pinned': is_pinned,
'protect_content': protect_content
};
}