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