toJson method

  1. @override
Map<String, dynamic> toJson(
  1. UPostViewEmbed object
)

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,
    );