toJson method

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

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