package com.fireworksdk.bridge.models.enums enum class FWVideoFeedSource(val rawValue: String) { Discover("discover"), Channel("channel"), Playlist("playlist"), DynamicContent("dynamicContent"), PlaylistGroup("playlistGroup"), HashtagPlaylist("hashtagPlaylist"), Sku("sku"), ShareUrl("shareUrl"), SingleContent("singleContent"); companion object { fun deserialize(rawValue: String?): FWVideoFeedSource? { rawValue ?: return null return FWVideoFeedSource.values().firstOrNull { it.rawValue == rawValue } } fun serialize(model: FWVideoFeedSource?): String? { model ?: return null return model.rawValue } } }