toJson method
Implementation
@override
Map<String, dynamic> toJson(UPostEmbed object) => object.when(
images: const ImagesConverter().toJson,
video: const VideoConverter().toJson,
external: const ExternalConverter().toJson,
record: const RecordConverter().toJson,
recordWithMedia: const RecordWithMediaConverter().toJson,
unknown: (data) => data,
);