toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'toggleStoryIsPinned',
if (extra != null) '@extra': extra,
'story_sender_chat_id': story_sender_chat_id,
'story_id': story_id,
'is_pinned': is_pinned
};
}