toJson method
Implementation
@override
Map<String, dynamic> toJson(UPostViewEmbed object) => object.when(
imagesView: const ImagesViewConverter().toJson,
videoView: const VideoViewConverter().toJson,
externalView: const ExternalViewConverter().toJson,
recordView: const RecordViewConverter().toJson,
recordWithMediaView: const RecordWithMediaViewConverter().toJson,
unknown: (data) => data,
);