toJson method

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

Implementation

@override
Map<String, dynamic> toJson(UPreference object) => object.when(
      adultContentPref: const AdultContentPrefConverter().toJson,
      contentLabelPref: const ContentLabelPrefConverter().toJson,
      savedFeedsPref: const SavedFeedsPrefConverter().toJson,
      savedFeedsPrefV2: const SavedFeedsPrefV2Converter().toJson,
      personalDetailsPref: const PersonalDetailsPrefConverter().toJson,
      feedViewPref: const FeedViewPrefConverter().toJson,
      threadViewPref: const ThreadViewPrefConverter().toJson,
      interestsPref: const InterestsPrefConverter().toJson,
      mutedWordsPref: const MutedWordsPrefConverter().toJson,
      hiddenPostsPref: const HiddenPostsPrefConverter().toJson,
      bskyAppStatePref: const BskyAppStatePrefConverter().toJson,
      labelersPref: const LabelersPrefConverter().toJson,
      unknown: (data) => data,
    );