toJson method
Implementation
@override
Map<String, dynamic> toJson(UBlobViewDetail object) => object.when(
imageDetails: const ImageDetailsConverter().toJson,
videoDetails: const VideoDetailsConverter().toJson,
unknown: (data) => data,
);