diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt index bb0aec8d6..4d2009591 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt @@ -12,102 +12,82 @@ import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object BatteryOptimizationPigeonPigeonUtils { - fun wrapResult(result: Any?): List { - return listOf(result) - } + fun wrapResult(result: Any?): List { + return listOf(result) + } - fun wrapError(exception: Throwable): List { - return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) - } else { - listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) - ) - } + fun wrapError(exception: Throwable): List { + return if (exception is FlutterError) { + listOf( + exception.code, + exception.message, + exception.details + ) + } else { + listOf( + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + ) } + } } - private open class BatteryOptimizationPigeonPigeonCodec : StandardMessageCodec() { - override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { - return super.readValueOfType(type, buffer) - } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - super.writeValue(stream, value) - } + override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { + return super.readValueOfType(type, buffer) + } + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + super.writeValue(stream, value) + } } /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface BatteryOptimizationPigeon { - /** Returns whether the app is currently *ignored* from battery optimizations. */ - fun isIgnoringBatteryOptimizations(): Boolean + fun isIgnoringBatteryOptimizations(): Boolean + fun openBatteryOptimizationSettings() - /** Opens the battery-optimization/settings screen for this app (Android). */ - fun openBatteryOptimizationSettings() - - companion object { - /** The codec used by BatteryOptimizationPigeon. */ - val codec: MessageCodec by lazy { - BatteryOptimizationPigeonPigeonCodec() - } - - /** Sets up an instance of `BatteryOptimizationPigeon` to handle messages through the `binaryMessenger`. */ - @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: BatteryOptimizationPigeon?, - messageChannelSuffix: String = "" - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isIgnoringBatteryOptimizations()) - } catch (exception: Throwable) { - BatteryOptimizationPigeonPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + companion object { + /** The codec used by BatteryOptimizationPigeon. */ + val codec: MessageCodec by lazy { + BatteryOptimizationPigeonPigeonCodec() + } + /** Sets up an instance of `BatteryOptimizationPigeon` to handle messages through the `binaryMessenger`. */ + @JvmOverloads + fun setUp(binaryMessenger: BinaryMessenger, api: BatteryOptimizationPigeon?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isIgnoringBatteryOptimizations()) + } catch (exception: Throwable) { + BatteryOptimizationPigeonPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.openBatteryOptimizationSettings() - listOf(null) - } catch (exception: Throwable) { - BatteryOptimizationPigeonPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.openBatteryOptimizationSettings() + listOf(null) + } catch (exception: Throwable) { + BatteryOptimizationPigeonPigeonUtils.wrapError(exception) } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) } + } } + } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt index c2fd9925f..83d7d356a 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt @@ -334,4 +334,124 @@ class TranslationsPigeon(private val binaryMessenger: BinaryMessenger, private v } } } + fun syncPlaySyncingWithGroup(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandPausing(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandPlaying(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandSeeking(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandStopping(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandSyncing(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt index 440f8edf4..367e0a680 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt @@ -93,6 +93,20 @@ enum class PlaybackType(val raw: Int) { } } +enum class SyncPlayCommandType(val raw: Int) { + NONE(0), + PAUSE(1), + UNPAUSE(2), + SEEK(3), + STOP(4); + + companion object { + fun ofRaw(raw: Int): SyncPlayCommandType? { + return values().firstOrNull { it.raw == raw } + } + } +} + enum class MediaSegmentType(val raw: Int) { COMMERCIAL(0), PREVIEW(1), @@ -107,6 +121,22 @@ enum class MediaSegmentType(val raw: Int) { } } +/** Source of the last playback state change (for SyncPlay: infer user actions from stream). */ +enum class PlaybackChangeSource(val raw: Int) { + /** No specific source (e.g. periodic update, buffering). */ + NONE(0), + /** User tapped play/pause/seek on native; Flutter should send SyncPlay if active. */ + USER(1), + /** Change was caused by applying a SyncPlay command; do not send again. */ + SYNCPLAY(2); + + companion object { + fun ofRaw(raw: Int): PlaybackChangeSource? { + return values().firstOrNull { it.raw == raw } + } + } +} + /** Generated class from Pigeon that represents data sent in messages. */ data class SimpleItemModel ( val id: String, @@ -487,7 +517,9 @@ data class PlaybackState ( val playing: Boolean, val buffering: Boolean, val completed: Boolean, - val failed: Boolean + val failed: Boolean, + /** When set, indicates who caused this state update (for SyncPlay inference). */ + val changeSource: PlaybackChangeSource? = null ) { companion object { @@ -499,7 +531,8 @@ data class PlaybackState ( val buffering = pigeonVar_list[4] as Boolean val completed = pigeonVar_list[5] as Boolean val failed = pigeonVar_list[6] as Boolean - return PlaybackState(position, buffered, duration, playing, buffering, completed, failed) + val changeSource = pigeonVar_list[7] as PlaybackChangeSource? + return PlaybackState(position, buffered, duration, playing, buffering, completed, failed, changeSource) } } fun toList(): List { @@ -511,6 +544,7 @@ data class PlaybackState ( buffering, completed, failed, + changeSource, ) } override fun equals(other: Any?): Boolean { @@ -709,75 +743,85 @@ private open class VideoPlayerHelperPigeonCodec : StandardMessageCodec() { } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { - MediaSegmentType.ofRaw(it.toInt()) + SyncPlayCommandType.ofRaw(it.toInt()) } } 131.toByte() -> { + return (readValue(buffer) as Long?)?.let { + MediaSegmentType.ofRaw(it.toInt()) + } + } + 132.toByte() -> { + return (readValue(buffer) as Long?)?.let { + PlaybackChangeSource.ofRaw(it.toInt()) + } + } + 133.toByte() -> { return (readValue(buffer) as? List)?.let { SimpleItemModel.fromList(it) } } - 132.toByte() -> { + 134.toByte() -> { return (readValue(buffer) as? List)?.let { MediaInfo.fromList(it) } } - 133.toByte() -> { + 135.toByte() -> { return (readValue(buffer) as? List)?.let { PlayableData.fromList(it) } } - 134.toByte() -> { + 136.toByte() -> { return (readValue(buffer) as? List)?.let { MediaSegment.fromList(it) } } - 135.toByte() -> { + 137.toByte() -> { return (readValue(buffer) as? List)?.let { AudioTrack.fromList(it) } } - 136.toByte() -> { + 138.toByte() -> { return (readValue(buffer) as? List)?.let { SubtitleTrack.fromList(it) } } - 137.toByte() -> { + 139.toByte() -> { return (readValue(buffer) as? List)?.let { Chapter.fromList(it) } } - 138.toByte() -> { + 140.toByte() -> { return (readValue(buffer) as? List)?.let { TrickPlayModel.fromList(it) } } - 139.toByte() -> { + 141.toByte() -> { return (readValue(buffer) as? List)?.let { StartResult.fromList(it) } } - 140.toByte() -> { + 142.toByte() -> { return (readValue(buffer) as? List)?.let { PlaybackState.fromList(it) } } - 141.toByte() -> { + 143.toByte() -> { return (readValue(buffer) as? List)?.let { SubtitleSettings.fromList(it) } } - 142.toByte() -> { + 144.toByte() -> { return (readValue(buffer) as? List)?.let { TVGuideModel.fromList(it) } } - 143.toByte() -> { + 145.toByte() -> { return (readValue(buffer) as? List)?.let { GuideChannel.fromList(it) } } - 144.toByte() -> { + 146.toByte() -> { return (readValue(buffer) as? List)?.let { GuideProgram.fromList(it) } @@ -791,64 +835,72 @@ private open class VideoPlayerHelperPigeonCodec : StandardMessageCodec() { stream.write(129) writeValue(stream, value.raw.toLong()) } - is MediaSegmentType -> { + is SyncPlayCommandType -> { stream.write(130) writeValue(stream, value.raw.toLong()) } - is SimpleItemModel -> { + is MediaSegmentType -> { stream.write(131) + writeValue(stream, value.raw.toLong()) + } + is PlaybackChangeSource -> { + stream.write(132) + writeValue(stream, value.raw.toLong()) + } + is SimpleItemModel -> { + stream.write(133) writeValue(stream, value.toList()) } is MediaInfo -> { - stream.write(132) + stream.write(134) writeValue(stream, value.toList()) } is PlayableData -> { - stream.write(133) + stream.write(135) writeValue(stream, value.toList()) } is MediaSegment -> { - stream.write(134) + stream.write(136) writeValue(stream, value.toList()) } is AudioTrack -> { - stream.write(135) + stream.write(137) writeValue(stream, value.toList()) } is SubtitleTrack -> { - stream.write(136) + stream.write(138) writeValue(stream, value.toList()) } is Chapter -> { - stream.write(137) + stream.write(139) writeValue(stream, value.toList()) } is TrickPlayModel -> { - stream.write(138) + stream.write(140) writeValue(stream, value.toList()) } is StartResult -> { - stream.write(139) + stream.write(141) writeValue(stream, value.toList()) } is PlaybackState -> { - stream.write(140) + stream.write(142) writeValue(stream, value.toList()) } is SubtitleSettings -> { - stream.write(141) + stream.write(143) writeValue(stream, value.toList()) } is TVGuideModel -> { - stream.write(142) + stream.write(144) writeValue(stream, value.toList()) } is GuideChannel -> { - stream.write(143) + stream.write(145) writeValue(stream, value.toList()) } is GuideProgram -> { - stream.write(144) + stream.write(146) writeValue(stream, value.toList()) } else -> super.writeValue(stream, value) @@ -941,6 +993,12 @@ interface VideoPlayerApi { fun seekTo(position: Long) fun stop() fun setSubtitleSettings(settings: SubtitleSettings) + /** + * Sets the SyncPlay command state for the native player overlay. + * [processing] indicates if a SyncPlay command is being processed. + * [commandType] is the type of command. + */ + fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) companion object { /** The codec used by VideoPlayerApi. */ @@ -1150,6 +1208,25 @@ interface VideoPlayerApi { channel.setMessageHandler(null) } } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val processingArg = args[0] as Boolean + val commandTypeArg = args[1] as SyncPlayCommandType + val wrapped: List = try { + api.setSyncPlayCommandState(processingArg, commandTypeArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } } } } @@ -1309,4 +1386,61 @@ class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, } } } + /** User-initiated play action from native player (for SyncPlay integration) */ + fun onUserPlay(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + /** User-initiated pause action from native player (for SyncPlay integration) */ + fun onUserPause(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + /** + * User-initiated seek action from native player (for SyncPlay integration) + * Position is in milliseconds + */ + fun onUserSeek(positionMsArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(positionMsArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt index 88e43de95..3299ea1b6 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt @@ -68,6 +68,7 @@ import androidx.compose.ui.unit.dp import androidx.compose.ui.util.fastCoerceIn import androidx.media3.exoplayer.ExoPlayer import kotlinx.coroutines.delay +import PlaybackChangeSource import nl.jknaapen.fladder.objects.Localized import nl.jknaapen.fladder.objects.Translate import nl.jknaapen.fladder.objects.VideoPlayerObject @@ -450,6 +451,7 @@ internal fun RowScope.SimpleProgressBar( val clickRelativeOffset = offset.x / width.toFloat() val newPosition = effectiveDuration.milliseconds * clickRelativeOffset.toDouble() + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player.seekTo(newPosition.toLong(DurationUnit.MILLISECONDS)) } } @@ -473,6 +475,7 @@ internal fun RowScope.SimpleProgressBar( }, onDragEnd = { onScrubbingChanged(false) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player.seekTo(internalTempPosition) }, onDragCancel = { @@ -655,6 +658,7 @@ internal fun RowScope.SimpleProgressBar( if (!scrubbingTimeLine) { onTempPosChanged(effectivePosition) onScrubbingChanged(true) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player.pause() } val newPos = max( @@ -676,6 +680,7 @@ internal fun RowScope.SimpleProgressBar( if (!scrubbingTimeLine) { onTempPosChanged(effectivePosition) onScrubbingChanged(true) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player.pause() } val newPos = min(player.duration.takeIf { it > 0 } ?: 1L, @@ -687,6 +692,7 @@ internal fun RowScope.SimpleProgressBar( Enter, Spacebar, ButtonSelect, DirectionCenter -> { if (scrubbingTimeLine) { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player.seekTo(tempPosition) player.play() onScrubbingChanged(false) @@ -697,6 +703,7 @@ internal fun RowScope.SimpleProgressBar( Escape, Back -> { if (scrubbingTimeLine) { onScrubbingChanged(false) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player.play() true } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt index 0a11c08f9..2f46e5670 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt @@ -5,6 +5,8 @@ import MediaSegmentType import SegmentSkip import SegmentType import android.os.Build +import PlaybackChangeSource +import nl.jknaapen.fladder.objects.VideoPlayerObject import androidx.annotation.RequiresApi import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.background @@ -38,7 +40,6 @@ import androidx.compose.ui.unit.dp import nl.jknaapen.fladder.objects.Localized import nl.jknaapen.fladder.objects.PlayerSettingsObject import nl.jknaapen.fladder.objects.Translate -import nl.jknaapen.fladder.objects.VideoPlayerObject import nl.jknaapen.fladder.utility.defaultSelected import nl.jknaapen.fladder.utility.leanBackEnabled import kotlin.time.Duration.Companion.milliseconds @@ -69,7 +70,8 @@ internal fun BoxScope.SegmentSkipOverlay( val currentSegmentId = activeSegment?.let { "${it.type}-${it.start}-${it.end}" } fun skipSegment(segment: MediaSegment, segmentId: String) { - player.seekTo(segment.end + 250.milliseconds.inWholeMilliseconds) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + VideoPlayerObject.implementation.player?.seekTo(segment.end + 250.milliseconds.inWholeMilliseconds) skippedSegments.add(segmentId) } @@ -108,7 +110,8 @@ internal fun BoxScope.SegmentSkipOverlay( enableScaledFocus = true, onClick = { activeSegment?.let { - player.seekTo(it.end) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + VideoPlayerObject.implementation.player?.seekTo(it.end.toLong()) } } ) { diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt index f425790e4..d491afc13 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt @@ -70,7 +70,9 @@ import nl.jknaapen.fladder.composables.dialogs.AudioPicker import nl.jknaapen.fladder.composables.dialogs.ChapterSelectionSheet import nl.jknaapen.fladder.composables.dialogs.PlaybackSpeedPicker import nl.jknaapen.fladder.composables.dialogs.SubtitlePicker +import nl.jknaapen.fladder.composables.overlays.SyncPlayCommandOverlay import nl.jknaapen.fladder.composables.shared.CurrentTime +import PlaybackChangeSource import nl.jknaapen.fladder.objects.PlayerSettingsObject import nl.jknaapen.fladder.objects.VideoPlayerObject import nl.jknaapen.fladder.utility.ImmersiveSystemBars @@ -147,6 +149,8 @@ fun CustomVideoControls( LaunchedEffect(lastSeekInteraction.longValue) { delay(1.seconds) if (currentSkipTime == 0L) return@LaunchedEffect + // SyncPlay: user action is applied locally; Flutter infers from playback state stream and sends to server. + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player?.seekTo(position + currentSkipTime) currentSkipTime = 0L } @@ -172,12 +176,14 @@ fun CustomVideoControls( } Key.MediaPlay -> { - player?.play() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserPlay {} return@keyEvent true } Key.MediaPlayPause -> { player?.let { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) if (it.isPlaying) { it.pause() updateLastInteraction() @@ -186,10 +192,10 @@ fun CustomVideoControls( } } return@keyEvent true - } Key.MediaPause, Key.P -> { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) player?.pause() updateLastInteraction() return@keyEvent true @@ -351,6 +357,7 @@ fun CustomVideoControls( } SegmentSkipOverlay() SeekOverlay(value = currentSkipTime) + SyncPlayCommandOverlay() if (buffering && !playing) { CircularProgressIndicator( modifier = Modifier @@ -383,7 +390,8 @@ fun CustomVideoControls( if (showChapterDialog) { ChapterSelectionSheet( onSelected = { - exoPlayer.seekTo(it.time) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + exoPlayer.seekTo(it.time.toLong()) showChapterDialog = false }, onDismiss = { @@ -444,9 +452,8 @@ fun PlaybackButtons( } CustomButton( onClick = { - player.seekTo( - player.currentPosition - backwardSpeed.inWholeMilliseconds - ) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.seekTo((player.currentPosition - backwardSpeed.inWholeMilliseconds).coerceAtLeast(0L)) }, ) { Box( @@ -472,6 +479,7 @@ fun PlaybackButtons( .defaultSelected(true), enableScaledFocus = true, onClick = { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) if (player.isPlaying) { player.pause() onPause() @@ -489,9 +497,8 @@ fun PlaybackButtons( if (!isTVMode) { CustomButton( onClick = { - player.seekTo( - player.currentPosition + forwardSpeed.inWholeMilliseconds - ) + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.seekTo(player.currentPosition + forwardSpeed.inWholeMilliseconds) }, ) { Box( diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt new file mode 100644 index 000000000..01e0d5a15 --- /dev/null +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt @@ -0,0 +1,172 @@ +package nl.jknaapen.fladder.composables.overlays + +import androidx.compose.animation.AnimatedVisibility +import androidx.compose.animation.fadeIn +import androidx.compose.animation.fadeOut +import androidx.compose.animation.scaleIn +import androidx.compose.animation.scaleOut +import androidx.compose.foundation.background +import androidx.compose.foundation.border +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.BoxScope +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.Icon +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.collectAsState +import androidx.compose.runtime.derivedStateOf +import androidx.compose.runtime.getValue +import androidx.compose.runtime.remember +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.shadow +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.dp +import io.github.rabehx.iconsax.Iconsax +import io.github.rabehx.iconsax.filled.Forward +import io.github.rabehx.iconsax.filled.Pause +import io.github.rabehx.iconsax.filled.Play +import io.github.rabehx.iconsax.filled.Refresh +import io.github.rabehx.iconsax.filled.Stop +import SyncPlayCommandType +import nl.jknaapen.fladder.objects.Localized +import nl.jknaapen.fladder.objects.Translate +import nl.jknaapen.fladder.objects.VideoPlayerObject + +/** + * Centered overlay showing SyncPlay command being processed. + * Mirrors the Flutter SyncPlayCommandIndicator design. + */ +@Composable +fun BoxScope.SyncPlayCommandOverlay( + modifier: Modifier = Modifier +) { + val syncPlayState by VideoPlayerObject.syncPlayCommandState.collectAsState() + val visible by remember(syncPlayState) { + derivedStateOf { + syncPlayState.processing && syncPlayState.commandType != SyncPlayCommandType.NONE + } + } + + AnimatedVisibility( + visible = visible, + modifier = modifier.align(Alignment.Center), + enter = fadeIn() + scaleIn(initialScale = 0.8f), + exit = fadeOut() + scaleOut(targetScale = 0.8f) + ) { + Box( + modifier = Modifier + .shadow( + elevation = 20.dp, + shape = RoundedCornerShape(20.dp), + ambientColor = Color.Black.copy(alpha = 0.3f), + spotColor = Color.Black.copy(alpha = 0.3f) + ) + .background( + color = MaterialTheme.colorScheme.surface.copy(alpha = 0.9f), + shape = RoundedCornerShape(20.dp) + ) + .border( + width = 2.dp, + color = MaterialTheme.colorScheme.primary.copy(alpha = 0.5f), + shape = RoundedCornerShape(20.dp) + ) + .padding(24.dp) + ) { + Column( + horizontalAlignment = Alignment.CenterHorizontally, + verticalArrangement = Arrangement.Center + ) { + CommandIcon(commandType = syncPlayState.commandType) + + Spacer(modifier = Modifier.height(12.dp)) + + Translate( + callback = { cb -> + when (syncPlayState.commandType) { + SyncPlayCommandType.PAUSE -> Localized.syncPlayCommandPausing(cb) + SyncPlayCommandType.UNPAUSE -> Localized.syncPlayCommandPlaying(cb) + SyncPlayCommandType.SEEK -> Localized.syncPlayCommandSeeking(cb) + SyncPlayCommandType.STOP -> Localized.syncPlayCommandStopping(cb) + else -> Localized.syncPlayCommandSyncing(cb) + } + }, + key = syncPlayState.commandType + ) { label -> + Text( + text = label, + style = MaterialTheme.typography.titleMedium.copy( + fontWeight = FontWeight.SemiBold, + color = MaterialTheme.colorScheme.onSurface + ) + ) + } + + Spacer(modifier = Modifier.height(4.dp)) + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.Center + ) { + CircularProgressIndicator( + modifier = Modifier.size(12.dp), + strokeWidth = 2.dp, + color = MaterialTheme.colorScheme.primary + ) + + Spacer(modifier = Modifier.width(8.dp)) + + Translate({ Localized.syncPlaySyncingWithGroup(it) }) { syncingText -> + Text( + text = syncingText, + style = MaterialTheme.typography.bodySmall.copy( + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + ) + } + } + } + } + } +} + +@Composable +private fun CommandIcon(commandType: SyncPlayCommandType) { + val (icon, color) = when (commandType) { + SyncPlayCommandType.PAUSE -> Pair(Iconsax.Filled.Pause, MaterialTheme.colorScheme.secondary) + SyncPlayCommandType.UNPAUSE -> Pair(Iconsax.Filled.Play, MaterialTheme.colorScheme.primary) + SyncPlayCommandType.SEEK -> Pair(Iconsax.Filled.Forward, MaterialTheme.colorScheme.tertiary) + SyncPlayCommandType.STOP -> Pair(Iconsax.Filled.Stop, MaterialTheme.colorScheme.error) + else -> Pair(Iconsax.Filled.Refresh, MaterialTheme.colorScheme.primary) + } + + Box( + modifier = Modifier + .background( + color = color.copy(alpha = 0.15f), + shape = CircleShape + ) + .padding(16.dp), + contentAlignment = Alignment.Center + ) { + Icon( + imageVector = icon, + contentDescription = commandType.name, + modifier = Modifier.size(48.dp), + tint = color + ) + } +} + diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt index 88f0ed170..67f60121e 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt @@ -1,7 +1,10 @@ package nl.jknaapen.fladder.messengers +import PlaybackChangeSource +import PlaybackType import PlayableData import SubtitleSettings +import SyncPlayCommandType import TVGuideModel import VideoPlayerApi import android.os.Handler @@ -140,14 +143,17 @@ class VideoPlayerImplementation( } override fun play() { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.SYNCPLAY) player?.play() } override fun pause() { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.SYNCPLAY) player?.pause() } override fun seekTo(position: Long) { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.SYNCPLAY) player?.seekTo(position) } @@ -155,6 +161,13 @@ class VideoPlayerImplementation( player?.stop() } + override fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) { + VideoPlayerObject.setSyncPlayCommandState( + processing = processing, + commandType = commandType + ) + } + fun init(exoPlayer: ExoPlayer?) { player = exoPlayer subsInitialized = false diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt index 1f335ae51..6472203be 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt @@ -1,6 +1,8 @@ package nl.jknaapen.fladder.objects +import PlaybackChangeSource import PlaybackState +import SyncPlayCommandType import TVGuideModel import VideoPlayerControlsCallback import VideoPlayerListenerCallback @@ -15,6 +17,11 @@ import nl.jknaapen.fladder.messengers.VideoPlayerImplementation import nl.jknaapen.fladder.utility.InternalTrack object VideoPlayerObject { + data class SyncPlayCommandUiState( + val processing: Boolean, + val commandType: SyncPlayCommandType + ) + val implementation: VideoPlayerImplementation = VideoPlayerImplementation() private var _currentState = MutableStateFlow(null) @@ -104,5 +111,32 @@ object VideoPlayerObject { guideVisible.value = !guideVisible.value } + // SyncPlay command state for overlay (Pigeon-generated type) + val syncPlayCommandState = MutableStateFlow( + SyncPlayCommandUiState(false, SyncPlayCommandType.NONE) + ) + + fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) { + syncPlayCommandState.value = SyncPlayCommandUiState( + processing = processing, + commandType = commandType + ) + } + + /** Set before updating player so the next PlaybackState sent to Flutter is tagged (for SyncPlay inference). */ + @Volatile + private var pendingPlaybackChangeSource: PlaybackChangeSource? = null + + fun setPendingPlaybackChangeSource(source: PlaybackChangeSource) { + pendingPlaybackChangeSource = source + } + + /** Consumed when building PlaybackState in ExoPlayer; clears after read. */ + fun getAndClearPendingPlaybackChangeSource(): PlaybackChangeSource? { + val r = pendingPlaybackChangeSource + pendingPlaybackChangeSource = null + return r + } + var currentActivity: VideoPlayerActivity? = null } \ No newline at end of file diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt index 44bb2a8d5..542ab6ffb 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt @@ -131,7 +131,8 @@ internal fun ExoPlayer( playing = exoPlayer.isPlaying, buffering = exoPlayer.playbackState == Player.STATE_BUFFERING, completed = exoPlayer.playbackState == Player.STATE_ENDED, - failed = exoPlayer.playbackState == Player.STATE_IDLE + failed = exoPlayer.playbackState == Player.STATE_IDLE, + changeSource = videoHost.getAndClearPendingPlaybackChangeSource() ) ) } @@ -167,7 +168,8 @@ internal fun ExoPlayer( playing = exoPlayer.isPlaying, buffering = playbackState == Player.STATE_BUFFERING, completed = playbackState == Player.STATE_ENDED, - failed = playbackState == Player.STATE_IDLE + failed = playbackState == Player.STATE_IDLE, + changeSource = videoHost.getAndClearPendingPlaybackChangeSource() ) ) } diff --git a/docs/syncplay-implementation.md b/docs/syncplay-implementation.md new file mode 100644 index 000000000..b7789a095 --- /dev/null +++ b/docs/syncplay-implementation.md @@ -0,0 +1,1396 @@ +# SyncPlay Implementation Guide + +A comprehensive technical specification for implementing Jellyfin SyncPlay synchronized playback in client applications. + +## Table of Contents + +1. [Overview](#overview) +2. [Architecture](#architecture) +3. [Communication Protocols](#communication-protocols) +4. [Time Synchronization](#time-synchronization) +5. [Group Management](#group-management) +6. [Playback Control](#playback-control) +7. [State Machine](#state-machine) +8. [Command Scheduling](#command-scheduling) +9. [Player Interface](#player-interface) +10. [Message Types Reference](#message-types-reference) +11. [Edge Cases & Error Handling](#edge-cases--error-handling) +12. [Implementation Checklist](#implementation-checklist) + +--- + +## Overview + +SyncPlay enables multiple clients to watch media together in perfect synchronization. The system coordinates playback across devices with different network latencies by: + +1. Using a central server (Jellyfin) as the source of truth for group state +2. Synchronizing client clocks with the server via ping measurements +3. Scheduling playback commands to execute at precise server-defined timestamps +4. Managing a shared queue/playlist across all participants + +### Key Principles + +- **Server Authority**: The Jellyfin server owns the group state. Clients request changes, server broadcasts commands. +- **Time-based Coordination**: Commands include a `When` timestamp indicating exact execution time. +- **Buffering Awareness**: Clients report their buffering state; playback only resumes when ALL clients are ready. +- **Dual Protocol**: REST API for state-changing requests, WebSocket for real-time event delivery. + +--- + +## Architecture + +``` +┌─────────────────────────────────────────────────────────────────────────────┐ +│ JELLYFIN SERVER │ +│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────────────┐ │ +│ │ SyncPlay API │ │ Group Manager │ │ WebSocket Broadcaster │ │ +│ │ (REST) │◄──►│ (State) │◄──►│ (Events) │ │ +│ └─────────────────┘ └─────────────────┘ └─────────────────────────┘ │ +└─────────────────────────────────────────────────────────────────────────────┘ + ▲ │ + │ REST API │ WebSocket + │ (Requests) │ (Commands/Updates) + │ ▼ +┌─────────────────────────────────────────────────────────────────────────────┐ +│ CLIENT APPLICATION │ +│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────────────┐ │ +│ │ REST Client │ │ SyncPlay │ │ WebSocket Manager │ │ +│ │ (Actions) │◄──►│ Controller │◄──►│ (Connection/Messages) │ │ +│ └─────────────────┘ └─────────────────┘ └─────────────────────────┘ │ +│ │ │ +│ ▼ │ +│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────────────┐ │ +│ │ Time Sync │ │ Command │ │ Player Interface │ │ +│ │ (Clock Offset) │◄──►│ Handler │◄──►│ (Video Control) │ │ +│ └─────────────────┘ └─────────────────┘ └─────────────────────────┘ │ +└─────────────────────────────────────────────────────────────────────────────┘ +``` + +### Component Responsibilities + +| Component | Responsibility | +|-----------|----------------| +| **REST Client** | Sends state-change requests (pause, seek, ready, buffering) | +| **WebSocket Manager** | Maintains persistent connection, handles keep-alive, routes messages | +| **Time Sync** | Calculates clock offset between client and server | +| **Command Handler** | Schedules commands for future execution, handles duplicates | +| **Player Interface** | Abstraction layer between SyncPlay and actual video player | +| **SyncPlay Controller** | Orchestrates all components, manages group state | + +--- + +## Communication Protocols + +SyncPlay uses two complementary communication channels: + +### REST API (Client → Server) + +Used for **requesting** state changes. The server processes these and broadcasts commands to all clients. + +| Endpoint | Purpose | +|----------|---------| +| `GET /SyncPlay/List` | List available groups | +| `POST /SyncPlay/New` | Create a new group | +| `POST /SyncPlay/Join` | Join an existing group | +| `POST /SyncPlay/Leave` | Leave current group | +| `POST /SyncPlay/Pause` | Request pause | +| `POST /SyncPlay/Unpause` | Request unpause/play | +| `POST /SyncPlay/Seek` | Request seek to position | +| `POST /SyncPlay/Stop` | Request stop | +| `POST /SyncPlay/Buffering` | Report buffering state | +| `POST /SyncPlay/Ready` | Report ready state | +| `POST /SyncPlay/SetNewQueue` | Set a new playlist | +| `POST /SyncPlay/Queue` | Add items to queue | +| `POST /SyncPlay/Ping` | Report ping measurement | +| `GET /GetUtcTime` | Get server timestamps for time sync (T2, T3) | + +### WebSocket (Server → Client) + +Used for **receiving** commands and state updates. Connect to: + +``` +wss://{server}/socket?api_key={token}&deviceId={deviceId} +``` + +Message types received: +- `SyncPlayCommand` - Playback control commands (pause, unpause, seek, stop) +- `SyncPlayGroupUpdate` - Group state changes (join, leave, playlist, state) +- `ForceKeepAlive` - Keep-alive configuration +- `KeepAlive` - Keep-alive acknowledgment + +--- + +## Time Synchronization + +**Critical for accurate synchronization.** Clients must maintain an accurate estimate of the offset between their local clock and the server's clock. + +### Algorithm (NTP-like) + +``` +┌────────┐ ┌────────┐ +│ CLIENT │ │ SERVER │ +└────┬───┘ └────┬───┘ + │ │ + │ requestSent (T1) │ + │──────────────────────────────────────►│ + │ │ requestReceived (T2) + │ │ + │ │ responseSent (T3) + │◄──────────────────────────────────────│ + │ responseReceived (T4) │ + │ │ +``` + +**Offset Calculation:** + +``` +offset = ((T2 - T1) + (T3 - T4)) / 2 +``` + +**Round-trip Delay:** + +``` +delay = (T4 - T1) - (T3 - T2) +ping = delay / 2 +``` + +### Server Time API + +Jellyfin provides a dedicated endpoint for time synchronization that returns server-side timestamps: + +**Endpoint:** +```http +GET /GetUtcTime +``` + +**Response:** +```json +{ + "RequestReceptionTime": "2024-01-15T12:00:00.0000000Z", + "ResponseTransmissionTime": "2024-01-15T12:00:00.0010000Z" +} +``` + +| Field | Description | +|-------|-------------| +| `RequestReceptionTime` | When the server received the request (T2) | +| `ResponseTransmissionTime` | When the server sent the response (T3) | + +The client records T1 (before sending) and T4 (after receiving) locally. + +**Client-side Implementation:** + +```typescript +async function requestPing(): Promise<{ + requestSent: Date; + requestReceived: Date; + responseSent: Date; + responseReceived: Date; +}> { + // T1: Record local time before request + const requestSent = new Date(); + + // Make request to Jellyfin TimeSync API + const response = await fetch(`${serverUrl}/GetUtcTime`, { + headers: { 'Authorization': `MediaBrowser Token="${accessToken}"` } + }); + const data = await response.json(); + + // T4: Record local time after response + const responseReceived = new Date(); + + // T2 and T3 come from server response + const requestReceived = new Date(data.RequestReceptionTime); + const responseSent = new Date(data.ResponseTransmissionTime); + + return { + requestSent, // T1 - local + requestReceived, // T2 - from server + responseSent, // T3 - from server + responseReceived // T4 - local + }; +} +``` + +**Flutter/Dart equivalent:** + +```dart +Future requestPing() async { + // T1: Record local time before request + final requestSent = DateTime.now().toUtc(); + + // Make request to Jellyfin TimeSync API + final response = await http.get( + Uri.parse('$serverUrl/GetUtcTime'), + headers: {'Authorization': 'MediaBrowser Token="$accessToken"'}, + ); + + // T4: Record local time after response + final responseReceived = DateTime.now().toUtc(); + + final data = jsonDecode(response.body); + + // T2 and T3 from server + final requestReceived = DateTime.parse(data['RequestReceptionTime']); + final responseSent = DateTime.parse(data['ResponseTransmissionTime']); + + return TimeSyncMeasurement( + requestSent: requestSent, + requestReceived: requestReceived, + responseSent: responseSent, + responseReceived: responseReceived, + ); +} +``` + +### Implementation Details + +```typescript +class Measurement { + requestSent: number; // T1 - when client sent request + requestReceived: number; // T2 - when server received request + responseSent: number; // T3 - when server sent response + responseReceived: number; // T4 - when client received response + + getOffset(): number { + return ((this.requestReceived - this.requestSent) + + (this.responseSent - this.responseReceived)) / 2; + } + + getDelay(): number { + return (this.responseReceived - this.requestSent) - + (this.responseSent - this.requestReceived); + } + + getPing(): number { + return this.getDelay() / 2; + } +} +``` + +### Measurement Strategy + +| Phase | Interval | Purpose | +|-------|----------|---------| +| **Greedy** (first 3 pings) | 1 second | Quick initial synchronization | +| **Low Profile** (subsequent) | 60 seconds | Maintain sync without network overhead | + +**Best Measurement Selection:** +- Keep last 8 measurements +- Use measurement with **minimum delay** (least network jitter) + +### Time Conversion Functions + +```typescript +// Convert server time to local time +function remoteDateToLocal(serverTime: Date): Date { + return new Date(serverTime.getTime() - offset); +} + +// Convert local time to server time +function localDateToRemote(localTime: Date): Date { + return new Date(localTime.getTime() + offset); +} +``` + +### Staleness Detection + +Time sync becomes unreliable over time. Mark as stale after 30 seconds and force a refresh before critical operations. + +```typescript +function isStale(): boolean { + return (Date.now() - lastMeasurement.timestamp) > 30000; +} +``` + +--- + +## Group Management + +### Group Lifecycle + +```mermaid +stateDiagram-v2 + [*] --> NoGroup: Initial State + NoGroup --> Creating: createGroup() + NoGroup --> Joining: joinGroup(id) + Creating --> InGroup: GroupJoined message + Joining --> InGroup: GroupJoined message + InGroup --> NoGroup: leaveGroup() + InGroup --> NoGroup: GroupDoesNotExist message +``` + +### Create Group + +**Request:** +```http +POST /SyncPlay/New +Content-Type: application/json + +{ + "GroupName": "Movie Night" +} +``` + +**Response:** Group is created and you automatically join. Wait for `GroupJoined` WebSocket message. + +### Join Group + +**Request:** +```http +POST /SyncPlay/Join +Content-Type: application/json + +{ + "GroupId": "abc-123-def" +} +``` + +### Leave Group + +**Request:** +```http +POST /SyncPlay/Leave +``` + +### Group State Structure + +```typescript +interface SyncPlayGroup { + GroupId: string; + GroupName: string; + State: 'Idle' | 'Waiting' | 'Paused' | 'Playing'; + StateReason?: string; + Participants: string[]; + PlayingItemId?: string; + PositionTicks: number; + IsPaused: boolean; // derived: State === 'Paused' || State === 'Waiting' +} +``` + +--- + +## Playback Control + +### Position Units + +Jellyfin uses **ticks** for time positions: +- **1 tick = 100 nanoseconds** +- **10,000,000 ticks = 1 second** + +```typescript +const TICKS_PER_SECOND = 10_000_000; + +function secondsToTicks(seconds: number): number { + return Math.floor(seconds * TICKS_PER_SECOND); +} + +function ticksToSeconds(ticks: number): number { + return ticks / TICKS_PER_SECOND; +} +``` + +### Pause Request + +```http +POST /SyncPlay/Pause +``` + +No body required. Server broadcasts `Pause` command to all clients. + +### Unpause Request + +```http +POST /SyncPlay/Unpause +``` + +No body required. Server transitions group to `Waiting` state, waits for all clients to report ready, then broadcasts `Unpause` command. + +### Seek Request + +```http +POST /SyncPlay/Seek +Content-Type: application/json + +{ + "PositionTicks": 300000000 // 30 seconds +} +``` + +### Ready State + +Report when video is ready to play (buffering complete): + +```http +POST /SyncPlay/Ready +Content-Type: application/json + +{ + "When": "2024-01-15T12:00:00.000Z", + "PositionTicks": 300000000, + "IsPlaying": true, + "PlaylistItemId": "playlist-item-uuid" +} +``` + +### Buffering State + +Report when video starts buffering: + +```http +POST /SyncPlay/Buffering +Content-Type: application/json + +{ + "When": "2024-01-15T12:00:00.000Z", + "PositionTicks": 300000000, + "IsPlaying": false, + "PlaylistItemId": "playlist-item-uuid" +} +``` + +### Ping Reporting + +Report your measured ping to the server (helps with latency compensation): + +```http +POST /SyncPlay/Ping +Content-Type: application/json + +{ + "Ping": 45 // milliseconds, integer +} +``` + +--- + +## State Machine + +### Group States + +```mermaid +stateDiagram-v2 + [*] --> Idle: Group Created + + Idle --> Waiting: SetNewQueue / Play Request + + Waiting --> Playing: All Clients Ready + Waiting --> Paused: Pause Request + + Playing --> Waiting: Client Buffering + Playing --> Waiting: Seek Request + Playing --> Paused: Pause Request + + Paused --> Waiting: Unpause Request + Paused --> Waiting: Seek Request + + note right of Waiting + Group waits here until ALL clients + report Ready state + end note +``` + +### State Definitions + +| State | Description | +|-------|-------------| +| **Idle** | No media playing, group is empty or inactive | +| **Waiting** | Waiting for all clients to buffer and report ready | +| **Playing** | All clients are playing in sync | +| **Paused** | Playback paused for all clients | + +### State Reasons + +The `StateReason` field indicates why the group entered its current state: + +| Reason | Meaning | +|--------|---------| +| `NewPlaylist` | A new queue was set | +| `SetCurrentItem` | Current item changed | +| `Unpause` | User requested unpause | +| `Pause` | User requested pause | +| `Seek` | User requested seek | +| `Buffer` | A client started buffering | +| `Ready` | All clients reported ready | + +--- + +## Command Scheduling + +Commands include a `When` timestamp indicating when they should execute. This is critical for synchronization. + +### Command Flow + +```mermaid +sequenceDiagram + participant C1 as Client 1 + participant S as Server + participant C2 as Client 2 + + C1->>S: Unpause Request + Note over S: Calculate When = Now + buffer + S->>C1: SyncPlayCommand (Unpause, When=T) + S->>C2: SyncPlayCommand (Unpause, When=T) + + Note over C1: Wait until local time = T + Note over C2: Wait until local time = T + + C1->>C1: Execute Play at T + C2->>C2: Execute Play at T +``` + +### Scheduling Algorithm + +```typescript +async function scheduleCommand(command: SyncPlayCommand): Promise { + const serverTime = new Date(command.When); + const localTime = new Date(); + + // Convert server time to local time using time sync + const commandTime = timeSync.remoteDateToLocal(serverTime); + + // Calculate delay + let delay = commandTime.getTime() - localTime.getTime(); + + if (delay < 0) { + // Command is in the past - execute immediately + executeCommand(command); + return; + } + + if (delay > 5000) { + // Suspiciously large delay - might indicate time sync issue + console.warn(`Large delay detected: ${delay}ms`); + // Optionally force time sync update + } + + // Schedule for future execution + setTimeout(() => { + executeCommand(command); + }, delay); +} +``` + +### Command Execution Order + +Different commands require different execution sequences: + +#### Pause Command +1. Pause the player +2. Wait for pause to complete +3. Seek to position if provided (and significantly different from current) + +#### Unpause Command +1. Seek to position if significantly different from current +2. Wait for seek to complete (video can play) +3. Start playback + +#### Seek Command +1. Start playback (unpause) +2. Seek to target position +3. Wait for seek to complete +4. Pause the player +5. Send Ready state to server + +```typescript +async function executeCommand( + type: 'pause' | 'unpause' | 'seek' | 'stop', + positionTicks?: number +): Promise { + const timeInSeconds = positionTicks ? ticksToSeconds(positionTicks) : 0; + + switch (type) { + case 'pause': + player.pause(); + await waitForPause(); + if (positionTicks && Math.abs(timeInSeconds - player.currentTime) > 0.5) { + player.seek(timeInSeconds); + } + break; + + case 'unpause': + if (positionTicks && Math.abs(timeInSeconds - player.currentTime) > 0.5) { + player.seek(timeInSeconds); + await player.waitForCanPlay(); + } + player.play(); + break; + + case 'seek': + player.play(); + player.seek(timeInSeconds); + await player.waitForCanPlay(); + player.pause(); + sendReady(true, player.positionTicks); + break; + + case 'stop': + player.pause(); + player.seek(0); + break; + } +} +``` + +### Handling Late Commands (estimateCurrentTicks) + +When a command's `When` timestamp is in the past (command arrived late), you must estimate where playback *should* be now: + +```typescript +/** + * Estimates current position given a past state. + * @param ticks - Position at the time of the command + * @param when - Server time when position was valid + * @param currentTime - Current local time (optional) + */ +function estimateCurrentTicks( + ticks: number, + when: Date, + currentTime: Date = new Date() +): number { + const remoteTime = timeSync.localDateToRemote(currentTime); + const elapsedMs = remoteTime.getTime() - when.getTime(); + return ticks + (elapsedMs * TICKS_PER_MILLISECOND); +} +``` + +**Usage in scheduleUnpause:** + +```typescript +async function scheduleUnpause(playAtTime: Date, positionTicks: number): Promise { + const currentTime = new Date(); + const playAtTimeLocal = timeSync.remoteDateToLocal(playAtTime); + + if (playAtTimeLocal > currentTime) { + // Future command - schedule it + const delay = playAtTimeLocal.getTime() - currentTime.getTime(); + setTimeout(() => { + player.play(); + }, delay); + } else { + // Late command - estimate where playback should be NOW + const serverPositionTicks = estimateCurrentTicks(positionTicks, playAtTime); + player.seek(ticksToSeconds(serverPositionTicks)); + player.play(); + } +} +``` + +### Playback Sync Correction (SpeedToSync / SkipToSync) + +During playback, clients may drift out of sync. The official Jellyfin client implements two correction strategies: + +#### Strategy 1: SpeedToSync + +Adjusts playback rate temporarily to catch up without visible jumps: + +```typescript +// Constants +const MIN_DELAY_SPEED_TO_SYNC = 60; // ms - minimum delay to trigger +const MAX_DELAY_SPEED_TO_SYNC = 3000; // ms - maximum delay (use SkipToSync above this) +const SPEED_TO_SYNC_DURATION = 1000; // ms - how long to speed up + +function syncPlaybackTime(currentPosition: number, currentTime: Date): void { + if (!lastCommand || lastCommand.Command !== 'Unpause') return; + + const currentPositionTicks = currentPosition * TICKS_PER_MILLISECOND; + const serverPositionTicks = estimateCurrentTicks( + lastCommand.PositionTicks, + lastCommand.When, + currentTime + ); + + const diffMs = (serverPositionTicks - currentPositionTicks) / TICKS_PER_MILLISECOND; + const absDiffMs = Math.abs(diffMs); + + if (absDiffMs >= MIN_DELAY_SPEED_TO_SYNC && absDiffMs < MAX_DELAY_SPEED_TO_SYNC) { + // Calculate speed to catch up within SPEED_TO_SYNC_DURATION + const speed = 1 + (diffMs / SPEED_TO_SYNC_DURATION); + + player.setPlaybackRate(speed); + + setTimeout(() => { + player.setPlaybackRate(1.0); + }, SPEED_TO_SYNC_DURATION); + } +} +``` + +#### Strategy 2: SkipToSync + +For larger delays, seek directly to the correct position: + +```typescript +const MIN_DELAY_SKIP_TO_SYNC = 400; // ms + +if (absDiffMs >= MIN_DELAY_SKIP_TO_SYNC) { + player.seek(ticksToSeconds(serverPositionTicks)); +} +``` + +#### Sync Correction Flow + +``` +┌─────────────────────────────────────────────────────────────────────┐ +│ Playback Diff Detection │ +├─────────────────────────────────────────────────────────────────────┤ +│ Calculate: diffMs = serverPosition - clientPosition │ +├─────────────────────────────────────────────────────────────────────┤ +│ │ +│ if (|diffMs| < 60ms) │ +│ → In sync, do nothing │ +│ │ +│ else if (60ms <= |diffMs| < 3000ms) │ +│ → SpeedToSync: adjust playback rate │ +│ → speed = 1 + (diffMs / 1000) │ +│ → Reset rate after 1 second │ +│ │ +│ else if (|diffMs| >= 400ms && SpeedToSync not applicable) │ +│ → SkipToSync: seek to correct position │ +│ │ +└─────────────────────────────────────────────────────────────────────┘ +``` + +#### When to Run Sync Correction + +- Only when `syncEnabled` is true (after initial unpause settles) +- Only during active playback (`Command === 'Unpause'`) +- Throttle to avoid overloading (e.g., check every 500ms-1s) +- Disable during buffering + +### Duplicate Command Detection + +The server may send the same command multiple times (network retries, state synchronization). Track recent commands to avoid re-execution: + +```typescript +interface LastCommand { + when: string; + positionTicks: number; + command: string; + playlistItemId: string; +} + +function isDuplicate(command: SyncPlayCommand, lastCommand: LastCommand): boolean { + return ( + lastCommand.when === command.When && + lastCommand.positionTicks === command.PositionTicks && + lastCommand.command === command.Command && + lastCommand.playlistItemId === command.PlaylistItemId + ); +} +``` + +--- + +## Player Interface + +Define a clean abstraction between SyncPlay and your video player. This enables SyncPlay to control any player implementation. + +### Interface Definition + +```typescript +interface SyncPlayPlayerInterface { + // State Queries + getCurrentTime(): number; // Current position in seconds + getPositionTicks(): number; // Current position in ticks + isPaused(): boolean; // Is player paused + isReady(): boolean; // Can video play (not buffering) + isPlaying(): boolean; // Is actively playing (not paused, not buffering) + + // Controls + play(): void; + pause(): void; + seek(timeInSeconds: number): void; + seekToTicks(positionTicks: number): void; + + // Playback Rate (for SpeedToSync) + hasPlaybackRate(): boolean; // Does player support playback rate? + getPlaybackRate(): number; // Current playback rate (1.0 = normal) + setPlaybackRate(rate: number): void; // Set playback rate + + // Event Handling + on(event: PlayerEvent, handler: Function): void; + off(event: PlayerEvent, handler: Function): void; + once(event: PlayerEvent): Promise; +} + +type PlayerEvent = + | 'userPlay' // User initiated play (not SyncPlay) + | 'userPause' // User initiated pause + | 'userSeek' // User initiated seek + | 'videoCanPlay' // Buffering complete, ready to play + | 'videoBuffering'// Started buffering + | 'videoSeeked' // Seek operation complete + | 'timeUpdate'; // Periodic position update (for sync correction) +``` + +**Dart/Flutter equivalent:** + +```dart +abstract class SyncPlayPlayerInterface { + // State Queries + double getCurrentTime(); // seconds + int getPositionTicks(); // ticks + bool isPaused(); + bool isReady(); + bool isPlaying(); + + // Controls + void play(); + void pause(); + void seek(double timeInSeconds); + void seekToTicks(int positionTicks); + + // Playback Rate (for SpeedToSync) + bool hasPlaybackRate(); + double getPlaybackRate(); + void setPlaybackRate(double rate); + + // Event Streams + Stream get onUserPlay; + Stream get onUserPause; + Stream get onUserSeek; + Stream get onVideoCanPlay; + Stream get onVideoBuffering; + Stream get onTimeUpdate; +} +``` + +### Event Flow: User Actions + +When a user interacts with the player directly (not through SyncPlay commands), the player should emit events: + +```mermaid +sequenceDiagram + participant User + participant Player + participant SyncPlay + participant Server + + User->>Player: Clicks Pause + Player->>SyncPlay: 'userPause' event + SyncPlay->>Server: POST /SyncPlay/Pause + Server->>SyncPlay: SyncPlayCommand (Pause) + SyncPlay->>Player: pause() +``` + +### Distinguishing User vs SyncPlay Actions + +You must differentiate between: +- **User actions**: Should trigger REST API requests to server +- **SyncPlay commands**: Should control player without triggering API requests + +Common approaches: +1. Set a flag before executing SyncPlay commands, check it in event handlers +2. Use separate code paths for user controls vs SyncPlay controls +3. Temporarily unsubscribe from events during SyncPlay operations + +--- + +## Message Types Reference + +### SyncPlayCommand + +```typescript +interface SyncPlayCommandMessage { + MessageId: string; + MessageType: 'SyncPlayCommand'; + Data: { + GroupId: string; + PlaylistItemId: string; + When: string; // ISO 8601 timestamp for execution + PositionTicks: number; + Command: 'Unpause' | 'Pause' | 'Seek' | 'Stop'; + EmittedAt: string; // When server sent this command + }; +} +``` + +### SyncPlayGroupUpdate + +```typescript +interface SyncPlayGroupUpdateMessage { + MessageId: string; + MessageType: 'SyncPlayGroupUpdate'; + Data: { + GroupId: string; + Type: 'GroupJoined' | 'UserJoined' | 'UserLeft' | + 'PlayQueue' | 'StateUpdate' | 'GroupDoesNotExist'; + Data: GroupJoinedData | string | PlayQueueData | StateUpdateData; + }; +} +``` + +### GroupJoined Data + +```typescript +interface GroupJoinedData { + GroupId: string; + GroupName: string; + State: string; + Participants: string[]; + LastUpdatedAt: string; + PlayingItemId?: string; + PositionTicks?: number; +} +``` + +### PlayQueue Data + +```typescript +interface PlayQueueData { + Reason: 'NewPlaylist' | 'SetCurrentItem' | 'Queue' | 'RemoveFromPlaylist'; + LastUpdate: string; + Playlist: Array<{ + ItemId: string; + PlaylistItemId: string; + }>; + PlayingItemIndex: number; + StartPositionTicks: number; + IsPlaying: boolean; + ShuffleMode: string; + RepeatMode: string; +} +``` + +### StateUpdate Data + +```typescript +interface StateUpdateData { + State: 'Idle' | 'Waiting' | 'Paused' | 'Playing'; + Reason: string; + PositionTicks: number; +} +``` + +### ForceKeepAlive + +```typescript +interface ForceKeepAliveMessage { + MessageType: 'ForceKeepAlive'; + Data: number; // Timeout in seconds +} +``` + +Handle by sending `KeepAlive` messages at half the timeout interval: + +```typescript +function handleForceKeepAlive(timeout: number): void { + const intervalMs = timeout * 1000 * 0.5; + + setInterval(() => { + websocket.send(JSON.stringify({ MessageType: 'KeepAlive' })); + }, intervalMs); +} +``` + +--- + +## Edge Cases & Error Handling + +### Message Deduplication + +WebSocket messages may be received multiple times. Track recent message IDs: + +```typescript +const recentMessageIds: string[] = []; +const MAX_TRACKED_IDS = 10; + +function handleMessage(message: any): void { + const messageId = message.MessageId; + + if (messageId && recentMessageIds.includes(messageId)) { + // Duplicate - ignore + return; + } + + if (messageId) { + recentMessageIds.push(messageId); + if (recentMessageIds.length > MAX_TRACKED_IDS) { + recentMessageIds.shift(); + } + } + + // Process message... +} +``` + +### Network Disconnection + +When WebSocket disconnects: +1. Update connection status to `disconnected` +2. Clear keep-alive interval +3. Attempt reconnection with exponential backoff +4. On reconnect, the server will send current group state + +### Group No Longer Exists + +Handle `GroupDoesNotExist` message: + +```typescript +function handleGroupDoesNotExist(): void { + currentGroup = null; + isEnabled = false; + disconnect(); + showNotification('Group no longer exists'); +} +``` + +### Stale Time Sync + +Before executing critical commands, check if time sync is stale: + +```typescript +async function executeTimeSensitiveCommand(command: Command): Promise { + if (timeSync.isStale()) { + await timeSync.forceUpdateAndWait(); + } + + // Now safe to schedule command + await scheduleCommand(command); +} +``` + +### Player Not Ready + +When receiving commands before player is initialized: + +```typescript +async function handleCommand(command: SyncPlayCommand): Promise { + if (!player) { + console.warn('Command received but player not registered'); + return; + } + + // If command requires ready state, wait for it + if (!player.isReady()) { + await player.once('videoCanPlay'); + } + + await executeCommand(command); +} +``` + +### State Transition: Waiting → Playing + +When group transitions from `Waiting` to `Playing`, ensure your client is actually playing: + +```typescript +function handleStateUpdate(previousState: string, newState: string): void { + if (newState === 'Playing' && previousState === 'Waiting') { + // Double-check player is playing + if (player.isPaused()) { + player.play(); + } + } +} +``` + +### Handling Waiting State with Different Reasons + +```typescript +async function handleWaitingState(reason: string, positionTicks: number): Promise { + switch (reason) { + case 'Ready': + // All clients ready - unpause will follow + await requestUnpause(); + break; + + case 'Buffer': + // Another client is buffering + // Wait for our player to be ready, then report + if (!player.isReady()) { + await player.once('videoCanPlay'); + } + await sendReady(true, positionTicks); + break; + + case 'Unpause': + // Unpause requested, waiting for all clients + await sendReady(true, positionTicks); + break; + + case 'Seek': + // Seek was processed, now waiting + // Ready state should be sent after seek command completes + break; + } +} +``` + +### Large Delay Detection + +If calculated command delay is suspiciously large (>5 seconds), time sync may be off: + +```typescript +async function scheduleWithValidation(command: SyncPlayCommand): Promise { + const delay = calculateDelay(command); + + if (delay > 5000) { + // Force time sync update + await timeSync.forceUpdateAndWait(); + + // Recalculate delay + const newDelay = calculateDelay(command); + + if (newDelay > 5000) { + // Still too large - log warning but proceed + console.warn(`Executing command with large delay: ${newDelay}ms`); + } + } + + // Continue with scheduling... +} +``` + +--- + +## Implementation Checklist + +Use this checklist when implementing SyncPlay in a new client: + +### Core Infrastructure + +- [ ] WebSocket connection manager with auto-reconnect +- [ ] Keep-alive message handling +- [ ] REST API client for all SyncPlay endpoints +- [ ] Message routing by type + +### Time Synchronization + +- [ ] Implement `GET /GetUtcTime` API call +- [ ] Record T1 (local) before request, T4 (local) after response +- [ ] Parse T2 (`RequestReceptionTime`) and T3 (`ResponseTransmissionTime`) from server +- [ ] Offset calculation using NTP-like algorithm +- [ ] Storage of last N measurements (recommend 8) +- [ ] Best measurement selection (minimum delay) +- [ ] Greedy → low-profile polling transition +- [ ] Staleness detection (>30s) +- [ ] Force update capability +- [ ] Local ↔ remote time conversion + +### Group Management + +- [ ] Create group +- [ ] List available groups +- [ ] Join group +- [ ] Leave group +- [ ] Handle GroupJoined message +- [ ] Handle UserJoined/UserLeft messages +- [ ] Handle GroupDoesNotExist message +- [ ] Track current group state + +### Playback Control + +- [ ] Send pause request +- [ ] Send unpause request +- [ ] Send seek request +- [ ] Send stop request +- [ ] Send buffering state +- [ ] Send ready state +- [ ] Send ping measurements +- [ ] Set new queue +- [ ] Queue additional items + +### Command Processing + +- [ ] Parse SyncPlayCommand messages +- [ ] Convert server time to local time +- [ ] Calculate execution delay +- [ ] Schedule commands for future execution +- [ ] Execute immediately if delay < 0 with `estimateCurrentTicks()` +- [ ] Handle large delay warnings +- [ ] Duplicate command detection +- [ ] Command-specific execution sequences (pause, unpause, seek, stop) + +### Sync Correction (Optional but Recommended) + +- [ ] Implement `estimateCurrentTicks()` for late command handling +- [ ] Track playback diff during playback +- [ ] Implement SpeedToSync (playback rate adjustment) +- [ ] Implement SkipToSync (seek to correct position) +- [ ] Throttle sync checks (every 500ms-1s) +- [ ] Disable sync during buffering + +### Player Integration + +- [ ] Define player interface abstraction +- [ ] Register player with SyncPlay controller +- [ ] Subscribe to player events +- [ ] Distinguish user actions from SyncPlay commands +- [ ] Handle videoCanPlay event → send ready +- [ ] Handle videoBuffering event → send buffering +- [ ] Implement once() for async event waiting +- [ ] Support playback rate control (for SpeedToSync) +- [ ] Implement timeUpdate event (for sync correction) + +### State Management + +- [ ] Track group state (Idle, Waiting, Paused, Playing) +- [ ] Track state reason +- [ ] Track current playlist +- [ ] Track current playing item ID +- [ ] Track position in ticks +- [ ] Handle StateUpdate messages +- [ ] Handle PlayQueue messages + +### Error Handling + +- [ ] Message deduplication +- [ ] WebSocket disconnection recovery +- [ ] Stale time sync detection +- [ ] Player not ready handling +- [ ] API error handling with user feedback + +--- + +## Appendix: Sequence Diagrams + +### Full Unpause Flow + +```mermaid +sequenceDiagram + participant C1 as Client 1 (Initiator) + participant S as Server + participant C2 as Client 2 + + Note over C1,C2: Group State: Paused + + C1->>S: POST /SyncPlay/Unpause + S->>S: State → Waiting (Unpause) + S->>C1: SyncPlayGroupUpdate (StateUpdate: Waiting) + S->>C2: SyncPlayGroupUpdate (StateUpdate: Waiting) + + C1->>S: POST /SyncPlay/Ready (IsPlaying: true) + C2->>S: POST /SyncPlay/Ready (IsPlaying: true) + + S->>S: All clients ready + S->>S: Calculate When = Now + latency buffer + + S->>C1: SyncPlayCommand (Unpause, When=T, Position=P) + S->>C2: SyncPlayCommand (Unpause, When=T, Position=P) + + Note over C1: Wait until local time = T + Note over C2: Wait until local time = T + + C1->>C1: Seek to P if needed, then Play + C2->>C2: Seek to P if needed, then Play + + S->>S: State → Playing + S->>C1: SyncPlayGroupUpdate (StateUpdate: Playing) + S->>C2: SyncPlayGroupUpdate (StateUpdate: Playing) +``` + +### Client Buffering During Playback + +```mermaid +sequenceDiagram + participant C1 as Client 1 (Buffering) + participant S as Server + participant C2 as Client 2 + + Note over C1,C2: Group State: Playing + + C1->>C1: Network slow, starts buffering + C1->>S: POST /SyncPlay/Buffering (IsPlaying: false) + + S->>S: State → Waiting (Buffer) + S->>C1: SyncPlayGroupUpdate (StateUpdate: Waiting, Buffer) + S->>C2: SyncPlayGroupUpdate (StateUpdate: Waiting, Buffer) + + C2->>C2: Pause playback locally + C2->>S: POST /SyncPlay/Ready (IsPlaying: true) + + Note over C1: Buffering completes + C1->>S: POST /SyncPlay/Ready (IsPlaying: true) + + S->>S: All clients ready, resume + S->>C1: SyncPlayCommand (Unpause, When=T) + S->>C2: SyncPlayCommand (Unpause, When=T) + + S->>S: State → Playing +``` + +### Seek Operation + +```mermaid +sequenceDiagram + participant C1 as Client 1 (Seeker) + participant S as Server + participant C2 as Client 2 + + Note over C1,C2: Group State: Playing + + C1->>S: POST /SyncPlay/Seek (Position: 5min) + + S->>C1: SyncPlayCommand (Seek, When=T, Position=5min) + S->>C2: SyncPlayCommand (Seek, When=T, Position=5min) + + C1->>C1: Unpause → Seek → Wait → Pause + C2->>C2: Unpause → Seek → Wait → Pause + + C1->>S: POST /SyncPlay/Ready + C2->>S: POST /SyncPlay/Ready + + S->>S: All ready after seek + S->>C1: SyncPlayCommand (Unpause) + S->>C2: SyncPlayCommand (Unpause) +``` + +--- + +## Appendix: Validation Against Official Jellyfin Web Client + +This documentation was validated against the [official Jellyfin web client](https://github.com/jellyfin/jellyfin-web/tree/master/src/plugins/syncPlay) (as of January 2025). + +### ✅ Correctly Documented + +| Component | Source File | Status | +|-----------|-------------|--------| +| Time Sync Algorithm | `TimeSync.js` | ✅ Same constants and algorithm | +| Server Time API | `TimeSyncServer.js` | ✅ Uses `getServerTime()` → same endpoint | +| Offset Calculation | `TimeSync.js` | ✅ `((T2-T1) + (T3-T4)) / 2` | +| Measurement Selection | `TimeSync.js` | ✅ Picks minimum delay | +| Polling Strategy | `TimeSync.js` | ✅ 1s greedy (3x), then 60s | +| Command Scheduling | `PlaybackCore.js` | ✅ setTimeout with time conversion | +| Pause Sequence | `PlaybackCore.js` | ✅ Pause → wait → seek | +| Unpause Sequence | `PlaybackCore.js` | ✅ Seek → wait → play (or estimate if late) | +| Seek Sequence | `PlaybackCore.js` | ✅ Play → seek → wait ready → pause → send ready | +| Duplicate Detection | `PlaybackCore.js` | ✅ Same 4-field comparison | +| Buffering/Ready | `PlaybackCore.js` | ✅ Same payload structure | +| Queue Management | `QueueCore.js` | ✅ Same reason handling | +| Player Interface | `GenericPlayer.js` | ✅ Same abstraction pattern | +| WebSocket Keep-Alive | External | ✅ Half-timeout interval | + +### ⚠️ Advanced Features (Optional) + +These features are in the official client but may be omitted for simpler implementations: + +| Feature | Source File | Notes | +|---------|-------------|-------| +| SpeedToSync | `PlaybackCore.js` | Adjusts playback rate to catch up | +| SkipToSync | `PlaybackCore.js` | Seeks to correct position for large drifts | +| estimateCurrentTicks | `PlaybackCore.js` | Estimates position for late commands | +| extraTimeOffset | `TimeSyncCore.js` | Manual time offset adjustment setting | +| Repeat/Shuffle Mode | `QueueCore.js` | Queue mode synchronization | +| Player Factory | `PlayerFactory.js` | Multiple player type support | + +### Key Differences from Official Client + +1. **Sync Correction**: Official client continuously monitors playback position and corrects drift using SpeedToSync (60-3000ms drift) or SkipToSync (>400ms drift). + +2. **Late Command Handling**: Official client uses `estimateCurrentTicks()` to calculate where playback *should* be when a command arrives after its scheduled time. + +3. **Event Waiting**: Official uses `waitForEventOnce()` with timeout and reject events for robust async handling. + +4. **Settings**: Official has configurable thresholds (`minDelaySpeedToSync`, `maxDelaySpeedToSync`, `speedToSyncDuration`, etc.). + +--- + +## References + +- [Jellyfin SyncPlay API Documentation](https://api.jellyfin.org/#tag/SyncPlay) +- [Jellyfin Web Client SyncPlay Implementation](https://github.com/jellyfin/jellyfin-web/tree/master/src/plugins/syncPlay) +- [Jellyfin Web Client Source - PlaybackCore.js](https://raw.githubusercontent.com/jellyfin/jellyfin-web/master/src/plugins/syncPlay/core/PlaybackCore.js) +- [Jellyfin Web Client Source - TimeSync.js](https://raw.githubusercontent.com/jellyfin/jellyfin-web/master/src/plugins/syncPlay/core/timeSync/TimeSync.js) +- [NTP Clock Synchronization Algorithm](https://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm) diff --git a/lib/bootstrap/platform/base_app_wrapper.dart b/lib/bootstrap/platform/base_app_wrapper.dart index 29242469e..10577b281 100644 --- a/lib/bootstrap/platform/base_app_wrapper.dart +++ b/lib/bootstrap/platform/base_app_wrapper.dart @@ -17,6 +17,7 @@ import 'package:fladder/providers/update_notifications_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/routes/auto_router.dart'; +import 'package:fladder/providers/router_provider.dart'; import 'package:fladder/routes/auto_router.gr.dart'; import 'package:fladder/screens/login/lock_screen.dart'; import 'package:fladder/services/notification_service.dart'; @@ -46,6 +47,12 @@ abstract class BaseAppWrapperState extends ConsumerSta @override void initState() { super.initState(); + WidgetsBinding.instance.addPostFrameCallback((_) { + if (!mounted) { + return; + } + ref.read(routerProvider.notifier).state = autoRouter; + }); WidgetsBinding.instance.addObserver(this); WidgetsBinding.instance.addPostFrameCallback((_) async { ref.read(sharedUtilityProvider).loadSettings(); diff --git a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart index b9aedab7e..ed5b89a87 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart @@ -38,8 +38,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client.send($request); } @override @@ -50,8 +49,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -154,8 +152,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -250,8 +247,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -720,8 +716,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupCreatePost( - {required BackupOptionsDto? body}) { + Future> _backupCreatePost({required BackupOptionsDto? body}) { final Uri $url = Uri.parse('/Backup/Create'); final $body = body; final Request $request = Request( @@ -734,8 +729,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupManifestGet( - {required String? path}) { + Future> _backupManifestGet({required String? path}) { final Uri $url = Uri.parse('/Backup/Manifest'); final Map $params = {'path': path}; final Request $request = Request( @@ -748,8 +742,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupRestorePost( - {required BackupRestoreRequestDto? body}) { + Future> _backupRestorePost({required BackupRestoreRequestDto? body}) { final Uri $url = Uri.parse('/Backup/Restore'); final $body = body; final Request $request = Request( @@ -818,13 +811,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _channelsChannelIdFeaturesGet( - {required String? channelId}) { + Future> _channelsChannelIdFeaturesGet({required String? channelId}) { final Uri $url = Uri.parse('/Channels/${channelId}/Features'); final Request $request = Request( 'GET', @@ -863,8 +854,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -902,13 +892,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _clientLogDocumentPost( - {required Object? body}) { + Future> _clientLogDocumentPost({required Object? body}) { final Uri $url = Uri.parse('/ClientLog/Document'); final $body = body; final Request $request = Request( @@ -917,8 +905,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, body: $body, ); - return client.send($request); + return client.send($request); } @override @@ -941,8 +928,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -989,8 +975,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _systemConfigurationPost( - {required ServerConfiguration? body}) { + Future> _systemConfigurationPost({required ServerConfiguration? body}) { final Uri $url = Uri.parse('/System/Configuration'); final $body = body; final Request $request = Request( @@ -1030,8 +1015,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _systemConfigurationBrandingPost( - {required BrandingOptionsDto? body}) { + Future> _systemConfigurationBrandingPost({required BrandingOptionsDto? body}) { final Uri $url = Uri.parse('/System/Configuration/Branding'); final $body = body; final Request $request = Request( @@ -1044,8 +1028,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _systemConfigurationMetadataOptionsDefaultGet() { + Future> _systemConfigurationMetadataOptionsDefaultGet() { final Uri $url = Uri.parse('/System/Configuration/MetadataOptions/Default'); final Request $request = Request( 'GET', @@ -1069,20 +1052,16 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _webConfigurationPagesGet( - {bool? enableInMainMenu}) { + Future>> _webConfigurationPagesGet({bool? enableInMainMenu}) { final Uri $url = Uri.parse('/web/ConfigurationPages'); - final Map $params = { - 'enableInMainMenu': enableInMainMenu - }; + final Map $params = {'enableInMainMenu': enableInMainMenu}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send, ConfigurationPageInfo>($request); + return client.send, ConfigurationPageInfo>($request); } @override @@ -1095,8 +1074,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -1157,8 +1135,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _displayPreferencesDisplayPreferencesIdGet({ + Future> _displayPreferencesDisplayPreferencesIdGet({ required String? displayPreferencesId, String? userId, required String? $client, @@ -1258,8 +1235,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { Object? streamOptions, bool? enableAudioVbrEncoding, }) { - final Uri $url = Uri.parse( - '/Audio/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); + final Uri $url = Uri.parse('/Audio/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); final Map $params = { 'runtimeTicks': runtimeTicks, 'actualSegmentLengthTicks': actualSegmentLengthTicks, @@ -1728,8 +1704,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { bool? enableAudioVbrEncoding, bool? alwaysBurnInSubtitleWhenTranscoding, }) { - final Uri $url = Uri.parse( - '/Videos/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); + final Uri $url = Uri.parse('/Videos/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); final Map $params = { 'runtimeTicks': runtimeTicks, 'actualSegmentLengthTicks': actualSegmentLengthTicks, @@ -1783,8 +1758,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'context': context, 'streamOptions': streamOptions, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -1906,8 +1880,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'maxHeight': maxHeight, 'enableSubtitlesInManifest': enableSubtitlesInManifest, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2025,8 +1998,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'context': context, 'streamOptions': streamOptions, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2148,8 +2120,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'enableAdaptiveBitrateStreaming': enableAdaptiveBitrateStreaming, 'enableTrickplay': enableTrickplay, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2271,8 +2242,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'enableAdaptiveBitrateStreaming': enableAdaptiveBitrateStreaming, 'enableTrickplay': enableTrickplay, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'HEAD', @@ -2284,16 +2254,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _environmentDefaultDirectoryBrowserGet() { + Future> _environmentDefaultDirectoryBrowserGet() { final Uri $url = Uri.parse('/Environment/DefaultDirectoryBrowser'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -2314,8 +2282,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send, FileSystemEntryInfo>($request); + return client.send, FileSystemEntryInfo>($request); } @override @@ -2326,8 +2293,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send, FileSystemEntryInfo>($request); + return client.send, FileSystemEntryInfo>($request); } @override @@ -2338,8 +2304,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send, FileSystemEntryInfo>($request); + return client.send, FileSystemEntryInfo>($request); } @override @@ -2356,8 +2321,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _environmentValidatePathPost( - {required ValidatePathDto? body}) { + Future> _environmentValidatePathPost({required ValidatePathDto? body}) { final Uri $url = Uri.parse('/Environment/ValidatePath'); final $body = body; final Request $request = Request( @@ -2475,8 +2439,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -2524,15 +2487,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ required String? itemId, required String? playlistId, required String? segmentId, required String? segmentContainer, }) { - final Uri $url = Uri.parse( - '/Videos/${itemId}/hls/${playlistId}/${segmentId}.${segmentContainer}'); + final Uri $url = Uri.parse('/Videos/${itemId}/hls/${playlistId}/${segmentId}.${segmentContainer}'); final Request $request = Request( 'GET', $url, @@ -2546,8 +2507,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? playlistId, }) { - final Uri $url = - Uri.parse('/Videos/${itemId}/hls/${playlistId}/stream.m3u8'); + final Uri $url = Uri.parse('/Videos/${itemId}/hls/${playlistId}/stream.m3u8'); final Request $request = Request( 'GET', $url, @@ -2595,8 +2555,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? foregroundLayer, required int? imageIndex, }) { - final Uri $url = - Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2642,8 +2601,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? foregroundLayer, required int? imageIndex, }) { - final Uri $url = - Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2826,8 +2784,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2873,8 +2830,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2901,8 +2857,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsItemIdImagesGet( - {required String? itemId}) { + Future>> _itemsItemIdImagesGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/Images'); final Request $request = Request( 'GET', @@ -2919,9 +2874,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { int? imageIndex, }) { final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}'); - final Map $params = { - 'imageIndex': imageIndex - }; + final Map $params = {'imageIndex': imageIndex}; final Request $request = Request( 'DELETE', $url, @@ -3048,8 +3001,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? imageType, required int? imageIndex, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Request $request = Request( 'DELETE', $url, @@ -3065,8 +3017,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? imageIndex, required Object? body, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final $body = body; final Request $request = Request( 'POST', @@ -3097,8 +3048,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Map $params = { 'maxWidth': maxWidth, 'maxHeight': maxHeight, @@ -3144,8 +3094,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Map $params = { 'maxWidth': maxWidth, 'maxHeight': maxHeight, @@ -3262,11 +3211,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? imageIndex, required int? newIndex, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}/Index'); - final Map $params = { - 'newIndex': newIndex - }; + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}/Index'); + final Map $params = {'newIndex': newIndex}; final Request $request = Request( 'POST', $url, @@ -3390,8 +3336,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3437,8 +3382,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3578,8 +3522,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3625,8 +3568,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3766,8 +3708,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3813,8 +3754,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3940,8 +3880,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -3971,8 +3910,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4003,8 +3941,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4034,8 +3971,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4065,8 +4001,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4097,8 +4032,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4128,8 +4062,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4159,13 +4092,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future>> _itemsItemIdExternalIdInfosGet( - {required String? itemId}) { + Future>> _itemsItemIdExternalIdInfosGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/ExternalIdInfos'); final Request $request = Request( 'GET', @@ -4182,9 +4113,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required RemoteSearchResult? body, }) { final Uri $url = Uri.parse('/Items/RemoteSearch/Apply/${itemId}'); - final Map $params = { - 'replaceAllImages': replaceAllImages - }; + final Map $params = {'replaceAllImages': replaceAllImages}; final $body = body; final Request $request = Request( 'POST', @@ -4197,8 +4126,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsRemoteSearchBookPost( - {required BookInfoRemoteSearchQuery? body}) { + Future>> _itemsRemoteSearchBookPost({required BookInfoRemoteSearchQuery? body}) { final Uri $url = Uri.parse('/Items/RemoteSearch/Book'); final $body = body; final Request $request = Request( @@ -4225,8 +4153,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsRemoteSearchMoviePost( - {required MovieInfoRemoteSearchQuery? body}) { + Future>> _itemsRemoteSearchMoviePost({required MovieInfoRemoteSearchQuery? body}) { final Uri $url = Uri.parse('/Items/RemoteSearch/Movie'); final $body = body; final Request $request = Request( @@ -4531,8 +4458,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4625,8 +4551,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4678,9 +4603,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? contentType, }) { final Uri $url = Uri.parse('/Items/${itemId}/ContentType'); - final Map $params = { - 'contentType': contentType - }; + final Map $params = {'contentType': contentType}; final Request $request = Request( 'POST', $url, @@ -4691,8 +4614,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _itemsItemIdMetadataEditorGet( - {required String? itemId}) { + Future> _itemsItemIdMetadataEditorGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/MetadataEditor'); final Request $request = Request( 'GET', @@ -4723,8 +4645,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4748,8 +4669,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4769,16 +4689,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _itemsItemIdCriticReviewsGet( - {required String? itemId}) { + Future> _itemsItemIdCriticReviewsGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/CriticReviews'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override @@ -4824,8 +4742,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4935,13 +4852,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _libraryMediaUpdatedPost( - {required MediaUpdateInfoDto? body}) { + Future> _libraryMediaUpdatedPost({required MediaUpdateInfoDto? body}) { final Uri $url = Uri.parse('/Library/Media/Updated'); final $body = body; final Request $request = Request( @@ -4954,20 +4869,16 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryMediaFoldersGet( - {bool? isHidden}) { + Future> _libraryMediaFoldersGet({bool? isHidden}) { final Uri $url = Uri.parse('/Library/MediaFolders'); - final Map $params = { - 'isHidden': isHidden - }; + final Map $params = {'isHidden': isHidden}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5077,8 +4988,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5102,8 +5012,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5127,8 +5036,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5188,8 +5096,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryVirtualFoldersLibraryOptionsPost( - {required UpdateLibraryOptionsDto? body}) { + Future> _libraryVirtualFoldersLibraryOptionsPost({required UpdateLibraryOptionsDto? body}) { final Uri $url = Uri.parse('/Library/VirtualFolders/LibraryOptions'); final $body = body; final Request $request = Request( @@ -5228,9 +5135,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required MediaPathDto? body, }) { final Uri $url = Uri.parse('/Library/VirtualFolders/Paths'); - final Map $params = { - 'refreshLibrary': refreshLibrary - }; + final Map $params = {'refreshLibrary': refreshLibrary}; final $body = body; final Request $request = Request( 'POST', @@ -5264,8 +5169,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryVirtualFoldersPathsUpdatePost( - {required UpdateMediaPathRequestDto? body}) { + Future> _libraryVirtualFoldersPathsUpdatePost({required UpdateMediaPathRequestDto? body}) { final Uri $url = Uri.parse('/Library/VirtualFolders/Paths/Update'); final $body = body; final Request $request = Request( @@ -5278,25 +5182,20 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvChannelMappingOptionsGet( - {String? providerId}) { + Future> _liveTvChannelMappingOptionsGet({String? providerId}) { final Uri $url = Uri.parse('/LiveTv/ChannelMappingOptions'); - final Map $params = { - 'providerId': providerId - }; + final Map $params = {'providerId': providerId}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvChannelMappingsPost( - {required SetChannelMappingDto? body}) { + Future> _liveTvChannelMappingsPost({required SetChannelMappingDto? body}) { final Uri $url = Uri.parse('/LiveTv/ChannelMappings'); final $body = body; final Request $request = Request( @@ -5362,8 +5261,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5476,10 +5374,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _liveTvListingProvidersSchedulesDirectCountriesGet() { - final Uri $url = - Uri.parse('/LiveTv/ListingProviders/SchedulesDirect/Countries'); + Future> _liveTvListingProvidersSchedulesDirectCountriesGet() { + final Uri $url = Uri.parse('/LiveTv/ListingProviders/SchedulesDirect/Countries'); final Request $request = Request( 'GET', $url, @@ -5489,8 +5385,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvLiveRecordingsRecordingIdStreamGet( - {required String? recordingId}) { + Future> _liveTvLiveRecordingsRecordingIdStreamGet({required String? recordingId}) { final Uri $url = Uri.parse('/LiveTv/LiveRecordings/${recordingId}/stream'); final Request $request = Request( 'GET', @@ -5505,8 +5400,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? streamId, required String? container, }) { - final Uri $url = - Uri.parse('/LiveTv/LiveStreamFiles/${streamId}/stream.${container}'); + final Uri $url = Uri.parse('/LiveTv/LiveStreamFiles/${streamId}/stream.${container}'); final Request $request = Request( 'GET', $url, @@ -5581,13 +5475,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvProgramsPost( - {required GetProgramsDto? body}) { + Future> _liveTvProgramsPost({required GetProgramsDto? body}) { final Uri $url = Uri.parse('/LiveTv/Programs'); final $body = body; final Request $request = Request( @@ -5596,8 +5488,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, body: $body, ); - return client - .send($request); + return client.send($request); } @override @@ -5662,8 +5553,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5716,8 +5606,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5737,8 +5626,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvRecordingsRecordingIdDelete( - {required String? recordingId}) { + Future> _liveTvRecordingsRecordingIdDelete({required String? recordingId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/${recordingId}'); final Request $request = Request( 'DELETE', @@ -5749,8 +5637,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvRecordingsFoldersGet( - {String? userId}) { + Future> _liveTvRecordingsFoldersGet({String? userId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Folders'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -5759,13 +5646,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvRecordingsGroupsGet( - {String? userId}) { + Future> _liveTvRecordingsGroupsGet({String? userId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Groups'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -5774,13 +5659,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvRecordingsGroupsGroupIdGet( - {required String? groupId}) { + Future> _liveTvRecordingsGroupsGroupIdGet({required String? groupId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Groups/${groupId}'); final Request $request = Request( 'GET', @@ -5830,8 +5713,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5850,13 +5732,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client.send($request); } @override - Future> _liveTvSeriesTimersPost( - {required SeriesTimerInfoDto? body}) { + Future> _liveTvSeriesTimersPost({required SeriesTimerInfoDto? body}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers'); final $body = body; final Request $request = Request( @@ -5869,8 +5749,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvSeriesTimersTimerIdGet( - {required String? timerId}) { + Future> _liveTvSeriesTimersTimerIdGet({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers/${timerId}'); final Request $request = Request( 'GET', @@ -5881,8 +5760,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvSeriesTimersTimerIdDelete( - {required String? timerId}) { + Future> _liveTvSeriesTimersTimerIdDelete({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers/${timerId}'); final Request $request = Request( 'DELETE', @@ -5928,8 +5806,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5946,8 +5823,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersTimerIdGet( - {required String? timerId}) { + Future> _liveTvTimersTimerIdGet({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/Timers/${timerId}'); final Request $request = Request( 'GET', @@ -5958,8 +5834,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersTimerIdDelete( - {required String? timerId}) { + Future> _liveTvTimersTimerIdDelete({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/Timers/${timerId}'); final Request $request = Request( 'DELETE', @@ -5986,12 +5861,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersDefaultsGet( - {String? programId}) { + Future> _liveTvTimersDefaultsGet({String? programId}) { final Uri $url = Uri.parse('/LiveTv/Timers/Defaults'); - final Map $params = { - 'programId': programId - }; + final Map $params = {'programId': programId}; final Request $request = Request( 'GET', $url, @@ -6002,8 +5874,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTunerHostsPost( - {required TunerHostInfo? body}) { + Future> _liveTvTunerHostsPost({required TunerHostInfo? body}) { final Uri $url = Uri.parse('/LiveTv/TunerHosts'); final $body = body; final Request $request = Request( @@ -6040,8 +5911,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTunersTunerIdResetPost( - {required String? tunerId}) { + Future> _liveTvTunersTunerIdResetPost({required String? tunerId}) { final Uri $url = Uri.parse('/LiveTv/Tuners/${tunerId}/Reset'); final Request $request = Request( 'POST', @@ -6052,12 +5922,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _liveTvTunersDiscoverGet( - {bool? newDevicesOnly}) { + Future>> _liveTvTunersDiscoverGet({bool? newDevicesOnly}) { final Uri $url = Uri.parse('/LiveTv/Tuners/Discover'); - final Map $params = { - 'newDevicesOnly': newDevicesOnly - }; + final Map $params = {'newDevicesOnly': newDevicesOnly}; final Request $request = Request( 'GET', $url, @@ -6068,12 +5935,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _liveTvTunersDiscvoverGet( - {bool? newDevicesOnly}) { + Future>> _liveTvTunersDiscvoverGet({bool? newDevicesOnly}) { final Uri $url = Uri.parse('/LiveTv/Tuners/Discvover'); - final Map $params = { - 'newDevicesOnly': newDevicesOnly - }; + final Map $params = {'newDevicesOnly': newDevicesOnly}; final Request $request = Request( 'GET', $url, @@ -6145,9 +6009,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required Object? body, }) { final Uri $url = Uri.parse('/Audio/${itemId}/Lyrics'); - final Map $params = { - 'fileName': fileName - }; + final Map $params = {'fileName': fileName}; final $body = body; final Request $request = Request( 'POST', @@ -6160,8 +6022,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _audioItemIdLyricsDelete( - {required String? itemId}) { + Future> _audioItemIdLyricsDelete({required String? itemId}) { final Uri $url = Uri.parse('/Audio/${itemId}/Lyrics'); final Request $request = Request( 'DELETE', @@ -6172,8 +6033,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _audioItemIdRemoteSearchLyricsGet( - {required String? itemId}) { + Future>> _audioItemIdRemoteSearchLyricsGet({required String? itemId}) { final Uri $url = Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics'); final Request $request = Request( 'GET', @@ -6188,8 +6048,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? lyricId, }) { - final Uri $url = - Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics/${lyricId}'); + final Uri $url = Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics/${lyricId}'); final Request $request = Request( 'POST', $url, @@ -6199,8 +6058,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _providersLyricsLyricIdGet( - {required String? lyricId}) { + Future> _providersLyricsLyricIdGet({required String? lyricId}) { final Uri $url = Uri.parse('/Providers/Lyrics/${lyricId}'); final Request $request = Request( 'GET', @@ -6274,12 +6132,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveStreamsClosePost( - {required String? liveStreamId}) { + Future> _liveStreamsClosePost({required String? liveStreamId}) { final Uri $url = Uri.parse('/LiveStreams/Close'); - final Map $params = { - 'liveStreamId': liveStreamId - }; + final Map $params = {'liveStreamId': liveStreamId}; final Request $request = Request( 'POST', $url, @@ -6318,8 +6173,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'itemId': itemId, 'enableDirectPlay': enableDirectPlay, 'enableDirectStream': enableDirectStream, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final $body = body; final Request $request = Request( @@ -6351,17 +6205,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { List? includeSegmentTypes, }) { final Uri $url = Uri.parse('/MediaSegments/${itemId}'); - final Map $params = { - 'includeSegmentTypes': includeSegmentTypes - }; + final Map $params = {'includeSegmentTypes': includeSegmentTypes}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6437,8 +6288,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6458,10 +6308,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _jellyfinPluginOpenSubtitlesValidateLoginInfoPost( - {required LoginInfoInput? body}) { - final Uri $url = - Uri.parse('/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo'); + Future> _jellyfinPluginOpenSubtitlesValidateLoginInfoPost({required LoginInfoInput? body}) { + final Uri $url = Uri.parse('/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo'); final $body = body; final Request $request = Request( 'POST', @@ -6489,9 +6337,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? assemblyGuid, }) { final Uri $url = Uri.parse('/Packages/${name}'); - final Map $params = { - 'assemblyGuid': assemblyGuid - }; + final Map $params = {'assemblyGuid': assemblyGuid}; final Request $request = Request( 'GET', $url, @@ -6524,8 +6370,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _packagesInstallingPackageIdDelete( - {required String? packageId}) { + Future> _packagesInstallingPackageIdDelete({required String? packageId}) { final Uri $url = Uri.parse('/Packages/Installing/${packageId}'); final Request $request = Request( 'DELETE', @@ -6547,8 +6392,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _repositoriesPost( - {required List? body}) { + Future> _repositoriesPost({required List? body}) { final Uri $url = Uri.parse('/Repositories'); final $body = body; final Request $request = Request( @@ -6598,8 +6442,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6625,8 +6468,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { DateTime? endDate, num? timezoneOffset, }) { - final Uri $url = - Uri.parse('/user_usage_stats/${breakdownType}/BreakdownReport'); + final Uri $url = Uri.parse('/user_usage_stats/${breakdownType}/BreakdownReport'); final Map $params = { 'days': days, 'endDate': endDate, @@ -6728,12 +6570,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _userUsageStatsLoadBackupGet( - {String? backupFilePath}) { + Future>> _userUsageStatsLoadBackupGet({String? backupFilePath}) { final Uri $url = Uri.parse('/user_usage_stats/load_backup'); - final Map $params = { - 'backupFilePath': backupFilePath - }; + final Map $params = {'backupFilePath': backupFilePath}; final Request $request = Request( 'GET', $url, @@ -6801,8 +6640,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _userUsageStatsSubmitCustomQueryPost( - {required CustomQueryData? body}) { + Future> _userUsageStatsSubmitCustomQueryPost({required CustomQueryData? body}) { final Uri $url = Uri.parse('/user_usage_stats/submit_custom_query'); final $body = body; final Request $request = Request( @@ -6917,8 +6755,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { body: $body, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6938,8 +6775,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _playlistsPlaylistIdGet( - {required String? playlistId}) { + Future> _playlistsPlaylistIdGet({required String? playlistId}) { final Uri $url = Uri.parse('/Playlists/${playlistId}'); final Request $request = Request( 'GET', @@ -6975,9 +6811,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { List? entryIds, }) { final Uri $url = Uri.parse('/Playlists/${playlistId}/Items'); - final Map $params = { - 'entryIds': entryIds - }; + final Map $params = {'entryIds': entryIds}; final Request $request = Request( 'DELETE', $url, @@ -7016,8 +6850,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -7026,8 +6859,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required int? newIndex, }) { - final Uri $url = - Uri.parse('/Playlists/${playlistId}/Items/${itemId}/Move/${newIndex}'); + final Uri $url = Uri.parse('/Playlists/${playlistId}/Items/${itemId}/Move/${newIndex}'); final Request $request = Request( 'POST', $url, @@ -7037,16 +6869,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _playlistsPlaylistIdUsersGet( - {required String? playlistId}) { + Future>> _playlistsPlaylistIdUsersGet({required String? playlistId}) { final Uri $url = Uri.parse('/Playlists/${playlistId}/Users'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client - .send, PlaylistUserPermissions>($request); + return client.send, PlaylistUserPermissions>($request); } @override @@ -7060,8 +6890,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override @@ -7190,8 +7019,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingPost( - {required PlaybackStartInfo? body}) { + Future> _sessionsPlayingPost({required PlaybackStartInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing'); final $body = body; final Request $request = Request( @@ -7204,12 +7032,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingPingPost( - {required String? playSessionId}) { + Future> _sessionsPlayingPingPost({required String? playSessionId}) { final Uri $url = Uri.parse('/Sessions/Playing/Ping'); - final Map $params = { - 'playSessionId': playSessionId - }; + final Map $params = {'playSessionId': playSessionId}; final Request $request = Request( 'POST', $url, @@ -7220,8 +7045,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingProgressPost( - {required PlaybackProgressInfo? body}) { + Future> _sessionsPlayingProgressPost({required PlaybackProgressInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing/Progress'); final $body = body; final Request $request = Request( @@ -7234,8 +7058,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingStoppedPost( - {required PlaybackStopInfo? body}) { + Future> _sessionsPlayingStoppedPost({required PlaybackStopInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing/Stopped'); final $body = body; final Request $request = Request( @@ -7295,8 +7118,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdDelete( - {required String? pluginId}) { + Future> _pluginsPluginIdDelete({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}'); final Request $request = Request( 'DELETE', @@ -7363,21 +7185,18 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdConfigurationGet( - {required String? pluginId}) { + Future> _pluginsPluginIdConfigurationGet({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Configuration'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override - Future> _pluginsPluginIdConfigurationPost( - {required String? pluginId}) { + Future> _pluginsPluginIdConfigurationPost({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Configuration'); final Request $request = Request( 'POST', @@ -7388,8 +7207,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdManifestPost( - {required String? pluginId}) { + Future> _pluginsPluginIdManifestPost({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Manifest'); final Request $request = Request( 'POST', @@ -7419,8 +7237,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _quickConnectConnectGet( - {required String? secret}) { + Future> _quickConnectConnectGet({required String? secret}) { final Uri $url = Uri.parse('/QuickConnect/Connect'); final Map $params = {'secret': secret}; final Request $request = Request( @@ -7501,8 +7318,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> - _itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { + Future>> _itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/RemoteImages/Providers'); final Request $request = Request( 'GET', @@ -7532,8 +7348,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksTaskIdGet( - {required String? taskId}) { + Future> _scheduledTasksTaskIdGet({required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/${taskId}'); final Request $request = Request( 'GET', @@ -7560,8 +7375,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksRunningTaskIdPost( - {required String? taskId}) { + Future> _scheduledTasksRunningTaskIdPost({required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/Running/${taskId}'); final Request $request = Request( 'POST', @@ -7572,8 +7386,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksRunningTaskIdDelete( - {required String? taskId}) { + Future> _scheduledTasksRunningTaskIdDelete({required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/Running/${taskId}'); final Request $request = Request( 'DELETE', @@ -7930,13 +7743,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override - Future> _startupConfigurationPost( - {required StartupConfigurationDto? body}) { + Future> _startupConfigurationPost({required StartupConfigurationDto? body}) { final Uri $url = Uri.parse('/Startup/Configuration'); final $body = body; final Request $request = Request( @@ -7960,8 +7771,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _startupRemoteAccessPost( - {required StartupRemoteAccessDto? body}) { + Future> _startupRemoteAccessPost({required StartupRemoteAccessDto? body}) { final Uri $url = Uri.parse('/Startup/RemoteAccess'); final $body = body; final Request $request = Request( @@ -8043,8 +7853,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -8086,17 +7895,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> - _itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> _itemsItemIdRemoteSearchSubtitlesLanguageGet({ required String? itemId, required String? language, bool? isPerfectMatch, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${language}'); - final Map $params = { - 'isPerfectMatch': isPerfectMatch - }; + final Uri $url = Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${language}'); + final Map $params = {'isPerfectMatch': isPerfectMatch}; final Request $request = Request( 'GET', $url, @@ -8111,8 +7916,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? subtitleId, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${subtitleId}'); + final Uri $url = Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${subtitleId}'); final Request $request = Request( 'POST', $url, @@ -8122,8 +7926,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _providersSubtitlesSubtitlesSubtitleIdGet( - {required String? subtitleId}) { + Future> _providersSubtitlesSubtitlesSubtitleIdGet({required String? subtitleId}) { final Uri $url = Uri.parse('/Providers/Subtitles/Subtitles/${subtitleId}'); final Request $request = Request( 'GET', @@ -8134,18 +7937,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ required String? itemId, required int? index, required String? mediaSourceId, required int? segmentLength, }) { - final Uri $url = Uri.parse( - '/Videos/${itemId}/${mediaSourceId}/Subtitles/${index}/subtitles.m3u8'); - final Map $params = { - 'segmentLength': segmentLength - }; + final Uri $url = Uri.parse('/Videos/${itemId}/${mediaSourceId}/Subtitles/${index}/subtitles.m3u8'); + final Map $params = {'segmentLength': segmentLength}; final Request $request = Request( 'GET', $url, @@ -8224,8 +8023,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -8239,8 +8037,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { bool? addVttTimeMap, int? startPositionTicks, }) { - final Uri $url = Uri.parse( - '/Videos/${routeItemId}/${routeMediaSourceId}/Subtitles/${routeIndex}/Stream.${routeFormat}'); + final Uri $url = + Uri.parse('/Videos/${routeItemId}/${routeMediaSourceId}/Subtitles/${routeIndex}/Stream.${routeFormat}'); final Map $params = { 'itemId': itemId, 'mediaSourceId': mediaSourceId, @@ -8284,8 +8082,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -8300,8 +8097,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayBufferingPost( - {required BufferRequestDto? body}) { + Future> _syncPlayBufferingPost({required BufferRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Buffering'); final $body = body; final Request $request = Request( @@ -8314,8 +8110,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayJoinPost( - {required JoinGroupRequestDto? body}) { + Future> _syncPlayJoinPost({required JoinGroupRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Join'); final $body = body; final Request $request = Request( @@ -8350,8 +8145,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayMovePlaylistItemPost( - {required MovePlaylistItemRequestDto? body}) { + Future> _syncPlayMovePlaylistItemPost({required MovePlaylistItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/MovePlaylistItem'); final $body = body; final Request $request = Request( @@ -8364,8 +8158,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayNewPost( - {required NewGroupRequestDto? body}) { + Future> _syncPlayNewPost({required NewGroupRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/New'); final $body = body; final Request $request = Request( @@ -8378,8 +8171,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayNextItemPost( - {required NextItemRequestDto? body}) { + Future> _syncPlayNextItemPost({required NextItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/NextItem'); final $body = body; final Request $request = Request( @@ -8416,8 +8208,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayPreviousItemPost( - {required PreviousItemRequestDto? body}) { + Future> _syncPlayPreviousItemPost({required PreviousItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/PreviousItem'); final $body = body; final Request $request = Request( @@ -8430,8 +8221,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayQueuePost( - {required QueueRequestDto? body}) { + Future> _syncPlayQueuePost({required QueueRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Queue'); final $body = body; final Request $request = Request( @@ -8444,8 +8234,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayReadyPost( - {required ReadyRequestDto? body}) { + Future> _syncPlayReadyPost({required ReadyRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Ready'); final $body = body; final Request $request = Request( @@ -8458,8 +8247,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayRemoveFromPlaylistPost( - {required RemoveFromPlaylistRequestDto? body}) { + Future> _syncPlayRemoveFromPlaylistPost({required RemoveFromPlaylistRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/RemoveFromPlaylist'); final $body = body; final Request $request = Request( @@ -8485,8 +8273,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetIgnoreWaitPost( - {required IgnoreWaitRequestDto? body}) { + Future> _syncPlaySetIgnoreWaitPost({required IgnoreWaitRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetIgnoreWait'); final $body = body; final Request $request = Request( @@ -8499,8 +8286,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetNewQueuePost( - {required PlayRequestDto? body}) { + Future> _syncPlaySetNewQueuePost({required PlayRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetNewQueue'); final $body = body; final Request $request = Request( @@ -8513,8 +8299,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetPlaylistItemPost( - {required SetPlaylistItemRequestDto? body}) { + Future> _syncPlaySetPlaylistItemPost({required SetPlaylistItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetPlaylistItem'); final $body = body; final Request $request = Request( @@ -8527,8 +8312,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetRepeatModePost( - {required SetRepeatModeRequestDto? body}) { + Future> _syncPlaySetRepeatModePost({required SetRepeatModeRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetRepeatMode'); final $body = body; final Request $request = Request( @@ -8541,8 +8325,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetShuffleModePost( - {required SetShuffleModeRequestDto? body}) { + Future> _syncPlaySetShuffleModePost({required SetShuffleModeRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetShuffleMode'); final $body = body; final Request $request = Request( @@ -8890,8 +8673,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -8901,11 +8683,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? index, String? mediaSourceId, }) { - final Uri $url = - Uri.parse('/Videos/${itemId}/Trickplay/${width}/${index}.jpg'); - final Map $params = { - 'mediaSourceId': mediaSourceId - }; + final Uri $url = Uri.parse('/Videos/${itemId}/Trickplay/${width}/${index}.jpg'); + final Map $params = {'mediaSourceId': mediaSourceId}; final Request $request = Request( 'GET', $url, @@ -8921,11 +8700,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? width, String? mediaSourceId, }) { - final Uri $url = - Uri.parse('/Videos/${itemId}/Trickplay/${width}/tiles.m3u8'); - final Map $params = { - 'mediaSourceId': mediaSourceId - }; + final Uri $url = Uri.parse('/Videos/${itemId}/Trickplay/${width}/tiles.m3u8'); + final Map $params = {'mediaSourceId': mediaSourceId}; final Request $request = Request( 'GET', $url, @@ -8976,8 +8752,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9011,8 +8786,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9057,8 +8831,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9091,8 +8864,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9275,8 +9047,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersAuthenticateByNamePost( - {required AuthenticateUserByName? body}) { + Future> _usersAuthenticateByNamePost({required AuthenticateUserByName? body}) { final Uri $url = Uri.parse('/Users/AuthenticateByName'); final $body = body; final Request $request = Request( @@ -9289,8 +9060,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersAuthenticateWithQuickConnectPost( - {required QuickConnectDto? body}) { + Future> _usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { final Uri $url = Uri.parse('/Users/AuthenticateWithQuickConnect'); final $body = body; final Request $request = Request( @@ -9321,8 +9091,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersForgotPasswordPost( - {required ForgotPasswordDto? body}) { + Future> _usersForgotPasswordPost({required ForgotPasswordDto? body}) { final Uri $url = Uri.parse('/Users/ForgotPassword'); final $body = body; final Request $request = Request( @@ -9335,8 +9104,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersForgotPasswordPinPost( - {required ForgotPasswordPinDto? body}) { + Future> _usersForgotPasswordPinPost({required ForgotPasswordPinDto? body}) { final Uri $url = Uri.parse('/Users/ForgotPassword/Pin'); final $body = body; final Request $request = Request( @@ -9414,8 +9182,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9587,13 +9354,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future>> _userViewsGroupingOptionsGet( - {String? userId}) { + Future>> _userViewsGroupingOptionsGet({String? userId}) { final Uri $url = Uri.parse('/UserViews/GroupingOptions'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -9602,8 +9367,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send, SpecialViewOptionDto>($request); + return client.send, SpecialViewOptionDto>($request); } @override @@ -9612,8 +9376,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? mediaSourceId, required int? index, }) { - final Uri $url = - Uri.parse('/Videos/${videoId}/${mediaSourceId}/Attachments/${index}'); + final Uri $url = Uri.parse('/Videos/${videoId}/${mediaSourceId}/Attachments/${index}'); final Request $request = Request( 'GET', $url, @@ -9635,13 +9398,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _videosItemIdAlternateSourcesDelete( - {required String? itemId}) { + Future> _videosItemIdAlternateSourcesDelete({required String? itemId}) { final Uri $url = Uri.parse('/Videos/${itemId}/AlternateSources'); final Request $request = Request( 'DELETE', @@ -10122,8 +9883,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _videosMergeVersionsPost( - {required List? ids}) { + Future> _videosMergeVersionsPost({required List? ids}) { final Uri $url = Uri.parse('/Videos/MergeVersions'); final Map $params = {'ids': ids}; final Request $request = Request( @@ -10177,8 +9937,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override diff --git a/lib/jellyfin/jellyfin_open_api.swagger.dart b/lib/jellyfin/jellyfin_open_api.swagger.dart index 8d82a2480..6a1598365 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.dart @@ -54,8 +54,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param limit Optional. The maximum number of records to return. ///@param minDate Optional. The minimum date. Format = ISO. ///@param hasUserId Optional. Filter log entries if it has user id, or not. - Future> - systemActivityLogEntriesGet({ + Future> systemActivityLogEntriesGet({ int? startIndex, int? limit, DateTime? minDate, @@ -80,8 +79,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param minDate Optional. The minimum date. Format = ISO. ///@param hasUserId Optional. Filter log entries if it has user id, or not. @GET(path: '/System/ActivityLog/Entries') - Future> - _systemActivityLogEntriesGet({ + Future> _systemActivityLogEntriesGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @Query('minDate') DateTime? minDate, @@ -1853,8 +1851,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Upload a document. @POST(path: '/ClientLog/Document', optionalBody: true) - Future> - _clientLogDocumentPost({@Body() required Object? body}); + Future> _clientLogDocumentPost({@Body() required Object? body}); ///Creates a new collection. ///@param name The name of the collection. @@ -2010,8 +2007,7 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets a default MetadataOptions object. - Future> - systemConfigurationMetadataOptionsDefaultGet() { + Future> systemConfigurationMetadataOptionsDefaultGet() { generatedMapping.putIfAbsent( MetadataOptions, () => MetadataOptions.fromJsonFactory, @@ -2022,8 +2018,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a default MetadataOptions object. @GET(path: '/System/Configuration/MetadataOptions/Default') - Future> - _systemConfigurationMetadataOptionsDefaultGet(); + Future> _systemConfigurationMetadataOptionsDefaultGet(); ///Gets a dashboard configuration page. ///@param name The name of the page. @@ -2040,8 +2035,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. - Future>> - webConfigurationPagesGet({bool? enableInMainMenu}) { + Future>> webConfigurationPagesGet({bool? enableInMainMenu}) { generatedMapping.putIfAbsent( ConfigurationPageInfo, () => ConfigurationPageInfo.fromJsonFactory, @@ -2053,8 +2047,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. @GET(path: '/web/ConfigurationPages') - Future>> - _webConfigurationPagesGet({ + Future>> _webConfigurationPagesGet({ @Query('enableInMainMenu') bool? enableInMainMenu, }); @@ -2150,8 +2143,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param displayPreferencesId Display preferences id. ///@param userId User id. ///@param client Client. - Future> - displayPreferencesDisplayPreferencesIdGet({ + Future> displayPreferencesDisplayPreferencesIdGet({ required String? displayPreferencesId, String? userId, required String? $client, @@ -2173,8 +2165,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId User id. ///@param client Client. @GET(path: '/DisplayPreferences/{displayPreferencesId}') - Future> - _displayPreferencesDisplayPreferencesIdGet({ + Future> _displayPreferencesDisplayPreferencesIdGet({ @Path('displayPreferencesId') required String? displayPreferencesId, @Query('userId') String? userId, @Query('client') required String? $client, @@ -2266,8 +2257,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param context Optional. The MediaBrowser.Model.Dlna.EncodingContext. ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. - Future> - audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> audioItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -2305,8 +2295,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? height, int? videoBitRate, int? subtitleStreamIndex, - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - subtitleMethod, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -2441,8 +2430,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. @GET(path: '/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}') - Future> - _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -3025,8 +3013,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, }); @@ -3293,8 +3280,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, }); @@ -3356,8 +3342,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. - Future> - videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> videosItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -3396,8 +3381,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? maxHeight, int? videoBitRate, int? subtitleStreamIndex, - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - subtitleMethod, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -3537,8 +3521,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. @GET(path: '/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}') - Future> - _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -3595,8 +3578,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('context') String? context, @Query('streamOptions') Object? streamOptions, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a hls live stream. @@ -3878,8 +3860,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('maxHeight') int? maxHeight, @Query('enableSubtitlesInManifest') bool? enableSubtitlesInManifest, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video stream using HTTP live streaming. @@ -4151,8 +4132,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('context') String? context, @Query('streamOptions') Object? streamOptions, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video hls playlist stream. @@ -4431,12 +4411,10 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableTrickplay') bool? enableTrickplay, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video hls playlist stream. @@ -4715,17 +4693,14 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableTrickplay') bool? enableTrickplay, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Get Default directory browser. - Future> - environmentDefaultDirectoryBrowserGet() { + Future> environmentDefaultDirectoryBrowserGet() { generatedMapping.putIfAbsent( DefaultDirectoryBrowserInfoDto, () => DefaultDirectoryBrowserInfoDto.fromJsonFactory, @@ -4736,15 +4711,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get Default directory browser. @GET(path: '/Environment/DefaultDirectoryBrowser') - Future> - _environmentDefaultDirectoryBrowserGet(); + Future> _environmentDefaultDirectoryBrowserGet(); ///Gets the contents of a given directory in the file system. ///@param path The path. ///@param includeFiles An optional filter to include or exclude files from the results. true/false. ///@param includeDirectories An optional filter to include or exclude folders from the results. true/false. - Future>> - environmentDirectoryContentsGet({ + Future>> environmentDirectoryContentsGet({ required String? path, bool? includeFiles, bool? includeDirectories, @@ -4766,8 +4739,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param includeFiles An optional filter to include or exclude files from the results. true/false. ///@param includeDirectories An optional filter to include or exclude folders from the results. true/false. @GET(path: '/Environment/DirectoryContents') - Future>> - _environmentDirectoryContentsGet({ + Future>> _environmentDirectoryContentsGet({ @Query('path') required String? path, @Query('includeFiles') bool? includeFiles, @Query('includeDirectories') bool? includeDirectories, @@ -4789,8 +4761,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets network paths. @deprecated - Future>> - environmentNetworkSharesGet() { + Future>> environmentNetworkSharesGet() { generatedMapping.putIfAbsent( FileSystemEntryInfo, () => FileSystemEntryInfo.fromJsonFactory, @@ -4802,8 +4773,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets network paths. @deprecated @GET(path: '/Environment/NetworkShares') - Future>> - _environmentNetworkSharesGet(); + Future>> _environmentNetworkSharesGet(); ///Gets the parent path of a given path. ///@param path The path. @@ -5117,8 +5087,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param playlistId The playlist id. ///@param segmentId The segment id. ///@param segmentContainer The segment container. - Future> - videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ required String? itemId, required String? playlistId, required String? segmentId, @@ -5138,8 +5107,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param segmentId The segment id. ///@param segmentContainer The segment container. @GET(path: '/Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}') - Future> - _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required String? segmentId, @@ -6085,8 +6053,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageIndex The image index. Future itemsItemIdImagesImageTypeImageIndexDelete({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? - imageType, + required enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? imageType, required int? imageIndex, }) { return _itemsItemIdImagesImageTypeImageIndexDelete( @@ -6353,10 +6320,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. ///@param imageIndex Image index. Future> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ required String? itemId, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - imageType, + imageType, required int? maxWidth, required int? maxHeight, int? width, @@ -6366,7 +6333,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillHeight, required String? tag, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - format, + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6418,7 +6385,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}', ) Future> - _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ + _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @Path('maxWidth') required int? maxWidth, @@ -6457,10 +6424,11 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. ///@param imageIndex Image index. Future> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - imageType, + required enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? + imageType, required int? maxWidth, required int? maxHeight, int? width, @@ -6470,7 +6438,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillHeight, required String? tag, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - format, + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6522,7 +6490,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}', ) Future> - _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ + _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @Path('maxWidth') required int? maxWidth, @@ -6549,8 +6517,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param newIndex New image index. Future itemsItemIdImagesImageTypeImageIndexIndexPost({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? - imageType, + required enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? imageType, required int? imageIndex, required int? newIndex, }) { @@ -6792,8 +6759,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. Future> musicGenresNameImagesImageTypeImageIndexGet({ required String? name, - required enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? - imageType, + required enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? format, @@ -6850,8 +6816,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. @GET(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') - Future> - _musicGenresNameImagesImageTypeImageIndexGet({ + Future> _musicGenresNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -6889,11 +6854,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param blur Optional. Blur image. ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. - Future> - musicGenresNameImagesImageTypeImageIndexHead({ + Future> musicGenresNameImagesImageTypeImageIndexHead({ required String? name, - required enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? - imageType, + required enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? format, @@ -6950,8 +6913,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. @HEAD(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') - Future> - _musicGenresNameImagesImageTypeImageIndexHead({ + Future> _musicGenresNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -8068,8 +8030,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. Include user data. ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. - Future> - musicGenresNameInstantMixGet({ + Future> musicGenresNameInstantMixGet({ required String? name, String? userId, int? limit, @@ -8106,8 +8067,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/MusicGenres/{name}/InstantMix') - Future> - _musicGenresNameInstantMixGet({ + Future> _musicGenresNameInstantMixGet({ @Path('name') required String? name, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8184,8 +8144,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. Include user data. ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. - Future> - playlistsItemIdInstantMixGet({ + Future> playlistsItemIdInstantMixGet({ required String? itemId, String? userId, int? limit, @@ -8222,8 +8181,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/Playlists/{itemId}/InstantMix') - Future> - _playlistsItemIdInstantMixGet({ + Future> _playlistsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8307,8 +8265,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get the item's external id info. ///@param itemId Item id. @GET(path: '/Items/{itemId}/ExternalIdInfos') - Future>> - _itemsItemIdExternalIdInfosGet({@Path('itemId') required String? itemId}); + Future>> _itemsItemIdExternalIdInfosGet( + {@Path('itemId') required String? itemId}); ///Applies search criteria to an item and refreshes metadata. ///@param itemId Item id. @@ -8349,14 +8307,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get book remote search. @POST(path: '/Items/RemoteSearch/Book', optionalBody: true) - Future>> - _itemsRemoteSearchBookPost({ + Future>> _itemsRemoteSearchBookPost({ @Body() required BookInfoRemoteSearchQuery? body, }); ///Get box set remote search. - Future>> - itemsRemoteSearchBoxSetPost({required BoxSetInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchBoxSetPost( + {required BoxSetInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8367,14 +8324,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get box set remote search. @POST(path: '/Items/RemoteSearch/BoxSet', optionalBody: true) - Future>> - _itemsRemoteSearchBoxSetPost({ + Future>> _itemsRemoteSearchBoxSetPost({ @Body() required BoxSetInfoRemoteSearchQuery? body, }); ///Get movie remote search. - Future>> - itemsRemoteSearchMoviePost({required MovieInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchMoviePost( + {required MovieInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8385,14 +8341,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get movie remote search. @POST(path: '/Items/RemoteSearch/Movie', optionalBody: true) - Future>> - _itemsRemoteSearchMoviePost({ + Future>> _itemsRemoteSearchMoviePost({ @Body() required MovieInfoRemoteSearchQuery? body, }); ///Get music album remote search. - Future>> - itemsRemoteSearchMusicAlbumPost({required AlbumInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchMusicAlbumPost( + {required AlbumInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8403,14 +8358,12 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music album remote search. @POST(path: '/Items/RemoteSearch/MusicAlbum', optionalBody: true) - Future>> - _itemsRemoteSearchMusicAlbumPost({ + Future>> _itemsRemoteSearchMusicAlbumPost({ @Body() required AlbumInfoRemoteSearchQuery? body, }); ///Get music artist remote search. - Future>> - itemsRemoteSearchMusicArtistPost({ + Future>> itemsRemoteSearchMusicArtistPost({ required ArtistInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8423,14 +8376,12 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music artist remote search. @POST(path: '/Items/RemoteSearch/MusicArtist', optionalBody: true) - Future>> - _itemsRemoteSearchMusicArtistPost({ + Future>> _itemsRemoteSearchMusicArtistPost({ @Body() required ArtistInfoRemoteSearchQuery? body, }); ///Get music video remote search. - Future>> - itemsRemoteSearchMusicVideoPost({ + Future>> itemsRemoteSearchMusicVideoPost({ required MusicVideoInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8443,14 +8394,12 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music video remote search. @POST(path: '/Items/RemoteSearch/MusicVideo', optionalBody: true) - Future>> - _itemsRemoteSearchMusicVideoPost({ + Future>> _itemsRemoteSearchMusicVideoPost({ @Body() required MusicVideoInfoRemoteSearchQuery? body, }); ///Get person remote search. - Future>> - itemsRemoteSearchPersonPost({ + Future>> itemsRemoteSearchPersonPost({ required PersonLookupInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8463,14 +8412,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get person remote search. @POST(path: '/Items/RemoteSearch/Person', optionalBody: true) - Future>> - _itemsRemoteSearchPersonPost({ + Future>> _itemsRemoteSearchPersonPost({ @Body() required PersonLookupInfoRemoteSearchQuery? body, }); ///Get series remote search. - Future>> - itemsRemoteSearchSeriesPost({required SeriesInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchSeriesPost( + {required SeriesInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8481,14 +8429,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get series remote search. @POST(path: '/Items/RemoteSearch/Series', optionalBody: true) - Future>> - _itemsRemoteSearchSeriesPost({ + Future>> _itemsRemoteSearchSeriesPost({ @Body() required SeriesInfoRemoteSearchQuery? body, }); ///Get trailer remote search. - Future>> - itemsRemoteSearchTrailerPost({required TrailerInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchTrailerPost( + {required TrailerInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8499,8 +8446,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get trailer remote search. @POST(path: '/Items/RemoteSearch/Trailer', optionalBody: true) - Future>> - _itemsRemoteSearchTrailerPost({ + Future>> _itemsRemoteSearchTrailerPost({ @Body() required TrailerInfoRemoteSearchQuery? body, }); @@ -9374,8 +9320,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId @deprecated @GET(path: '/Items/{itemId}/CriticReviews') - Future> - _itemsItemIdCriticReviewsGet({@Path('itemId') required String? itemId}); + Future> _itemsItemIdCriticReviewsGet( + {@Path('itemId') required String? itemId}); ///Downloads item media. ///@param itemId The item id. @@ -9599,8 +9545,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the library options info. ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. - Future> - librariesAvailableOptionsGet({ + Future> librariesAvailableOptionsGet({ enums.LibrariesAvailableOptionsGetLibraryContentType? libraryContentType, bool? isNewLibrary, }) { @@ -9619,8 +9564,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. @GET(path: '/Libraries/AvailableOptions') - Future> - _librariesAvailableOptionsGet({ + Future> _librariesAvailableOptionsGet({ @Query('libraryContentType') String? libraryContentType, @Query('isNewLibrary') bool? isNewLibrary, }); @@ -10039,8 +9983,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get channel mapping options. ///@param providerId Provider id. - Future> - liveTvChannelMappingOptionsGet({String? providerId}) { + Future> liveTvChannelMappingOptionsGet({String? providerId}) { generatedMapping.putIfAbsent( ChannelMappingOptionsDto, () => ChannelMappingOptionsDto.fromJsonFactory, @@ -10052,8 +9995,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get channel mapping options. ///@param providerId Provider id. @GET(path: '/LiveTv/ChannelMappingOptions') - Future> - _liveTvChannelMappingOptionsGet({@Query('providerId') String? providerId}); + Future> _liveTvChannelMappingOptionsGet( + {@Query('providerId') String? providerId}); ///Set channel mappings. Future> liveTvChannelMappingsPost({ @@ -10290,8 +10233,7 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets default listings provider info. - Future> - liveTvListingProvidersDefaultGet() { + Future> liveTvListingProvidersDefaultGet() { generatedMapping.putIfAbsent( ListingsProviderInfo, () => ListingsProviderInfo.fromJsonFactory, @@ -10302,8 +10244,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets default listings provider info. @GET(path: '/LiveTv/ListingProviders/Default') - Future> - _liveTvListingProvidersDefaultGet(); + Future> _liveTvListingProvidersDefaultGet(); ///Gets available lineups. ///@param id Provider id. @@ -10340,15 +10281,13 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets available countries. - Future> - liveTvListingProvidersSchedulesDirectCountriesGet() { + Future> liveTvListingProvidersSchedulesDirectCountriesGet() { return _liveTvListingProvidersSchedulesDirectCountriesGet(); } ///Gets available countries. @GET(path: '/LiveTv/ListingProviders/SchedulesDirect/Countries') - Future> - _liveTvListingProvidersSchedulesDirectCountriesGet(); + Future> _liveTvListingProvidersSchedulesDirectCountriesGet(); ///Gets a live tv recording stream. ///@param recordingId Recording id. @@ -10368,8 +10307,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a live tv channel stream. ///@param streamId Stream id. ///@param container Container type. - Future> - liveTvLiveStreamFilesStreamIdStreamContainerGet({ + Future> liveTvLiveStreamFilesStreamIdStreamContainerGet({ required String? streamId, required String? container, }) { @@ -10383,8 +10321,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamId Stream id. ///@param container Container type. @GET(path: '/LiveTv/LiveStreamFiles/{streamId}/stream.{container}') - Future> - _liveTvLiveStreamFilesStreamIdStreamContainerGet({ + Future> _liveTvLiveStreamFilesStreamIdStreamContainerGet({ @Path('streamId') required String? streamId, @Path('container') required String? container, }); @@ -10601,8 +10538,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param fields Optional. Specify additional fields of information to return in the output. ///@param enableUserData Optional. include user data. ///@param enableTotalRecordCount Retrieve total record count. - Future> - liveTvProgramsRecommendedGet({ + Future> liveTvProgramsRecommendedGet({ String? userId, int? startIndex, int? limit, @@ -10666,8 +10602,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. include user data. ///@param enableTotalRecordCount Retrieve total record count. @GET(path: '/LiveTv/Programs/Recommended') - Future> - _liveTvProgramsRecommendedGet({ + Future> _liveTvProgramsRecommendedGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -10992,8 +10927,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets live tv series timers. ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. - Future> - liveTvSeriesTimersGet({ + Future> liveTvSeriesTimersGet({ String? sortBy, enums.LiveTvSeriesTimersGetSortOrder? sortOrder, }) { @@ -11012,8 +10946,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. @GET(path: '/LiveTv/SeriesTimers') - Future> - _liveTvSeriesTimersGet({ + Future> _liveTvSeriesTimersGet({ @Query('sortBy') String? sortBy, @Query('sortOrder') String? sortOrder, }); @@ -11338,8 +11271,7 @@ abstract class JellyfinOpenApi extends ChopperService { Future>> _localizationOptionsGet(); ///Gets known parental ratings. - Future>> - localizationParentalRatingsGet() { + Future>> localizationParentalRatingsGet() { generatedMapping.putIfAbsent( ParentalRating, () => ParentalRating.fromJsonFactory, @@ -11350,8 +11282,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets known parental ratings. @GET(path: '/Localization/ParentalRatings') - Future>> - _localizationParentalRatingsGet(); + Future>> _localizationParentalRatingsGet(); ///Gets an item's lyrics. ///@param itemId Item id. @@ -11412,8 +11343,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Search remote lyrics. ///@param itemId The item id. - Future>> - audioItemIdRemoteSearchLyricsGet({required String? itemId}) { + Future>> audioItemIdRemoteSearchLyricsGet({required String? itemId}) { generatedMapping.putIfAbsent( RemoteLyricInfoDto, () => RemoteLyricInfoDto.fromJsonFactory, @@ -11425,8 +11355,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Search remote lyrics. ///@param itemId The item id. @GET(path: '/Audio/{itemId}/RemoteSearch/Lyrics') - Future>> - _audioItemIdRemoteSearchLyricsGet({@Path('itemId') required String? itemId}); + Future>> _audioItemIdRemoteSearchLyricsGet( + {@Path('itemId') required String? itemId}); ///Downloads a remote lyric. ///@param itemId The item id. @@ -11682,8 +11612,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('itemId') String? itemId, @Query('enableDirectPlay') bool? enableDirectPlay, @Query('enableDirectStream') bool? enableDirectStream, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, @Body() required OpenLiveStreamDto? body, }); @@ -12645,8 +12574,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/Playlists/{playlistId}/Items') - Future> - _playlistsPlaylistIdItemsGet({ + Future> _playlistsPlaylistIdItemsGet({ @Path('playlistId') required String? playlistId, @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -12690,8 +12618,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist's users. ///@param playlistId The playlist id. - Future>> - playlistsPlaylistIdUsersGet({required String? playlistId}) { + Future>> playlistsPlaylistIdUsersGet({required String? playlistId}) { generatedMapping.putIfAbsent( PlaylistUserPermissions, () => PlaylistUserPermissions.fromJsonFactory, @@ -12703,16 +12630,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist's users. ///@param playlistId The playlist id. @GET(path: '/Playlists/{playlistId}/Users') - Future>> - _playlistsPlaylistIdUsersGet({ + Future>> _playlistsPlaylistIdUsersGet({ @Path('playlistId') required String? playlistId, }); ///Get a playlist user. ///@param playlistId The playlist id. ///@param userId The user id. - Future> - playlistsPlaylistIdUsersUserIdGet({ + Future> playlistsPlaylistIdUsersUserIdGet({ required String? playlistId, required String? userId, }) { @@ -12731,8 +12656,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param playlistId The playlist id. ///@param userId The user id. @GET(path: '/Playlists/{playlistId}/Users/{userId}') - Future> - _playlistsPlaylistIdUsersUserIdGet({ + Future> _playlistsPlaylistIdUsersUserIdGet({ @Path('playlistId') required String? playlistId, @Path('userId') required String? userId, }); @@ -13179,8 +13103,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets plugin configuration. ///@param pluginId Plugin id. - Future> - pluginsPluginIdConfigurationGet({required String? pluginId}) { + Future> pluginsPluginIdConfigurationGet({required String? pluginId}) { generatedMapping.putIfAbsent( BasePluginConfiguration, () => BasePluginConfiguration.fromJsonFactory, @@ -13192,8 +13115,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets plugin configuration. ///@param pluginId Plugin id. @GET(path: '/Plugins/{pluginId}/Configuration') - Future> - _pluginsPluginIdConfigurationGet({ + Future> _pluginsPluginIdConfigurationGet({ @Path('pluginId') required String? pluginId, }); @@ -13365,8 +13287,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available remote image providers for an item. ///@param itemId Item Id. - Future>> - itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { + Future>> itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { generatedMapping.putIfAbsent( ImageProviderInfo, () => ImageProviderInfo.fromJsonFactory, @@ -13378,8 +13299,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available remote image providers for an item. ///@param itemId Item Id. @GET(path: '/Items/{itemId}/RemoteImages/Providers') - Future>> - _itemsItemIdRemoteImagesProvidersGet({ + Future>> _itemsItemIdRemoteImagesProvidersGet({ @Path('itemId') required String? itemId, }); @@ -14193,8 +14113,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId The item id. ///@param language The language of the subtitles. ///@param isPerfectMatch Optional. Only show subtitles which are a perfect match. - Future>> - itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> itemsItemIdRemoteSearchSubtitlesLanguageGet({ required String? itemId, required String? language, bool? isPerfectMatch, @@ -14216,8 +14135,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param language The language of the subtitles. ///@param isPerfectMatch Optional. Only show subtitles which are a perfect match. @GET(path: '/Items/{itemId}/RemoteSearch/Subtitles/{language}') - Future>> - _itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> _itemsItemIdRemoteSearchSubtitlesLanguageGet({ @Path('itemId') required String? itemId, @Path('language') required String? language, @Query('isPerfectMatch') bool? isPerfectMatch, @@ -14268,8 +14186,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param index The subtitle stream index. ///@param mediaSourceId The media source id. ///@param segmentLength The subtitle segment length. - Future> - videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ required String? itemId, required int? index, required String? mediaSourceId, @@ -14291,8 +14208,7 @@ abstract class JellyfinOpenApi extends ChopperService { @GET( path: '/Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8', ) - Future> - _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ @Path('itemId') required String? itemId, @Path('index') required int? index, @Path('mediaSourceId') required String? mediaSourceId, @@ -14350,7 +14266,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param copyTimestamps Optional. Whether to copy the timestamps. ///@param addVttTimeMap Optional. Whether to add a VTT time map. Future> - videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ + videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -14401,7 +14317,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/{routeStartPositionTicks}/Stream.{routeFormat}', ) Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ + _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ @Path('routeItemId') required String? routeItemId, @Path('routeMediaSourceId') required String? routeMediaSourceId, @Path('routeIndex') required int? routeIndex, @@ -14430,8 +14346,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param copyTimestamps Optional. Whether to copy the timestamps. ///@param addVttTimeMap Optional. Whether to add a VTT time map. ///@param startPositionTicks The start position of the subtitle in ticks. - Future> - videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -14475,11 +14390,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param addVttTimeMap Optional. Whether to add a VTT time map. ///@param startPositionTicks The start position of the subtitle in ticks. @GET( - path: - '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}', + path: '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}', ) - Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ @Path('routeItemId') required String? routeItemId, @Path('routeMediaSourceId') required String? routeMediaSourceId, @Path('routeIndex') required int? routeIndex, @@ -16077,8 +15990,8 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Authenticates a user with quick connect. - Future> - usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { + Future> usersAuthenticateWithQuickConnectPost( + {required QuickConnectDto? body}) { generatedMapping.putIfAbsent( AuthenticationResult, () => AuthenticationResult.fromJsonFactory, @@ -16089,8 +16002,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Authenticates a user with quick connect. @POST(path: '/Users/AuthenticateWithQuickConnect', optionalBody: true) - Future> - _usersAuthenticateWithQuickConnectPost({ + Future> _usersAuthenticateWithQuickConnectPost({ @Body() required QuickConnectDto? body, }); @@ -16506,8 +16418,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get user view grouping options. ///@param userId User id. - Future>> - userViewsGroupingOptionsGet({String? userId}) { + Future>> userViewsGroupingOptionsGet({String? userId}) { generatedMapping.putIfAbsent( SpecialViewOptionDto, () => SpecialViewOptionDto.fromJsonFactory, @@ -16519,15 +16430,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get user view grouping options. ///@param userId User id. @GET(path: '/UserViews/GroupingOptions') - Future>> - _userViewsGroupingOptionsGet({@Query('userId') String? userId}); + Future>> _userViewsGroupingOptionsGet({@Query('userId') String? userId}); ///Get video attachment. ///@param videoId Video ID. ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. - Future> - videosVideoIdMediaSourceIdAttachmentsIndexGet({ + Future> videosVideoIdMediaSourceIdAttachmentsIndexGet({ required String? videoId, required String? mediaSourceId, required int? index, @@ -16544,8 +16453,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. @GET(path: '/Videos/{videoId}/{mediaSourceId}/Attachments/{index}') - Future> - _videosVideoIdMediaSourceIdAttachmentsIndexGet({ + Future> _videosVideoIdMediaSourceIdAttachmentsIndexGet({ @Path('videoId') required String? videoId, @Path('mediaSourceId') required String? mediaSourceId, @Path('index') required int? index, @@ -16554,8 +16462,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets additional parts for a video. ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. - Future> - videosItemIdAdditionalPartsGet({required String? itemId, String? userId}) { + Future> videosItemIdAdditionalPartsGet( + {required String? itemId, String? userId}) { generatedMapping.putIfAbsent( BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory, @@ -16568,8 +16476,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. @GET(path: '/Videos/{itemId}/AdditionalParts') - Future> - _videosItemIdAdditionalPartsGet({ + Future> _videosItemIdAdditionalPartsGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, }); @@ -17819,8 +17726,7 @@ class AccessSchedule { this.endHour, }); - factory AccessSchedule.fromJson(Map json) => - _$AccessScheduleFromJson(json); + factory AccessSchedule.fromJson(Map json) => _$AccessScheduleFromJson(json); static const toJsonFactory = _$AccessScheduleToJson; Map toJson() => _$AccessScheduleToJson(this); @@ -17846,10 +17752,8 @@ class AccessSchedule { bool operator ==(Object other) { return identical(this, other) || (other is AccessSchedule && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.dayOfWeek, dayOfWeek) || const DeepCollectionEquality().equals( other.dayOfWeek, @@ -17860,8 +17764,7 @@ class AccessSchedule { other.startHour, startHour, )) && - (identical(other.endHour, endHour) || - const DeepCollectionEquality().equals(other.endHour, endHour))); + (identical(other.endHour, endHour) || const DeepCollectionEquality().equals(other.endHour, endHour))); } @override @@ -17926,8 +17829,7 @@ class ActivityLogEntry { this.severity, }); - factory ActivityLogEntry.fromJson(Map json) => - _$ActivityLogEntryFromJson(json); + factory ActivityLogEntry.fromJson(Map json) => _$ActivityLogEntryFromJson(json); static const toJsonFactory = _$ActivityLogEntryToJson; Map toJson() => _$ActivityLogEntryToJson(this); @@ -17964,10 +17866,8 @@ class ActivityLogEntry { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntry && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -17978,14 +17878,10 @@ class ActivityLogEntry { other.shortOverview, shortOverview, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.date, date) || - const DeepCollectionEquality().equals(other.date, date)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.date, date) || const DeepCollectionEquality().equals(other.date, date)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userPrimaryImageTag, userPrimaryImageTag) || const DeepCollectionEquality().equals( other.userPrimaryImageTag, @@ -18059,16 +17955,12 @@ extension $ActivityLogEntryExtension on ActivityLogEntry { id: (id != null ? id.value : this.id), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), - shortOverview: (shortOverview != null - ? shortOverview.value - : this.shortOverview), + shortOverview: (shortOverview != null ? shortOverview.value : this.shortOverview), type: (type != null ? type.value : this.type), itemId: (itemId != null ? itemId.value : this.itemId), date: (date != null ? date.value : this.date), userId: (userId != null ? userId.value : this.userId), - userPrimaryImageTag: (userPrimaryImageTag != null - ? userPrimaryImageTag.value - : this.userPrimaryImageTag), + userPrimaryImageTag: (userPrimaryImageTag != null ? userPrimaryImageTag.value : this.userPrimaryImageTag), severity: (severity != null ? severity.value : this.severity), ); } @@ -18078,8 +17970,7 @@ extension $ActivityLogEntryExtension on ActivityLogEntry { class ActivityLogEntryMessage { const ActivityLogEntryMessage({this.data, this.messageId, this.messageType}); - factory ActivityLogEntryMessage.fromJson(Map json) => - _$ActivityLogEntryMessageFromJson(json); + factory ActivityLogEntryMessage.fromJson(Map json) => _$ActivityLogEntryMessageFromJson(json); static const toJsonFactory = _$ActivityLogEntryMessageToJson; Map toJson() => _$ActivityLogEntryMessageToJson(this); @@ -18099,8 +17990,7 @@ class ActivityLogEntryMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentry, @@ -18112,8 +18002,7 @@ class ActivityLogEntryMessage { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -18193,8 +18082,7 @@ class ActivityLogEntryQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -18238,9 +18126,7 @@ extension $ActivityLogEntryQueryResultExtension on ActivityLogEntryQueryResult { }) { return ActivityLogEntryQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -18265,8 +18151,7 @@ class ActivityLogEntryStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentrystart, @@ -18278,8 +18163,7 @@ class ActivityLogEntryStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryStartMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -18297,8 +18181,7 @@ class ActivityLogEntryStartMessage { runtimeType.hashCode; } -extension $ActivityLogEntryStartMessageExtension - on ActivityLogEntryStartMessage { +extension $ActivityLogEntryStartMessageExtension on ActivityLogEntryStartMessage { ActivityLogEntryStartMessage copyWith({ String? data, enums.SessionMessageType? messageType, @@ -18337,8 +18220,7 @@ class ActivityLogEntryStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentrystop, @@ -18361,8 +18243,7 @@ class ActivityLogEntryStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $ActivityLogEntryStopMessageExtension on ActivityLogEntryStopMessage { @@ -18387,8 +18268,7 @@ extension $ActivityLogEntryStopMessageExtension on ActivityLogEntryStopMessage { class AddVirtualFolderDto { const AddVirtualFolderDto({this.libraryOptions}); - factory AddVirtualFolderDto.fromJson(Map json) => - _$AddVirtualFolderDtoFromJson(json); + factory AddVirtualFolderDto.fromJson(Map json) => _$AddVirtualFolderDtoFromJson(json); static const toJsonFactory = _$AddVirtualFolderDtoToJson; Map toJson() => _$AddVirtualFolderDtoToJson(this); @@ -18412,9 +18292,7 @@ class AddVirtualFolderDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(libraryOptions) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(libraryOptions) ^ runtimeType.hashCode; } extension $AddVirtualFolderDtoExtension on AddVirtualFolderDto { @@ -18428,9 +18306,7 @@ extension $AddVirtualFolderDtoExtension on AddVirtualFolderDto { Wrapped? libraryOptions, }) { return AddVirtualFolderDto( - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions), + libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), ); } } @@ -18454,8 +18330,7 @@ class AlbumInfo { this.songInfos, }); - factory AlbumInfo.fromJson(Map json) => - _$AlbumInfoFromJson(json); + factory AlbumInfo.fromJson(Map json) => _$AlbumInfoFromJson(json); static const toJsonFactory = _$AlbumInfoToJson; Map toJson() => _$AlbumInfoToJson(this); @@ -18494,15 +18369,13 @@ class AlbumInfo { bool operator ==(Object other) { return identical(this, other) || (other is AlbumInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -18518,8 +18391,7 @@ class AlbumInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -18632,32 +18504,18 @@ extension $AlbumInfoExtension on AlbumInfo { }) { return AlbumInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: (albumArtists != null - ? albumArtists.value - : this.albumArtists), - artistProviderIds: (artistProviderIds != null - ? artistProviderIds.value - : this.artistProviderIds), + albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), + artistProviderIds: (artistProviderIds != null ? artistProviderIds.value : this.artistProviderIds), songInfos: (songInfos != null ? songInfos.value : this.songInfos), ); } @@ -18672,8 +18530,7 @@ class AlbumInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory AlbumInfoRemoteSearchQuery.fromJson(Map json) => - _$AlbumInfoRemoteSearchQueryFromJson(json); + factory AlbumInfoRemoteSearchQuery.fromJson(Map json) => _$AlbumInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$AlbumInfoRemoteSearchQueryToJson; Map toJson() => _$AlbumInfoRemoteSearchQueryToJson(this); @@ -18697,8 +18554,7 @@ class AlbumInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -18737,8 +18593,7 @@ extension $AlbumInfoRemoteSearchQueryExtension on AlbumInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -18751,12 +18606,9 @@ extension $AlbumInfoRemoteSearchQueryExtension on AlbumInfoRemoteSearchQuery { return AlbumInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -18769,8 +18621,7 @@ class AllThemeMediaResult { this.soundtrackSongsResult, }); - factory AllThemeMediaResult.fromJson(Map json) => - _$AllThemeMediaResultFromJson(json); + factory AllThemeMediaResult.fromJson(Map json) => _$AllThemeMediaResultFromJson(json); static const toJsonFactory = _$AllThemeMediaResultToJson; Map toJson() => _$AllThemeMediaResultToJson(this); @@ -18824,8 +18675,7 @@ extension $AllThemeMediaResultExtension on AllThemeMediaResult { return AllThemeMediaResult( themeVideosResult: themeVideosResult ?? this.themeVideosResult, themeSongsResult: themeSongsResult ?? this.themeSongsResult, - soundtrackSongsResult: - soundtrackSongsResult ?? this.soundtrackSongsResult, + soundtrackSongsResult: soundtrackSongsResult ?? this.soundtrackSongsResult, ); } @@ -18835,15 +18685,9 @@ extension $AllThemeMediaResultExtension on AllThemeMediaResult { Wrapped? soundtrackSongsResult, }) { return AllThemeMediaResult( - themeVideosResult: (themeVideosResult != null - ? themeVideosResult.value - : this.themeVideosResult), - themeSongsResult: (themeSongsResult != null - ? themeSongsResult.value - : this.themeSongsResult), - soundtrackSongsResult: (soundtrackSongsResult != null - ? soundtrackSongsResult.value - : this.soundtrackSongsResult), + themeVideosResult: (themeVideosResult != null ? themeVideosResult.value : this.themeVideosResult), + themeSongsResult: (themeSongsResult != null ? themeSongsResult.value : this.themeSongsResult), + soundtrackSongsResult: (soundtrackSongsResult != null ? soundtrackSongsResult.value : this.soundtrackSongsResult), ); } } @@ -18865,8 +18709,7 @@ class ArtistInfo { this.songInfos, }); - factory ArtistInfo.fromJson(Map json) => - _$ArtistInfoFromJson(json); + factory ArtistInfo.fromJson(Map json) => _$ArtistInfoFromJson(json); static const toJsonFactory = _$ArtistInfoToJson; Map toJson() => _$ArtistInfoToJson(this); @@ -18901,15 +18744,13 @@ class ArtistInfo { bool operator ==(Object other) { return identical(this, other) || (other is ArtistInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -18925,8 +18766,7 @@ class ArtistInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -19021,25 +18861,15 @@ extension $ArtistInfoExtension on ArtistInfo { }) { return ArtistInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), songInfos: (songInfos != null ? songInfos.value : this.songInfos), ); @@ -19080,8 +18910,7 @@ class ArtistInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -19120,8 +18949,7 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -19134,12 +18962,9 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { return ArtistInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -19148,8 +18973,7 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { class AuthenticateUserByName { const AuthenticateUserByName({this.username, this.pw}); - factory AuthenticateUserByName.fromJson(Map json) => - _$AuthenticateUserByNameFromJson(json); + factory AuthenticateUserByName.fromJson(Map json) => _$AuthenticateUserByNameFromJson(json); static const toJsonFactory = _$AuthenticateUserByNameToJson; Map toJson() => _$AuthenticateUserByNameToJson(this); @@ -19169,8 +18993,7 @@ class AuthenticateUserByName { other.username, username, )) && - (identical(other.pw, pw) || - const DeepCollectionEquality().equals(other.pw, pw))); + (identical(other.pw, pw) || const DeepCollectionEquality().equals(other.pw, pw))); } @override @@ -19178,9 +19001,7 @@ class AuthenticateUserByName { @override int get hashCode => - const DeepCollectionEquality().hash(username) ^ - const DeepCollectionEquality().hash(pw) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(username) ^ const DeepCollectionEquality().hash(pw) ^ runtimeType.hashCode; } extension $AuthenticateUserByNameExtension on AuthenticateUserByName { @@ -19219,8 +19040,7 @@ class AuthenticationInfo { this.userName, }); - factory AuthenticationInfo.fromJson(Map json) => - _$AuthenticationInfoFromJson(json); + factory AuthenticationInfo.fromJson(Map json) => _$AuthenticationInfoFromJson(json); static const toJsonFactory = _$AuthenticationInfoToJson; Map toJson() => _$AuthenticationInfoToJson(this); @@ -19255,8 +19075,7 @@ class AuthenticationInfo { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.accessToken, accessToken) || const DeepCollectionEquality().equals( other.accessToken, @@ -19282,8 +19101,7 @@ class AuthenticationInfo { other.deviceName, deviceName, )) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.isActive, isActive) || const DeepCollectionEquality().equals( other.isActive, @@ -19387,9 +19205,7 @@ extension $AuthenticationInfoExtension on AuthenticationInfo { isActive: (isActive != null ? isActive.value : this.isActive), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), dateRevoked: (dateRevoked != null ? dateRevoked.value : this.dateRevoked), - dateLastActivity: (dateLastActivity != null - ? dateLastActivity.value - : this.dateLastActivity), + dateLastActivity: (dateLastActivity != null ? dateLastActivity.value : this.dateLastActivity), userName: (userName != null ? userName.value : this.userName), ); } @@ -19425,8 +19241,7 @@ class AuthenticationInfoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationInfoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -19450,8 +19265,7 @@ class AuthenticationInfoQueryResult { runtimeType.hashCode; } -extension $AuthenticationInfoQueryResultExtension - on AuthenticationInfoQueryResult { +extension $AuthenticationInfoQueryResultExtension on AuthenticationInfoQueryResult { AuthenticationInfoQueryResult copyWith({ List? items, int? totalRecordCount, @@ -19471,9 +19285,7 @@ extension $AuthenticationInfoQueryResultExtension }) { return AuthenticationInfoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -19488,8 +19300,7 @@ class AuthenticationResult { this.serverId, }); - factory AuthenticationResult.fromJson(Map json) => - _$AuthenticationResultFromJson(json); + factory AuthenticationResult.fromJson(Map json) => _$AuthenticationResultFromJson(json); static const toJsonFactory = _$AuthenticationResultToJson; Map toJson() => _$AuthenticationResultToJson(this); @@ -19508,8 +19319,7 @@ class AuthenticationResult { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationResult && - (identical(other.user, user) || - const DeepCollectionEquality().equals(other.user, user)) && + (identical(other.user, user) || const DeepCollectionEquality().equals(other.user, user)) && (identical(other.sessionInfo, sessionInfo) || const DeepCollectionEquality().equals( other.sessionInfo, @@ -19579,8 +19389,7 @@ class BackupManifestDto { this.options, }); - factory BackupManifestDto.fromJson(Map json) => - _$BackupManifestDtoFromJson(json); + factory BackupManifestDto.fromJson(Map json) => _$BackupManifestDtoFromJson(json); static const toJsonFactory = _$BackupManifestDtoToJson; Map toJson() => _$BackupManifestDtoToJson(this); @@ -19616,10 +19425,8 @@ class BackupManifestDto { other.dateCreated, dateCreated, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.options, options) || - const DeepCollectionEquality().equals(other.options, options))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.options, options) || const DeepCollectionEquality().equals(other.options, options))); } @override @@ -19660,12 +19467,8 @@ extension $BackupManifestDtoExtension on BackupManifestDto { Wrapped? options, }) { return BackupManifestDto( - serverVersion: (serverVersion != null - ? serverVersion.value - : this.serverVersion), - backupEngineVersion: (backupEngineVersion != null - ? backupEngineVersion.value - : this.backupEngineVersion), + serverVersion: (serverVersion != null ? serverVersion.value : this.serverVersion), + backupEngineVersion: (backupEngineVersion != null ? backupEngineVersion.value : this.backupEngineVersion), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), path: (path != null ? path.value : this.path), options: (options != null ? options.value : this.options), @@ -19682,8 +19485,7 @@ class BackupOptionsDto { this.database, }); - factory BackupOptionsDto.fromJson(Map json) => - _$BackupOptionsDtoFromJson(json); + factory BackupOptionsDto.fromJson(Map json) => _$BackupOptionsDtoFromJson(json); static const toJsonFactory = _$BackupOptionsDtoToJson; Map toJson() => _$BackupOptionsDtoToJson(this); @@ -19770,8 +19572,7 @@ extension $BackupOptionsDtoExtension on BackupOptionsDto { class BackupRestoreRequestDto { const BackupRestoreRequestDto({this.archiveFileName}); - factory BackupRestoreRequestDto.fromJson(Map json) => - _$BackupRestoreRequestDtoFromJson(json); + factory BackupRestoreRequestDto.fromJson(Map json) => _$BackupRestoreRequestDtoFromJson(json); static const toJsonFactory = _$BackupRestoreRequestDtoToJson; Map toJson() => _$BackupRestoreRequestDtoToJson(this); @@ -19795,9 +19596,7 @@ class BackupRestoreRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(archiveFileName) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(archiveFileName) ^ runtimeType.hashCode; } extension $BackupRestoreRequestDtoExtension on BackupRestoreRequestDto { @@ -19809,9 +19608,7 @@ extension $BackupRestoreRequestDtoExtension on BackupRestoreRequestDto { BackupRestoreRequestDto copyWithWrapped({Wrapped? archiveFileName}) { return BackupRestoreRequestDto( - archiveFileName: (archiveFileName != null - ? archiveFileName.value - : this.archiveFileName), + archiveFileName: (archiveFileName != null ? archiveFileName.value : this.archiveFileName), ); } } @@ -19974,8 +19771,7 @@ class BaseItemDto { this.currentProgram, }); - factory BaseItemDto.fromJson(Map json) => - _$BaseItemDtoFromJson(json); + factory BaseItemDto.fromJson(Map json) => _$BaseItemDtoFromJson(json); static const toJsonFactory = _$BaseItemDtoToJson; Map toJson() => _$BaseItemDtoToJson(this); @@ -20421,8 +20217,7 @@ class BaseItemDto { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, @@ -20433,10 +20228,8 @@ class BaseItemDto { other.serverId, serverId, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.etag, etag) || - const DeepCollectionEquality().equals(other.etag, etag)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.etag, etag) || const DeepCollectionEquality().equals(other.etag, etag)) && (identical(other.sourceType, sourceType) || const DeepCollectionEquality().equals( other.sourceType, @@ -20561,8 +20354,7 @@ class BaseItemDto { other.productionLocations, productionLocations, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical( other.enableMediaSourceDisplay, enableMediaSourceDisplay, @@ -20601,8 +20393,7 @@ class BaseItemDto { other.taglines, taglines, )) && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && (identical(other.communityRating, communityRating) || const DeepCollectionEquality().equals( other.communityRating, @@ -20638,8 +20429,7 @@ class BaseItemDto { other.isPlaceHolder, isPlaceHolder, )) && - (identical(other.number, number) || - const DeepCollectionEquality().equals(other.number, number)) && + (identical(other.number, number) || const DeepCollectionEquality().equals(other.number, number)) && (identical(other.channelNumber, channelNumber) || const DeepCollectionEquality().equals( other.channelNumber, @@ -20670,8 +20460,7 @@ class BaseItemDto { other.providerIds, providerIds, )) && - (identical(other.isHD, isHD) || - const DeepCollectionEquality().equals(other.isHD, isHD)) && + (identical(other.isHD, isHD) || const DeepCollectionEquality().equals(other.isHD, isHD)) && (identical(other.isFolder, isFolder) || const DeepCollectionEquality().equals( other.isFolder, @@ -20682,10 +20471,8 @@ class BaseItemDto { other.parentId, parentId, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.people, people) || - const DeepCollectionEquality().equals(other.people, people)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.people, people) || const DeepCollectionEquality().equals(other.people, people)) && (identical(other.studios, studios) || const DeepCollectionEquality().equals( other.studios, @@ -20759,8 +20546,7 @@ class BaseItemDto { other.displayPreferencesId, displayPreferencesId, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.airTime, airTime) || const DeepCollectionEquality().equals( other.airTime, @@ -20771,8 +20557,7 @@ class BaseItemDto { other.airDays, airDays, )) && - (identical(other.tags, tags) || - const DeepCollectionEquality().equals(other.tags, tags)) && + (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && (identical( other.primaryImageAspectRatio, primaryImageAspectRatio, @@ -20791,8 +20576,7 @@ class BaseItemDto { other.artistItems, artistItems, )) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && (identical(other.collectionType, collectionType) || const DeepCollectionEquality().equals( other.collectionType, @@ -21006,10 +20790,8 @@ class BaseItemDto { other.lockData, lockData, )) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.cameraMake, cameraMake) || const DeepCollectionEquality().equals( other.cameraMake, @@ -21110,8 +20892,7 @@ class BaseItemDto { other.channelType, channelType, )) && - (identical(other.audio, audio) || - const DeepCollectionEquality().equals(other.audio, audio)) && + (identical(other.audio, audio) || const DeepCollectionEquality().equals(other.audio, audio)) && (identical(other.isMovie, isMovie) || const DeepCollectionEquality().equals( other.isMovie, @@ -21127,12 +20908,9 @@ class BaseItemDto { other.isSeries, isSeries, )) && - (identical(other.isLive, isLive) || - const DeepCollectionEquality().equals(other.isLive, isLive)) && - (identical(other.isNews, isNews) || - const DeepCollectionEquality().equals(other.isNews, isNews)) && - (identical(other.isKids, isKids) || - const DeepCollectionEquality().equals(other.isKids, isKids)) && + (identical(other.isLive, isLive) || const DeepCollectionEquality().equals(other.isLive, isLive)) && + (identical(other.isNews, isNews) || const DeepCollectionEquality().equals(other.isNews, isNews)) && + (identical(other.isKids, isKids) || const DeepCollectionEquality().equals(other.isKids, isKids)) && (identical(other.isPremiere, isPremiere) || const DeepCollectionEquality().equals( other.isPremiere, @@ -21483,20 +21261,15 @@ extension $BaseItemDtoExtension on BaseItemDto { dateCreated: dateCreated ?? this.dateCreated, dateLastMediaAdded: dateLastMediaAdded ?? this.dateLastMediaAdded, extraType: extraType ?? this.extraType, - airsBeforeSeasonNumber: - airsBeforeSeasonNumber ?? this.airsBeforeSeasonNumber, - airsAfterSeasonNumber: - airsAfterSeasonNumber ?? this.airsAfterSeasonNumber, - airsBeforeEpisodeNumber: - airsBeforeEpisodeNumber ?? this.airsBeforeEpisodeNumber, + airsBeforeSeasonNumber: airsBeforeSeasonNumber ?? this.airsBeforeSeasonNumber, + airsAfterSeasonNumber: airsAfterSeasonNumber ?? this.airsAfterSeasonNumber, + airsBeforeEpisodeNumber: airsBeforeEpisodeNumber ?? this.airsBeforeEpisodeNumber, canDelete: canDelete ?? this.canDelete, canDownload: canDownload ?? this.canDownload, hasLyrics: hasLyrics ?? this.hasLyrics, hasSubtitles: hasSubtitles ?? this.hasSubtitles, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, - preferredMetadataCountryCode: - preferredMetadataCountryCode ?? this.preferredMetadataCountryCode, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataCountryCode: preferredMetadataCountryCode ?? this.preferredMetadataCountryCode, container: container ?? this.container, sortName: sortName ?? this.sortName, forcedSortName: forcedSortName ?? this.forcedSortName, @@ -21507,8 +21280,7 @@ extension $BaseItemDtoExtension on BaseItemDto { criticRating: criticRating ?? this.criticRating, productionLocations: productionLocations ?? this.productionLocations, path: path ?? this.path, - enableMediaSourceDisplay: - enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, + enableMediaSourceDisplay: enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, officialRating: officialRating ?? this.officialRating, customRating: customRating ?? this.customRating, channelId: channelId ?? this.channelId, @@ -21517,8 +21289,7 @@ extension $BaseItemDtoExtension on BaseItemDto { taglines: taglines ?? this.taglines, genres: genres ?? this.genres, communityRating: communityRating ?? this.communityRating, - cumulativeRunTimeTicks: - cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, + cumulativeRunTimeTicks: cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, runTimeTicks: runTimeTicks ?? this.runTimeTicks, playAccess: playAccess ?? this.playAccess, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -21540,8 +21311,7 @@ extension $BaseItemDtoExtension on BaseItemDto { genreItems: genreItems ?? this.genreItems, parentLogoItemId: parentLogoItemId ?? this.parentLogoItemId, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, + parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, localTrailerCount: localTrailerCount ?? this.localTrailerCount, userData: userData ?? this.userData, recursiveItemCount: recursiveItemCount ?? this.recursiveItemCount, @@ -21555,8 +21325,7 @@ extension $BaseItemDtoExtension on BaseItemDto { airTime: airTime ?? this.airTime, airDays: airDays ?? this.airDays, tags: tags ?? this.tags, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, artists: artists ?? this.artists, artistItems: artistItems ?? this.artistItems, album: album ?? this.album, @@ -21564,8 +21333,7 @@ extension $BaseItemDtoExtension on BaseItemDto { displayOrder: displayOrder ?? this.displayOrder, albumId: albumId ?? this.albumId, albumPrimaryImageTag: albumPrimaryImageTag ?? this.albumPrimaryImageTag, - seriesPrimaryImageTag: - seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, + seriesPrimaryImageTag: seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, albumArtist: albumArtist ?? this.albumArtist, albumArtists: albumArtists ?? this.albumArtists, seasonName: seasonName ?? this.seasonName, @@ -21584,10 +21352,8 @@ extension $BaseItemDtoExtension on BaseItemDto { seriesStudio: seriesStudio ?? this.seriesStudio, parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: - parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: - parentPrimaryImageTag ?? this.parentPrimaryImageTag, + parentPrimaryImageItemId: parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: parentPrimaryImageTag ?? this.parentPrimaryImageTag, chapters: chapters ?? this.chapters, trickplay: trickplay ?? this.trickplay, locationType: locationType ?? this.locationType, @@ -21621,8 +21387,7 @@ extension $BaseItemDtoExtension on BaseItemDto { isoSpeedRating: isoSpeedRating ?? this.isoSpeedRating, seriesTimerId: seriesTimerId ?? this.seriesTimerId, programId: programId ?? this.programId, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, startDate: startDate ?? this.startDate, completionPercentage: completionPercentage ?? this.completionPercentage, isRepeat: isRepeat ?? this.isRepeat, @@ -21799,111 +21564,62 @@ extension $BaseItemDtoExtension on BaseItemDto { }) { return BaseItemDto( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), serverId: (serverId != null ? serverId.value : this.serverId), id: (id != null ? id.value : this.id), etag: (etag != null ? etag.value : this.etag), sourceType: (sourceType != null ? sourceType.value : this.sourceType), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateLastMediaAdded: (dateLastMediaAdded != null - ? dateLastMediaAdded.value - : this.dateLastMediaAdded), + dateLastMediaAdded: (dateLastMediaAdded != null ? dateLastMediaAdded.value : this.dateLastMediaAdded), extraType: (extraType != null ? extraType.value : this.extraType), - airsBeforeSeasonNumber: (airsBeforeSeasonNumber != null - ? airsBeforeSeasonNumber.value - : this.airsBeforeSeasonNumber), - airsAfterSeasonNumber: (airsAfterSeasonNumber != null - ? airsAfterSeasonNumber.value - : this.airsAfterSeasonNumber), - airsBeforeEpisodeNumber: (airsBeforeEpisodeNumber != null - ? airsBeforeEpisodeNumber.value - : this.airsBeforeEpisodeNumber), + airsBeforeSeasonNumber: + (airsBeforeSeasonNumber != null ? airsBeforeSeasonNumber.value : this.airsBeforeSeasonNumber), + airsAfterSeasonNumber: (airsAfterSeasonNumber != null ? airsAfterSeasonNumber.value : this.airsAfterSeasonNumber), + airsBeforeEpisodeNumber: + (airsBeforeEpisodeNumber != null ? airsBeforeEpisodeNumber.value : this.airsBeforeEpisodeNumber), canDelete: (canDelete != null ? canDelete.value : this.canDelete), canDownload: (canDownload != null ? canDownload.value : this.canDownload), hasLyrics: (hasLyrics != null ? hasLyrics.value : this.hasLyrics), - hasSubtitles: (hasSubtitles != null - ? hasSubtitles.value - : this.hasSubtitles), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), + hasSubtitles: (hasSubtitles != null ? hasSubtitles.value : this.hasSubtitles), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), preferredMetadataCountryCode: (preferredMetadataCountryCode != null ? preferredMetadataCountryCode.value : this.preferredMetadataCountryCode), container: (container != null ? container.value : this.container), sortName: (sortName != null ? sortName.value : this.sortName), - forcedSortName: (forcedSortName != null - ? forcedSortName.value - : this.forcedSortName), - video3DFormat: (video3DFormat != null - ? video3DFormat.value - : this.video3DFormat), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), - externalUrls: (externalUrls != null - ? externalUrls.value - : this.externalUrls), - mediaSources: (mediaSources != null - ? mediaSources.value - : this.mediaSources), - criticRating: (criticRating != null - ? criticRating.value - : this.criticRating), - productionLocations: (productionLocations != null - ? productionLocations.value - : this.productionLocations), + forcedSortName: (forcedSortName != null ? forcedSortName.value : this.forcedSortName), + video3DFormat: (video3DFormat != null ? video3DFormat.value : this.video3DFormat), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + externalUrls: (externalUrls != null ? externalUrls.value : this.externalUrls), + mediaSources: (mediaSources != null ? mediaSources.value : this.mediaSources), + criticRating: (criticRating != null ? criticRating.value : this.criticRating), + productionLocations: (productionLocations != null ? productionLocations.value : this.productionLocations), path: (path != null ? path.value : this.path), - enableMediaSourceDisplay: (enableMediaSourceDisplay != null - ? enableMediaSourceDisplay.value - : this.enableMediaSourceDisplay), - officialRating: (officialRating != null - ? officialRating.value - : this.officialRating), - customRating: (customRating != null - ? customRating.value - : this.customRating), + enableMediaSourceDisplay: + (enableMediaSourceDisplay != null ? enableMediaSourceDisplay.value : this.enableMediaSourceDisplay), + officialRating: (officialRating != null ? officialRating.value : this.officialRating), + customRating: (customRating != null ? customRating.value : this.customRating), channelId: (channelId != null ? channelId.value : this.channelId), channelName: (channelName != null ? channelName.value : this.channelName), overview: (overview != null ? overview.value : this.overview), taglines: (taglines != null ? taglines.value : this.taglines), genres: (genres != null ? genres.value : this.genres), - communityRating: (communityRating != null - ? communityRating.value - : this.communityRating), - cumulativeRunTimeTicks: (cumulativeRunTimeTicks != null - ? cumulativeRunTimeTicks.value - : this.cumulativeRunTimeTicks), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), + communityRating: (communityRating != null ? communityRating.value : this.communityRating), + cumulativeRunTimeTicks: + (cumulativeRunTimeTicks != null ? cumulativeRunTimeTicks.value : this.cumulativeRunTimeTicks), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), playAccess: (playAccess != null ? playAccess.value : this.playAccess), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), - productionYear: (productionYear != null - ? productionYear.value - : this.productionYear), - isPlaceHolder: (isPlaceHolder != null - ? isPlaceHolder.value - : this.isPlaceHolder), + productionYear: (productionYear != null ? productionYear.value : this.productionYear), + isPlaceHolder: (isPlaceHolder != null ? isPlaceHolder.value : this.isPlaceHolder), number: (number != null ? number.value : this.number), - channelNumber: (channelNumber != null - ? channelNumber.value - : this.channelNumber), + channelNumber: (channelNumber != null ? channelNumber.value : this.channelNumber), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - indexNumberEnd: (indexNumberEnd != null - ? indexNumberEnd.value - : this.indexNumberEnd), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - remoteTrailers: (remoteTrailers != null - ? remoteTrailers.value - : this.remoteTrailers), + indexNumberEnd: (indexNumberEnd != null ? indexNumberEnd.value : this.indexNumberEnd), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + remoteTrailers: (remoteTrailers != null ? remoteTrailers.value : this.remoteTrailers), providerIds: (providerIds != null ? providerIds.value : this.providerIds), isHD: (isHD != null ? isHD.value : this.isHD), isFolder: (isFolder != null ? isFolder.value : this.isFolder), @@ -21912,171 +21628,93 @@ extension $BaseItemDtoExtension on BaseItemDto { people: (people != null ? people.value : this.people), studios: (studios != null ? studios.value : this.studios), genreItems: (genreItems != null ? genreItems.value : this.genreItems), - parentLogoItemId: (parentLogoItemId != null - ? parentLogoItemId.value - : this.parentLogoItemId), - parentBackdropItemId: (parentBackdropItemId != null - ? parentBackdropItemId.value - : this.parentBackdropItemId), - parentBackdropImageTags: (parentBackdropImageTags != null - ? parentBackdropImageTags.value - : this.parentBackdropImageTags), - localTrailerCount: (localTrailerCount != null - ? localTrailerCount.value - : this.localTrailerCount), + parentLogoItemId: (parentLogoItemId != null ? parentLogoItemId.value : this.parentLogoItemId), + parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), + parentBackdropImageTags: + (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), + localTrailerCount: (localTrailerCount != null ? localTrailerCount.value : this.localTrailerCount), userData: (userData != null ? userData.value : this.userData), - recursiveItemCount: (recursiveItemCount != null - ? recursiveItemCount.value - : this.recursiveItemCount), + recursiveItemCount: (recursiveItemCount != null ? recursiveItemCount.value : this.recursiveItemCount), childCount: (childCount != null ? childCount.value : this.childCount), seriesName: (seriesName != null ? seriesName.value : this.seriesName), seriesId: (seriesId != null ? seriesId.value : this.seriesId), seasonId: (seasonId != null ? seasonId.value : this.seasonId), - specialFeatureCount: (specialFeatureCount != null - ? specialFeatureCount.value - : this.specialFeatureCount), - displayPreferencesId: (displayPreferencesId != null - ? displayPreferencesId.value - : this.displayPreferencesId), + specialFeatureCount: (specialFeatureCount != null ? specialFeatureCount.value : this.specialFeatureCount), + displayPreferencesId: (displayPreferencesId != null ? displayPreferencesId.value : this.displayPreferencesId), status: (status != null ? status.value : this.status), airTime: (airTime != null ? airTime.value : this.airTime), airDays: (airDays != null ? airDays.value : this.airDays), tags: (tags != null ? tags.value : this.tags), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio), + primaryImageAspectRatio: + (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), artists: (artists != null ? artists.value : this.artists), artistItems: (artistItems != null ? artistItems.value : this.artistItems), album: (album != null ? album.value : this.album), - collectionType: (collectionType != null - ? collectionType.value - : this.collectionType), - displayOrder: (displayOrder != null - ? displayOrder.value - : this.displayOrder), + collectionType: (collectionType != null ? collectionType.value : this.collectionType), + displayOrder: (displayOrder != null ? displayOrder.value : this.displayOrder), albumId: (albumId != null ? albumId.value : this.albumId), - albumPrimaryImageTag: (albumPrimaryImageTag != null - ? albumPrimaryImageTag.value - : this.albumPrimaryImageTag), - seriesPrimaryImageTag: (seriesPrimaryImageTag != null - ? seriesPrimaryImageTag.value - : this.seriesPrimaryImageTag), + albumPrimaryImageTag: (albumPrimaryImageTag != null ? albumPrimaryImageTag.value : this.albumPrimaryImageTag), + seriesPrimaryImageTag: (seriesPrimaryImageTag != null ? seriesPrimaryImageTag.value : this.seriesPrimaryImageTag), albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), - albumArtists: (albumArtists != null - ? albumArtists.value - : this.albumArtists), + albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), seasonName: (seasonName != null ? seasonName.value : this.seasonName), - mediaStreams: (mediaStreams != null - ? mediaStreams.value - : this.mediaStreams), + mediaStreams: (mediaStreams != null ? mediaStreams.value : this.mediaStreams), videoType: (videoType != null ? videoType.value : this.videoType), partCount: (partCount != null ? partCount.value : this.partCount), - mediaSourceCount: (mediaSourceCount != null - ? mediaSourceCount.value - : this.mediaSourceCount), + mediaSourceCount: (mediaSourceCount != null ? mediaSourceCount.value : this.mediaSourceCount), imageTags: (imageTags != null ? imageTags.value : this.imageTags), - backdropImageTags: (backdropImageTags != null - ? backdropImageTags.value - : this.backdropImageTags), - screenshotImageTags: (screenshotImageTags != null - ? screenshotImageTags.value - : this.screenshotImageTags), - parentLogoImageTag: (parentLogoImageTag != null - ? parentLogoImageTag.value - : this.parentLogoImageTag), - parentArtItemId: (parentArtItemId != null - ? parentArtItemId.value - : this.parentArtItemId), - parentArtImageTag: (parentArtImageTag != null - ? parentArtImageTag.value - : this.parentArtImageTag), - seriesThumbImageTag: (seriesThumbImageTag != null - ? seriesThumbImageTag.value - : this.seriesThumbImageTag), - imageBlurHashes: (imageBlurHashes != null - ? imageBlurHashes.value - : this.imageBlurHashes), - seriesStudio: (seriesStudio != null - ? seriesStudio.value - : this.seriesStudio), - parentThumbItemId: (parentThumbItemId != null - ? parentThumbItemId.value - : this.parentThumbItemId), - parentThumbImageTag: (parentThumbImageTag != null - ? parentThumbImageTag.value - : this.parentThumbImageTag), - parentPrimaryImageItemId: (parentPrimaryImageItemId != null - ? parentPrimaryImageItemId.value - : this.parentPrimaryImageItemId), - parentPrimaryImageTag: (parentPrimaryImageTag != null - ? parentPrimaryImageTag.value - : this.parentPrimaryImageTag), + backdropImageTags: (backdropImageTags != null ? backdropImageTags.value : this.backdropImageTags), + screenshotImageTags: (screenshotImageTags != null ? screenshotImageTags.value : this.screenshotImageTags), + parentLogoImageTag: (parentLogoImageTag != null ? parentLogoImageTag.value : this.parentLogoImageTag), + parentArtItemId: (parentArtItemId != null ? parentArtItemId.value : this.parentArtItemId), + parentArtImageTag: (parentArtImageTag != null ? parentArtImageTag.value : this.parentArtImageTag), + seriesThumbImageTag: (seriesThumbImageTag != null ? seriesThumbImageTag.value : this.seriesThumbImageTag), + imageBlurHashes: (imageBlurHashes != null ? imageBlurHashes.value : this.imageBlurHashes), + seriesStudio: (seriesStudio != null ? seriesStudio.value : this.seriesStudio), + parentThumbItemId: (parentThumbItemId != null ? parentThumbItemId.value : this.parentThumbItemId), + parentThumbImageTag: (parentThumbImageTag != null ? parentThumbImageTag.value : this.parentThumbImageTag), + parentPrimaryImageItemId: + (parentPrimaryImageItemId != null ? parentPrimaryImageItemId.value : this.parentPrimaryImageItemId), + parentPrimaryImageTag: (parentPrimaryImageTag != null ? parentPrimaryImageTag.value : this.parentPrimaryImageTag), chapters: (chapters != null ? chapters.value : this.chapters), trickplay: (trickplay != null ? trickplay.value : this.trickplay), - locationType: (locationType != null - ? locationType.value - : this.locationType), + locationType: (locationType != null ? locationType.value : this.locationType), isoType: (isoType != null ? isoType.value : this.isoType), mediaType: (mediaType != null ? mediaType.value : this.mediaType), endDate: (endDate != null ? endDate.value : this.endDate), - lockedFields: (lockedFields != null - ? lockedFields.value - : this.lockedFields), - trailerCount: (trailerCount != null - ? trailerCount.value - : this.trailerCount), + lockedFields: (lockedFields != null ? lockedFields.value : this.lockedFields), + trailerCount: (trailerCount != null ? trailerCount.value : this.trailerCount), movieCount: (movieCount != null ? movieCount.value : this.movieCount), seriesCount: (seriesCount != null ? seriesCount.value : this.seriesCount), - programCount: (programCount != null - ? programCount.value - : this.programCount), - episodeCount: (episodeCount != null - ? episodeCount.value - : this.episodeCount), + programCount: (programCount != null ? programCount.value : this.programCount), + episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), songCount: (songCount != null ? songCount.value : this.songCount), albumCount: (albumCount != null ? albumCount.value : this.albumCount), artistCount: (artistCount != null ? artistCount.value : this.artistCount), - musicVideoCount: (musicVideoCount != null - ? musicVideoCount.value - : this.musicVideoCount), + musicVideoCount: (musicVideoCount != null ? musicVideoCount.value : this.musicVideoCount), lockData: (lockData != null ? lockData.value : this.lockData), width: (width != null ? width.value : this.width), height: (height != null ? height.value : this.height), cameraMake: (cameraMake != null ? cameraMake.value : this.cameraMake), cameraModel: (cameraModel != null ? cameraModel.value : this.cameraModel), software: (software != null ? software.value : this.software), - exposureTime: (exposureTime != null - ? exposureTime.value - : this.exposureTime), + exposureTime: (exposureTime != null ? exposureTime.value : this.exposureTime), focalLength: (focalLength != null ? focalLength.value : this.focalLength), - imageOrientation: (imageOrientation != null - ? imageOrientation.value - : this.imageOrientation), + imageOrientation: (imageOrientation != null ? imageOrientation.value : this.imageOrientation), aperture: (aperture != null ? aperture.value : this.aperture), - shutterSpeed: (shutterSpeed != null - ? shutterSpeed.value - : this.shutterSpeed), + shutterSpeed: (shutterSpeed != null ? shutterSpeed.value : this.shutterSpeed), latitude: (latitude != null ? latitude.value : this.latitude), longitude: (longitude != null ? longitude.value : this.longitude), altitude: (altitude != null ? altitude.value : this.altitude), - isoSpeedRating: (isoSpeedRating != null - ? isoSpeedRating.value - : this.isoSpeedRating), - seriesTimerId: (seriesTimerId != null - ? seriesTimerId.value - : this.seriesTimerId), + isoSpeedRating: (isoSpeedRating != null ? isoSpeedRating.value : this.isoSpeedRating), + seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), programId: (programId != null ? programId.value : this.programId), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), + channelPrimaryImageTag: + (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), startDate: (startDate != null ? startDate.value : this.startDate), - completionPercentage: (completionPercentage != null - ? completionPercentage.value - : this.completionPercentage), + completionPercentage: (completionPercentage != null ? completionPercentage.value : this.completionPercentage), isRepeat: (isRepeat != null ? isRepeat.value : this.isRepeat), - episodeTitle: (episodeTitle != null - ? episodeTitle.value - : this.episodeTitle), + episodeTitle: (episodeTitle != null ? episodeTitle.value : this.episodeTitle), channelType: (channelType != null ? channelType.value : this.channelType), audio: (audio != null ? audio.value : this.audio), isMovie: (isMovie != null ? isMovie.value : this.isMovie), @@ -22087,12 +21725,8 @@ extension $BaseItemDtoExtension on BaseItemDto { isKids: (isKids != null ? isKids.value : this.isKids), isPremiere: (isPremiere != null ? isPremiere.value : this.isPremiere), timerId: (timerId != null ? timerId.value : this.timerId), - normalizationGain: (normalizationGain != null - ? normalizationGain.value - : this.normalizationGain), - currentProgram: (currentProgram != null - ? currentProgram.value - : this.currentProgram), + normalizationGain: (normalizationGain != null ? normalizationGain.value : this.normalizationGain), + currentProgram: (currentProgram != null ? currentProgram.value : this.currentProgram), ); } } @@ -22105,8 +21739,7 @@ class BaseItemDtoQueryResult { this.startIndex, }); - factory BaseItemDtoQueryResult.fromJson(Map json) => - _$BaseItemDtoQueryResultFromJson(json); + factory BaseItemDtoQueryResult.fromJson(Map json) => _$BaseItemDtoQueryResultFromJson(json); static const toJsonFactory = _$BaseItemDtoQueryResultToJson; Map toJson() => _$BaseItemDtoQueryResultToJson(this); @@ -22123,8 +21756,7 @@ class BaseItemDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -22168,9 +21800,7 @@ extension $BaseItemDtoQueryResultExtension on BaseItemDtoQueryResult { }) { return BaseItemDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -22187,8 +21817,7 @@ class BaseItemPerson { this.imageBlurHashes, }); - factory BaseItemPerson.fromJson(Map json) => - _$BaseItemPersonFromJson(json); + factory BaseItemPerson.fromJson(Map json) => _$BaseItemPersonFromJson(json); static const toJsonFactory = _$BaseItemPersonToJson; Map toJson() => _$BaseItemPersonToJson(this); @@ -22219,14 +21848,10 @@ class BaseItemPerson { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemPerson && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.role, role) || - const DeepCollectionEquality().equals(other.role, role)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.role, role) || const DeepCollectionEquality().equals(other.role, role)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.primaryImageTag, primaryImageTag) || const DeepCollectionEquality().equals( other.primaryImageTag, @@ -22285,12 +21910,8 @@ extension $BaseItemPersonExtension on BaseItemPerson { id: (id != null ? id.value : this.id), role: (role != null ? role.value : this.role), type: (type != null ? type.value : this.type), - primaryImageTag: (primaryImageTag != null - ? primaryImageTag.value - : this.primaryImageTag), - imageBlurHashes: (imageBlurHashes != null - ? imageBlurHashes.value - : this.imageBlurHashes), + primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), + imageBlurHashes: (imageBlurHashes != null ? imageBlurHashes.value : this.imageBlurHashes), ); } } @@ -22299,8 +21920,7 @@ extension $BaseItemPersonExtension on BaseItemPerson { class BasePluginConfiguration { const BasePluginConfiguration(); - factory BasePluginConfiguration.fromJson(Map json) => - _$BasePluginConfigurationFromJson(json); + factory BasePluginConfiguration.fromJson(Map json) => _$BasePluginConfigurationFromJson(json); static const toJsonFactory = _$BasePluginConfigurationToJson; Map toJson() => _$BasePluginConfigurationToJson(this); @@ -22331,8 +21951,7 @@ class BookInfo { this.seriesName, }); - factory BookInfo.fromJson(Map json) => - _$BookInfoFromJson(json); + factory BookInfo.fromJson(Map json) => _$BookInfoFromJson(json); static const toJsonFactory = _$BookInfoToJson; Map toJson() => _$BookInfoToJson(this); @@ -22367,15 +21986,13 @@ class BookInfo { bool operator ==(Object other) { return identical(this, other) || (other is BookInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -22391,8 +22008,7 @@ class BookInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -22487,25 +22103,15 @@ extension $BookInfoExtension on BookInfo { }) { return BookInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), seriesName: (seriesName != null ? seriesName.value : this.seriesName), ); @@ -22521,8 +22127,7 @@ class BookInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory BookInfoRemoteSearchQuery.fromJson(Map json) => - _$BookInfoRemoteSearchQueryFromJson(json); + factory BookInfoRemoteSearchQuery.fromJson(Map json) => _$BookInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$BookInfoRemoteSearchQueryToJson; Map toJson() => _$BookInfoRemoteSearchQueryToJson(this); @@ -22546,8 +22151,7 @@ class BookInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -22586,8 +22190,7 @@ extension $BookInfoRemoteSearchQueryExtension on BookInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -22600,12 +22203,9 @@ extension $BookInfoRemoteSearchQueryExtension on BookInfoRemoteSearchQuery { return BookInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -22626,8 +22226,7 @@ class BoxSetInfo { this.isAutomated, }); - factory BoxSetInfo.fromJson(Map json) => - _$BoxSetInfoFromJson(json); + factory BoxSetInfo.fromJson(Map json) => _$BoxSetInfoFromJson(json); static const toJsonFactory = _$BoxSetInfoToJson; Map toJson() => _$BoxSetInfoToJson(this); @@ -22660,15 +22259,13 @@ class BoxSetInfo { bool operator ==(Object other) { return identical(this, other) || (other is BoxSetInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -22684,8 +22281,7 @@ class BoxSetInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -22771,25 +22367,15 @@ extension $BoxSetInfoExtension on BoxSetInfo { }) { return BoxSetInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -22829,8 +22415,7 @@ class BoxSetInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -22869,8 +22454,7 @@ extension $BoxSetInfoRemoteSearchQueryExtension on BoxSetInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -22883,12 +22467,9 @@ extension $BoxSetInfoRemoteSearchQueryExtension on BoxSetInfoRemoteSearchQuery { return BoxSetInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -22901,8 +22482,7 @@ class BrandingOptionsDto { this.splashscreenEnabled, }); - factory BrandingOptionsDto.fromJson(Map json) => - _$BrandingOptionsDtoFromJson(json); + factory BrandingOptionsDto.fromJson(Map json) => _$BrandingOptionsDtoFromJson(json); static const toJsonFactory = _$BrandingOptionsDtoToJson; Map toJson() => _$BrandingOptionsDtoToJson(this); @@ -22966,13 +22546,9 @@ extension $BrandingOptionsDtoExtension on BrandingOptionsDto { Wrapped? splashscreenEnabled, }) { return BrandingOptionsDto( - loginDisclaimer: (loginDisclaimer != null - ? loginDisclaimer.value - : this.loginDisclaimer), + loginDisclaimer: (loginDisclaimer != null ? loginDisclaimer.value : this.loginDisclaimer), customCss: (customCss != null ? customCss.value : this.customCss), - splashscreenEnabled: (splashscreenEnabled != null - ? splashscreenEnabled.value - : this.splashscreenEnabled), + splashscreenEnabled: (splashscreenEnabled != null ? splashscreenEnabled.value : this.splashscreenEnabled), ); } } @@ -22986,8 +22562,7 @@ class BufferRequestDto { this.playlistItemId, }); - factory BufferRequestDto.fromJson(Map json) => - _$BufferRequestDtoFromJson(json); + factory BufferRequestDto.fromJson(Map json) => _$BufferRequestDtoFromJson(json); static const toJsonFactory = _$BufferRequestDtoToJson; Map toJson() => _$BufferRequestDtoToJson(this); @@ -23006,8 +22581,7 @@ class BufferRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is BufferRequestDto && - (identical(other.when, when) || - const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -23060,13 +22634,9 @@ extension $BufferRequestDtoExtension on BufferRequestDto { }) { return BufferRequestDto( when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -23075,8 +22645,7 @@ extension $BufferRequestDtoExtension on BufferRequestDto { class CastReceiverApplication { const CastReceiverApplication({this.id, this.name}); - factory CastReceiverApplication.fromJson(Map json) => - _$CastReceiverApplicationFromJson(json); + factory CastReceiverApplication.fromJson(Map json) => _$CastReceiverApplicationFromJson(json); static const toJsonFactory = _$CastReceiverApplicationToJson; Map toJson() => _$CastReceiverApplicationToJson(this); @@ -23091,10 +22660,8 @@ class CastReceiverApplication { bool operator ==(Object other) { return identical(this, other) || (other is CastReceiverApplication && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); } @override @@ -23102,9 +22669,7 @@ class CastReceiverApplication { @override int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(name) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(id) ^ const DeepCollectionEquality().hash(name) ^ runtimeType.hashCode; } extension $CastReceiverApplicationExtension on CastReceiverApplication { @@ -23140,8 +22705,7 @@ class ChannelFeatures { this.supportsContentDownloading, }); - factory ChannelFeatures.fromJson(Map json) => - _$ChannelFeaturesFromJson(json); + factory ChannelFeatures.fromJson(Map json) => _$ChannelFeaturesFromJson(json); static const toJsonFactory = _$ChannelFeaturesToJson; Map toJson() => _$ChannelFeaturesToJson(this); @@ -23191,10 +22755,8 @@ class ChannelFeatures { bool operator ==(Object other) { return identical(this, other) || (other is ChannelFeatures && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canSearch, canSearch) || const DeepCollectionEquality().equals( other.canSearch, @@ -23297,12 +22859,10 @@ extension $ChannelFeaturesExtension on ChannelFeatures { maxPageSize: maxPageSize ?? this.maxPageSize, autoRefreshLevels: autoRefreshLevels ?? this.autoRefreshLevels, defaultSortFields: defaultSortFields ?? this.defaultSortFields, - supportsSortOrderToggle: - supportsSortOrderToggle ?? this.supportsSortOrderToggle, + supportsSortOrderToggle: supportsSortOrderToggle ?? this.supportsSortOrderToggle, supportsLatestMedia: supportsLatestMedia ?? this.supportsLatestMedia, canFilter: canFilter ?? this.canFilter, - supportsContentDownloading: - supportsContentDownloading ?? this.supportsContentDownloading, + supportsContentDownloading: supportsContentDownloading ?? this.supportsContentDownloading, ); } @@ -23325,26 +22885,16 @@ extension $ChannelFeaturesExtension on ChannelFeatures { id: (id != null ? id.value : this.id), canSearch: (canSearch != null ? canSearch.value : this.canSearch), mediaTypes: (mediaTypes != null ? mediaTypes.value : this.mediaTypes), - contentTypes: (contentTypes != null - ? contentTypes.value - : this.contentTypes), + contentTypes: (contentTypes != null ? contentTypes.value : this.contentTypes), maxPageSize: (maxPageSize != null ? maxPageSize.value : this.maxPageSize), - autoRefreshLevels: (autoRefreshLevels != null - ? autoRefreshLevels.value - : this.autoRefreshLevels), - defaultSortFields: (defaultSortFields != null - ? defaultSortFields.value - : this.defaultSortFields), - supportsSortOrderToggle: (supportsSortOrderToggle != null - ? supportsSortOrderToggle.value - : this.supportsSortOrderToggle), - supportsLatestMedia: (supportsLatestMedia != null - ? supportsLatestMedia.value - : this.supportsLatestMedia), + autoRefreshLevels: (autoRefreshLevels != null ? autoRefreshLevels.value : this.autoRefreshLevels), + defaultSortFields: (defaultSortFields != null ? defaultSortFields.value : this.defaultSortFields), + supportsSortOrderToggle: + (supportsSortOrderToggle != null ? supportsSortOrderToggle.value : this.supportsSortOrderToggle), + supportsLatestMedia: (supportsLatestMedia != null ? supportsLatestMedia.value : this.supportsLatestMedia), canFilter: (canFilter != null ? canFilter.value : this.canFilter), - supportsContentDownloading: (supportsContentDownloading != null - ? supportsContentDownloading.value - : this.supportsContentDownloading), + supportsContentDownloading: + (supportsContentDownloading != null ? supportsContentDownloading.value : this.supportsContentDownloading), ); } } @@ -23358,8 +22908,7 @@ class ChannelMappingOptionsDto { this.providerName, }); - factory ChannelMappingOptionsDto.fromJson(Map json) => - _$ChannelMappingOptionsDtoFromJson(json); + factory ChannelMappingOptionsDto.fromJson(Map json) => _$ChannelMappingOptionsDtoFromJson(json); static const toJsonFactory = _$ChannelMappingOptionsDtoToJson; Map toJson() => _$ChannelMappingOptionsDtoToJson(this); @@ -23446,16 +22995,10 @@ extension $ChannelMappingOptionsDtoExtension on ChannelMappingOptionsDto { Wrapped? providerName, }) { return ChannelMappingOptionsDto( - tunerChannels: (tunerChannels != null - ? tunerChannels.value - : this.tunerChannels), - providerChannels: (providerChannels != null - ? providerChannels.value - : this.providerChannels), + tunerChannels: (tunerChannels != null ? tunerChannels.value : this.tunerChannels), + providerChannels: (providerChannels != null ? providerChannels.value : this.providerChannels), mappings: (mappings != null ? mappings.value : this.mappings), - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), ); } } @@ -23470,8 +23013,7 @@ class ChapterInfo { this.imageTag, }); - factory ChapterInfo.fromJson(Map json) => - _$ChapterInfoFromJson(json); + factory ChapterInfo.fromJson(Map json) => _$ChapterInfoFromJson(json); static const toJsonFactory = _$ChapterInfoToJson; Map toJson() => _$ChapterInfoToJson(this); @@ -23497,8 +23039,7 @@ class ChapterInfo { other.startPositionTicks, startPositionTicks, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.imagePath, imagePath) || const DeepCollectionEquality().equals( other.imagePath, @@ -23554,14 +23095,10 @@ extension $ChapterInfoExtension on ChapterInfo { Wrapped? imageTag, }) { return ChapterInfo( - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), name: (name != null ? name.value : this.name), imagePath: (imagePath != null ? imagePath.value : this.imagePath), - imageDateModified: (imageDateModified != null - ? imageDateModified.value - : this.imageDateModified), + imageDateModified: (imageDateModified != null ? imageDateModified.value : this.imageDateModified), imageTag: (imageTag != null ? imageTag.value : this.imageTag), ); } @@ -23579,8 +23116,7 @@ class ClientCapabilitiesDto { this.iconUrl, }); - factory ClientCapabilitiesDto.fromJson(Map json) => - _$ClientCapabilitiesDtoFromJson(json); + factory ClientCapabilitiesDto.fromJson(Map json) => _$ClientCapabilitiesDtoFromJson(json); static const toJsonFactory = _$ClientCapabilitiesDtoToJson; Map toJson() => _$ClientCapabilitiesDtoToJson(this); @@ -23648,8 +23184,7 @@ class ClientCapabilitiesDto { other.appStoreUrl, appStoreUrl, )) && - (identical(other.iconUrl, iconUrl) || - const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); + (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @override @@ -23681,8 +23216,7 @@ extension $ClientCapabilitiesDtoExtension on ClientCapabilitiesDto { playableMediaTypes: playableMediaTypes ?? this.playableMediaTypes, supportedCommands: supportedCommands ?? this.supportedCommands, supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsPersistentIdentifier: - supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, + supportsPersistentIdentifier: supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, deviceProfile: deviceProfile ?? this.deviceProfile, appStoreUrl: appStoreUrl ?? this.appStoreUrl, iconUrl: iconUrl ?? this.iconUrl, @@ -23699,21 +23233,13 @@ extension $ClientCapabilitiesDtoExtension on ClientCapabilitiesDto { Wrapped? iconUrl, }) { return ClientCapabilitiesDto( - playableMediaTypes: (playableMediaTypes != null - ? playableMediaTypes.value - : this.playableMediaTypes), - supportedCommands: (supportedCommands != null - ? supportedCommands.value - : this.supportedCommands), - supportsMediaControl: (supportsMediaControl != null - ? supportsMediaControl.value - : this.supportsMediaControl), + playableMediaTypes: (playableMediaTypes != null ? playableMediaTypes.value : this.playableMediaTypes), + supportedCommands: (supportedCommands != null ? supportedCommands.value : this.supportedCommands), + supportsMediaControl: (supportsMediaControl != null ? supportsMediaControl.value : this.supportsMediaControl), supportsPersistentIdentifier: (supportsPersistentIdentifier != null ? supportsPersistentIdentifier.value : this.supportsPersistentIdentifier), - deviceProfile: (deviceProfile != null - ? deviceProfile.value - : this.deviceProfile), + deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), appStoreUrl: (appStoreUrl != null ? appStoreUrl.value : this.appStoreUrl), iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), ); @@ -23749,12 +23275,10 @@ class ClientLogDocumentResponseDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(fileName) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(fileName) ^ runtimeType.hashCode; } -extension $ClientLogDocumentResponseDtoExtension - on ClientLogDocumentResponseDto { +extension $ClientLogDocumentResponseDtoExtension on ClientLogDocumentResponseDto { ClientLogDocumentResponseDto copyWith({String? fileName}) { return ClientLogDocumentResponseDto(fileName: fileName ?? this.fileName); } @@ -23777,8 +23301,7 @@ class CodecProfile { this.subContainer, }); - factory CodecProfile.fromJson(Map json) => - _$CodecProfileFromJson(json); + factory CodecProfile.fromJson(Map json) => _$CodecProfileFromJson(json); static const toJsonFactory = _$CodecProfileToJson; Map toJson() => _$CodecProfileToJson(this); @@ -23814,8 +23337,7 @@ class CodecProfile { bool operator ==(Object other) { return identical(this, other) || (other is CodecProfile && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || const DeepCollectionEquality().equals( other.conditions, @@ -23826,8 +23348,7 @@ class CodecProfile { other.applyConditions, applyConditions, )) && - (identical(other.codec, codec) || - const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.container, container) || const DeepCollectionEquality().equals( other.container, @@ -23884,14 +23405,10 @@ extension $CodecProfileExtension on CodecProfile { return CodecProfile( type: (type != null ? type.value : this.type), conditions: (conditions != null ? conditions.value : this.conditions), - applyConditions: (applyConditions != null - ? applyConditions.value - : this.applyConditions), + applyConditions: (applyConditions != null ? applyConditions.value : this.applyConditions), codec: (codec != null ? codec.value : this.codec), container: (container != null ? container.value : this.container), - subContainer: (subContainer != null - ? subContainer.value - : this.subContainer), + subContainer: (subContainer != null ? subContainer.value : this.subContainer), ); } } @@ -23900,8 +23417,7 @@ extension $CodecProfileExtension on CodecProfile { class CollectionCreationResult { const CollectionCreationResult({this.id}); - factory CollectionCreationResult.fromJson(Map json) => - _$CollectionCreationResultFromJson(json); + factory CollectionCreationResult.fromJson(Map json) => _$CollectionCreationResultFromJson(json); static const toJsonFactory = _$CollectionCreationResultToJson; Map toJson() => _$CollectionCreationResultToJson(this); @@ -23914,16 +23430,14 @@ class CollectionCreationResult { bool operator ==(Object other) { return identical(this, other) || (other is CollectionCreationResult && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $CollectionCreationResultExtension on CollectionCreationResult { @@ -23948,8 +23462,7 @@ class ConfigImageTypes { this.stillSizes, }); - factory ConfigImageTypes.fromJson(Map json) => - _$ConfigImageTypesFromJson(json); + factory ConfigImageTypes.fromJson(Map json) => _$ConfigImageTypesFromJson(json); static const toJsonFactory = _$ConfigImageTypesToJson; Map toJson() => _$ConfigImageTypesToJson(this); @@ -24061,18 +23574,12 @@ extension $ConfigImageTypesExtension on ConfigImageTypes { Wrapped?>? stillSizes, }) { return ConfigImageTypes( - backdropSizes: (backdropSizes != null - ? backdropSizes.value - : this.backdropSizes), + backdropSizes: (backdropSizes != null ? backdropSizes.value : this.backdropSizes), baseUrl: (baseUrl != null ? baseUrl.value : this.baseUrl), logoSizes: (logoSizes != null ? logoSizes.value : this.logoSizes), posterSizes: (posterSizes != null ? posterSizes.value : this.posterSizes), - profileSizes: (profileSizes != null - ? profileSizes.value - : this.profileSizes), - secureBaseUrl: (secureBaseUrl != null - ? secureBaseUrl.value - : this.secureBaseUrl), + profileSizes: (profileSizes != null ? profileSizes.value : this.profileSizes), + secureBaseUrl: (secureBaseUrl != null ? secureBaseUrl.value : this.secureBaseUrl), stillSizes: (stillSizes != null ? stillSizes.value : this.stillSizes), ); } @@ -24089,8 +23596,7 @@ class ConfigurationPageInfo { this.pluginId, }); - factory ConfigurationPageInfo.fromJson(Map json) => - _$ConfigurationPageInfoFromJson(json); + factory ConfigurationPageInfo.fromJson(Map json) => _$ConfigurationPageInfoFromJson(json); static const toJsonFactory = _$ConfigurationPageInfoToJson; Map toJson() => _$ConfigurationPageInfoToJson(this); @@ -24113,8 +23619,7 @@ class ConfigurationPageInfo { bool operator ==(Object other) { return identical(this, other) || (other is ConfigurationPageInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.enableInMainMenu, enableInMainMenu) || const DeepCollectionEquality().equals( other.enableInMainMenu, @@ -24185,9 +23690,7 @@ extension $ConfigurationPageInfoExtension on ConfigurationPageInfo { }) { return ConfigurationPageInfo( name: (name != null ? name.value : this.name), - enableInMainMenu: (enableInMainMenu != null - ? enableInMainMenu.value - : this.enableInMainMenu), + enableInMainMenu: (enableInMainMenu != null ? enableInMainMenu.value : this.enableInMainMenu), menuSection: (menuSection != null ? menuSection.value : this.menuSection), menuIcon: (menuIcon != null ? menuIcon.value : this.menuIcon), displayName: (displayName != null ? displayName.value : this.displayName), @@ -24205,8 +23708,7 @@ class ContainerProfile { this.subContainer, }); - factory ContainerProfile.fromJson(Map json) => - _$ContainerProfileFromJson(json); + factory ContainerProfile.fromJson(Map json) => _$ContainerProfileFromJson(json); static const toJsonFactory = _$ContainerProfileToJson; Map toJson() => _$ContainerProfileToJson(this); @@ -24234,8 +23736,7 @@ class ContainerProfile { bool operator ==(Object other) { return identical(this, other) || (other is ContainerProfile && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || const DeepCollectionEquality().equals( other.conditions, @@ -24290,9 +23791,7 @@ extension $ContainerProfileExtension on ContainerProfile { type: (type != null ? type.value : this.type), conditions: (conditions != null ? conditions.value : this.conditions), container: (container != null ? container.value : this.container), - subContainer: (subContainer != null - ? subContainer.value - : this.subContainer), + subContainer: (subContainer != null ? subContainer.value : this.subContainer), ); } } @@ -24306,8 +23805,7 @@ class CountryInfo { this.threeLetterISORegionName, }); - factory CountryInfo.fromJson(Map json) => - _$CountryInfoFromJson(json); + factory CountryInfo.fromJson(Map json) => _$CountryInfoFromJson(json); static const toJsonFactory = _$CountryInfoToJson; Map toJson() => _$CountryInfoToJson(this); @@ -24326,8 +23824,7 @@ class CountryInfo { bool operator ==(Object other) { return identical(this, other) || (other is CountryInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || const DeepCollectionEquality().equals( other.displayName, @@ -24370,10 +23867,8 @@ extension $CountryInfoExtension on CountryInfo { return CountryInfo( name: name ?? this.name, displayName: displayName ?? this.displayName, - twoLetterISORegionName: - twoLetterISORegionName ?? this.twoLetterISORegionName, - threeLetterISORegionName: - threeLetterISORegionName ?? this.threeLetterISORegionName, + twoLetterISORegionName: twoLetterISORegionName ?? this.twoLetterISORegionName, + threeLetterISORegionName: threeLetterISORegionName ?? this.threeLetterISORegionName, ); } @@ -24386,12 +23881,10 @@ extension $CountryInfoExtension on CountryInfo { return CountryInfo( name: (name != null ? name.value : this.name), displayName: (displayName != null ? displayName.value : this.displayName), - twoLetterISORegionName: (twoLetterISORegionName != null - ? twoLetterISORegionName.value - : this.twoLetterISORegionName), - threeLetterISORegionName: (threeLetterISORegionName != null - ? threeLetterISORegionName.value - : this.threeLetterISORegionName), + twoLetterISORegionName: + (twoLetterISORegionName != null ? twoLetterISORegionName.value : this.twoLetterISORegionName), + threeLetterISORegionName: + (threeLetterISORegionName != null ? threeLetterISORegionName.value : this.threeLetterISORegionName), ); } } @@ -24407,8 +23900,7 @@ class CreatePlaylistDto { this.isPublic, }); - factory CreatePlaylistDto.fromJson(Map json) => - _$CreatePlaylistDtoFromJson(json); + factory CreatePlaylistDto.fromJson(Map json) => _$CreatePlaylistDtoFromJson(json); static const toJsonFactory = _$CreatePlaylistDtoToJson; Map toJson() => _$CreatePlaylistDtoToJson(this); @@ -24440,19 +23932,15 @@ class CreatePlaylistDto { bool operator ==(Object other) { return identical(this, other) || (other is CreatePlaylistDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.ids, ids) || - const DeepCollectionEquality().equals(other.ids, ids)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.ids, ids) || const DeepCollectionEquality().equals(other.ids, ids)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.mediaType, mediaType) || const DeepCollectionEquality().equals( other.mediaType, mediaType, )) && - (identical(other.users, users) || - const DeepCollectionEquality().equals(other.users, users)) && + (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || const DeepCollectionEquality().equals( other.isPublic, @@ -24516,8 +24004,7 @@ extension $CreatePlaylistDtoExtension on CreatePlaylistDto { class CreateUserByName { const CreateUserByName({required this.name, this.password}); - factory CreateUserByName.fromJson(Map json) => - _$CreateUserByNameFromJson(json); + factory CreateUserByName.fromJson(Map json) => _$CreateUserByNameFromJson(json); static const toJsonFactory = _$CreateUserByNameToJson; Map toJson() => _$CreateUserByNameToJson(this); @@ -24532,8 +24019,7 @@ class CreateUserByName { bool operator ==(Object other) { return identical(this, other) || (other is CreateUserByName && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || const DeepCollectionEquality().equals( other.password, @@ -24546,9 +24032,7 @@ class CreateUserByName { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(password) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(password) ^ runtimeType.hashCode; } extension $CreateUserByNameExtension on CreateUserByName { @@ -24580,8 +24064,7 @@ class CultureDto { this.threeLetterISOLanguageNames, }); - factory CultureDto.fromJson(Map json) => - _$CultureDtoFromJson(json); + factory CultureDto.fromJson(Map json) => _$CultureDtoFromJson(json); static const toJsonFactory = _$CultureDtoToJson; Map toJson() => _$CultureDtoToJson(this); @@ -24606,8 +24089,7 @@ class CultureDto { bool operator ==(Object other) { return identical(this, other) || (other is CultureDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || const DeepCollectionEquality().equals( other.displayName, @@ -24663,12 +24145,9 @@ extension $CultureDtoExtension on CultureDto { return CultureDto( name: name ?? this.name, displayName: displayName ?? this.displayName, - twoLetterISOLanguageName: - twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, - threeLetterISOLanguageName: - threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, - threeLetterISOLanguageNames: - threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames, + twoLetterISOLanguageName: twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, + threeLetterISOLanguageName: threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + threeLetterISOLanguageNames: threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames, ); } @@ -24682,15 +24161,12 @@ extension $CultureDtoExtension on CultureDto { return CultureDto( name: (name != null ? name.value : this.name), displayName: (displayName != null ? displayName.value : this.displayName), - twoLetterISOLanguageName: (twoLetterISOLanguageName != null - ? twoLetterISOLanguageName.value - : this.twoLetterISOLanguageName), - threeLetterISOLanguageName: (threeLetterISOLanguageName != null - ? threeLetterISOLanguageName.value - : this.threeLetterISOLanguageName), - threeLetterISOLanguageNames: (threeLetterISOLanguageNames != null - ? threeLetterISOLanguageNames.value - : this.threeLetterISOLanguageNames), + twoLetterISOLanguageName: + (twoLetterISOLanguageName != null ? twoLetterISOLanguageName.value : this.twoLetterISOLanguageName), + threeLetterISOLanguageName: + (threeLetterISOLanguageName != null ? threeLetterISOLanguageName.value : this.threeLetterISOLanguageName), + threeLetterISOLanguageNames: + (threeLetterISOLanguageNames != null ? threeLetterISOLanguageNames.value : this.threeLetterISOLanguageNames), ); } } @@ -24699,8 +24175,7 @@ extension $CultureDtoExtension on CultureDto { class CustomDatabaseOption { const CustomDatabaseOption({this.key, this.$Value}); - factory CustomDatabaseOption.fromJson(Map json) => - _$CustomDatabaseOptionFromJson(json); + factory CustomDatabaseOption.fromJson(Map json) => _$CustomDatabaseOptionFromJson(json); static const toJsonFactory = _$CustomDatabaseOptionToJson; Map toJson() => _$CustomDatabaseOptionToJson(this); @@ -24715,10 +24190,8 @@ class CustomDatabaseOption { bool operator ==(Object other) { return identical(this, other) || (other is CustomDatabaseOption && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -24726,9 +24199,7 @@ class CustomDatabaseOption { @override int get hashCode => - const DeepCollectionEquality().hash(key) ^ - const DeepCollectionEquality().hash($Value) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(key) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; } extension $CustomDatabaseOptionExtension on CustomDatabaseOption { @@ -24759,8 +24230,7 @@ class CustomDatabaseOptions { this.options, }); - factory CustomDatabaseOptions.fromJson(Map json) => - _$CustomDatabaseOptionsFromJson(json); + factory CustomDatabaseOptions.fromJson(Map json) => _$CustomDatabaseOptionsFromJson(json); static const toJsonFactory = _$CustomDatabaseOptionsToJson; Map toJson() => _$CustomDatabaseOptionsToJson(this); @@ -24798,8 +24268,7 @@ class CustomDatabaseOptions { other.connectionString, connectionString, )) && - (identical(other.options, options) || - const DeepCollectionEquality().equals(other.options, options))); + (identical(other.options, options) || const DeepCollectionEquality().equals(other.options, options))); } @override @@ -24837,12 +24306,8 @@ extension $CustomDatabaseOptionsExtension on CustomDatabaseOptions { }) { return CustomDatabaseOptions( pluginName: (pluginName != null ? pluginName.value : this.pluginName), - pluginAssembly: (pluginAssembly != null - ? pluginAssembly.value - : this.pluginAssembly), - connectionString: (connectionString != null - ? connectionString.value - : this.connectionString), + pluginAssembly: (pluginAssembly != null ? pluginAssembly.value : this.pluginAssembly), + connectionString: (connectionString != null ? connectionString.value : this.connectionString), options: (options != null ? options.value : this.options), ); } @@ -24852,8 +24317,7 @@ extension $CustomDatabaseOptionsExtension on CustomDatabaseOptions { class CustomQueryData { const CustomQueryData({this.customQueryString, this.replaceUserId}); - factory CustomQueryData.fromJson(Map json) => - _$CustomQueryDataFromJson(json); + factory CustomQueryData.fromJson(Map json) => _$CustomQueryDataFromJson(json); static const toJsonFactory = _$CustomQueryDataToJson; Map toJson() => _$CustomQueryDataToJson(this); @@ -24903,12 +24367,8 @@ extension $CustomQueryDataExtension on CustomQueryData { Wrapped? replaceUserId, }) { return CustomQueryData( - customQueryString: (customQueryString != null - ? customQueryString.value - : this.customQueryString), - replaceUserId: (replaceUserId != null - ? replaceUserId.value - : this.replaceUserId), + customQueryString: (customQueryString != null ? customQueryString.value : this.customQueryString), + replaceUserId: (replaceUserId != null ? replaceUserId.value : this.replaceUserId), ); } } @@ -24972,8 +24432,7 @@ class DatabaseConfigurationOptions { runtimeType.hashCode; } -extension $DatabaseConfigurationOptionsExtension - on DatabaseConfigurationOptions { +extension $DatabaseConfigurationOptionsExtension on DatabaseConfigurationOptions { DatabaseConfigurationOptions copyWith({ String? databaseType, CustomDatabaseOptions? customProviderOptions, @@ -24981,8 +24440,7 @@ extension $DatabaseConfigurationOptionsExtension }) { return DatabaseConfigurationOptions( databaseType: databaseType ?? this.databaseType, - customProviderOptions: - customProviderOptions ?? this.customProviderOptions, + customProviderOptions: customProviderOptions ?? this.customProviderOptions, lockingBehavior: lockingBehavior ?? this.lockingBehavior, ); } @@ -24993,15 +24451,9 @@ extension $DatabaseConfigurationOptionsExtension Wrapped? lockingBehavior, }) { return DatabaseConfigurationOptions( - databaseType: (databaseType != null - ? databaseType.value - : this.databaseType), - customProviderOptions: (customProviderOptions != null - ? customProviderOptions.value - : this.customProviderOptions), - lockingBehavior: (lockingBehavior != null - ? lockingBehavior.value - : this.lockingBehavior), + databaseType: (databaseType != null ? databaseType.value : this.databaseType), + customProviderOptions: (customProviderOptions != null ? customProviderOptions.value : this.customProviderOptions), + lockingBehavior: (lockingBehavior != null ? lockingBehavior.value : this.lockingBehavior), ); } } @@ -25024,20 +24476,17 @@ class DefaultDirectoryBrowserInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is DefaultDirectoryBrowserInfoDto && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; } -extension $DefaultDirectoryBrowserInfoDtoExtension - on DefaultDirectoryBrowserInfoDto { +extension $DefaultDirectoryBrowserInfoDtoExtension on DefaultDirectoryBrowserInfoDto { DefaultDirectoryBrowserInfoDto copyWith({String? path}) { return DefaultDirectoryBrowserInfoDto(path: path ?? this.path); } @@ -25065,8 +24514,7 @@ class DeviceInfoDto { this.iconUrl, }); - factory DeviceInfoDto.fromJson(Map json) => - _$DeviceInfoDtoFromJson(json); + factory DeviceInfoDto.fromJson(Map json) => _$DeviceInfoDtoFromJson(json); static const toJsonFactory = _$DeviceInfoDtoToJson; Map toJson() => _$DeviceInfoDtoToJson(this); @@ -25099,8 +24547,7 @@ class DeviceInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is DeviceInfoDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.customName, customName) || const DeepCollectionEquality().equals( other.customName, @@ -25111,8 +24558,7 @@ class DeviceInfoDto { other.accessToken, accessToken, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastUserName, lastUserName) || const DeepCollectionEquality().equals( other.lastUserName, @@ -25143,8 +24589,7 @@ class DeviceInfoDto { other.capabilities, capabilities, )) && - (identical(other.iconUrl, iconUrl) || - const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); + (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @override @@ -25213,18 +24658,12 @@ extension $DeviceInfoDtoExtension on DeviceInfoDto { customName: (customName != null ? customName.value : this.customName), accessToken: (accessToken != null ? accessToken.value : this.accessToken), id: (id != null ? id.value : this.id), - lastUserName: (lastUserName != null - ? lastUserName.value - : this.lastUserName), + lastUserName: (lastUserName != null ? lastUserName.value : this.lastUserName), appName: (appName != null ? appName.value : this.appName), appVersion: (appVersion != null ? appVersion.value : this.appVersion), lastUserId: (lastUserId != null ? lastUserId.value : this.lastUserId), - dateLastActivity: (dateLastActivity != null - ? dateLastActivity.value - : this.dateLastActivity), - capabilities: (capabilities != null - ? capabilities.value - : this.capabilities), + dateLastActivity: (dateLastActivity != null ? dateLastActivity.value : this.dateLastActivity), + capabilities: (capabilities != null ? capabilities.value : this.capabilities), iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), ); } @@ -25238,8 +24677,7 @@ class DeviceInfoDtoQueryResult { this.startIndex, }); - factory DeviceInfoDtoQueryResult.fromJson(Map json) => - _$DeviceInfoDtoQueryResultFromJson(json); + factory DeviceInfoDtoQueryResult.fromJson(Map json) => _$DeviceInfoDtoQueryResultFromJson(json); static const toJsonFactory = _$DeviceInfoDtoQueryResultToJson; Map toJson() => _$DeviceInfoDtoQueryResultToJson(this); @@ -25256,8 +24694,7 @@ class DeviceInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is DeviceInfoDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -25301,9 +24738,7 @@ extension $DeviceInfoDtoQueryResultExtension on DeviceInfoDtoQueryResult { }) { return DeviceInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -25313,8 +24748,7 @@ extension $DeviceInfoDtoQueryResultExtension on DeviceInfoDtoQueryResult { class DeviceOptionsDto { const DeviceOptionsDto({this.id, this.deviceId, this.customName}); - factory DeviceOptionsDto.fromJson(Map json) => - _$DeviceOptionsDtoFromJson(json); + factory DeviceOptionsDto.fromJson(Map json) => _$DeviceOptionsDtoFromJson(json); static const toJsonFactory = _$DeviceOptionsDtoToJson; Map toJson() => _$DeviceOptionsDtoToJson(this); @@ -25331,8 +24765,7 @@ class DeviceOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is DeviceOptionsDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -25394,8 +24827,7 @@ class DeviceProfile { this.subtitleProfiles, }); - factory DeviceProfile.fromJson(Map json) => - _$DeviceProfileFromJson(json); + factory DeviceProfile.fromJson(Map json) => _$DeviceProfileFromJson(json); static const toJsonFactory = _$DeviceProfileToJson; Map toJson() => _$DeviceProfileToJson(this); @@ -25448,10 +24880,8 @@ class DeviceProfile { bool operator ==(Object other) { return identical(this, other) || (other is DeviceProfile && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || const DeepCollectionEquality().equals( other.maxStreamingBitrate, @@ -25540,11 +24970,8 @@ extension $DeviceProfileExtension on DeviceProfile { id: id ?? this.id, maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, maxStaticBitrate: maxStaticBitrate ?? this.maxStaticBitrate, - musicStreamingTranscodingBitrate: - musicStreamingTranscodingBitrate ?? - this.musicStreamingTranscodingBitrate, - maxStaticMusicBitrate: - maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, + musicStreamingTranscodingBitrate: musicStreamingTranscodingBitrate ?? this.musicStreamingTranscodingBitrate, + maxStaticMusicBitrate: maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, directPlayProfiles: directPlayProfiles ?? this.directPlayProfiles, transcodingProfiles: transcodingProfiles ?? this.transcodingProfiles, containerProfiles: containerProfiles ?? this.containerProfiles, @@ -25569,34 +24996,17 @@ extension $DeviceProfileExtension on DeviceProfile { return DeviceProfile( name: (name != null ? name.value : this.name), id: (id != null ? id.value : this.id), - maxStreamingBitrate: (maxStreamingBitrate != null - ? maxStreamingBitrate.value - : this.maxStreamingBitrate), - maxStaticBitrate: (maxStaticBitrate != null - ? maxStaticBitrate.value - : this.maxStaticBitrate), - musicStreamingTranscodingBitrate: - (musicStreamingTranscodingBitrate != null + maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), + maxStaticBitrate: (maxStaticBitrate != null ? maxStaticBitrate.value : this.maxStaticBitrate), + musicStreamingTranscodingBitrate: (musicStreamingTranscodingBitrate != null ? musicStreamingTranscodingBitrate.value : this.musicStreamingTranscodingBitrate), - maxStaticMusicBitrate: (maxStaticMusicBitrate != null - ? maxStaticMusicBitrate.value - : this.maxStaticMusicBitrate), - directPlayProfiles: (directPlayProfiles != null - ? directPlayProfiles.value - : this.directPlayProfiles), - transcodingProfiles: (transcodingProfiles != null - ? transcodingProfiles.value - : this.transcodingProfiles), - containerProfiles: (containerProfiles != null - ? containerProfiles.value - : this.containerProfiles), - codecProfiles: (codecProfiles != null - ? codecProfiles.value - : this.codecProfiles), - subtitleProfiles: (subtitleProfiles != null - ? subtitleProfiles.value - : this.subtitleProfiles), + maxStaticMusicBitrate: (maxStaticMusicBitrate != null ? maxStaticMusicBitrate.value : this.maxStaticMusicBitrate), + directPlayProfiles: (directPlayProfiles != null ? directPlayProfiles.value : this.directPlayProfiles), + transcodingProfiles: (transcodingProfiles != null ? transcodingProfiles.value : this.transcodingProfiles), + containerProfiles: (containerProfiles != null ? containerProfiles.value : this.containerProfiles), + codecProfiles: (codecProfiles != null ? codecProfiles.value : this.codecProfiles), + subtitleProfiles: (subtitleProfiles != null ? subtitleProfiles.value : this.subtitleProfiles), ); } } @@ -25610,8 +25020,7 @@ class DirectPlayProfile { this.type, }); - factory DirectPlayProfile.fromJson(Map json) => - _$DirectPlayProfileFromJson(json); + factory DirectPlayProfile.fromJson(Map json) => _$DirectPlayProfileFromJson(json); static const toJsonFactory = _$DirectPlayProfileToJson; Map toJson() => _$DirectPlayProfileToJson(this); @@ -25650,8 +25059,7 @@ class DirectPlayProfile { other.videoCodec, videoCodec, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -25715,8 +25123,7 @@ class DisplayPreferencesDto { this.$Client, }); - factory DisplayPreferencesDto.fromJson(Map json) => - _$DisplayPreferencesDtoFromJson(json); + factory DisplayPreferencesDto.fromJson(Map json) => _$DisplayPreferencesDtoFromJson(json); static const toJsonFactory = _$DisplayPreferencesDtoToJson; Map toJson() => _$DisplayPreferencesDtoToJson(this); @@ -25765,15 +25172,13 @@ class DisplayPreferencesDto { bool operator ==(Object other) { return identical(this, other) || (other is DisplayPreferencesDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.viewType, viewType) || const DeepCollectionEquality().equals( other.viewType, viewType, )) && - (identical(other.sortBy, sortBy) || - const DeepCollectionEquality().equals(other.sortBy, sortBy)) && + (identical(other.sortBy, sortBy) || const DeepCollectionEquality().equals(other.sortBy, sortBy)) && (identical(other.indexBy, indexBy) || const DeepCollectionEquality().equals( other.indexBy, @@ -25824,8 +25229,7 @@ class DisplayPreferencesDto { other.showSidebar, showSidebar, )) && - (identical(other.$Client, $Client) || - const DeepCollectionEquality().equals(other.$Client, $Client))); + (identical(other.$Client, $Client) || const DeepCollectionEquality().equals(other.$Client, $Client))); } @override @@ -25906,25 +25310,13 @@ extension $DisplayPreferencesDtoExtension on DisplayPreferencesDto { viewType: (viewType != null ? viewType.value : this.viewType), sortBy: (sortBy != null ? sortBy.value : this.sortBy), indexBy: (indexBy != null ? indexBy.value : this.indexBy), - rememberIndexing: (rememberIndexing != null - ? rememberIndexing.value - : this.rememberIndexing), - primaryImageHeight: (primaryImageHeight != null - ? primaryImageHeight.value - : this.primaryImageHeight), - primaryImageWidth: (primaryImageWidth != null - ? primaryImageWidth.value - : this.primaryImageWidth), + rememberIndexing: (rememberIndexing != null ? rememberIndexing.value : this.rememberIndexing), + primaryImageHeight: (primaryImageHeight != null ? primaryImageHeight.value : this.primaryImageHeight), + primaryImageWidth: (primaryImageWidth != null ? primaryImageWidth.value : this.primaryImageWidth), customPrefs: (customPrefs != null ? customPrefs.value : this.customPrefs), - scrollDirection: (scrollDirection != null - ? scrollDirection.value - : this.scrollDirection), - showBackdrop: (showBackdrop != null - ? showBackdrop.value - : this.showBackdrop), - rememberSorting: (rememberSorting != null - ? rememberSorting.value - : this.rememberSorting), + scrollDirection: (scrollDirection != null ? scrollDirection.value : this.scrollDirection), + showBackdrop: (showBackdrop != null ? showBackdrop.value : this.showBackdrop), + rememberSorting: (rememberSorting != null ? rememberSorting.value : this.rememberSorting), sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), showSidebar: (showSidebar != null ? showSidebar.value : this.showSidebar), $Client: ($Client != null ? $Client.value : this.$Client), @@ -25984,8 +25376,7 @@ class EncodingOptions { this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, }); - factory EncodingOptions.fromJson(Map json) => - _$EncodingOptionsFromJson(json); + factory EncodingOptions.fromJson(Map json) => _$EncodingOptionsFromJson(json); static const toJsonFactory = _$EncodingOptionsToJson; Map toJson() => _$EncodingOptionsToJson(this); @@ -26400,13 +25791,11 @@ class EncodingOptions { hardwareDecodingCodecs, )) && (identical( - other - .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ) || const DeepCollectionEquality().equals( - other - .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ))); } @@ -26525,72 +25914,49 @@ extension $EncodingOptionsExtension on EncodingOptions { enableFallbackFont: enableFallbackFont ?? this.enableFallbackFont, enableAudioVbr: enableAudioVbr ?? this.enableAudioVbr, downMixAudioBoost: downMixAudioBoost ?? this.downMixAudioBoost, - downMixStereoAlgorithm: - downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, + downMixStereoAlgorithm: downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, maxMuxingQueueSize: maxMuxingQueueSize ?? this.maxMuxingQueueSize, enableThrottling: enableThrottling ?? this.enableThrottling, throttleDelaySeconds: throttleDelaySeconds ?? this.throttleDelaySeconds, - enableSegmentDeletion: - enableSegmentDeletion ?? this.enableSegmentDeletion, + enableSegmentDeletion: enableSegmentDeletion ?? this.enableSegmentDeletion, segmentKeepSeconds: segmentKeepSeconds ?? this.segmentKeepSeconds, - hardwareAccelerationType: - hardwareAccelerationType ?? this.hardwareAccelerationType, + hardwareAccelerationType: hardwareAccelerationType ?? this.hardwareAccelerationType, encoderAppPath: encoderAppPath ?? this.encoderAppPath, - encoderAppPathDisplay: - encoderAppPathDisplay ?? this.encoderAppPathDisplay, + encoderAppPathDisplay: encoderAppPathDisplay ?? this.encoderAppPathDisplay, vaapiDevice: vaapiDevice ?? this.vaapiDevice, qsvDevice: qsvDevice ?? this.qsvDevice, enableTonemapping: enableTonemapping ?? this.enableTonemapping, enableVppTonemapping: enableVppTonemapping ?? this.enableVppTonemapping, - enableVideoToolboxTonemapping: - enableVideoToolboxTonemapping ?? this.enableVideoToolboxTonemapping, + enableVideoToolboxTonemapping: enableVideoToolboxTonemapping ?? this.enableVideoToolboxTonemapping, tonemappingAlgorithm: tonemappingAlgorithm ?? this.tonemappingAlgorithm, tonemappingMode: tonemappingMode ?? this.tonemappingMode, tonemappingRange: tonemappingRange ?? this.tonemappingRange, tonemappingDesat: tonemappingDesat ?? this.tonemappingDesat, tonemappingPeak: tonemappingPeak ?? this.tonemappingPeak, tonemappingParam: tonemappingParam ?? this.tonemappingParam, - vppTonemappingBrightness: - vppTonemappingBrightness ?? this.vppTonemappingBrightness, - vppTonemappingContrast: - vppTonemappingContrast ?? this.vppTonemappingContrast, + vppTonemappingBrightness: vppTonemappingBrightness ?? this.vppTonemappingBrightness, + vppTonemappingContrast: vppTonemappingContrast ?? this.vppTonemappingContrast, h264Crf: h264Crf ?? this.h264Crf, h265Crf: h265Crf ?? this.h265Crf, encoderPreset: encoderPreset ?? this.encoderPreset, - deinterlaceDoubleRate: - deinterlaceDoubleRate ?? this.deinterlaceDoubleRate, + deinterlaceDoubleRate: deinterlaceDoubleRate ?? this.deinterlaceDoubleRate, deinterlaceMethod: deinterlaceMethod ?? this.deinterlaceMethod, - enableDecodingColorDepth10Hevc: - enableDecodingColorDepth10Hevc ?? this.enableDecodingColorDepth10Hevc, - enableDecodingColorDepth10Vp9: - enableDecodingColorDepth10Vp9 ?? this.enableDecodingColorDepth10Vp9, - enableDecodingColorDepth10HevcRext: - enableDecodingColorDepth10HevcRext ?? - this.enableDecodingColorDepth10HevcRext, - enableDecodingColorDepth12HevcRext: - enableDecodingColorDepth12HevcRext ?? - this.enableDecodingColorDepth12HevcRext, - enableEnhancedNvdecDecoder: - enableEnhancedNvdecDecoder ?? this.enableEnhancedNvdecDecoder, - preferSystemNativeHwDecoder: - preferSystemNativeHwDecoder ?? this.preferSystemNativeHwDecoder, - enableIntelLowPowerH264HwEncoder: - enableIntelLowPowerH264HwEncoder ?? - this.enableIntelLowPowerH264HwEncoder, - enableIntelLowPowerHevcHwEncoder: - enableIntelLowPowerHevcHwEncoder ?? - this.enableIntelLowPowerHevcHwEncoder, - enableHardwareEncoding: - enableHardwareEncoding ?? this.enableHardwareEncoding, + enableDecodingColorDepth10Hevc: enableDecodingColorDepth10Hevc ?? this.enableDecodingColorDepth10Hevc, + enableDecodingColorDepth10Vp9: enableDecodingColorDepth10Vp9 ?? this.enableDecodingColorDepth10Vp9, + enableDecodingColorDepth10HevcRext: enableDecodingColorDepth10HevcRext ?? this.enableDecodingColorDepth10HevcRext, + enableDecodingColorDepth12HevcRext: enableDecodingColorDepth12HevcRext ?? this.enableDecodingColorDepth12HevcRext, + enableEnhancedNvdecDecoder: enableEnhancedNvdecDecoder ?? this.enableEnhancedNvdecDecoder, + preferSystemNativeHwDecoder: preferSystemNativeHwDecoder ?? this.preferSystemNativeHwDecoder, + enableIntelLowPowerH264HwEncoder: enableIntelLowPowerH264HwEncoder ?? this.enableIntelLowPowerH264HwEncoder, + enableIntelLowPowerHevcHwEncoder: enableIntelLowPowerHevcHwEncoder ?? this.enableIntelLowPowerHevcHwEncoder, + enableHardwareEncoding: enableHardwareEncoding ?? this.enableHardwareEncoding, allowHevcEncoding: allowHevcEncoding ?? this.allowHevcEncoding, allowAv1Encoding: allowAv1Encoding ?? this.allowAv1Encoding, - enableSubtitleExtraction: - enableSubtitleExtraction ?? this.enableSubtitleExtraction, - hardwareDecodingCodecs: - hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, + enableSubtitleExtraction: enableSubtitleExtraction ?? this.enableSubtitleExtraction, + hardwareDecodingCodecs: hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, allowOnDemandMetadataBasedKeyframeExtractionForExtensions: allowOnDemandMetadataBasedKeyframeExtractionForExtensions ?? - this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ); } @@ -26641,148 +26007,82 @@ extension $EncodingOptionsExtension on EncodingOptions { Wrapped? allowAv1Encoding, Wrapped? enableSubtitleExtraction, Wrapped?>? hardwareDecodingCodecs, - Wrapped?>? - allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + Wrapped?>? allowOnDemandMetadataBasedKeyframeExtractionForExtensions, }) { return EncodingOptions( - encodingThreadCount: (encodingThreadCount != null - ? encodingThreadCount.value - : this.encodingThreadCount), - transcodingTempPath: (transcodingTempPath != null - ? transcodingTempPath.value - : this.transcodingTempPath), - fallbackFontPath: (fallbackFontPath != null - ? fallbackFontPath.value - : this.fallbackFontPath), - enableFallbackFont: (enableFallbackFont != null - ? enableFallbackFont.value - : this.enableFallbackFont), - enableAudioVbr: (enableAudioVbr != null - ? enableAudioVbr.value - : this.enableAudioVbr), - downMixAudioBoost: (downMixAudioBoost != null - ? downMixAudioBoost.value - : this.downMixAudioBoost), - downMixStereoAlgorithm: (downMixStereoAlgorithm != null - ? downMixStereoAlgorithm.value - : this.downMixStereoAlgorithm), - maxMuxingQueueSize: (maxMuxingQueueSize != null - ? maxMuxingQueueSize.value - : this.maxMuxingQueueSize), - enableThrottling: (enableThrottling != null - ? enableThrottling.value - : this.enableThrottling), - throttleDelaySeconds: (throttleDelaySeconds != null - ? throttleDelaySeconds.value - : this.throttleDelaySeconds), - enableSegmentDeletion: (enableSegmentDeletion != null - ? enableSegmentDeletion.value - : this.enableSegmentDeletion), - segmentKeepSeconds: (segmentKeepSeconds != null - ? segmentKeepSeconds.value - : this.segmentKeepSeconds), - hardwareAccelerationType: (hardwareAccelerationType != null - ? hardwareAccelerationType.value - : this.hardwareAccelerationType), - encoderAppPath: (encoderAppPath != null - ? encoderAppPath.value - : this.encoderAppPath), - encoderAppPathDisplay: (encoderAppPathDisplay != null - ? encoderAppPathDisplay.value - : this.encoderAppPathDisplay), + encodingThreadCount: (encodingThreadCount != null ? encodingThreadCount.value : this.encodingThreadCount), + transcodingTempPath: (transcodingTempPath != null ? transcodingTempPath.value : this.transcodingTempPath), + fallbackFontPath: (fallbackFontPath != null ? fallbackFontPath.value : this.fallbackFontPath), + enableFallbackFont: (enableFallbackFont != null ? enableFallbackFont.value : this.enableFallbackFont), + enableAudioVbr: (enableAudioVbr != null ? enableAudioVbr.value : this.enableAudioVbr), + downMixAudioBoost: (downMixAudioBoost != null ? downMixAudioBoost.value : this.downMixAudioBoost), + downMixStereoAlgorithm: + (downMixStereoAlgorithm != null ? downMixStereoAlgorithm.value : this.downMixStereoAlgorithm), + maxMuxingQueueSize: (maxMuxingQueueSize != null ? maxMuxingQueueSize.value : this.maxMuxingQueueSize), + enableThrottling: (enableThrottling != null ? enableThrottling.value : this.enableThrottling), + throttleDelaySeconds: (throttleDelaySeconds != null ? throttleDelaySeconds.value : this.throttleDelaySeconds), + enableSegmentDeletion: (enableSegmentDeletion != null ? enableSegmentDeletion.value : this.enableSegmentDeletion), + segmentKeepSeconds: (segmentKeepSeconds != null ? segmentKeepSeconds.value : this.segmentKeepSeconds), + hardwareAccelerationType: + (hardwareAccelerationType != null ? hardwareAccelerationType.value : this.hardwareAccelerationType), + encoderAppPath: (encoderAppPath != null ? encoderAppPath.value : this.encoderAppPath), + encoderAppPathDisplay: (encoderAppPathDisplay != null ? encoderAppPathDisplay.value : this.encoderAppPathDisplay), vaapiDevice: (vaapiDevice != null ? vaapiDevice.value : this.vaapiDevice), qsvDevice: (qsvDevice != null ? qsvDevice.value : this.qsvDevice), - enableTonemapping: (enableTonemapping != null - ? enableTonemapping.value - : this.enableTonemapping), - enableVppTonemapping: (enableVppTonemapping != null - ? enableVppTonemapping.value - : this.enableVppTonemapping), + enableTonemapping: (enableTonemapping != null ? enableTonemapping.value : this.enableTonemapping), + enableVppTonemapping: (enableVppTonemapping != null ? enableVppTonemapping.value : this.enableVppTonemapping), enableVideoToolboxTonemapping: (enableVideoToolboxTonemapping != null ? enableVideoToolboxTonemapping.value : this.enableVideoToolboxTonemapping), - tonemappingAlgorithm: (tonemappingAlgorithm != null - ? tonemappingAlgorithm.value - : this.tonemappingAlgorithm), - tonemappingMode: (tonemappingMode != null - ? tonemappingMode.value - : this.tonemappingMode), - tonemappingRange: (tonemappingRange != null - ? tonemappingRange.value - : this.tonemappingRange), - tonemappingDesat: (tonemappingDesat != null - ? tonemappingDesat.value - : this.tonemappingDesat), - tonemappingPeak: (tonemappingPeak != null - ? tonemappingPeak.value - : this.tonemappingPeak), - tonemappingParam: (tonemappingParam != null - ? tonemappingParam.value - : this.tonemappingParam), - vppTonemappingBrightness: (vppTonemappingBrightness != null - ? vppTonemappingBrightness.value - : this.vppTonemappingBrightness), - vppTonemappingContrast: (vppTonemappingContrast != null - ? vppTonemappingContrast.value - : this.vppTonemappingContrast), + tonemappingAlgorithm: (tonemappingAlgorithm != null ? tonemappingAlgorithm.value : this.tonemappingAlgorithm), + tonemappingMode: (tonemappingMode != null ? tonemappingMode.value : this.tonemappingMode), + tonemappingRange: (tonemappingRange != null ? tonemappingRange.value : this.tonemappingRange), + tonemappingDesat: (tonemappingDesat != null ? tonemappingDesat.value : this.tonemappingDesat), + tonemappingPeak: (tonemappingPeak != null ? tonemappingPeak.value : this.tonemappingPeak), + tonemappingParam: (tonemappingParam != null ? tonemappingParam.value : this.tonemappingParam), + vppTonemappingBrightness: + (vppTonemappingBrightness != null ? vppTonemappingBrightness.value : this.vppTonemappingBrightness), + vppTonemappingContrast: + (vppTonemappingContrast != null ? vppTonemappingContrast.value : this.vppTonemappingContrast), h264Crf: (h264Crf != null ? h264Crf.value : this.h264Crf), h265Crf: (h265Crf != null ? h265Crf.value : this.h265Crf), - encoderPreset: (encoderPreset != null - ? encoderPreset.value - : this.encoderPreset), - deinterlaceDoubleRate: (deinterlaceDoubleRate != null - ? deinterlaceDoubleRate.value - : this.deinterlaceDoubleRate), - deinterlaceMethod: (deinterlaceMethod != null - ? deinterlaceMethod.value - : this.deinterlaceMethod), + encoderPreset: (encoderPreset != null ? encoderPreset.value : this.encoderPreset), + deinterlaceDoubleRate: (deinterlaceDoubleRate != null ? deinterlaceDoubleRate.value : this.deinterlaceDoubleRate), + deinterlaceMethod: (deinterlaceMethod != null ? deinterlaceMethod.value : this.deinterlaceMethod), enableDecodingColorDepth10Hevc: (enableDecodingColorDepth10Hevc != null ? enableDecodingColorDepth10Hevc.value : this.enableDecodingColorDepth10Hevc), enableDecodingColorDepth10Vp9: (enableDecodingColorDepth10Vp9 != null ? enableDecodingColorDepth10Vp9.value : this.enableDecodingColorDepth10Vp9), - enableDecodingColorDepth10HevcRext: - (enableDecodingColorDepth10HevcRext != null + enableDecodingColorDepth10HevcRext: (enableDecodingColorDepth10HevcRext != null ? enableDecodingColorDepth10HevcRext.value : this.enableDecodingColorDepth10HevcRext), - enableDecodingColorDepth12HevcRext: - (enableDecodingColorDepth12HevcRext != null + enableDecodingColorDepth12HevcRext: (enableDecodingColorDepth12HevcRext != null ? enableDecodingColorDepth12HevcRext.value : this.enableDecodingColorDepth12HevcRext), - enableEnhancedNvdecDecoder: (enableEnhancedNvdecDecoder != null - ? enableEnhancedNvdecDecoder.value - : this.enableEnhancedNvdecDecoder), - preferSystemNativeHwDecoder: (preferSystemNativeHwDecoder != null - ? preferSystemNativeHwDecoder.value - : this.preferSystemNativeHwDecoder), - enableIntelLowPowerH264HwEncoder: - (enableIntelLowPowerH264HwEncoder != null + enableEnhancedNvdecDecoder: + (enableEnhancedNvdecDecoder != null ? enableEnhancedNvdecDecoder.value : this.enableEnhancedNvdecDecoder), + preferSystemNativeHwDecoder: + (preferSystemNativeHwDecoder != null ? preferSystemNativeHwDecoder.value : this.preferSystemNativeHwDecoder), + enableIntelLowPowerH264HwEncoder: (enableIntelLowPowerH264HwEncoder != null ? enableIntelLowPowerH264HwEncoder.value : this.enableIntelLowPowerH264HwEncoder), - enableIntelLowPowerHevcHwEncoder: - (enableIntelLowPowerHevcHwEncoder != null + enableIntelLowPowerHevcHwEncoder: (enableIntelLowPowerHevcHwEncoder != null ? enableIntelLowPowerHevcHwEncoder.value : this.enableIntelLowPowerHevcHwEncoder), - enableHardwareEncoding: (enableHardwareEncoding != null - ? enableHardwareEncoding.value - : this.enableHardwareEncoding), - allowHevcEncoding: (allowHevcEncoding != null - ? allowHevcEncoding.value - : this.allowHevcEncoding), - allowAv1Encoding: (allowAv1Encoding != null - ? allowAv1Encoding.value - : this.allowAv1Encoding), - enableSubtitleExtraction: (enableSubtitleExtraction != null - ? enableSubtitleExtraction.value - : this.enableSubtitleExtraction), - hardwareDecodingCodecs: (hardwareDecodingCodecs != null - ? hardwareDecodingCodecs.value - : this.hardwareDecodingCodecs), + enableHardwareEncoding: + (enableHardwareEncoding != null ? enableHardwareEncoding.value : this.enableHardwareEncoding), + allowHevcEncoding: (allowHevcEncoding != null ? allowHevcEncoding.value : this.allowHevcEncoding), + allowAv1Encoding: (allowAv1Encoding != null ? allowAv1Encoding.value : this.allowAv1Encoding), + enableSubtitleExtraction: + (enableSubtitleExtraction != null ? enableSubtitleExtraction.value : this.enableSubtitleExtraction), + hardwareDecodingCodecs: + (hardwareDecodingCodecs != null ? hardwareDecodingCodecs.value : this.hardwareDecodingCodecs), allowOnDemandMetadataBasedKeyframeExtractionForExtensions: (allowOnDemandMetadataBasedKeyframeExtractionForExtensions != null - ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value - : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions), + ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value + : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions), ); } } @@ -26791,8 +26091,7 @@ extension $EncodingOptionsExtension on EncodingOptions { class EndPointInfo { const EndPointInfo({this.isLocal, this.isInNetwork}); - factory EndPointInfo.fromJson(Map json) => - _$EndPointInfoFromJson(json); + factory EndPointInfo.fromJson(Map json) => _$EndPointInfoFromJson(json); static const toJsonFactory = _$EndPointInfoToJson; Map toJson() => _$EndPointInfoToJson(this); @@ -26852,8 +26151,7 @@ extension $EndPointInfoExtension on EndPointInfo { class ExternalIdInfo { const ExternalIdInfo({this.name, this.key, this.type}); - factory ExternalIdInfo.fromJson(Map json) => - _$ExternalIdInfoFromJson(json); + factory ExternalIdInfo.fromJson(Map json) => _$ExternalIdInfoFromJson(json); static const toJsonFactory = _$ExternalIdInfoToJson; Map toJson() => _$ExternalIdInfoToJson(this); @@ -26875,12 +26173,9 @@ class ExternalIdInfo { bool operator ==(Object other) { return identical(this, other) || (other is ExternalIdInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -26924,8 +26219,7 @@ extension $ExternalIdInfoExtension on ExternalIdInfo { class ExternalUrl { const ExternalUrl({this.name, this.url}); - factory ExternalUrl.fromJson(Map json) => - _$ExternalUrlFromJson(json); + factory ExternalUrl.fromJson(Map json) => _$ExternalUrlFromJson(json); static const toJsonFactory = _$ExternalUrlToJson; Map toJson() => _$ExternalUrlToJson(this); @@ -26940,10 +26234,8 @@ class ExternalUrl { bool operator ==(Object other) { return identical(this, other) || (other is ExternalUrl && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url))); } @override @@ -26951,9 +26243,7 @@ class ExternalUrl { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(url) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(url) ^ runtimeType.hashCode; } extension $ExternalUrlExtension on ExternalUrl { @@ -26973,8 +26263,7 @@ extension $ExternalUrlExtension on ExternalUrl { class FileSystemEntryInfo { const FileSystemEntryInfo({this.name, this.path, this.type}); - factory FileSystemEntryInfo.fromJson(Map json) => - _$FileSystemEntryInfoFromJson(json); + factory FileSystemEntryInfo.fromJson(Map json) => _$FileSystemEntryInfoFromJson(json); static const toJsonFactory = _$FileSystemEntryInfoToJson; Map toJson() => _$FileSystemEntryInfoToJson(this); @@ -26996,12 +26285,9 @@ class FileSystemEntryInfo { bool operator ==(Object other) { return identical(this, other) || (other is FileSystemEntryInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -27051,8 +26337,7 @@ class FolderStorageDto { this.deviceId, }); - factory FolderStorageDto.fromJson(Map json) => - _$FolderStorageDtoFromJson(json); + factory FolderStorageDto.fromJson(Map json) => _$FolderStorageDtoFromJson(json); static const toJsonFactory = _$FolderStorageDtoToJson; Map toJson() => _$FolderStorageDtoToJson(this); @@ -27073,8 +26358,7 @@ class FolderStorageDto { bool operator ==(Object other) { return identical(this, other) || (other is FolderStorageDto && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.freeSpace, freeSpace) || const DeepCollectionEquality().equals( other.freeSpace, @@ -27148,8 +26432,7 @@ extension $FolderStorageDtoExtension on FolderStorageDto { class FontFile { const FontFile({this.name, this.size, this.dateCreated, this.dateModified}); - factory FontFile.fromJson(Map json) => - _$FontFileFromJson(json); + factory FontFile.fromJson(Map json) => _$FontFileFromJson(json); static const toJsonFactory = _$FontFileToJson; Map toJson() => _$FontFileToJson(this); @@ -27168,10 +26451,8 @@ class FontFile { bool operator ==(Object other) { return identical(this, other) || (other is FontFile && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && (identical(other.dateCreated, dateCreated) || const DeepCollectionEquality().equals( other.dateCreated, @@ -27221,9 +26502,7 @@ extension $FontFileExtension on FontFile { name: (name != null ? name.value : this.name), size: (size != null ? size.value : this.size), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateModified: (dateModified != null - ? dateModified.value - : this.dateModified), + dateModified: (dateModified != null ? dateModified.value : this.dateModified), ); } } @@ -27232,8 +26511,7 @@ extension $FontFileExtension on FontFile { class ForceKeepAliveMessage { const ForceKeepAliveMessage({this.data, this.messageId, this.messageType}); - factory ForceKeepAliveMessage.fromJson(Map json) => - _$ForceKeepAliveMessageFromJson(json); + factory ForceKeepAliveMessage.fromJson(Map json) => _$ForceKeepAliveMessageFromJson(json); static const toJsonFactory = _$ForceKeepAliveMessageToJson; Map toJson() => _$ForceKeepAliveMessageToJson(this); @@ -27249,8 +26527,7 @@ class ForceKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.forcekeepalive, @@ -27262,8 +26539,7 @@ class ForceKeepAliveMessage { bool operator ==(Object other) { return identical(this, other) || (other is ForceKeepAliveMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -27317,8 +26593,7 @@ extension $ForceKeepAliveMessageExtension on ForceKeepAliveMessage { class ForgotPasswordDto { const ForgotPasswordDto({required this.enteredUsername}); - factory ForgotPasswordDto.fromJson(Map json) => - _$ForgotPasswordDtoFromJson(json); + factory ForgotPasswordDto.fromJson(Map json) => _$ForgotPasswordDtoFromJson(json); static const toJsonFactory = _$ForgotPasswordDtoToJson; Map toJson() => _$ForgotPasswordDtoToJson(this); @@ -27342,9 +26617,7 @@ class ForgotPasswordDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(enteredUsername) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(enteredUsername) ^ runtimeType.hashCode; } extension $ForgotPasswordDtoExtension on ForgotPasswordDto { @@ -27356,9 +26629,7 @@ extension $ForgotPasswordDtoExtension on ForgotPasswordDto { ForgotPasswordDto copyWithWrapped({Wrapped? enteredUsername}) { return ForgotPasswordDto( - enteredUsername: (enteredUsername != null - ? enteredUsername.value - : this.enteredUsername), + enteredUsername: (enteredUsername != null ? enteredUsername.value : this.enteredUsername), ); } } @@ -27367,8 +26638,7 @@ extension $ForgotPasswordDtoExtension on ForgotPasswordDto { class ForgotPasswordPinDto { const ForgotPasswordPinDto({required this.pin}); - factory ForgotPasswordPinDto.fromJson(Map json) => - _$ForgotPasswordPinDtoFromJson(json); + factory ForgotPasswordPinDto.fromJson(Map json) => _$ForgotPasswordPinDtoFromJson(json); static const toJsonFactory = _$ForgotPasswordPinDtoToJson; Map toJson() => _$ForgotPasswordPinDtoToJson(this); @@ -27381,16 +26651,14 @@ class ForgotPasswordPinDto { bool operator ==(Object other) { return identical(this, other) || (other is ForgotPasswordPinDto && - (identical(other.pin, pin) || - const DeepCollectionEquality().equals(other.pin, pin))); + (identical(other.pin, pin) || const DeepCollectionEquality().equals(other.pin, pin))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(pin) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(pin) ^ runtimeType.hashCode; } extension $ForgotPasswordPinDtoExtension on ForgotPasswordPinDto { @@ -27411,8 +26679,7 @@ class ForgotPasswordResult { this.pinExpirationDate, }); - factory ForgotPasswordResult.fromJson(Map json) => - _$ForgotPasswordResultFromJson(json); + factory ForgotPasswordResult.fromJson(Map json) => _$ForgotPasswordResultFromJson(json); static const toJsonFactory = _$ForgotPasswordResultToJson; Map toJson() => _$ForgotPasswordResultToJson(this); @@ -27434,8 +26701,7 @@ class ForgotPasswordResult { bool operator ==(Object other) { return identical(this, other) || (other is ForgotPasswordResult && - (identical(other.action, action) || - const DeepCollectionEquality().equals(other.action, action)) && + (identical(other.action, action) || const DeepCollectionEquality().equals(other.action, action)) && (identical(other.pinFile, pinFile) || const DeepCollectionEquality().equals( other.pinFile, @@ -27480,9 +26746,7 @@ extension $ForgotPasswordResultExtension on ForgotPasswordResult { return ForgotPasswordResult( action: (action != null ? action.value : this.action), pinFile: (pinFile != null ? pinFile.value : this.pinFile), - pinExpirationDate: (pinExpirationDate != null - ? pinExpirationDate.value - : this.pinExpirationDate), + pinExpirationDate: (pinExpirationDate != null ? pinExpirationDate.value : this.pinExpirationDate), ); } } @@ -27491,8 +26755,7 @@ extension $ForgotPasswordResultExtension on ForgotPasswordResult { class GeneralCommand { const GeneralCommand({this.name, this.controllingUserId, this.arguments}); - factory GeneralCommand.fromJson(Map json) => - _$GeneralCommandFromJson(json); + factory GeneralCommand.fromJson(Map json) => _$GeneralCommandFromJson(json); static const toJsonFactory = _$GeneralCommandToJson; Map toJson() => _$GeneralCommandToJson(this); @@ -27514,8 +26777,7 @@ class GeneralCommand { bool operator ==(Object other) { return identical(this, other) || (other is GeneralCommand && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.controllingUserId, controllingUserId) || const DeepCollectionEquality().equals( other.controllingUserId, @@ -27559,9 +26821,7 @@ extension $GeneralCommandExtension on GeneralCommand { }) { return GeneralCommand( name: (name != null ? name.value : this.name), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId), + controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), arguments: (arguments != null ? arguments.value : this.arguments), ); } @@ -27571,8 +26831,7 @@ extension $GeneralCommandExtension on GeneralCommand { class GeneralCommandMessage { const GeneralCommandMessage({this.data, this.messageId, this.messageType}); - factory GeneralCommandMessage.fromJson(Map json) => - _$GeneralCommandMessageFromJson(json); + factory GeneralCommandMessage.fromJson(Map json) => _$GeneralCommandMessageFromJson(json); static const toJsonFactory = _$GeneralCommandMessageToJson; Map toJson() => _$GeneralCommandMessageToJson(this); @@ -27588,8 +26847,7 @@ class GeneralCommandMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.generalcommand, @@ -27601,8 +26859,7 @@ class GeneralCommandMessage { bool operator ==(Object other) { return identical(this, other) || (other is GeneralCommandMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -27684,8 +26941,7 @@ class GetProgramsDto { this.fields, }); - factory GetProgramsDto.fromJson(Map json) => - _$GetProgramsDtoFromJson(json); + factory GetProgramsDto.fromJson(Map json) => _$GetProgramsDtoFromJson(json); static const toJsonFactory = _$GetProgramsDtoToJson; Map toJson() => _$GetProgramsDtoToJson(this); @@ -27779,8 +27035,7 @@ class GetProgramsDto { other.channelIds, channelIds, )) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.minStartDate, minStartDate) || const DeepCollectionEquality().equals( other.minStartDate, @@ -27821,10 +27076,8 @@ class GetProgramsDto { other.isSeries, isSeries, )) && - (identical(other.isNews, isNews) || - const DeepCollectionEquality().equals(other.isNews, isNews)) && - (identical(other.isKids, isKids) || - const DeepCollectionEquality().equals(other.isKids, isKids)) && + (identical(other.isNews, isNews) || const DeepCollectionEquality().equals(other.isNews, isNews)) && + (identical(other.isKids, isKids) || const DeepCollectionEquality().equals(other.isKids, isKids)) && (identical(other.isSports, isSports) || const DeepCollectionEquality().equals( other.isSports, @@ -27835,17 +27088,14 @@ class GetProgramsDto { other.startIndex, startIndex, )) && - (identical(other.limit, limit) || - const DeepCollectionEquality().equals(other.limit, limit)) && - (identical(other.sortBy, sortBy) || - const DeepCollectionEquality().equals(other.sortBy, sortBy)) && + (identical(other.limit, limit) || const DeepCollectionEquality().equals(other.limit, limit)) && + (identical(other.sortBy, sortBy) || const DeepCollectionEquality().equals(other.sortBy, sortBy)) && (identical(other.sortOrder, sortOrder) || const DeepCollectionEquality().equals( other.sortOrder, sortOrder, )) && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && (identical(other.genreIds, genreIds) || const DeepCollectionEquality().equals( other.genreIds, @@ -27886,8 +27136,7 @@ class GetProgramsDto { other.librarySeriesId, librarySeriesId, )) && - (identical(other.fields, fields) || - const DeepCollectionEquality().equals(other.fields, fields))); + (identical(other.fields, fields) || const DeepCollectionEquality().equals(other.fields, fields))); } @override @@ -27976,8 +27225,7 @@ extension $GetProgramsDtoExtension on GetProgramsDto { genres: genres ?? this.genres, genreIds: genreIds ?? this.genreIds, enableImages: enableImages ?? this.enableImages, - enableTotalRecordCount: - enableTotalRecordCount ?? this.enableTotalRecordCount, + enableTotalRecordCount: enableTotalRecordCount ?? this.enableTotalRecordCount, imageTypeLimit: imageTypeLimit ?? this.imageTypeLimit, enableImageTypes: enableImageTypes ?? this.enableImageTypes, enableUserData: enableUserData ?? this.enableUserData, @@ -28019,14 +27267,10 @@ extension $GetProgramsDtoExtension on GetProgramsDto { return GetProgramsDto( channelIds: (channelIds != null ? channelIds.value : this.channelIds), userId: (userId != null ? userId.value : this.userId), - minStartDate: (minStartDate != null - ? minStartDate.value - : this.minStartDate), + minStartDate: (minStartDate != null ? minStartDate.value : this.minStartDate), hasAired: (hasAired != null ? hasAired.value : this.hasAired), isAiring: (isAiring != null ? isAiring.value : this.isAiring), - maxStartDate: (maxStartDate != null - ? maxStartDate.value - : this.maxStartDate), + maxStartDate: (maxStartDate != null ? maxStartDate.value : this.maxStartDate), minEndDate: (minEndDate != null ? minEndDate.value : this.minEndDate), maxEndDate: (maxEndDate != null ? maxEndDate.value : this.maxEndDate), isMovie: (isMovie != null ? isMovie.value : this.isMovie), @@ -28040,27 +27284,14 @@ extension $GetProgramsDtoExtension on GetProgramsDto { sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), genres: (genres != null ? genres.value : this.genres), genreIds: (genreIds != null ? genreIds.value : this.genreIds), - enableImages: (enableImages != null - ? enableImages.value - : this.enableImages), - enableTotalRecordCount: (enableTotalRecordCount != null - ? enableTotalRecordCount.value - : this.enableTotalRecordCount), - imageTypeLimit: (imageTypeLimit != null - ? imageTypeLimit.value - : this.imageTypeLimit), - enableImageTypes: (enableImageTypes != null - ? enableImageTypes.value - : this.enableImageTypes), - enableUserData: (enableUserData != null - ? enableUserData.value - : this.enableUserData), - seriesTimerId: (seriesTimerId != null - ? seriesTimerId.value - : this.seriesTimerId), - librarySeriesId: (librarySeriesId != null - ? librarySeriesId.value - : this.librarySeriesId), + enableImages: (enableImages != null ? enableImages.value : this.enableImages), + enableTotalRecordCount: + (enableTotalRecordCount != null ? enableTotalRecordCount.value : this.enableTotalRecordCount), + imageTypeLimit: (imageTypeLimit != null ? imageTypeLimit.value : this.imageTypeLimit), + enableImageTypes: (enableImageTypes != null ? enableImageTypes.value : this.enableImageTypes), + enableUserData: (enableUserData != null ? enableUserData.value : this.enableUserData), + seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), + librarySeriesId: (librarySeriesId != null ? librarySeriesId.value : this.librarySeriesId), fields: (fields != null ? fields.value : this.fields), ); } @@ -28076,8 +27307,7 @@ class GroupInfoDto { this.lastUpdatedAt, }); - factory GroupInfoDto.fromJson(Map json) => - _$GroupInfoDtoFromJson(json); + factory GroupInfoDto.fromJson(Map json) => _$GroupInfoDtoFromJson(json); static const toJsonFactory = _$GroupInfoDtoToJson; Map toJson() => _$GroupInfoDtoToJson(this); @@ -28113,8 +27343,7 @@ class GroupInfoDto { other.groupName, groupName, )) && - (identical(other.state, state) || - const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && (identical(other.participants, participants) || const DeepCollectionEquality().equals( other.participants, @@ -28168,12 +27397,8 @@ extension $GroupInfoDtoExtension on GroupInfoDto { groupId: (groupId != null ? groupId.value : this.groupId), groupName: (groupName != null ? groupName.value : this.groupName), state: (state != null ? state.value : this.state), - participants: (participants != null - ? participants.value - : this.participants), - lastUpdatedAt: (lastUpdatedAt != null - ? lastUpdatedAt.value - : this.lastUpdatedAt), + participants: (participants != null ? participants.value : this.participants), + lastUpdatedAt: (lastUpdatedAt != null ? lastUpdatedAt.value : this.lastUpdatedAt), ); } } @@ -28182,8 +27407,7 @@ extension $GroupInfoDtoExtension on GroupInfoDto { class GroupStateUpdate { const GroupStateUpdate({this.state, this.reason}); - factory GroupStateUpdate.fromJson(Map json) => - _$GroupStateUpdateFromJson(json); + factory GroupStateUpdate.fromJson(Map json) => _$GroupStateUpdateFromJson(json); static const toJsonFactory = _$GroupStateUpdateToJson; Map toJson() => _$GroupStateUpdateToJson(this); @@ -28208,10 +27432,8 @@ class GroupStateUpdate { bool operator ==(Object other) { return identical(this, other) || (other is GroupStateUpdate && - (identical(other.state, state) || - const DeepCollectionEquality().equals(other.state, state)) && - (identical(other.reason, reason) || - const DeepCollectionEquality().equals(other.reason, reason))); + (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.reason, reason) || const DeepCollectionEquality().equals(other.reason, reason))); } @override @@ -28219,9 +27441,7 @@ class GroupStateUpdate { @override int get hashCode => - const DeepCollectionEquality().hash(state) ^ - const DeepCollectionEquality().hash(reason) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(state) ^ const DeepCollectionEquality().hash(reason) ^ runtimeType.hashCode; } extension $GroupStateUpdateExtension on GroupStateUpdate { @@ -28250,8 +27470,7 @@ extension $GroupStateUpdateExtension on GroupStateUpdate { class GroupUpdate { const GroupUpdate(); - factory GroupUpdate.fromJson(Map json) => - _$GroupUpdateFromJson(json); + factory GroupUpdate.fromJson(Map json) => _$GroupUpdateFromJson(json); static const toJsonFactory = _$GroupUpdateToJson; Map toJson() => _$GroupUpdateToJson(this); @@ -28269,8 +27488,7 @@ class GroupUpdate { class GuideInfo { const GuideInfo({this.startDate, this.endDate}); - factory GuideInfo.fromJson(Map json) => - _$GuideInfoFromJson(json); + factory GuideInfo.fromJson(Map json) => _$GuideInfoFromJson(json); static const toJsonFactory = _$GuideInfoToJson; Map toJson() => _$GuideInfoToJson(this); @@ -28290,8 +27508,7 @@ class GuideInfo { other.startDate, startDate, )) && - (identical(other.endDate, endDate) || - const DeepCollectionEquality().equals(other.endDate, endDate))); + (identical(other.endDate, endDate) || const DeepCollectionEquality().equals(other.endDate, endDate))); } @override @@ -28327,8 +27544,7 @@ extension $GuideInfoExtension on GuideInfo { class IgnoreWaitRequestDto { const IgnoreWaitRequestDto({this.ignoreWait}); - factory IgnoreWaitRequestDto.fromJson(Map json) => - _$IgnoreWaitRequestDtoFromJson(json); + factory IgnoreWaitRequestDto.fromJson(Map json) => _$IgnoreWaitRequestDtoFromJson(json); static const toJsonFactory = _$IgnoreWaitRequestDtoToJson; Map toJson() => _$IgnoreWaitRequestDtoToJson(this); @@ -28352,8 +27568,7 @@ class IgnoreWaitRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(ignoreWait) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(ignoreWait) ^ runtimeType.hashCode; } extension $IgnoreWaitRequestDtoExtension on IgnoreWaitRequestDto { @@ -28381,8 +27596,7 @@ class ImageInfo { this.size, }); - factory ImageInfo.fromJson(Map json) => - _$ImageInfoFromJson(json); + factory ImageInfo.fromJson(Map json) => _$ImageInfoFromJson(json); static const toJsonFactory = _$ImageInfoToJson; Map toJson() => _$ImageInfoToJson(this); @@ -28429,19 +27643,15 @@ class ImageInfo { other.imageTag, imageTag, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.blurHash, blurHash) || const DeepCollectionEquality().equals( other.blurHash, blurHash, )) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size))); + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size))); } @override @@ -28510,8 +27720,7 @@ extension $ImageInfoExtension on ImageInfo { class ImageOption { const ImageOption({this.type, this.limit, this.minWidth}); - factory ImageOption.fromJson(Map json) => - _$ImageOptionFromJson(json); + factory ImageOption.fromJson(Map json) => _$ImageOptionFromJson(json); static const toJsonFactory = _$ImageOptionToJson; Map toJson() => _$ImageOptionToJson(this); @@ -28533,10 +27742,8 @@ class ImageOption { bool operator ==(Object other) { return identical(this, other) || (other is ImageOption && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.limit, limit) || - const DeepCollectionEquality().equals(other.limit, limit)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.limit, limit) || const DeepCollectionEquality().equals(other.limit, limit)) && (identical(other.minWidth, minWidth) || const DeepCollectionEquality().equals( other.minWidth, @@ -28581,8 +27788,7 @@ extension $ImageOptionExtension on ImageOption { class ImageProviderInfo { const ImageProviderInfo({this.name, this.supportedImages}); - factory ImageProviderInfo.fromJson(Map json) => - _$ImageProviderInfoFromJson(json); + factory ImageProviderInfo.fromJson(Map json) => _$ImageProviderInfoFromJson(json); static const toJsonFactory = _$ImageProviderInfoToJson; Map toJson() => _$ImageProviderInfoToJson(this); @@ -28602,8 +27808,7 @@ class ImageProviderInfo { bool operator ==(Object other) { return identical(this, other) || (other is ImageProviderInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.supportedImages, supportedImages) || const DeepCollectionEquality().equals( other.supportedImages, @@ -28638,9 +27843,7 @@ extension $ImageProviderInfoExtension on ImageProviderInfo { }) { return ImageProviderInfo( name: (name != null ? name.value : this.name), - supportedImages: (supportedImages != null - ? supportedImages.value - : this.supportedImages), + supportedImages: (supportedImages != null ? supportedImages.value : this.supportedImages), ); } } @@ -28649,8 +27852,7 @@ extension $ImageProviderInfoExtension on ImageProviderInfo { class InboundKeepAliveMessage { const InboundKeepAliveMessage({this.messageType}); - factory InboundKeepAliveMessage.fromJson(Map json) => - _$InboundKeepAliveMessageFromJson(json); + factory InboundKeepAliveMessage.fromJson(Map json) => _$InboundKeepAliveMessageFromJson(json); static const toJsonFactory = _$InboundKeepAliveMessageToJson; Map toJson() => _$InboundKeepAliveMessageToJson(this); @@ -28662,8 +27864,7 @@ class InboundKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.keepalive, @@ -28686,8 +27887,7 @@ class InboundKeepAliveMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $InboundKeepAliveMessageExtension on InboundKeepAliveMessage { @@ -28710,8 +27910,7 @@ extension $InboundKeepAliveMessageExtension on InboundKeepAliveMessage { class InboundWebSocketMessage { const InboundWebSocketMessage(); - factory InboundWebSocketMessage.fromJson(Map json) => - _$InboundWebSocketMessageFromJson(json); + factory InboundWebSocketMessage.fromJson(Map json) => _$InboundWebSocketMessageFromJson(json); static const toJsonFactory = _$InboundWebSocketMessageToJson; Map toJson() => _$InboundWebSocketMessageToJson(this); @@ -28737,8 +27936,7 @@ class InstallationInfo { this.packageInfo, }); - factory InstallationInfo.fromJson(Map json) => - _$InstallationInfoFromJson(json); + factory InstallationInfo.fromJson(Map json) => _$InstallationInfoFromJson(json); static const toJsonFactory = _$InstallationInfoToJson; Map toJson() => _$InstallationInfoToJson(this); @@ -28763,10 +27961,8 @@ class InstallationInfo { bool operator ==(Object other) { return identical(this, other) || (other is InstallationInfo && - (identical(other.guid, guid) || - const DeepCollectionEquality().equals(other.guid, guid)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.guid, guid) || const DeepCollectionEquality().equals(other.guid, guid)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -28863,8 +28059,7 @@ class IPlugin { this.dataFolderPath, }); - factory IPlugin.fromJson(Map json) => - _$IPluginFromJson(json); + factory IPlugin.fromJson(Map json) => _$IPluginFromJson(json); static const toJsonFactory = _$IPluginToJson; Map toJson() => _$IPluginToJson(this); @@ -28889,15 +28084,13 @@ class IPlugin { bool operator ==(Object other) { return identical(this, other) || (other is IPlugin && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || const DeepCollectionEquality().equals( other.description, description, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -28970,15 +28163,9 @@ extension $IPluginExtension on IPlugin { description: (description != null ? description.value : this.description), id: (id != null ? id.value : this.id), version: (version != null ? version.value : this.version), - assemblyFilePath: (assemblyFilePath != null - ? assemblyFilePath.value - : this.assemblyFilePath), - canUninstall: (canUninstall != null - ? canUninstall.value - : this.canUninstall), - dataFolderPath: (dataFolderPath != null - ? dataFolderPath.value - : this.dataFolderPath), + assemblyFilePath: (assemblyFilePath != null ? assemblyFilePath.value : this.assemblyFilePath), + canUninstall: (canUninstall != null ? canUninstall.value : this.canUninstall), + dataFolderPath: (dataFolderPath != null ? dataFolderPath.value : this.dataFolderPath), ); } } @@ -29000,8 +28187,7 @@ class ItemCounts { this.itemCount, }); - factory ItemCounts.fromJson(Map json) => - _$ItemCountsFromJson(json); + factory ItemCounts.fromJson(Map json) => _$ItemCountsFromJson(json); static const toJsonFactory = _$ItemCountsToJson; Map toJson() => _$ItemCountsToJson(this); @@ -29166,21 +28352,13 @@ extension $ItemCountsExtension on ItemCounts { return ItemCounts( movieCount: (movieCount != null ? movieCount.value : this.movieCount), seriesCount: (seriesCount != null ? seriesCount.value : this.seriesCount), - episodeCount: (episodeCount != null - ? episodeCount.value - : this.episodeCount), + episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), artistCount: (artistCount != null ? artistCount.value : this.artistCount), - programCount: (programCount != null - ? programCount.value - : this.programCount), - trailerCount: (trailerCount != null - ? trailerCount.value - : this.trailerCount), + programCount: (programCount != null ? programCount.value : this.programCount), + trailerCount: (trailerCount != null ? trailerCount.value : this.trailerCount), songCount: (songCount != null ? songCount.value : this.songCount), albumCount: (albumCount != null ? albumCount.value : this.albumCount), - musicVideoCount: (musicVideoCount != null - ? musicVideoCount.value - : this.musicVideoCount), + musicVideoCount: (musicVideoCount != null ? musicVideoCount.value : this.musicVideoCount), boxSetCount: (boxSetCount != null ? boxSetCount.value : this.boxSetCount), bookCount: (bookCount != null ? bookCount.value : this.bookCount), itemCount: (itemCount != null ? itemCount.value : this.itemCount), @@ -29192,8 +28370,7 @@ extension $ItemCountsExtension on ItemCounts { class JoinGroupRequestDto { const JoinGroupRequestDto({this.groupId}); - factory JoinGroupRequestDto.fromJson(Map json) => - _$JoinGroupRequestDtoFromJson(json); + factory JoinGroupRequestDto.fromJson(Map json) => _$JoinGroupRequestDtoFromJson(json); static const toJsonFactory = _$JoinGroupRequestDtoToJson; Map toJson() => _$JoinGroupRequestDtoToJson(this); @@ -29206,16 +28383,14 @@ class JoinGroupRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is JoinGroupRequestDto && - (identical(other.groupId, groupId) || - const DeepCollectionEquality().equals(other.groupId, groupId))); + (identical(other.groupId, groupId) || const DeepCollectionEquality().equals(other.groupId, groupId))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(groupId) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(groupId) ^ runtimeType.hashCode; } extension $JoinGroupRequestDtoExtension on JoinGroupRequestDto { @@ -29234,8 +28409,7 @@ extension $JoinGroupRequestDtoExtension on JoinGroupRequestDto { class LibraryChangedMessage { const LibraryChangedMessage({this.data, this.messageId, this.messageType}); - factory LibraryChangedMessage.fromJson(Map json) => - _$LibraryChangedMessageFromJson(json); + factory LibraryChangedMessage.fromJson(Map json) => _$LibraryChangedMessageFromJson(json); static const toJsonFactory = _$LibraryChangedMessageToJson; Map toJson() => _$LibraryChangedMessageToJson(this); @@ -29251,8 +28425,7 @@ class LibraryChangedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.librarychanged, @@ -29264,8 +28437,7 @@ class LibraryChangedMessage { bool operator ==(Object other) { return identical(this, other) || (other is LibraryChangedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -29319,8 +28491,7 @@ extension $LibraryChangedMessageExtension on LibraryChangedMessage { class LibraryOptionInfoDto { const LibraryOptionInfoDto({this.name, this.defaultEnabled}); - factory LibraryOptionInfoDto.fromJson(Map json) => - _$LibraryOptionInfoDtoFromJson(json); + factory LibraryOptionInfoDto.fromJson(Map json) => _$LibraryOptionInfoDtoFromJson(json); static const toJsonFactory = _$LibraryOptionInfoDtoToJson; Map toJson() => _$LibraryOptionInfoDtoToJson(this); @@ -29335,8 +28506,7 @@ class LibraryOptionInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryOptionInfoDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.defaultEnabled, defaultEnabled) || const DeepCollectionEquality().equals( other.defaultEnabled, @@ -29368,9 +28538,7 @@ extension $LibraryOptionInfoDtoExtension on LibraryOptionInfoDto { }) { return LibraryOptionInfoDto( name: (name != null ? name.value : this.name), - defaultEnabled: (defaultEnabled != null - ? defaultEnabled.value - : this.defaultEnabled), + defaultEnabled: (defaultEnabled != null ? defaultEnabled.value : this.defaultEnabled), ); } } @@ -29422,8 +28590,7 @@ class LibraryOptions { this.typeOptions, }); - factory LibraryOptions.fromJson(Map json) => - _$LibraryOptionsFromJson(json); + factory LibraryOptions.fromJson(Map json) => _$LibraryOptionsFromJson(json); static const toJsonFactory = _$LibraryOptionsToJson; Map toJson() => _$LibraryOptionsToJson(this); @@ -29981,77 +29148,48 @@ extension $LibraryOptionsExtension on LibraryOptions { return LibraryOptions( enabled: enabled ?? this.enabled, enablePhotos: enablePhotos ?? this.enablePhotos, - enableRealtimeMonitor: - enableRealtimeMonitor ?? this.enableRealtimeMonitor, + enableRealtimeMonitor: enableRealtimeMonitor ?? this.enableRealtimeMonitor, enableLUFSScan: enableLUFSScan ?? this.enableLUFSScan, - enableChapterImageExtraction: - enableChapterImageExtraction ?? this.enableChapterImageExtraction, + enableChapterImageExtraction: enableChapterImageExtraction ?? this.enableChapterImageExtraction, extractChapterImagesDuringLibraryScan: - extractChapterImagesDuringLibraryScan ?? - this.extractChapterImagesDuringLibraryScan, - enableTrickplayImageExtraction: - enableTrickplayImageExtraction ?? this.enableTrickplayImageExtraction, + extractChapterImagesDuringLibraryScan ?? this.extractChapterImagesDuringLibraryScan, + enableTrickplayImageExtraction: enableTrickplayImageExtraction ?? this.enableTrickplayImageExtraction, extractTrickplayImagesDuringLibraryScan: - extractTrickplayImagesDuringLibraryScan ?? - this.extractTrickplayImagesDuringLibraryScan, + extractTrickplayImagesDuringLibraryScan ?? this.extractTrickplayImagesDuringLibraryScan, pathInfos: pathInfos ?? this.pathInfos, saveLocalMetadata: saveLocalMetadata ?? this.saveLocalMetadata, - enableInternetProviders: - enableInternetProviders ?? this.enableInternetProviders, - enableAutomaticSeriesGrouping: - enableAutomaticSeriesGrouping ?? this.enableAutomaticSeriesGrouping, + enableInternetProviders: enableInternetProviders ?? this.enableInternetProviders, + enableAutomaticSeriesGrouping: enableAutomaticSeriesGrouping ?? this.enableAutomaticSeriesGrouping, enableEmbeddedTitles: enableEmbeddedTitles ?? this.enableEmbeddedTitles, - enableEmbeddedExtrasTitles: - enableEmbeddedExtrasTitles ?? this.enableEmbeddedExtrasTitles, - enableEmbeddedEpisodeInfos: - enableEmbeddedEpisodeInfos ?? this.enableEmbeddedEpisodeInfos, - automaticRefreshIntervalDays: - automaticRefreshIntervalDays ?? this.automaticRefreshIntervalDays, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, + enableEmbeddedExtrasTitles: enableEmbeddedExtrasTitles ?? this.enableEmbeddedExtrasTitles, + enableEmbeddedEpisodeInfos: enableEmbeddedEpisodeInfos ?? this.enableEmbeddedEpisodeInfos, + automaticRefreshIntervalDays: automaticRefreshIntervalDays ?? this.automaticRefreshIntervalDays, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - seasonZeroDisplayName: - seasonZeroDisplayName ?? this.seasonZeroDisplayName, + seasonZeroDisplayName: seasonZeroDisplayName ?? this.seasonZeroDisplayName, metadataSavers: metadataSavers ?? this.metadataSavers, - disabledLocalMetadataReaders: - disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, - localMetadataReaderOrder: - localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledSubtitleFetchers: - disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, + disabledLocalMetadataReaders: disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, + localMetadataReaderOrder: localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledSubtitleFetchers: disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, subtitleFetcherOrder: subtitleFetcherOrder ?? this.subtitleFetcherOrder, - disabledMediaSegmentProviders: - disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, - mediaSegmentProviderOrder: - mediaSegmentProviderOrder ?? this.mediaSegmentProviderOrder, + disabledMediaSegmentProviders: disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, + mediaSegmentProviderOrder: mediaSegmentProviderOrder ?? this.mediaSegmentProviderOrder, skipSubtitlesIfEmbeddedSubtitlesPresent: - skipSubtitlesIfEmbeddedSubtitlesPresent ?? - this.skipSubtitlesIfEmbeddedSubtitlesPresent, - skipSubtitlesIfAudioTrackMatches: - skipSubtitlesIfAudioTrackMatches ?? - this.skipSubtitlesIfAudioTrackMatches, - subtitleDownloadLanguages: - subtitleDownloadLanguages ?? this.subtitleDownloadLanguages, - requirePerfectSubtitleMatch: - requirePerfectSubtitleMatch ?? this.requirePerfectSubtitleMatch, - saveSubtitlesWithMedia: - saveSubtitlesWithMedia ?? this.saveSubtitlesWithMedia, + skipSubtitlesIfEmbeddedSubtitlesPresent ?? this.skipSubtitlesIfEmbeddedSubtitlesPresent, + skipSubtitlesIfAudioTrackMatches: skipSubtitlesIfAudioTrackMatches ?? this.skipSubtitlesIfAudioTrackMatches, + subtitleDownloadLanguages: subtitleDownloadLanguages ?? this.subtitleDownloadLanguages, + requirePerfectSubtitleMatch: requirePerfectSubtitleMatch ?? this.requirePerfectSubtitleMatch, + saveSubtitlesWithMedia: saveSubtitlesWithMedia ?? this.saveSubtitlesWithMedia, saveLyricsWithMedia: saveLyricsWithMedia ?? this.saveLyricsWithMedia, - saveTrickplayWithMedia: - saveTrickplayWithMedia ?? this.saveTrickplayWithMedia, - disabledLyricFetchers: - disabledLyricFetchers ?? this.disabledLyricFetchers, + saveTrickplayWithMedia: saveTrickplayWithMedia ?? this.saveTrickplayWithMedia, + disabledLyricFetchers: disabledLyricFetchers ?? this.disabledLyricFetchers, lyricFetcherOrder: lyricFetcherOrder ?? this.lyricFetcherOrder, - preferNonstandardArtistsTag: - preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, - useCustomTagDelimiters: - useCustomTagDelimiters ?? this.useCustomTagDelimiters, + preferNonstandardArtistsTag: preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, + useCustomTagDelimiters: useCustomTagDelimiters ?? this.useCustomTagDelimiters, customTagDelimiters: customTagDelimiters ?? this.customTagDelimiters, delimiterWhitelist: delimiterWhitelist ?? this.delimiterWhitelist, - automaticallyAddToCollection: - automaticallyAddToCollection ?? this.automaticallyAddToCollection, - allowEmbeddedSubtitles: - allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, + automaticallyAddToCollection: automaticallyAddToCollection ?? this.automaticallyAddToCollection, + allowEmbeddedSubtitles: allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, typeOptions: typeOptions ?? this.typeOptions, ); } @@ -30102,128 +29240,82 @@ extension $LibraryOptionsExtension on LibraryOptions { }) { return LibraryOptions( enabled: (enabled != null ? enabled.value : this.enabled), - enablePhotos: (enablePhotos != null - ? enablePhotos.value - : this.enablePhotos), - enableRealtimeMonitor: (enableRealtimeMonitor != null - ? enableRealtimeMonitor.value - : this.enableRealtimeMonitor), - enableLUFSScan: (enableLUFSScan != null - ? enableLUFSScan.value - : this.enableLUFSScan), + enablePhotos: (enablePhotos != null ? enablePhotos.value : this.enablePhotos), + enableRealtimeMonitor: (enableRealtimeMonitor != null ? enableRealtimeMonitor.value : this.enableRealtimeMonitor), + enableLUFSScan: (enableLUFSScan != null ? enableLUFSScan.value : this.enableLUFSScan), enableChapterImageExtraction: (enableChapterImageExtraction != null ? enableChapterImageExtraction.value : this.enableChapterImageExtraction), - extractChapterImagesDuringLibraryScan: - (extractChapterImagesDuringLibraryScan != null + extractChapterImagesDuringLibraryScan: (extractChapterImagesDuringLibraryScan != null ? extractChapterImagesDuringLibraryScan.value : this.extractChapterImagesDuringLibraryScan), enableTrickplayImageExtraction: (enableTrickplayImageExtraction != null ? enableTrickplayImageExtraction.value : this.enableTrickplayImageExtraction), - extractTrickplayImagesDuringLibraryScan: - (extractTrickplayImagesDuringLibraryScan != null + extractTrickplayImagesDuringLibraryScan: (extractTrickplayImagesDuringLibraryScan != null ? extractTrickplayImagesDuringLibraryScan.value : this.extractTrickplayImagesDuringLibraryScan), pathInfos: (pathInfos != null ? pathInfos.value : this.pathInfos), - saveLocalMetadata: (saveLocalMetadata != null - ? saveLocalMetadata.value - : this.saveLocalMetadata), - enableInternetProviders: (enableInternetProviders != null - ? enableInternetProviders.value - : this.enableInternetProviders), + saveLocalMetadata: (saveLocalMetadata != null ? saveLocalMetadata.value : this.saveLocalMetadata), + enableInternetProviders: + (enableInternetProviders != null ? enableInternetProviders.value : this.enableInternetProviders), enableAutomaticSeriesGrouping: (enableAutomaticSeriesGrouping != null ? enableAutomaticSeriesGrouping.value : this.enableAutomaticSeriesGrouping), - enableEmbeddedTitles: (enableEmbeddedTitles != null - ? enableEmbeddedTitles.value - : this.enableEmbeddedTitles), - enableEmbeddedExtrasTitles: (enableEmbeddedExtrasTitles != null - ? enableEmbeddedExtrasTitles.value - : this.enableEmbeddedExtrasTitles), - enableEmbeddedEpisodeInfos: (enableEmbeddedEpisodeInfos != null - ? enableEmbeddedEpisodeInfos.value - : this.enableEmbeddedEpisodeInfos), + enableEmbeddedTitles: (enableEmbeddedTitles != null ? enableEmbeddedTitles.value : this.enableEmbeddedTitles), + enableEmbeddedExtrasTitles: + (enableEmbeddedExtrasTitles != null ? enableEmbeddedExtrasTitles.value : this.enableEmbeddedExtrasTitles), + enableEmbeddedEpisodeInfos: + (enableEmbeddedEpisodeInfos != null ? enableEmbeddedEpisodeInfos.value : this.enableEmbeddedEpisodeInfos), automaticRefreshIntervalDays: (automaticRefreshIntervalDays != null ? automaticRefreshIntervalDays.value : this.automaticRefreshIntervalDays), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), - seasonZeroDisplayName: (seasonZeroDisplayName != null - ? seasonZeroDisplayName.value - : this.seasonZeroDisplayName), - metadataSavers: (metadataSavers != null - ? metadataSavers.value - : this.metadataSavers), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + seasonZeroDisplayName: (seasonZeroDisplayName != null ? seasonZeroDisplayName.value : this.seasonZeroDisplayName), + metadataSavers: (metadataSavers != null ? metadataSavers.value : this.metadataSavers), disabledLocalMetadataReaders: (disabledLocalMetadataReaders != null ? disabledLocalMetadataReaders.value : this.disabledLocalMetadataReaders), - localMetadataReaderOrder: (localMetadataReaderOrder != null - ? localMetadataReaderOrder.value - : this.localMetadataReaderOrder), - disabledSubtitleFetchers: (disabledSubtitleFetchers != null - ? disabledSubtitleFetchers.value - : this.disabledSubtitleFetchers), - subtitleFetcherOrder: (subtitleFetcherOrder != null - ? subtitleFetcherOrder.value - : this.subtitleFetcherOrder), + localMetadataReaderOrder: + (localMetadataReaderOrder != null ? localMetadataReaderOrder.value : this.localMetadataReaderOrder), + disabledSubtitleFetchers: + (disabledSubtitleFetchers != null ? disabledSubtitleFetchers.value : this.disabledSubtitleFetchers), + subtitleFetcherOrder: (subtitleFetcherOrder != null ? subtitleFetcherOrder.value : this.subtitleFetcherOrder), disabledMediaSegmentProviders: (disabledMediaSegmentProviders != null ? disabledMediaSegmentProviders.value : this.disabledMediaSegmentProviders), - mediaSegmentProviderOrder: (mediaSegmentProviderOrder != null - ? mediaSegmentProviderOrder.value - : this.mediaSegmentProviderOrder), - skipSubtitlesIfEmbeddedSubtitlesPresent: - (skipSubtitlesIfEmbeddedSubtitlesPresent != null + mediaSegmentProviderOrder: + (mediaSegmentProviderOrder != null ? mediaSegmentProviderOrder.value : this.mediaSegmentProviderOrder), + skipSubtitlesIfEmbeddedSubtitlesPresent: (skipSubtitlesIfEmbeddedSubtitlesPresent != null ? skipSubtitlesIfEmbeddedSubtitlesPresent.value : this.skipSubtitlesIfEmbeddedSubtitlesPresent), - skipSubtitlesIfAudioTrackMatches: - (skipSubtitlesIfAudioTrackMatches != null + skipSubtitlesIfAudioTrackMatches: (skipSubtitlesIfAudioTrackMatches != null ? skipSubtitlesIfAudioTrackMatches.value : this.skipSubtitlesIfAudioTrackMatches), - subtitleDownloadLanguages: (subtitleDownloadLanguages != null - ? subtitleDownloadLanguages.value - : this.subtitleDownloadLanguages), - requirePerfectSubtitleMatch: (requirePerfectSubtitleMatch != null - ? requirePerfectSubtitleMatch.value - : this.requirePerfectSubtitleMatch), - saveSubtitlesWithMedia: (saveSubtitlesWithMedia != null - ? saveSubtitlesWithMedia.value - : this.saveSubtitlesWithMedia), - saveLyricsWithMedia: (saveLyricsWithMedia != null - ? saveLyricsWithMedia.value - : this.saveLyricsWithMedia), - saveTrickplayWithMedia: (saveTrickplayWithMedia != null - ? saveTrickplayWithMedia.value - : this.saveTrickplayWithMedia), - disabledLyricFetchers: (disabledLyricFetchers != null - ? disabledLyricFetchers.value - : this.disabledLyricFetchers), - lyricFetcherOrder: (lyricFetcherOrder != null - ? lyricFetcherOrder.value - : this.lyricFetcherOrder), - preferNonstandardArtistsTag: (preferNonstandardArtistsTag != null - ? preferNonstandardArtistsTag.value - : this.preferNonstandardArtistsTag), - useCustomTagDelimiters: (useCustomTagDelimiters != null - ? useCustomTagDelimiters.value - : this.useCustomTagDelimiters), - customTagDelimiters: (customTagDelimiters != null - ? customTagDelimiters.value - : this.customTagDelimiters), - delimiterWhitelist: (delimiterWhitelist != null - ? delimiterWhitelist.value - : this.delimiterWhitelist), + subtitleDownloadLanguages: + (subtitleDownloadLanguages != null ? subtitleDownloadLanguages.value : this.subtitleDownloadLanguages), + requirePerfectSubtitleMatch: + (requirePerfectSubtitleMatch != null ? requirePerfectSubtitleMatch.value : this.requirePerfectSubtitleMatch), + saveSubtitlesWithMedia: + (saveSubtitlesWithMedia != null ? saveSubtitlesWithMedia.value : this.saveSubtitlesWithMedia), + saveLyricsWithMedia: (saveLyricsWithMedia != null ? saveLyricsWithMedia.value : this.saveLyricsWithMedia), + saveTrickplayWithMedia: + (saveTrickplayWithMedia != null ? saveTrickplayWithMedia.value : this.saveTrickplayWithMedia), + disabledLyricFetchers: (disabledLyricFetchers != null ? disabledLyricFetchers.value : this.disabledLyricFetchers), + lyricFetcherOrder: (lyricFetcherOrder != null ? lyricFetcherOrder.value : this.lyricFetcherOrder), + preferNonstandardArtistsTag: + (preferNonstandardArtistsTag != null ? preferNonstandardArtistsTag.value : this.preferNonstandardArtistsTag), + useCustomTagDelimiters: + (useCustomTagDelimiters != null ? useCustomTagDelimiters.value : this.useCustomTagDelimiters), + customTagDelimiters: (customTagDelimiters != null ? customTagDelimiters.value : this.customTagDelimiters), + delimiterWhitelist: (delimiterWhitelist != null ? delimiterWhitelist.value : this.delimiterWhitelist), automaticallyAddToCollection: (automaticallyAddToCollection != null ? automaticallyAddToCollection.value : this.automaticallyAddToCollection), - allowEmbeddedSubtitles: (allowEmbeddedSubtitles != null - ? allowEmbeddedSubtitles.value - : this.allowEmbeddedSubtitles), + allowEmbeddedSubtitles: + (allowEmbeddedSubtitles != null ? allowEmbeddedSubtitles.value : this.allowEmbeddedSubtitles), typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), ); } @@ -30240,8 +29332,7 @@ class LibraryOptionsResultDto { this.typeOptions, }); - factory LibraryOptionsResultDto.fromJson(Map json) => - _$LibraryOptionsResultDtoFromJson(json); + factory LibraryOptionsResultDto.fromJson(Map json) => _$LibraryOptionsResultDtoFromJson(json); static const toJsonFactory = _$LibraryOptionsResultDtoToJson; Map toJson() => _$LibraryOptionsResultDtoToJson(this); @@ -30348,8 +29439,7 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { metadataReaders: metadataReaders ?? this.metadataReaders, subtitleFetchers: subtitleFetchers ?? this.subtitleFetchers, lyricFetchers: lyricFetchers ?? this.lyricFetchers, - mediaSegmentProviders: - mediaSegmentProviders ?? this.mediaSegmentProviders, + mediaSegmentProviders: mediaSegmentProviders ?? this.mediaSegmentProviders, typeOptions: typeOptions ?? this.typeOptions, ); } @@ -30363,21 +29453,11 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { Wrapped?>? typeOptions, }) { return LibraryOptionsResultDto( - metadataSavers: (metadataSavers != null - ? metadataSavers.value - : this.metadataSavers), - metadataReaders: (metadataReaders != null - ? metadataReaders.value - : this.metadataReaders), - subtitleFetchers: (subtitleFetchers != null - ? subtitleFetchers.value - : this.subtitleFetchers), - lyricFetchers: (lyricFetchers != null - ? lyricFetchers.value - : this.lyricFetchers), - mediaSegmentProviders: (mediaSegmentProviders != null - ? mediaSegmentProviders.value - : this.mediaSegmentProviders), + metadataSavers: (metadataSavers != null ? metadataSavers.value : this.metadataSavers), + metadataReaders: (metadataReaders != null ? metadataReaders.value : this.metadataReaders), + subtitleFetchers: (subtitleFetchers != null ? subtitleFetchers.value : this.subtitleFetchers), + lyricFetchers: (lyricFetchers != null ? lyricFetchers.value : this.lyricFetchers), + mediaSegmentProviders: (mediaSegmentProviders != null ? mediaSegmentProviders.value : this.mediaSegmentProviders), typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), ); } @@ -30387,8 +29467,7 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { class LibraryStorageDto { const LibraryStorageDto({this.id, this.name, this.folders}); - factory LibraryStorageDto.fromJson(Map json) => - _$LibraryStorageDtoFromJson(json); + factory LibraryStorageDto.fromJson(Map json) => _$LibraryStorageDtoFromJson(json); static const toJsonFactory = _$LibraryStorageDtoToJson; Map toJson() => _$LibraryStorageDtoToJson(this); @@ -30409,12 +29488,9 @@ class LibraryStorageDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryStorageDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.folders, folders) || - const DeepCollectionEquality().equals(other.folders, folders))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.folders, folders) || const DeepCollectionEquality().equals(other.folders, folders))); } @override @@ -30464,8 +29540,7 @@ class LibraryTypeOptionsDto { this.defaultImageOptions, }); - factory LibraryTypeOptionsDto.fromJson(Map json) => - _$LibraryTypeOptionsDtoFromJson(json); + factory LibraryTypeOptionsDto.fromJson(Map json) => _$LibraryTypeOptionsDtoFromJson(json); static const toJsonFactory = _$LibraryTypeOptionsDtoToJson; Map toJson() => _$LibraryTypeOptionsDtoToJson(this); @@ -30503,8 +29578,7 @@ class LibraryTypeOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryTypeOptionsDto && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || const DeepCollectionEquality().equals( other.metadataFetchers, @@ -30566,18 +29640,10 @@ extension $LibraryTypeOptionsDtoExtension on LibraryTypeOptionsDto { }) { return LibraryTypeOptionsDto( type: (type != null ? type.value : this.type), - metadataFetchers: (metadataFetchers != null - ? metadataFetchers.value - : this.metadataFetchers), - imageFetchers: (imageFetchers != null - ? imageFetchers.value - : this.imageFetchers), - supportedImageTypes: (supportedImageTypes != null - ? supportedImageTypes.value - : this.supportedImageTypes), - defaultImageOptions: (defaultImageOptions != null - ? defaultImageOptions.value - : this.defaultImageOptions), + metadataFetchers: (metadataFetchers != null ? metadataFetchers.value : this.metadataFetchers), + imageFetchers: (imageFetchers != null ? imageFetchers.value : this.imageFetchers), + supportedImageTypes: (supportedImageTypes != null ? supportedImageTypes.value : this.supportedImageTypes), + defaultImageOptions: (defaultImageOptions != null ? defaultImageOptions.value : this.defaultImageOptions), ); } } @@ -30594,8 +29660,7 @@ class LibraryUpdateInfo { this.isEmpty, }); - factory LibraryUpdateInfo.fromJson(Map json) => - _$LibraryUpdateInfoFromJson(json); + factory LibraryUpdateInfo.fromJson(Map json) => _$LibraryUpdateInfoFromJson(json); static const toJsonFactory = _$LibraryUpdateInfoToJson; Map toJson() => _$LibraryUpdateInfoToJson(this); @@ -30662,8 +29727,7 @@ class LibraryUpdateInfo { other.collectionFolders, collectionFolders, )) && - (identical(other.isEmpty, isEmpty) || - const DeepCollectionEquality().equals(other.isEmpty, isEmpty))); + (identical(other.isEmpty, isEmpty) || const DeepCollectionEquality().equals(other.isEmpty, isEmpty))); } @override @@ -30712,22 +29776,12 @@ extension $LibraryUpdateInfoExtension on LibraryUpdateInfo { Wrapped? isEmpty, }) { return LibraryUpdateInfo( - foldersAddedTo: (foldersAddedTo != null - ? foldersAddedTo.value - : this.foldersAddedTo), - foldersRemovedFrom: (foldersRemovedFrom != null - ? foldersRemovedFrom.value - : this.foldersRemovedFrom), + foldersAddedTo: (foldersAddedTo != null ? foldersAddedTo.value : this.foldersAddedTo), + foldersRemovedFrom: (foldersRemovedFrom != null ? foldersRemovedFrom.value : this.foldersRemovedFrom), itemsAdded: (itemsAdded != null ? itemsAdded.value : this.itemsAdded), - itemsRemoved: (itemsRemoved != null - ? itemsRemoved.value - : this.itemsRemoved), - itemsUpdated: (itemsUpdated != null - ? itemsUpdated.value - : this.itemsUpdated), - collectionFolders: (collectionFolders != null - ? collectionFolders.value - : this.collectionFolders), + itemsRemoved: (itemsRemoved != null ? itemsRemoved.value : this.itemsRemoved), + itemsUpdated: (itemsUpdated != null ? itemsUpdated.value : this.itemsUpdated), + collectionFolders: (collectionFolders != null ? collectionFolders.value : this.collectionFolders), isEmpty: (isEmpty != null ? isEmpty.value : this.isEmpty), ); } @@ -30756,8 +29810,7 @@ class ListingsProviderInfo { this.userAgent, }); - factory ListingsProviderInfo.fromJson(Map json) => - _$ListingsProviderInfoFromJson(json); + factory ListingsProviderInfo.fromJson(Map json) => _$ListingsProviderInfoFromJson(json); static const toJsonFactory = _$ListingsProviderInfoToJson; Map toJson() => _$ListingsProviderInfoToJson(this); @@ -30828,10 +29881,8 @@ class ListingsProviderInfo { bool operator ==(Object other) { return identical(this, other) || (other is ListingsProviderInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.username, username) || const DeepCollectionEquality().equals( other.username, @@ -30857,8 +29908,7 @@ class ListingsProviderInfo { other.country, country, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.enabledTuners, enabledTuners) || const DeepCollectionEquality().equals( other.enabledTuners, @@ -31009,31 +30059,15 @@ extension $ListingsProviderInfoExtension on ListingsProviderInfo { zipCode: (zipCode != null ? zipCode.value : this.zipCode), country: (country != null ? country.value : this.country), path: (path != null ? path.value : this.path), - enabledTuners: (enabledTuners != null - ? enabledTuners.value - : this.enabledTuners), - enableAllTuners: (enableAllTuners != null - ? enableAllTuners.value - : this.enableAllTuners), - newsCategories: (newsCategories != null - ? newsCategories.value - : this.newsCategories), - sportsCategories: (sportsCategories != null - ? sportsCategories.value - : this.sportsCategories), - kidsCategories: (kidsCategories != null - ? kidsCategories.value - : this.kidsCategories), - movieCategories: (movieCategories != null - ? movieCategories.value - : this.movieCategories), - channelMappings: (channelMappings != null - ? channelMappings.value - : this.channelMappings), + enabledTuners: (enabledTuners != null ? enabledTuners.value : this.enabledTuners), + enableAllTuners: (enableAllTuners != null ? enableAllTuners.value : this.enableAllTuners), + newsCategories: (newsCategories != null ? newsCategories.value : this.newsCategories), + sportsCategories: (sportsCategories != null ? sportsCategories.value : this.sportsCategories), + kidsCategories: (kidsCategories != null ? kidsCategories.value : this.kidsCategories), + movieCategories: (movieCategories != null ? movieCategories.value : this.movieCategories), + channelMappings: (channelMappings != null ? channelMappings.value : this.channelMappings), moviePrefix: (moviePrefix != null ? moviePrefix.value : this.moviePrefix), - preferredLanguage: (preferredLanguage != null - ? preferredLanguage.value - : this.preferredLanguage), + preferredLanguage: (preferredLanguage != null ? preferredLanguage.value : this.preferredLanguage), userAgent: (userAgent != null ? userAgent.value : this.userAgent), ); } @@ -31043,8 +30077,7 @@ extension $ListingsProviderInfoExtension on ListingsProviderInfo { class LiveStreamResponse { const LiveStreamResponse({this.mediaSource}); - factory LiveStreamResponse.fromJson(Map json) => - _$LiveStreamResponseFromJson(json); + factory LiveStreamResponse.fromJson(Map json) => _$LiveStreamResponseFromJson(json); static const toJsonFactory = _$LiveStreamResponseToJson; Map toJson() => _$LiveStreamResponseToJson(this); @@ -31068,8 +30101,7 @@ class LiveStreamResponse { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(mediaSource) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(mediaSource) ^ runtimeType.hashCode; } extension $LiveStreamResponseExtension on LiveStreamResponse { @@ -31088,8 +30120,7 @@ extension $LiveStreamResponseExtension on LiveStreamResponse { class LiveTvInfo { const LiveTvInfo({this.services, this.isEnabled, this.enabledUsers}); - factory LiveTvInfo.fromJson(Map json) => - _$LiveTvInfoFromJson(json); + factory LiveTvInfo.fromJson(Map json) => _$LiveTvInfoFromJson(json); static const toJsonFactory = _$LiveTvInfoToJson; Map toJson() => _$LiveTvInfoToJson(this); @@ -31159,9 +30190,7 @@ extension $LiveTvInfoExtension on LiveTvInfo { return LiveTvInfo( services: (services != null ? services.value : this.services), isEnabled: (isEnabled != null ? isEnabled.value : this.isEnabled), - enabledUsers: (enabledUsers != null - ? enabledUsers.value - : this.enabledUsers), + enabledUsers: (enabledUsers != null ? enabledUsers.value : this.enabledUsers), ); } } @@ -31186,8 +30215,7 @@ class LiveTvOptions { this.saveRecordingImages, }); - factory LiveTvOptions.fromJson(Map json) => - _$LiveTvOptionsFromJson(json); + factory LiveTvOptions.fromJson(Map json) => _$LiveTvOptionsFromJson(json); static const toJsonFactory = _$LiveTvOptionsToJson; Map toJson() => _$LiveTvOptionsToJson(this); @@ -31377,22 +30405,16 @@ extension $LiveTvOptionsExtension on LiveTvOptions { recordingPath: recordingPath ?? this.recordingPath, movieRecordingPath: movieRecordingPath ?? this.movieRecordingPath, seriesRecordingPath: seriesRecordingPath ?? this.seriesRecordingPath, - enableRecordingSubfolders: - enableRecordingSubfolders ?? this.enableRecordingSubfolders, + enableRecordingSubfolders: enableRecordingSubfolders ?? this.enableRecordingSubfolders, enableOriginalAudioWithEncodedRecordings: - enableOriginalAudioWithEncodedRecordings ?? - this.enableOriginalAudioWithEncodedRecordings, + enableOriginalAudioWithEncodedRecordings ?? this.enableOriginalAudioWithEncodedRecordings, tunerHosts: tunerHosts ?? this.tunerHosts, listingProviders: listingProviders ?? this.listingProviders, prePaddingSeconds: prePaddingSeconds ?? this.prePaddingSeconds, postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, - mediaLocationsCreated: - mediaLocationsCreated ?? this.mediaLocationsCreated, - recordingPostProcessor: - recordingPostProcessor ?? this.recordingPostProcessor, - recordingPostProcessorArguments: - recordingPostProcessorArguments ?? - this.recordingPostProcessorArguments, + mediaLocationsCreated: mediaLocationsCreated ?? this.mediaLocationsCreated, + recordingPostProcessor: recordingPostProcessor ?? this.recordingPostProcessor, + recordingPostProcessorArguments: recordingPostProcessorArguments ?? this.recordingPostProcessorArguments, saveRecordingNFO: saveRecordingNFO ?? this.saveRecordingNFO, saveRecordingImages: saveRecordingImages ?? this.saveRecordingImages, ); @@ -31417,47 +30439,26 @@ extension $LiveTvOptionsExtension on LiveTvOptions { }) { return LiveTvOptions( guideDays: (guideDays != null ? guideDays.value : this.guideDays), - recordingPath: (recordingPath != null - ? recordingPath.value - : this.recordingPath), - movieRecordingPath: (movieRecordingPath != null - ? movieRecordingPath.value - : this.movieRecordingPath), - seriesRecordingPath: (seriesRecordingPath != null - ? seriesRecordingPath.value - : this.seriesRecordingPath), - enableRecordingSubfolders: (enableRecordingSubfolders != null - ? enableRecordingSubfolders.value - : this.enableRecordingSubfolders), - enableOriginalAudioWithEncodedRecordings: - (enableOriginalAudioWithEncodedRecordings != null + recordingPath: (recordingPath != null ? recordingPath.value : this.recordingPath), + movieRecordingPath: (movieRecordingPath != null ? movieRecordingPath.value : this.movieRecordingPath), + seriesRecordingPath: (seriesRecordingPath != null ? seriesRecordingPath.value : this.seriesRecordingPath), + enableRecordingSubfolders: + (enableRecordingSubfolders != null ? enableRecordingSubfolders.value : this.enableRecordingSubfolders), + enableOriginalAudioWithEncodedRecordings: (enableOriginalAudioWithEncodedRecordings != null ? enableOriginalAudioWithEncodedRecordings.value : this.enableOriginalAudioWithEncodedRecordings), tunerHosts: (tunerHosts != null ? tunerHosts.value : this.tunerHosts), - listingProviders: (listingProviders != null - ? listingProviders.value - : this.listingProviders), - prePaddingSeconds: (prePaddingSeconds != null - ? prePaddingSeconds.value - : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null - ? postPaddingSeconds.value - : this.postPaddingSeconds), - mediaLocationsCreated: (mediaLocationsCreated != null - ? mediaLocationsCreated.value - : this.mediaLocationsCreated), - recordingPostProcessor: (recordingPostProcessor != null - ? recordingPostProcessor.value - : this.recordingPostProcessor), + listingProviders: (listingProviders != null ? listingProviders.value : this.listingProviders), + prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), + mediaLocationsCreated: (mediaLocationsCreated != null ? mediaLocationsCreated.value : this.mediaLocationsCreated), + recordingPostProcessor: + (recordingPostProcessor != null ? recordingPostProcessor.value : this.recordingPostProcessor), recordingPostProcessorArguments: (recordingPostProcessorArguments != null ? recordingPostProcessorArguments.value : this.recordingPostProcessorArguments), - saveRecordingNFO: (saveRecordingNFO != null - ? saveRecordingNFO.value - : this.saveRecordingNFO), - saveRecordingImages: (saveRecordingImages != null - ? saveRecordingImages.value - : this.saveRecordingImages), + saveRecordingNFO: (saveRecordingNFO != null ? saveRecordingNFO.value : this.saveRecordingNFO), + saveRecordingImages: (saveRecordingImages != null ? saveRecordingImages.value : this.saveRecordingImages), ); } } @@ -31475,8 +30476,7 @@ class LiveTvServiceInfo { this.tuners, }); - factory LiveTvServiceInfo.fromJson(Map json) => - _$LiveTvServiceInfoFromJson(json); + factory LiveTvServiceInfo.fromJson(Map json) => _$LiveTvServiceInfoFromJson(json); static const toJsonFactory = _$LiveTvServiceInfoToJson; Map toJson() => _$LiveTvServiceInfoToJson(this); @@ -31508,15 +30508,13 @@ class LiveTvServiceInfo { bool operator ==(Object other) { return identical(this, other) || (other is LiveTvServiceInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.homePageUrl, homePageUrl) || const DeepCollectionEquality().equals( other.homePageUrl, homePageUrl, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.statusMessage, statusMessage) || const DeepCollectionEquality().equals( other.statusMessage, @@ -31537,8 +30535,7 @@ class LiveTvServiceInfo { other.isVisible, isVisible, )) && - (identical(other.tuners, tuners) || - const DeepCollectionEquality().equals(other.tuners, tuners))); + (identical(other.tuners, tuners) || const DeepCollectionEquality().equals(other.tuners, tuners))); } @override @@ -31594,13 +30591,9 @@ extension $LiveTvServiceInfoExtension on LiveTvServiceInfo { name: (name != null ? name.value : this.name), homePageUrl: (homePageUrl != null ? homePageUrl.value : this.homePageUrl), status: (status != null ? status.value : this.status), - statusMessage: (statusMessage != null - ? statusMessage.value - : this.statusMessage), + statusMessage: (statusMessage != null ? statusMessage.value : this.statusMessage), version: (version != null ? version.value : this.version), - hasUpdateAvailable: (hasUpdateAvailable != null - ? hasUpdateAvailable.value - : this.hasUpdateAvailable), + hasUpdateAvailable: (hasUpdateAvailable != null ? hasUpdateAvailable.value : this.hasUpdateAvailable), isVisible: (isVisible != null ? isVisible.value : this.isVisible), tuners: (tuners != null ? tuners.value : this.tuners), ); @@ -31611,8 +30604,7 @@ extension $LiveTvServiceInfoExtension on LiveTvServiceInfo { class LocalizationOption { const LocalizationOption({this.name, this.$Value}); - factory LocalizationOption.fromJson(Map json) => - _$LocalizationOptionFromJson(json); + factory LocalizationOption.fromJson(Map json) => _$LocalizationOptionFromJson(json); static const toJsonFactory = _$LocalizationOptionToJson; Map toJson() => _$LocalizationOptionToJson(this); @@ -31627,10 +30619,8 @@ class LocalizationOption { bool operator ==(Object other) { return identical(this, other) || (other is LocalizationOption && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -31638,9 +30628,7 @@ class LocalizationOption { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash($Value) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; } extension $LocalizationOptionExtension on LocalizationOption { @@ -31666,8 +30654,7 @@ extension $LocalizationOptionExtension on LocalizationOption { class LogFile { const LogFile({this.dateCreated, this.dateModified, this.size, this.name}); - factory LogFile.fromJson(Map json) => - _$LogFileFromJson(json); + factory LogFile.fromJson(Map json) => _$LogFileFromJson(json); static const toJsonFactory = _$LogFileToJson; Map toJson() => _$LogFileToJson(this); @@ -31696,10 +30683,8 @@ class LogFile { other.dateModified, dateModified, )) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name))); + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); } @override @@ -31737,9 +30722,7 @@ extension $LogFileExtension on LogFile { }) { return LogFile( dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateModified: (dateModified != null - ? dateModified.value - : this.dateModified), + dateModified: (dateModified != null ? dateModified.value : this.dateModified), size: (size != null ? size.value : this.size), name: (name != null ? name.value : this.name), ); @@ -31750,8 +30733,7 @@ extension $LogFileExtension on LogFile { class LoginInfoInput { const LoginInfoInput({required this.username, required this.password}); - factory LoginInfoInput.fromJson(Map json) => - _$LoginInfoInputFromJson(json); + factory LoginInfoInput.fromJson(Map json) => _$LoginInfoInputFromJson(json); static const toJsonFactory = _$LoginInfoInputToJson; Map toJson() => _$LoginInfoInputToJson(this); @@ -31811,8 +30793,7 @@ extension $LoginInfoInputExtension on LoginInfoInput { class LyricDto { const LyricDto({this.metadata, this.lyrics}); - factory LyricDto.fromJson(Map json) => - _$LyricDtoFromJson(json); + factory LyricDto.fromJson(Map json) => _$LyricDtoFromJson(json); static const toJsonFactory = _$LyricDtoToJson; Map toJson() => _$LyricDtoToJson(this); @@ -31832,8 +30813,7 @@ class LyricDto { other.metadata, metadata, )) && - (identical(other.lyrics, lyrics) || - const DeepCollectionEquality().equals(other.lyrics, lyrics))); + (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @override @@ -31869,8 +30849,7 @@ extension $LyricDtoExtension on LyricDto { class LyricLine { const LyricLine({this.text, this.start, this.cues}); - factory LyricLine.fromJson(Map json) => - _$LyricLineFromJson(json); + factory LyricLine.fromJson(Map json) => _$LyricLineFromJson(json); static const toJsonFactory = _$LyricLineToJson; Map toJson() => _$LyricLineToJson(this); @@ -31887,12 +30866,9 @@ class LyricLine { bool operator ==(Object other) { return identical(this, other) || (other is LyricLine && - (identical(other.text, text) || - const DeepCollectionEquality().equals(other.text, text)) && - (identical(other.start, start) || - const DeepCollectionEquality().equals(other.start, start)) && - (identical(other.cues, cues) || - const DeepCollectionEquality().equals(other.cues, cues))); + (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && + (identical(other.start, start) || const DeepCollectionEquality().equals(other.start, start)) && + (identical(other.cues, cues) || const DeepCollectionEquality().equals(other.cues, cues))); } @override @@ -31932,8 +30908,7 @@ extension $LyricLineExtension on LyricLine { class LyricLineCue { const LyricLineCue({this.position, this.endPosition, this.start, this.end}); - factory LyricLineCue.fromJson(Map json) => - _$LyricLineCueFromJson(json); + factory LyricLineCue.fromJson(Map json) => _$LyricLineCueFromJson(json); static const toJsonFactory = _$LyricLineCueToJson; Map toJson() => _$LyricLineCueToJson(this); @@ -31962,10 +30937,8 @@ class LyricLineCue { other.endPosition, endPosition, )) && - (identical(other.start, start) || - const DeepCollectionEquality().equals(other.start, start)) && - (identical(other.end, end) || - const DeepCollectionEquality().equals(other.end, end))); + (identical(other.start, start) || const DeepCollectionEquality().equals(other.start, start)) && + (identical(other.end, end) || const DeepCollectionEquality().equals(other.end, end))); } @override @@ -32025,8 +30998,7 @@ class LyricMetadata { this.isSynced, }); - factory LyricMetadata.fromJson(Map json) => - _$LyricMetadataFromJson(json); + factory LyricMetadata.fromJson(Map json) => _$LyricMetadataFromJson(json); static const toJsonFactory = _$LyricMetadataToJson; Map toJson() => _$LyricMetadataToJson(this); @@ -32057,20 +31029,13 @@ class LyricMetadata { bool operator ==(Object other) { return identical(this, other) || (other is LyricMetadata && - (identical(other.artist, artist) || - const DeepCollectionEquality().equals(other.artist, artist)) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && - (identical(other.title, title) || - const DeepCollectionEquality().equals(other.title, title)) && - (identical(other.author, author) || - const DeepCollectionEquality().equals(other.author, author)) && - (identical(other.length, length) || - const DeepCollectionEquality().equals(other.length, length)) && - (identical(other.by, by) || - const DeepCollectionEquality().equals(other.by, by)) && - (identical(other.offset, offset) || - const DeepCollectionEquality().equals(other.offset, offset)) && + (identical(other.artist, artist) || const DeepCollectionEquality().equals(other.artist, artist)) && + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && + (identical(other.length, length) || const DeepCollectionEquality().equals(other.length, length)) && + (identical(other.by, by) || const DeepCollectionEquality().equals(other.by, by)) && + (identical(other.offset, offset) || const DeepCollectionEquality().equals(other.offset, offset)) && (identical(other.creator, creator) || const DeepCollectionEquality().equals( other.creator, @@ -32172,8 +31137,7 @@ class MediaAttachment { this.deliveryUrl, }); - factory MediaAttachment.fromJson(Map json) => - _$MediaAttachmentFromJson(json); + factory MediaAttachment.fromJson(Map json) => _$MediaAttachmentFromJson(json); static const toJsonFactory = _$MediaAttachmentToJson; Map toJson() => _$MediaAttachmentToJson(this); @@ -32198,8 +31162,7 @@ class MediaAttachment { bool operator ==(Object other) { return identical(this, other) || (other is MediaAttachment && - (identical(other.codec, codec) || - const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || const DeepCollectionEquality().equals( other.codecTag, @@ -32210,8 +31173,7 @@ class MediaAttachment { other.comment, comment, )) && - (identical(other.index, index) || - const DeepCollectionEquality().equals(other.index, index)) && + (identical(other.index, index) || const DeepCollectionEquality().equals(other.index, index)) && (identical(other.fileName, fileName) || const DeepCollectionEquality().equals( other.fileName, @@ -32290,8 +31252,7 @@ extension $MediaAttachmentExtension on MediaAttachment { class MediaPathDto { const MediaPathDto({required this.name, this.path, this.pathInfo}); - factory MediaPathDto.fromJson(Map json) => - _$MediaPathDtoFromJson(json); + factory MediaPathDto.fromJson(Map json) => _$MediaPathDtoFromJson(json); static const toJsonFactory = _$MediaPathDtoToJson; Map toJson() => _$MediaPathDtoToJson(this); @@ -32308,10 +31269,8 @@ class MediaPathDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaPathDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.pathInfo, pathInfo) || const DeepCollectionEquality().equals( other.pathInfo, @@ -32356,8 +31315,7 @@ extension $MediaPathDtoExtension on MediaPathDto { class MediaPathInfo { const MediaPathInfo({this.path}); - factory MediaPathInfo.fromJson(Map json) => - _$MediaPathInfoFromJson(json); + factory MediaPathInfo.fromJson(Map json) => _$MediaPathInfoFromJson(json); static const toJsonFactory = _$MediaPathInfoToJson; Map toJson() => _$MediaPathInfoToJson(this); @@ -32370,16 +31328,14 @@ class MediaPathInfo { bool operator ==(Object other) { return identical(this, other) || (other is MediaPathInfo && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; } extension $MediaPathInfoExtension on MediaPathInfo { @@ -32402,8 +31358,7 @@ class MediaSegmentDto { this.endTicks, }); - factory MediaSegmentDto.fromJson(Map json) => - _$MediaSegmentDtoFromJson(json); + factory MediaSegmentDto.fromJson(Map json) => _$MediaSegmentDtoFromJson(json); static const toJsonFactory = _$MediaSegmentDtoToJson; Map toJson() => _$MediaSegmentDtoToJson(this); @@ -32421,7 +31376,8 @@ class MediaSegmentDto { final enums.MediaSegmentType? type; static enums.MediaSegmentType? mediaSegmentTypeTypeNullableFromJson( Object? value, - ) => mediaSegmentTypeNullableFromJson(value, enums.MediaSegmentType.unknown); + ) => + mediaSegmentTypeNullableFromJson(value, enums.MediaSegmentType.unknown); @JsonKey(name: 'StartTicks', includeIfNull: false) final int? startTicks; @@ -32433,12 +31389,9 @@ class MediaSegmentDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaSegmentDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.startTicks, startTicks) || const DeepCollectionEquality().equals( other.startTicks, @@ -32506,8 +31459,7 @@ class MediaSegmentDtoQueryResult { this.startIndex, }); - factory MediaSegmentDtoQueryResult.fromJson(Map json) => - _$MediaSegmentDtoQueryResultFromJson(json); + factory MediaSegmentDtoQueryResult.fromJson(Map json) => _$MediaSegmentDtoQueryResultFromJson(json); static const toJsonFactory = _$MediaSegmentDtoQueryResultToJson; Map toJson() => _$MediaSegmentDtoQueryResultToJson(this); @@ -32528,8 +31480,7 @@ class MediaSegmentDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is MediaSegmentDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -32573,9 +31524,7 @@ extension $MediaSegmentDtoQueryResultExtension on MediaSegmentDtoQueryResult { }) { return MediaSegmentDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -32631,8 +31580,7 @@ class MediaSourceInfo { this.hasSegments, }); - factory MediaSourceInfo.fromJson(Map json) => - _$MediaSourceInfoFromJson(json); + factory MediaSourceInfo.fromJson(Map json) => _$MediaSourceInfoFromJson(json); static const toJsonFactory = _$MediaSourceInfoToJson; Map toJson() => _$MediaSourceInfoToJson(this); @@ -32790,10 +31738,8 @@ class MediaSourceInfo { other.protocol, protocol, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.encoderPath, encoderPath) || const DeepCollectionEquality().equals( other.encoderPath, @@ -32804,24 +31750,20 @@ class MediaSourceInfo { other.encoderProtocol, encoderProtocol, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.container, container) || const DeepCollectionEquality().equals( other.container, container, )) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.isRemote, isRemote) || const DeepCollectionEquality().equals( other.isRemote, isRemote, )) && - (identical(other.eTag, eTag) || - const DeepCollectionEquality().equals(other.eTag, eTag)) && + (identical(other.eTag, eTag) || const DeepCollectionEquality().equals(other.eTag, eTag)) && (identical(other.runTimeTicks, runTimeTicks) || const DeepCollectionEquality().equals( other.runTimeTicks, @@ -33120,8 +32062,7 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { isRemote: isRemote ?? this.isRemote, eTag: eTag ?? this.eTag, runTimeTicks: runTimeTicks ?? this.runTimeTicks, - readAtNativeFramerate: - readAtNativeFramerate ?? this.readAtNativeFramerate, + readAtNativeFramerate: readAtNativeFramerate ?? this.readAtNativeFramerate, ignoreDts: ignoreDts ?? this.ignoreDts, ignoreIndex: ignoreIndex ?? this.ignoreIndex, genPtsInput: genPtsInput ?? this.genPtsInput, @@ -33130,8 +32071,7 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { supportsDirectPlay: supportsDirectPlay ?? this.supportsDirectPlay, isInfiniteStream: isInfiniteStream ?? this.isInfiniteStream, useMostCompatibleTranscodingProfile: - useMostCompatibleTranscodingProfile ?? - this.useMostCompatibleTranscodingProfile, + useMostCompatibleTranscodingProfile ?? this.useMostCompatibleTranscodingProfile, requiresOpening: requiresOpening ?? this.requiresOpening, openToken: openToken ?? this.openToken, requiresClosing: requiresClosing ?? this.requiresClosing, @@ -33146,19 +32086,15 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { mediaAttachments: mediaAttachments ?? this.mediaAttachments, formats: formats ?? this.formats, bitrate: bitrate ?? this.bitrate, - fallbackMaxStreamingBitrate: - fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate: fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, timestamp: timestamp ?? this.timestamp, requiredHttpHeaders: requiredHttpHeaders ?? this.requiredHttpHeaders, transcodingUrl: transcodingUrl ?? this.transcodingUrl, - transcodingSubProtocol: - transcodingSubProtocol ?? this.transcodingSubProtocol, + transcodingSubProtocol: transcodingSubProtocol ?? this.transcodingSubProtocol, transcodingContainer: transcodingContainer ?? this.transcodingContainer, analyzeDurationMs: analyzeDurationMs ?? this.analyzeDurationMs, - defaultAudioStreamIndex: - defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, - defaultSubtitleStreamIndex: - defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, + defaultAudioStreamIndex: defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, + defaultSubtitleStreamIndex: defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, hasSegments: hasSegments ?? this.hasSegments, ); } @@ -33215,95 +32151,52 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { id: (id != null ? id.value : this.id), path: (path != null ? path.value : this.path), encoderPath: (encoderPath != null ? encoderPath.value : this.encoderPath), - encoderProtocol: (encoderProtocol != null - ? encoderProtocol.value - : this.encoderProtocol), + encoderProtocol: (encoderProtocol != null ? encoderProtocol.value : this.encoderProtocol), type: (type != null ? type.value : this.type), container: (container != null ? container.value : this.container), size: (size != null ? size.value : this.size), name: (name != null ? name.value : this.name), isRemote: (isRemote != null ? isRemote.value : this.isRemote), eTag: (eTag != null ? eTag.value : this.eTag), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), - readAtNativeFramerate: (readAtNativeFramerate != null - ? readAtNativeFramerate.value - : this.readAtNativeFramerate), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), + readAtNativeFramerate: (readAtNativeFramerate != null ? readAtNativeFramerate.value : this.readAtNativeFramerate), ignoreDts: (ignoreDts != null ? ignoreDts.value : this.ignoreDts), ignoreIndex: (ignoreIndex != null ? ignoreIndex.value : this.ignoreIndex), genPtsInput: (genPtsInput != null ? genPtsInput.value : this.genPtsInput), - supportsTranscoding: (supportsTranscoding != null - ? supportsTranscoding.value - : this.supportsTranscoding), - supportsDirectStream: (supportsDirectStream != null - ? supportsDirectStream.value - : this.supportsDirectStream), - supportsDirectPlay: (supportsDirectPlay != null - ? supportsDirectPlay.value - : this.supportsDirectPlay), - isInfiniteStream: (isInfiniteStream != null - ? isInfiniteStream.value - : this.isInfiniteStream), - useMostCompatibleTranscodingProfile: - (useMostCompatibleTranscodingProfile != null + supportsTranscoding: (supportsTranscoding != null ? supportsTranscoding.value : this.supportsTranscoding), + supportsDirectStream: (supportsDirectStream != null ? supportsDirectStream.value : this.supportsDirectStream), + supportsDirectPlay: (supportsDirectPlay != null ? supportsDirectPlay.value : this.supportsDirectPlay), + isInfiniteStream: (isInfiniteStream != null ? isInfiniteStream.value : this.isInfiniteStream), + useMostCompatibleTranscodingProfile: (useMostCompatibleTranscodingProfile != null ? useMostCompatibleTranscodingProfile.value : this.useMostCompatibleTranscodingProfile), - requiresOpening: (requiresOpening != null - ? requiresOpening.value - : this.requiresOpening), + requiresOpening: (requiresOpening != null ? requiresOpening.value : this.requiresOpening), openToken: (openToken != null ? openToken.value : this.openToken), - requiresClosing: (requiresClosing != null - ? requiresClosing.value - : this.requiresClosing), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), + requiresClosing: (requiresClosing != null ? requiresClosing.value : this.requiresClosing), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), bufferMs: (bufferMs != null ? bufferMs.value : this.bufferMs), - requiresLooping: (requiresLooping != null - ? requiresLooping.value - : this.requiresLooping), - supportsProbing: (supportsProbing != null - ? supportsProbing.value - : this.supportsProbing), + requiresLooping: (requiresLooping != null ? requiresLooping.value : this.requiresLooping), + supportsProbing: (supportsProbing != null ? supportsProbing.value : this.supportsProbing), videoType: (videoType != null ? videoType.value : this.videoType), isoType: (isoType != null ? isoType.value : this.isoType), - video3DFormat: (video3DFormat != null - ? video3DFormat.value - : this.video3DFormat), - mediaStreams: (mediaStreams != null - ? mediaStreams.value - : this.mediaStreams), - mediaAttachments: (mediaAttachments != null - ? mediaAttachments.value - : this.mediaAttachments), + video3DFormat: (video3DFormat != null ? video3DFormat.value : this.video3DFormat), + mediaStreams: (mediaStreams != null ? mediaStreams.value : this.mediaStreams), + mediaAttachments: (mediaAttachments != null ? mediaAttachments.value : this.mediaAttachments), formats: (formats != null ? formats.value : this.formats), bitrate: (bitrate != null ? bitrate.value : this.bitrate), - fallbackMaxStreamingBitrate: (fallbackMaxStreamingBitrate != null - ? fallbackMaxStreamingBitrate.value - : this.fallbackMaxStreamingBitrate), + fallbackMaxStreamingBitrate: + (fallbackMaxStreamingBitrate != null ? fallbackMaxStreamingBitrate.value : this.fallbackMaxStreamingBitrate), timestamp: (timestamp != null ? timestamp.value : this.timestamp), - requiredHttpHeaders: (requiredHttpHeaders != null - ? requiredHttpHeaders.value - : this.requiredHttpHeaders), - transcodingUrl: (transcodingUrl != null - ? transcodingUrl.value - : this.transcodingUrl), - transcodingSubProtocol: (transcodingSubProtocol != null - ? transcodingSubProtocol.value - : this.transcodingSubProtocol), - transcodingContainer: (transcodingContainer != null - ? transcodingContainer.value - : this.transcodingContainer), - analyzeDurationMs: (analyzeDurationMs != null - ? analyzeDurationMs.value - : this.analyzeDurationMs), - defaultAudioStreamIndex: (defaultAudioStreamIndex != null - ? defaultAudioStreamIndex.value - : this.defaultAudioStreamIndex), - defaultSubtitleStreamIndex: (defaultSubtitleStreamIndex != null - ? defaultSubtitleStreamIndex.value - : this.defaultSubtitleStreamIndex), + requiredHttpHeaders: (requiredHttpHeaders != null ? requiredHttpHeaders.value : this.requiredHttpHeaders), + transcodingUrl: (transcodingUrl != null ? transcodingUrl.value : this.transcodingUrl), + transcodingSubProtocol: + (transcodingSubProtocol != null ? transcodingSubProtocol.value : this.transcodingSubProtocol), + transcodingContainer: (transcodingContainer != null ? transcodingContainer.value : this.transcodingContainer), + analyzeDurationMs: (analyzeDurationMs != null ? analyzeDurationMs.value : this.analyzeDurationMs), + defaultAudioStreamIndex: + (defaultAudioStreamIndex != null ? defaultAudioStreamIndex.value : this.defaultAudioStreamIndex), + defaultSubtitleStreamIndex: + (defaultSubtitleStreamIndex != null ? defaultSubtitleStreamIndex.value : this.defaultSubtitleStreamIndex), hasSegments: (hasSegments != null ? hasSegments.value : this.hasSegments), ); } @@ -33378,8 +32271,7 @@ class MediaStream { this.isAnamorphic, }); - factory MediaStream.fromJson(Map json) => - _$MediaStreamFromJson(json); + factory MediaStream.fromJson(Map json) => _$MediaStreamFromJson(json); static const toJsonFactory = _$MediaStreamToJson; Map toJson() => _$MediaStreamToJson(this); @@ -33435,7 +32327,8 @@ class MediaStream { final enums.VideoRange? videoRange; static enums.VideoRange? videoRangeVideoRangeNullableFromJson( Object? value, - ) => videoRangeNullableFromJson(value, enums.VideoRange.unknown); + ) => + videoRangeNullableFromJson(value, enums.VideoRange.unknown); @JsonKey( name: 'VideoRangeType', @@ -33446,7 +32339,8 @@ class MediaStream { final enums.VideoRangeType? videoRangeType; static enums.VideoRangeType? videoRangeTypeVideoRangeTypeNullableFromJson( Object? value, - ) => videoRangeTypeNullableFromJson(value, enums.VideoRangeType.unknown); + ) => + videoRangeTypeNullableFromJson(value, enums.VideoRangeType.unknown); @JsonKey(name: 'VideoDoViTitle', includeIfNull: false) final String? videoDoViTitle; @@ -33457,8 +32351,7 @@ class MediaStream { fromJson: audioSpatialFormatAudioSpatialFormatNullableFromJson, ) final enums.AudioSpatialFormat? audioSpatialFormat; - static enums.AudioSpatialFormat? - audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => + static enums.AudioSpatialFormat? audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => audioSpatialFormatNullableFromJson(value, enums.AudioSpatialFormat.none); @JsonKey(name: 'LocalizedUndefined', includeIfNull: false) @@ -33555,8 +32448,7 @@ class MediaStream { bool operator ==(Object other) { return identical(this, other) || (other is MediaStream && - (identical(other.codec, codec) || - const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || const DeepCollectionEquality().equals( other.codecTag, @@ -33650,8 +32542,7 @@ class MediaStream { other.codecTimeBase, codecTimeBase, )) && - (identical(other.title, title) || - const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && (identical(other.hdr10PlusPresentFlag, hdr10PlusPresentFlag) || const DeepCollectionEquality().equals( other.hdr10PlusPresentFlag, @@ -33720,8 +32611,7 @@ class MediaStream { other.isInterlaced, isInterlaced, )) && - (identical(other.isAVC, isAVC) || - const DeepCollectionEquality().equals(other.isAVC, isAVC)) && + (identical(other.isAVC, isAVC) || const DeepCollectionEquality().equals(other.isAVC, isAVC)) && (identical(other.channelLayout, channelLayout) || const DeepCollectionEquality().equals( other.channelLayout, @@ -33772,10 +32662,8 @@ class MediaStream { other.isHearingImpaired, isHearingImpaired, )) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && (identical(other.averageFrameRate, averageFrameRate) || const DeepCollectionEquality().equals( other.averageFrameRate, @@ -33796,17 +32684,14 @@ class MediaStream { other.profile, profile, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.aspectRatio, aspectRatio) || const DeepCollectionEquality().equals( other.aspectRatio, aspectRatio, )) && - (identical(other.index, index) || - const DeepCollectionEquality().equals(other.index, index)) && - (identical(other.score, score) || - const DeepCollectionEquality().equals(other.score, score)) && + (identical(other.index, index) || const DeepCollectionEquality().equals(other.index, index)) && + (identical(other.score, score) || const DeepCollectionEquality().equals(other.score, score)) && (identical(other.isExternal, isExternal) || const DeepCollectionEquality().equals( other.isExternal, @@ -33837,15 +32722,13 @@ class MediaStream { other.supportsExternalStream, supportsExternalStream, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.pixelFormat, pixelFormat) || const DeepCollectionEquality().equals( other.pixelFormat, pixelFormat, )) && - (identical(other.level, level) || - const DeepCollectionEquality().equals(other.level, level)) && + (identical(other.level, level) || const DeepCollectionEquality().equals(other.level, level)) && (identical(other.isAnamorphic, isAnamorphic) || const DeepCollectionEquality().equals( other.isAnamorphic, @@ -34007,8 +32890,7 @@ extension $MediaStreamExtension on MediaStream { rpuPresentFlag: rpuPresentFlag ?? this.rpuPresentFlag, elPresentFlag: elPresentFlag ?? this.elPresentFlag, blPresentFlag: blPresentFlag ?? this.blPresentFlag, - dvBlSignalCompatibilityId: - dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, + dvBlSignalCompatibilityId: dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, rotation: rotation ?? this.rotation, comment: comment ?? this.comment, timeBase: timeBase ?? this.timeBase, @@ -34023,8 +32905,7 @@ extension $MediaStreamExtension on MediaStream { localizedDefault: localizedDefault ?? this.localizedDefault, localizedForced: localizedForced ?? this.localizedForced, localizedExternal: localizedExternal ?? this.localizedExternal, - localizedHearingImpaired: - localizedHearingImpaired ?? this.localizedHearingImpaired, + localizedHearingImpaired: localizedHearingImpaired ?? this.localizedHearingImpaired, displayTitle: displayTitle ?? this.displayTitle, nalLengthSize: nalLengthSize ?? this.nalLengthSize, isInterlaced: isInterlaced ?? this.isInterlaced, @@ -34054,8 +32935,7 @@ extension $MediaStreamExtension on MediaStream { deliveryUrl: deliveryUrl ?? this.deliveryUrl, isExternalUrl: isExternalUrl ?? this.isExternalUrl, isTextSubtitleStream: isTextSubtitleStream ?? this.isTextSubtitleStream, - supportsExternalStream: - supportsExternalStream ?? this.supportsExternalStream, + supportsExternalStream: supportsExternalStream ?? this.supportsExternalStream, path: path ?? this.path, pixelFormat: pixelFormat ?? this.pixelFormat, level: level ?? this.level, @@ -34135,129 +33015,68 @@ extension $MediaStreamExtension on MediaStream { language: (language != null ? language.value : this.language), colorRange: (colorRange != null ? colorRange.value : this.colorRange), colorSpace: (colorSpace != null ? colorSpace.value : this.colorSpace), - colorTransfer: (colorTransfer != null - ? colorTransfer.value - : this.colorTransfer), - colorPrimaries: (colorPrimaries != null - ? colorPrimaries.value - : this.colorPrimaries), - dvVersionMajor: (dvVersionMajor != null - ? dvVersionMajor.value - : this.dvVersionMajor), - dvVersionMinor: (dvVersionMinor != null - ? dvVersionMinor.value - : this.dvVersionMinor), + colorTransfer: (colorTransfer != null ? colorTransfer.value : this.colorTransfer), + colorPrimaries: (colorPrimaries != null ? colorPrimaries.value : this.colorPrimaries), + dvVersionMajor: (dvVersionMajor != null ? dvVersionMajor.value : this.dvVersionMajor), + dvVersionMinor: (dvVersionMinor != null ? dvVersionMinor.value : this.dvVersionMinor), dvProfile: (dvProfile != null ? dvProfile.value : this.dvProfile), dvLevel: (dvLevel != null ? dvLevel.value : this.dvLevel), - rpuPresentFlag: (rpuPresentFlag != null - ? rpuPresentFlag.value - : this.rpuPresentFlag), - elPresentFlag: (elPresentFlag != null - ? elPresentFlag.value - : this.elPresentFlag), - blPresentFlag: (blPresentFlag != null - ? blPresentFlag.value - : this.blPresentFlag), - dvBlSignalCompatibilityId: (dvBlSignalCompatibilityId != null - ? dvBlSignalCompatibilityId.value - : this.dvBlSignalCompatibilityId), + rpuPresentFlag: (rpuPresentFlag != null ? rpuPresentFlag.value : this.rpuPresentFlag), + elPresentFlag: (elPresentFlag != null ? elPresentFlag.value : this.elPresentFlag), + blPresentFlag: (blPresentFlag != null ? blPresentFlag.value : this.blPresentFlag), + dvBlSignalCompatibilityId: + (dvBlSignalCompatibilityId != null ? dvBlSignalCompatibilityId.value : this.dvBlSignalCompatibilityId), rotation: (rotation != null ? rotation.value : this.rotation), comment: (comment != null ? comment.value : this.comment), timeBase: (timeBase != null ? timeBase.value : this.timeBase), - codecTimeBase: (codecTimeBase != null - ? codecTimeBase.value - : this.codecTimeBase), + codecTimeBase: (codecTimeBase != null ? codecTimeBase.value : this.codecTimeBase), title: (title != null ? title.value : this.title), - hdr10PlusPresentFlag: (hdr10PlusPresentFlag != null - ? hdr10PlusPresentFlag.value - : this.hdr10PlusPresentFlag), + hdr10PlusPresentFlag: (hdr10PlusPresentFlag != null ? hdr10PlusPresentFlag.value : this.hdr10PlusPresentFlag), videoRange: (videoRange != null ? videoRange.value : this.videoRange), - videoRangeType: (videoRangeType != null - ? videoRangeType.value - : this.videoRangeType), - videoDoViTitle: (videoDoViTitle != null - ? videoDoViTitle.value - : this.videoDoViTitle), - audioSpatialFormat: (audioSpatialFormat != null - ? audioSpatialFormat.value - : this.audioSpatialFormat), - localizedUndefined: (localizedUndefined != null - ? localizedUndefined.value - : this.localizedUndefined), - localizedDefault: (localizedDefault != null - ? localizedDefault.value - : this.localizedDefault), - localizedForced: (localizedForced != null - ? localizedForced.value - : this.localizedForced), - localizedExternal: (localizedExternal != null - ? localizedExternal.value - : this.localizedExternal), - localizedHearingImpaired: (localizedHearingImpaired != null - ? localizedHearingImpaired.value - : this.localizedHearingImpaired), - displayTitle: (displayTitle != null - ? displayTitle.value - : this.displayTitle), - nalLengthSize: (nalLengthSize != null - ? nalLengthSize.value - : this.nalLengthSize), - isInterlaced: (isInterlaced != null - ? isInterlaced.value - : this.isInterlaced), + videoRangeType: (videoRangeType != null ? videoRangeType.value : this.videoRangeType), + videoDoViTitle: (videoDoViTitle != null ? videoDoViTitle.value : this.videoDoViTitle), + audioSpatialFormat: (audioSpatialFormat != null ? audioSpatialFormat.value : this.audioSpatialFormat), + localizedUndefined: (localizedUndefined != null ? localizedUndefined.value : this.localizedUndefined), + localizedDefault: (localizedDefault != null ? localizedDefault.value : this.localizedDefault), + localizedForced: (localizedForced != null ? localizedForced.value : this.localizedForced), + localizedExternal: (localizedExternal != null ? localizedExternal.value : this.localizedExternal), + localizedHearingImpaired: + (localizedHearingImpaired != null ? localizedHearingImpaired.value : this.localizedHearingImpaired), + displayTitle: (displayTitle != null ? displayTitle.value : this.displayTitle), + nalLengthSize: (nalLengthSize != null ? nalLengthSize.value : this.nalLengthSize), + isInterlaced: (isInterlaced != null ? isInterlaced.value : this.isInterlaced), isAVC: (isAVC != null ? isAVC.value : this.isAVC), - channelLayout: (channelLayout != null - ? channelLayout.value - : this.channelLayout), + channelLayout: (channelLayout != null ? channelLayout.value : this.channelLayout), bitRate: (bitRate != null ? bitRate.value : this.bitRate), bitDepth: (bitDepth != null ? bitDepth.value : this.bitDepth), refFrames: (refFrames != null ? refFrames.value : this.refFrames), - packetLength: (packetLength != null - ? packetLength.value - : this.packetLength), + packetLength: (packetLength != null ? packetLength.value : this.packetLength), channels: (channels != null ? channels.value : this.channels), sampleRate: (sampleRate != null ? sampleRate.value : this.sampleRate), isDefault: (isDefault != null ? isDefault.value : this.isDefault), isForced: (isForced != null ? isForced.value : this.isForced), - isHearingImpaired: (isHearingImpaired != null - ? isHearingImpaired.value - : this.isHearingImpaired), + isHearingImpaired: (isHearingImpaired != null ? isHearingImpaired.value : this.isHearingImpaired), height: (height != null ? height.value : this.height), width: (width != null ? width.value : this.width), - averageFrameRate: (averageFrameRate != null - ? averageFrameRate.value - : this.averageFrameRate), - realFrameRate: (realFrameRate != null - ? realFrameRate.value - : this.realFrameRate), - referenceFrameRate: (referenceFrameRate != null - ? referenceFrameRate.value - : this.referenceFrameRate), + averageFrameRate: (averageFrameRate != null ? averageFrameRate.value : this.averageFrameRate), + realFrameRate: (realFrameRate != null ? realFrameRate.value : this.realFrameRate), + referenceFrameRate: (referenceFrameRate != null ? referenceFrameRate.value : this.referenceFrameRate), profile: (profile != null ? profile.value : this.profile), type: (type != null ? type.value : this.type), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), index: (index != null ? index.value : this.index), score: (score != null ? score.value : this.score), isExternal: (isExternal != null ? isExternal.value : this.isExternal), - deliveryMethod: (deliveryMethod != null - ? deliveryMethod.value - : this.deliveryMethod), + deliveryMethod: (deliveryMethod != null ? deliveryMethod.value : this.deliveryMethod), deliveryUrl: (deliveryUrl != null ? deliveryUrl.value : this.deliveryUrl), - isExternalUrl: (isExternalUrl != null - ? isExternalUrl.value - : this.isExternalUrl), - isTextSubtitleStream: (isTextSubtitleStream != null - ? isTextSubtitleStream.value - : this.isTextSubtitleStream), - supportsExternalStream: (supportsExternalStream != null - ? supportsExternalStream.value - : this.supportsExternalStream), + isExternalUrl: (isExternalUrl != null ? isExternalUrl.value : this.isExternalUrl), + isTextSubtitleStream: (isTextSubtitleStream != null ? isTextSubtitleStream.value : this.isTextSubtitleStream), + supportsExternalStream: + (supportsExternalStream != null ? supportsExternalStream.value : this.supportsExternalStream), path: (path != null ? path.value : this.path), pixelFormat: (pixelFormat != null ? pixelFormat.value : this.pixelFormat), level: (level != null ? level.value : this.level), - isAnamorphic: (isAnamorphic != null - ? isAnamorphic.value - : this.isAnamorphic), + isAnamorphic: (isAnamorphic != null ? isAnamorphic.value : this.isAnamorphic), ); } } @@ -34266,8 +33085,7 @@ extension $MediaStreamExtension on MediaStream { class MediaUpdateInfoDto { const MediaUpdateInfoDto({this.updates}); - factory MediaUpdateInfoDto.fromJson(Map json) => - _$MediaUpdateInfoDtoFromJson(json); + factory MediaUpdateInfoDto.fromJson(Map json) => _$MediaUpdateInfoDtoFromJson(json); static const toJsonFactory = _$MediaUpdateInfoDtoToJson; Map toJson() => _$MediaUpdateInfoDtoToJson(this); @@ -34284,16 +33102,14 @@ class MediaUpdateInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaUpdateInfoDto && - (identical(other.updates, updates) || - const DeepCollectionEquality().equals(other.updates, updates))); + (identical(other.updates, updates) || const DeepCollectionEquality().equals(other.updates, updates))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(updates) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(updates) ^ runtimeType.hashCode; } extension $MediaUpdateInfoDtoExtension on MediaUpdateInfoDto { @@ -34314,8 +33130,7 @@ extension $MediaUpdateInfoDtoExtension on MediaUpdateInfoDto { class MediaUpdateInfoPathDto { const MediaUpdateInfoPathDto({this.path, this.updateType}); - factory MediaUpdateInfoPathDto.fromJson(Map json) => - _$MediaUpdateInfoPathDtoFromJson(json); + factory MediaUpdateInfoPathDto.fromJson(Map json) => _$MediaUpdateInfoPathDtoFromJson(json); static const toJsonFactory = _$MediaUpdateInfoPathDtoToJson; Map toJson() => _$MediaUpdateInfoPathDtoToJson(this); @@ -34330,8 +33145,7 @@ class MediaUpdateInfoPathDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaUpdateInfoPathDto && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.updateType, updateType) || const DeepCollectionEquality().equals( other.updateType, @@ -34372,8 +33186,7 @@ extension $MediaUpdateInfoPathDtoExtension on MediaUpdateInfoPathDto { class MediaUrl { const MediaUrl({this.url, this.name}); - factory MediaUrl.fromJson(Map json) => - _$MediaUrlFromJson(json); + factory MediaUrl.fromJson(Map json) => _$MediaUrlFromJson(json); static const toJsonFactory = _$MediaUrlToJson; Map toJson() => _$MediaUrlToJson(this); @@ -34388,10 +33201,8 @@ class MediaUrl { bool operator ==(Object other) { return identical(this, other) || (other is MediaUrl && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name))); + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); } @override @@ -34399,9 +33210,7 @@ class MediaUrl { @override int get hashCode => - const DeepCollectionEquality().hash(url) ^ - const DeepCollectionEquality().hash(name) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(url) ^ const DeepCollectionEquality().hash(name) ^ runtimeType.hashCode; } extension $MediaUrlExtension on MediaUrl { @@ -34421,8 +33230,7 @@ extension $MediaUrlExtension on MediaUrl { class MessageCommand { const MessageCommand({this.header, required this.text, this.timeoutMs}); - factory MessageCommand.fromJson(Map json) => - _$MessageCommandFromJson(json); + factory MessageCommand.fromJson(Map json) => _$MessageCommandFromJson(json); static const toJsonFactory = _$MessageCommandToJson; Map toJson() => _$MessageCommandToJson(this); @@ -34439,10 +33247,8 @@ class MessageCommand { bool operator ==(Object other) { return identical(this, other) || (other is MessageCommand && - (identical(other.header, header) || - const DeepCollectionEquality().equals(other.header, header)) && - (identical(other.text, text) || - const DeepCollectionEquality().equals(other.text, text)) && + (identical(other.header, header) || const DeepCollectionEquality().equals(other.header, header)) && + (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && (identical(other.timeoutMs, timeoutMs) || const DeepCollectionEquality().equals( other.timeoutMs, @@ -34487,8 +33293,7 @@ extension $MessageCommandExtension on MessageCommand { class MetadataConfiguration { const MetadataConfiguration({this.useFileCreationTimeForDateAdded}); - factory MetadataConfiguration.fromJson(Map json) => - _$MetadataConfigurationFromJson(json); + factory MetadataConfiguration.fromJson(Map json) => _$MetadataConfigurationFromJson(json); static const toJsonFactory = _$MetadataConfigurationToJson; Map toJson() => _$MetadataConfigurationToJson(this); @@ -34515,17 +33320,13 @@ class MetadataConfiguration { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(useFileCreationTimeForDateAdded) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(useFileCreationTimeForDateAdded) ^ runtimeType.hashCode; } extension $MetadataConfigurationExtension on MetadataConfiguration { MetadataConfiguration copyWith({bool? useFileCreationTimeForDateAdded}) { return MetadataConfiguration( - useFileCreationTimeForDateAdded: - useFileCreationTimeForDateAdded ?? - this.useFileCreationTimeForDateAdded, + useFileCreationTimeForDateAdded: useFileCreationTimeForDateAdded ?? this.useFileCreationTimeForDateAdded, ); } @@ -34551,8 +33352,7 @@ class MetadataEditorInfo { this.contentTypeOptions, }); - factory MetadataEditorInfo.fromJson(Map json) => - _$MetadataEditorInfoFromJson(json); + factory MetadataEditorInfo.fromJson(Map json) => _$MetadataEditorInfoFromJson(json); static const toJsonFactory = _$MetadataEditorInfoToJson; Map toJson() => _$MetadataEditorInfoToJson(this); @@ -34652,8 +33452,7 @@ extension $MetadataEditorInfoExtension on MetadataEditorInfo { List? contentTypeOptions, }) { return MetadataEditorInfo( - parentalRatingOptions: - parentalRatingOptions ?? this.parentalRatingOptions, + parentalRatingOptions: parentalRatingOptions ?? this.parentalRatingOptions, countries: countries ?? this.countries, cultures: cultures ?? this.cultures, externalIdInfos: externalIdInfos ?? this.externalIdInfos, @@ -34671,18 +33470,12 @@ extension $MetadataEditorInfoExtension on MetadataEditorInfo { Wrapped?>? contentTypeOptions, }) { return MetadataEditorInfo( - parentalRatingOptions: (parentalRatingOptions != null - ? parentalRatingOptions.value - : this.parentalRatingOptions), + parentalRatingOptions: (parentalRatingOptions != null ? parentalRatingOptions.value : this.parentalRatingOptions), countries: (countries != null ? countries.value : this.countries), cultures: (cultures != null ? cultures.value : this.cultures), - externalIdInfos: (externalIdInfos != null - ? externalIdInfos.value - : this.externalIdInfos), + externalIdInfos: (externalIdInfos != null ? externalIdInfos.value : this.externalIdInfos), contentType: (contentType != null ? contentType.value : this.contentType), - contentTypeOptions: (contentTypeOptions != null - ? contentTypeOptions.value - : this.contentTypeOptions), + contentTypeOptions: (contentTypeOptions != null ? contentTypeOptions.value : this.contentTypeOptions), ); } } @@ -34699,8 +33492,7 @@ class MetadataOptions { this.imageFetcherOrder, }); - factory MetadataOptions.fromJson(Map json) => - _$MetadataOptionsFromJson(json); + factory MetadataOptions.fromJson(Map json) => _$MetadataOptionsFromJson(json); static const toJsonFactory = _$MetadataOptionsToJson; Map toJson() => _$MetadataOptionsToJson(this); @@ -34819,15 +33611,11 @@ extension $MetadataOptionsExtension on MetadataOptions { }) { return MetadataOptions( itemType: itemType ?? this.itemType, - disabledMetadataSavers: - disabledMetadataSavers ?? this.disabledMetadataSavers, - localMetadataReaderOrder: - localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledMetadataFetchers: - disabledMetadataFetchers ?? this.disabledMetadataFetchers, + disabledMetadataSavers: disabledMetadataSavers ?? this.disabledMetadataSavers, + localMetadataReaderOrder: localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledMetadataFetchers: disabledMetadataFetchers ?? this.disabledMetadataFetchers, metadataFetcherOrder: metadataFetcherOrder ?? this.metadataFetcherOrder, - disabledImageFetchers: - disabledImageFetchers ?? this.disabledImageFetchers, + disabledImageFetchers: disabledImageFetchers ?? this.disabledImageFetchers, imageFetcherOrder: imageFetcherOrder ?? this.imageFetcherOrder, ); } @@ -34843,24 +33631,15 @@ extension $MetadataOptionsExtension on MetadataOptions { }) { return MetadataOptions( itemType: (itemType != null ? itemType.value : this.itemType), - disabledMetadataSavers: (disabledMetadataSavers != null - ? disabledMetadataSavers.value - : this.disabledMetadataSavers), - localMetadataReaderOrder: (localMetadataReaderOrder != null - ? localMetadataReaderOrder.value - : this.localMetadataReaderOrder), - disabledMetadataFetchers: (disabledMetadataFetchers != null - ? disabledMetadataFetchers.value - : this.disabledMetadataFetchers), - metadataFetcherOrder: (metadataFetcherOrder != null - ? metadataFetcherOrder.value - : this.metadataFetcherOrder), - disabledImageFetchers: (disabledImageFetchers != null - ? disabledImageFetchers.value - : this.disabledImageFetchers), - imageFetcherOrder: (imageFetcherOrder != null - ? imageFetcherOrder.value - : this.imageFetcherOrder), + disabledMetadataSavers: + (disabledMetadataSavers != null ? disabledMetadataSavers.value : this.disabledMetadataSavers), + localMetadataReaderOrder: + (localMetadataReaderOrder != null ? localMetadataReaderOrder.value : this.localMetadataReaderOrder), + disabledMetadataFetchers: + (disabledMetadataFetchers != null ? disabledMetadataFetchers.value : this.disabledMetadataFetchers), + metadataFetcherOrder: (metadataFetcherOrder != null ? metadataFetcherOrder.value : this.metadataFetcherOrder), + disabledImageFetchers: (disabledImageFetchers != null ? disabledImageFetchers.value : this.disabledImageFetchers), + imageFetcherOrder: (imageFetcherOrder != null ? imageFetcherOrder.value : this.imageFetcherOrder), ); } } @@ -34869,8 +33648,7 @@ extension $MetadataOptionsExtension on MetadataOptions { class MovePlaylistItemRequestDto { const MovePlaylistItemRequestDto({this.playlistItemId, this.newIndex}); - factory MovePlaylistItemRequestDto.fromJson(Map json) => - _$MovePlaylistItemRequestDtoFromJson(json); + factory MovePlaylistItemRequestDto.fromJson(Map json) => _$MovePlaylistItemRequestDtoFromJson(json); static const toJsonFactory = _$MovePlaylistItemRequestDtoToJson; Map toJson() => _$MovePlaylistItemRequestDtoToJson(this); @@ -34920,9 +33698,7 @@ extension $MovePlaylistItemRequestDtoExtension on MovePlaylistItemRequestDto { Wrapped? newIndex, }) { return MovePlaylistItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), newIndex: (newIndex != null ? newIndex.value : this.newIndex), ); } @@ -34944,8 +33720,7 @@ class MovieInfo { this.isAutomated, }); - factory MovieInfo.fromJson(Map json) => - _$MovieInfoFromJson(json); + factory MovieInfo.fromJson(Map json) => _$MovieInfoFromJson(json); static const toJsonFactory = _$MovieInfoToJson; Map toJson() => _$MovieInfoToJson(this); @@ -34978,15 +33753,13 @@ class MovieInfo { bool operator ==(Object other) { return identical(this, other) || (other is MovieInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -35002,8 +33775,7 @@ class MovieInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -35089,25 +33861,15 @@ extension $MovieInfoExtension on MovieInfo { }) { return MovieInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -35122,8 +33884,7 @@ class MovieInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory MovieInfoRemoteSearchQuery.fromJson(Map json) => - _$MovieInfoRemoteSearchQueryFromJson(json); + factory MovieInfoRemoteSearchQuery.fromJson(Map json) => _$MovieInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$MovieInfoRemoteSearchQueryToJson; Map toJson() => _$MovieInfoRemoteSearchQueryToJson(this); @@ -35147,8 +33908,7 @@ class MovieInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -35187,8 +33947,7 @@ extension $MovieInfoRemoteSearchQueryExtension on MovieInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -35201,12 +33960,9 @@ extension $MovieInfoRemoteSearchQueryExtension on MovieInfoRemoteSearchQuery { return MovieInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -35228,8 +33984,7 @@ class MusicVideoInfo { this.artists, }); - factory MusicVideoInfo.fromJson(Map json) => - _$MusicVideoInfoFromJson(json); + factory MusicVideoInfo.fromJson(Map json) => _$MusicVideoInfoFromJson(json); static const toJsonFactory = _$MusicVideoInfoToJson; Map toJson() => _$MusicVideoInfoToJson(this); @@ -35264,15 +34019,13 @@ class MusicVideoInfo { bool operator ==(Object other) { return identical(this, other) || (other is MusicVideoInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -35288,8 +34041,7 @@ class MusicVideoInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -35310,8 +34062,7 @@ class MusicVideoInfo { other.isAutomated, isAutomated, )) && - (identical(other.artists, artists) || - const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -35381,25 +34132,15 @@ extension $MusicVideoInfoExtension on MusicVideoInfo { }) { return MusicVideoInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), artists: (artists != null ? artists.value : this.artists), ); @@ -35419,8 +34160,7 @@ class MusicVideoInfoRemoteSearchQuery { _$MusicVideoInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$MusicVideoInfoRemoteSearchQueryToJson; - Map toJson() => - _$MusicVideoInfoRemoteSearchQueryToJson(this); + Map toJson() => _$MusicVideoInfoRemoteSearchQueryToJson(this); @JsonKey(name: 'SearchInfo', includeIfNull: false) final MusicVideoInfo? searchInfo; @@ -35441,8 +34181,7 @@ class MusicVideoInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -35470,8 +34209,7 @@ class MusicVideoInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $MusicVideoInfoRemoteSearchQueryExtension - on MusicVideoInfoRemoteSearchQuery { +extension $MusicVideoInfoRemoteSearchQueryExtension on MusicVideoInfoRemoteSearchQuery { MusicVideoInfoRemoteSearchQuery copyWith({ MusicVideoInfo? searchInfo, String? itemId, @@ -35482,8 +34220,7 @@ extension $MusicVideoInfoRemoteSearchQueryExtension searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -35496,12 +34233,9 @@ extension $MusicVideoInfoRemoteSearchQueryExtension return MusicVideoInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -35510,8 +34244,7 @@ extension $MusicVideoInfoRemoteSearchQueryExtension class NameGuidPair { const NameGuidPair({this.name, this.id}); - factory NameGuidPair.fromJson(Map json) => - _$NameGuidPairFromJson(json); + factory NameGuidPair.fromJson(Map json) => _$NameGuidPairFromJson(json); static const toJsonFactory = _$NameGuidPairToJson; Map toJson() => _$NameGuidPairToJson(this); @@ -35526,10 +34259,8 @@ class NameGuidPair { bool operator ==(Object other) { return identical(this, other) || (other is NameGuidPair && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -35537,9 +34268,7 @@ class NameGuidPair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(id) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $NameGuidPairExtension on NameGuidPair { @@ -35559,8 +34288,7 @@ extension $NameGuidPairExtension on NameGuidPair { class NameIdPair { const NameIdPair({this.name, this.id}); - factory NameIdPair.fromJson(Map json) => - _$NameIdPairFromJson(json); + factory NameIdPair.fromJson(Map json) => _$NameIdPairFromJson(json); static const toJsonFactory = _$NameIdPairToJson; Map toJson() => _$NameIdPairToJson(this); @@ -35575,10 +34303,8 @@ class NameIdPair { bool operator ==(Object other) { return identical(this, other) || (other is NameIdPair && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -35586,9 +34312,7 @@ class NameIdPair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(id) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $NameIdPairExtension on NameIdPair { @@ -35608,8 +34332,7 @@ extension $NameIdPairExtension on NameIdPair { class NameValuePair { const NameValuePair({this.name, this.$Value}); - factory NameValuePair.fromJson(Map json) => - _$NameValuePairFromJson(json); + factory NameValuePair.fromJson(Map json) => _$NameValuePairFromJson(json); static const toJsonFactory = _$NameValuePairToJson; Map toJson() => _$NameValuePairToJson(this); @@ -35624,10 +34347,8 @@ class NameValuePair { bool operator ==(Object other) { return identical(this, other) || (other is NameValuePair && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -35635,9 +34356,7 @@ class NameValuePair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash($Value) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; } extension $NameValuePairExtension on NameValuePair { @@ -35687,8 +34406,7 @@ class NetworkConfiguration { this.isRemoteIPFilterBlacklist, }); - factory NetworkConfiguration.fromJson(Map json) => - _$NetworkConfigurationFromJson(json); + factory NetworkConfiguration.fromJson(Map json) => _$NetworkConfigurationFromJson(json); static const toJsonFactory = _$NetworkConfigurationToJson; Map toJson() => _$NetworkConfigurationToJson(this); @@ -35968,21 +34686,14 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { enableIPv6: enableIPv6 ?? this.enableIPv6, enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, localNetworkSubnets: localNetworkSubnets ?? this.localNetworkSubnets, - localNetworkAddresses: - localNetworkAddresses ?? this.localNetworkAddresses, + localNetworkAddresses: localNetworkAddresses ?? this.localNetworkAddresses, knownProxies: knownProxies ?? this.knownProxies, - ignoreVirtualInterfaces: - ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, - virtualInterfaceNames: - virtualInterfaceNames ?? this.virtualInterfaceNames, - enablePublishedServerUriByRequest: - enablePublishedServerUriByRequest ?? - this.enablePublishedServerUriByRequest, - publishedServerUriBySubnet: - publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, + ignoreVirtualInterfaces: ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, + virtualInterfaceNames: virtualInterfaceNames ?? this.virtualInterfaceNames, + enablePublishedServerUriByRequest: enablePublishedServerUriByRequest ?? this.enablePublishedServerUriByRequest, + publishedServerUriBySubnet: publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, remoteIPFilter: remoteIPFilter ?? this.remoteIPFilter, - isRemoteIPFilterBlacklist: - isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist, + isRemoteIPFilterBlacklist: isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist, ); } @@ -36014,64 +34725,32 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { return NetworkConfiguration( baseUrl: (baseUrl != null ? baseUrl.value : this.baseUrl), enableHttps: (enableHttps != null ? enableHttps.value : this.enableHttps), - requireHttps: (requireHttps != null - ? requireHttps.value - : this.requireHttps), - certificatePath: (certificatePath != null - ? certificatePath.value - : this.certificatePath), - certificatePassword: (certificatePassword != null - ? certificatePassword.value - : this.certificatePassword), - internalHttpPort: (internalHttpPort != null - ? internalHttpPort.value - : this.internalHttpPort), - internalHttpsPort: (internalHttpsPort != null - ? internalHttpsPort.value - : this.internalHttpsPort), - publicHttpPort: (publicHttpPort != null - ? publicHttpPort.value - : this.publicHttpPort), - publicHttpsPort: (publicHttpsPort != null - ? publicHttpsPort.value - : this.publicHttpsPort), - autoDiscovery: (autoDiscovery != null - ? autoDiscovery.value - : this.autoDiscovery), + requireHttps: (requireHttps != null ? requireHttps.value : this.requireHttps), + certificatePath: (certificatePath != null ? certificatePath.value : this.certificatePath), + certificatePassword: (certificatePassword != null ? certificatePassword.value : this.certificatePassword), + internalHttpPort: (internalHttpPort != null ? internalHttpPort.value : this.internalHttpPort), + internalHttpsPort: (internalHttpsPort != null ? internalHttpsPort.value : this.internalHttpsPort), + publicHttpPort: (publicHttpPort != null ? publicHttpPort.value : this.publicHttpPort), + publicHttpsPort: (publicHttpsPort != null ? publicHttpsPort.value : this.publicHttpsPort), + autoDiscovery: (autoDiscovery != null ? autoDiscovery.value : this.autoDiscovery), enableUPnP: (enableUPnP != null ? enableUPnP.value : this.enableUPnP), enableIPv4: (enableIPv4 != null ? enableIPv4.value : this.enableIPv4), enableIPv6: (enableIPv6 != null ? enableIPv6.value : this.enableIPv6), - enableRemoteAccess: (enableRemoteAccess != null - ? enableRemoteAccess.value - : this.enableRemoteAccess), - localNetworkSubnets: (localNetworkSubnets != null - ? localNetworkSubnets.value - : this.localNetworkSubnets), - localNetworkAddresses: (localNetworkAddresses != null - ? localNetworkAddresses.value - : this.localNetworkAddresses), - knownProxies: (knownProxies != null - ? knownProxies.value - : this.knownProxies), - ignoreVirtualInterfaces: (ignoreVirtualInterfaces != null - ? ignoreVirtualInterfaces.value - : this.ignoreVirtualInterfaces), - virtualInterfaceNames: (virtualInterfaceNames != null - ? virtualInterfaceNames.value - : this.virtualInterfaceNames), - enablePublishedServerUriByRequest: - (enablePublishedServerUriByRequest != null + enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), + localNetworkSubnets: (localNetworkSubnets != null ? localNetworkSubnets.value : this.localNetworkSubnets), + localNetworkAddresses: (localNetworkAddresses != null ? localNetworkAddresses.value : this.localNetworkAddresses), + knownProxies: (knownProxies != null ? knownProxies.value : this.knownProxies), + ignoreVirtualInterfaces: + (ignoreVirtualInterfaces != null ? ignoreVirtualInterfaces.value : this.ignoreVirtualInterfaces), + virtualInterfaceNames: (virtualInterfaceNames != null ? virtualInterfaceNames.value : this.virtualInterfaceNames), + enablePublishedServerUriByRequest: (enablePublishedServerUriByRequest != null ? enablePublishedServerUriByRequest.value : this.enablePublishedServerUriByRequest), - publishedServerUriBySubnet: (publishedServerUriBySubnet != null - ? publishedServerUriBySubnet.value - : this.publishedServerUriBySubnet), - remoteIPFilter: (remoteIPFilter != null - ? remoteIPFilter.value - : this.remoteIPFilter), - isRemoteIPFilterBlacklist: (isRemoteIPFilterBlacklist != null - ? isRemoteIPFilterBlacklist.value - : this.isRemoteIPFilterBlacklist), + publishedServerUriBySubnet: + (publishedServerUriBySubnet != null ? publishedServerUriBySubnet.value : this.publishedServerUriBySubnet), + remoteIPFilter: (remoteIPFilter != null ? remoteIPFilter.value : this.remoteIPFilter), + isRemoteIPFilterBlacklist: + (isRemoteIPFilterBlacklist != null ? isRemoteIPFilterBlacklist.value : this.isRemoteIPFilterBlacklist), ); } } @@ -36080,8 +34759,7 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { class NewGroupRequestDto { const NewGroupRequestDto({this.groupName}); - factory NewGroupRequestDto.fromJson(Map json) => - _$NewGroupRequestDtoFromJson(json); + factory NewGroupRequestDto.fromJson(Map json) => _$NewGroupRequestDtoFromJson(json); static const toJsonFactory = _$NewGroupRequestDtoToJson; Map toJson() => _$NewGroupRequestDtoToJson(this); @@ -36105,8 +34783,7 @@ class NewGroupRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(groupName) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(groupName) ^ runtimeType.hashCode; } extension $NewGroupRequestDtoExtension on NewGroupRequestDto { @@ -36125,8 +34802,7 @@ extension $NewGroupRequestDtoExtension on NewGroupRequestDto { class NextItemRequestDto { const NextItemRequestDto({this.playlistItemId}); - factory NextItemRequestDto.fromJson(Map json) => - _$NextItemRequestDtoFromJson(json); + factory NextItemRequestDto.fromJson(Map json) => _$NextItemRequestDtoFromJson(json); static const toJsonFactory = _$NextItemRequestDtoToJson; Map toJson() => _$NextItemRequestDtoToJson(this); @@ -36150,9 +34826,7 @@ class NextItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(playlistItemId) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; } extension $NextItemRequestDtoExtension on NextItemRequestDto { @@ -36164,9 +34838,7 @@ extension $NextItemRequestDtoExtension on NextItemRequestDto { NextItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return NextItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -36190,8 +34862,7 @@ class OpenLiveStreamDto { this.directPlayProtocols, }); - factory OpenLiveStreamDto.fromJson(Map json) => - _$OpenLiveStreamDtoFromJson(json); + factory OpenLiveStreamDto.fromJson(Map json) => _$OpenLiveStreamDtoFromJson(json); static const toJsonFactory = _$OpenLiveStreamDtoToJson; Map toJson() => _$OpenLiveStreamDtoToJson(this); @@ -36240,8 +34911,7 @@ class OpenLiveStreamDto { other.openToken, openToken, )) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.playSessionId, playSessionId) || const DeepCollectionEquality().equals( other.playSessionId, @@ -36272,8 +34942,7 @@ class OpenLiveStreamDto { other.maxAudioChannels, maxAudioChannels, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.enableDirectPlay, enableDirectPlay) || const DeepCollectionEquality().equals( other.enableDirectPlay, @@ -36356,8 +35025,7 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { enableDirectPlay: enableDirectPlay ?? this.enableDirectPlay, enableDirectStream: enableDirectStream ?? this.enableDirectStream, alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? - this.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding ?? this.alwaysBurnInSubtitleWhenTranscoding, deviceProfile: deviceProfile ?? this.deviceProfile, directPlayProtocols: directPlayProtocols ?? this.directPlayProtocols, ); @@ -36382,41 +35050,20 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { return OpenLiveStreamDto( openToken: (openToken != null ? openToken.value : this.openToken), userId: (userId != null ? userId.value : this.userId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), - maxStreamingBitrate: (maxStreamingBitrate != null - ? maxStreamingBitrate.value - : this.maxStreamingBitrate), - startTimeTicks: (startTimeTicks != null - ? startTimeTicks.value - : this.startTimeTicks), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - maxAudioChannels: (maxAudioChannels != null - ? maxAudioChannels.value - : this.maxAudioChannels), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), + maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), + startTimeTicks: (startTimeTicks != null ? startTimeTicks.value : this.startTimeTicks), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), itemId: (itemId != null ? itemId.value : this.itemId), - enableDirectPlay: (enableDirectPlay != null - ? enableDirectPlay.value - : this.enableDirectPlay), - enableDirectStream: (enableDirectStream != null - ? enableDirectStream.value - : this.enableDirectStream), - alwaysBurnInSubtitleWhenTranscoding: - (alwaysBurnInSubtitleWhenTranscoding != null + enableDirectPlay: (enableDirectPlay != null ? enableDirectPlay.value : this.enableDirectPlay), + enableDirectStream: (enableDirectStream != null ? enableDirectStream.value : this.enableDirectStream), + alwaysBurnInSubtitleWhenTranscoding: (alwaysBurnInSubtitleWhenTranscoding != null ? alwaysBurnInSubtitleWhenTranscoding.value : this.alwaysBurnInSubtitleWhenTranscoding), - deviceProfile: (deviceProfile != null - ? deviceProfile.value - : this.deviceProfile), - directPlayProtocols: (directPlayProtocols != null - ? directPlayProtocols.value - : this.directPlayProtocols), + deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), + directPlayProtocols: (directPlayProtocols != null ? directPlayProtocols.value : this.directPlayProtocols), ); } } @@ -36425,8 +35072,7 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { class OutboundKeepAliveMessage { const OutboundKeepAliveMessage({this.messageId, this.messageType}); - factory OutboundKeepAliveMessage.fromJson(Map json) => - _$OutboundKeepAliveMessageFromJson(json); + factory OutboundKeepAliveMessage.fromJson(Map json) => _$OutboundKeepAliveMessageFromJson(json); static const toJsonFactory = _$OutboundKeepAliveMessageToJson; Map toJson() => _$OutboundKeepAliveMessageToJson(this); @@ -36440,8 +35086,7 @@ class OutboundKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.keepalive, @@ -36501,8 +35146,7 @@ extension $OutboundKeepAliveMessageExtension on OutboundKeepAliveMessage { class OutboundWebSocketMessage { const OutboundWebSocketMessage(); - factory OutboundWebSocketMessage.fromJson(Map json) => - _$OutboundWebSocketMessageFromJson(json); + factory OutboundWebSocketMessage.fromJson(Map json) => _$OutboundWebSocketMessageFromJson(json); static const toJsonFactory = _$OutboundWebSocketMessageToJson; Map toJson() => _$OutboundWebSocketMessageToJson(this); @@ -36529,8 +35173,7 @@ class PackageInfo { this.imageUrl, }); - factory PackageInfo.fromJson(Map json) => - _$PackageInfoFromJson(json); + factory PackageInfo.fromJson(Map json) => _$PackageInfoFromJson(json); static const toJsonFactory = _$PackageInfoToJson; Map toJson() => _$PackageInfoToJson(this); @@ -36561,8 +35204,7 @@ class PackageInfo { bool operator ==(Object other) { return identical(this, other) || (other is PackageInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || const DeepCollectionEquality().equals( other.description, @@ -36573,15 +35215,13 @@ class PackageInfo { other.overview, overview, )) && - (identical(other.owner, owner) || - const DeepCollectionEquality().equals(other.owner, owner)) && + (identical(other.owner, owner) || const DeepCollectionEquality().equals(other.owner, owner)) && (identical(other.category, category) || const DeepCollectionEquality().equals( other.category, category, )) && - (identical(other.guid, guid) || - const DeepCollectionEquality().equals(other.guid, guid)) && + (identical(other.guid, guid) || const DeepCollectionEquality().equals(other.guid, guid)) && (identical(other.versions, versions) || const DeepCollectionEquality().equals( other.versions, @@ -36660,8 +35300,7 @@ extension $PackageInfoExtension on PackageInfo { class ParentalRating { const ParentalRating({this.name, this.$Value, this.ratingScore}); - factory ParentalRating.fromJson(Map json) => - _$ParentalRatingFromJson(json); + factory ParentalRating.fromJson(Map json) => _$ParentalRatingFromJson(json); static const toJsonFactory = _$ParentalRatingToJson; Map toJson() => _$ParentalRatingToJson(this); @@ -36678,10 +35317,8 @@ class ParentalRating { bool operator ==(Object other) { return identical(this, other) || (other is ParentalRating && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value)) && (identical(other.ratingScore, ratingScore) || const DeepCollectionEquality().equals( other.ratingScore, @@ -36730,8 +35367,7 @@ extension $ParentalRatingExtension on ParentalRating { class ParentalRatingScore { const ParentalRatingScore({this.score, this.subScore}); - factory ParentalRatingScore.fromJson(Map json) => - _$ParentalRatingScoreFromJson(json); + factory ParentalRatingScore.fromJson(Map json) => _$ParentalRatingScoreFromJson(json); static const toJsonFactory = _$ParentalRatingScoreToJson; Map toJson() => _$ParentalRatingScoreToJson(this); @@ -36746,8 +35382,7 @@ class ParentalRatingScore { bool operator ==(Object other) { return identical(this, other) || (other is ParentalRatingScore && - (identical(other.score, score) || - const DeepCollectionEquality().equals(other.score, score)) && + (identical(other.score, score) || const DeepCollectionEquality().equals(other.score, score)) && (identical(other.subScore, subScore) || const DeepCollectionEquality().equals( other.subScore, @@ -36760,9 +35395,7 @@ class ParentalRatingScore { @override int get hashCode => - const DeepCollectionEquality().hash(score) ^ - const DeepCollectionEquality().hash(subScore) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(score) ^ const DeepCollectionEquality().hash(subScore) ^ runtimeType.hashCode; } extension $ParentalRatingScoreExtension on ParentalRatingScore { @@ -36788,8 +35421,7 @@ extension $ParentalRatingScoreExtension on ParentalRatingScore { class PathSubstitution { const PathSubstitution({this.from, this.to}); - factory PathSubstitution.fromJson(Map json) => - _$PathSubstitutionFromJson(json); + factory PathSubstitution.fromJson(Map json) => _$PathSubstitutionFromJson(json); static const toJsonFactory = _$PathSubstitutionToJson; Map toJson() => _$PathSubstitutionToJson(this); @@ -36804,10 +35436,8 @@ class PathSubstitution { bool operator ==(Object other) { return identical(this, other) || (other is PathSubstitution && - (identical(other.from, from) || - const DeepCollectionEquality().equals(other.from, from)) && - (identical(other.to, to) || - const DeepCollectionEquality().equals(other.to, to))); + (identical(other.from, from) || const DeepCollectionEquality().equals(other.from, from)) && + (identical(other.to, to) || const DeepCollectionEquality().equals(other.to, to))); } @override @@ -36815,9 +35445,7 @@ class PathSubstitution { @override int get hashCode => - const DeepCollectionEquality().hash(from) ^ - const DeepCollectionEquality().hash(to) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(from) ^ const DeepCollectionEquality().hash(to) ^ runtimeType.hashCode; } extension $PathSubstitutionExtension on PathSubstitution { @@ -36852,8 +35480,7 @@ class PersonLookupInfo { this.isAutomated, }); - factory PersonLookupInfo.fromJson(Map json) => - _$PersonLookupInfoFromJson(json); + factory PersonLookupInfo.fromJson(Map json) => _$PersonLookupInfoFromJson(json); static const toJsonFactory = _$PersonLookupInfoToJson; Map toJson() => _$PersonLookupInfoToJson(this); @@ -36886,15 +35513,13 @@ class PersonLookupInfo { bool operator ==(Object other) { return identical(this, other) || (other is PersonLookupInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -36910,8 +35535,7 @@ class PersonLookupInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -36997,25 +35621,15 @@ extension $PersonLookupInfoExtension on PersonLookupInfo { }) { return PersonLookupInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -37032,11 +35646,11 @@ class PersonLookupInfoRemoteSearchQuery { factory PersonLookupInfoRemoteSearchQuery.fromJson( Map json, - ) => _$PersonLookupInfoRemoteSearchQueryFromJson(json); + ) => + _$PersonLookupInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$PersonLookupInfoRemoteSearchQueryToJson; - Map toJson() => - _$PersonLookupInfoRemoteSearchQueryToJson(this); + Map toJson() => _$PersonLookupInfoRemoteSearchQueryToJson(this); @JsonKey(name: 'SearchInfo', includeIfNull: false) final PersonLookupInfo? searchInfo; @@ -37057,8 +35671,7 @@ class PersonLookupInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -37086,8 +35699,7 @@ class PersonLookupInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $PersonLookupInfoRemoteSearchQueryExtension - on PersonLookupInfoRemoteSearchQuery { +extension $PersonLookupInfoRemoteSearchQueryExtension on PersonLookupInfoRemoteSearchQuery { PersonLookupInfoRemoteSearchQuery copyWith({ PersonLookupInfo? searchInfo, String? itemId, @@ -37098,8 +35710,7 @@ extension $PersonLookupInfoRemoteSearchQueryExtension searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -37112,12 +35723,9 @@ extension $PersonLookupInfoRemoteSearchQueryExtension return PersonLookupInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -37126,8 +35734,7 @@ extension $PersonLookupInfoRemoteSearchQueryExtension class PingRequestDto { const PingRequestDto({this.ping}); - factory PingRequestDto.fromJson(Map json) => - _$PingRequestDtoFromJson(json); + factory PingRequestDto.fromJson(Map json) => _$PingRequestDtoFromJson(json); static const toJsonFactory = _$PingRequestDtoToJson; Map toJson() => _$PingRequestDtoToJson(this); @@ -37140,16 +35747,14 @@ class PingRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is PingRequestDto && - (identical(other.ping, ping) || - const DeepCollectionEquality().equals(other.ping, ping))); + (identical(other.ping, ping) || const DeepCollectionEquality().equals(other.ping, ping))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(ping) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(ping) ^ runtimeType.hashCode; } extension $PingRequestDtoExtension on PingRequestDto { @@ -37166,8 +35771,7 @@ extension $PingRequestDtoExtension on PingRequestDto { class PinRedeemResult { const PinRedeemResult({this.success, this.usersReset}); - factory PinRedeemResult.fromJson(Map json) => - _$PinRedeemResultFromJson(json); + factory PinRedeemResult.fromJson(Map json) => _$PinRedeemResultFromJson(json); static const toJsonFactory = _$PinRedeemResultToJson; Map toJson() => _$PinRedeemResultToJson(this); @@ -37244,8 +35848,7 @@ class PlaybackInfoDto { this.alwaysBurnInSubtitleWhenTranscoding, }); - factory PlaybackInfoDto.fromJson(Map json) => - _$PlaybackInfoDtoFromJson(json); + factory PlaybackInfoDto.fromJson(Map json) => _$PlaybackInfoDtoFromJson(json); static const toJsonFactory = _$PlaybackInfoDtoToJson; Map toJson() => _$PlaybackInfoDtoToJson(this); @@ -37288,8 +35891,7 @@ class PlaybackInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is PlaybackInfoDto && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || const DeepCollectionEquality().equals( other.maxStreamingBitrate, @@ -37430,8 +36032,7 @@ extension $PlaybackInfoDtoExtension on PlaybackInfoDto { allowAudioStreamCopy: allowAudioStreamCopy ?? this.allowAudioStreamCopy, autoOpenLiveStream: autoOpenLiveStream ?? this.autoOpenLiveStream, alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? - this.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding ?? this.alwaysBurnInSubtitleWhenTranscoding, ); } @@ -37455,50 +36056,21 @@ extension $PlaybackInfoDtoExtension on PlaybackInfoDto { }) { return PlaybackInfoDto( userId: (userId != null ? userId.value : this.userId), - maxStreamingBitrate: (maxStreamingBitrate != null - ? maxStreamingBitrate.value - : this.maxStreamingBitrate), - startTimeTicks: (startTimeTicks != null - ? startTimeTicks.value - : this.startTimeTicks), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - maxAudioChannels: (maxAudioChannels != null - ? maxAudioChannels.value - : this.maxAudioChannels), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - deviceProfile: (deviceProfile != null - ? deviceProfile.value - : this.deviceProfile), - enableDirectPlay: (enableDirectPlay != null - ? enableDirectPlay.value - : this.enableDirectPlay), - enableDirectStream: (enableDirectStream != null - ? enableDirectStream.value - : this.enableDirectStream), - enableTranscoding: (enableTranscoding != null - ? enableTranscoding.value - : this.enableTranscoding), - allowVideoStreamCopy: (allowVideoStreamCopy != null - ? allowVideoStreamCopy.value - : this.allowVideoStreamCopy), - allowAudioStreamCopy: (allowAudioStreamCopy != null - ? allowAudioStreamCopy.value - : this.allowAudioStreamCopy), - autoOpenLiveStream: (autoOpenLiveStream != null - ? autoOpenLiveStream.value - : this.autoOpenLiveStream), - alwaysBurnInSubtitleWhenTranscoding: - (alwaysBurnInSubtitleWhenTranscoding != null + maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), + startTimeTicks: (startTimeTicks != null ? startTimeTicks.value : this.startTimeTicks), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), + enableDirectPlay: (enableDirectPlay != null ? enableDirectPlay.value : this.enableDirectPlay), + enableDirectStream: (enableDirectStream != null ? enableDirectStream.value : this.enableDirectStream), + enableTranscoding: (enableTranscoding != null ? enableTranscoding.value : this.enableTranscoding), + allowVideoStreamCopy: (allowVideoStreamCopy != null ? allowVideoStreamCopy.value : this.allowVideoStreamCopy), + allowAudioStreamCopy: (allowAudioStreamCopy != null ? allowAudioStreamCopy.value : this.allowAudioStreamCopy), + autoOpenLiveStream: (autoOpenLiveStream != null ? autoOpenLiveStream.value : this.autoOpenLiveStream), + alwaysBurnInSubtitleWhenTranscoding: (alwaysBurnInSubtitleWhenTranscoding != null ? alwaysBurnInSubtitleWhenTranscoding.value : this.alwaysBurnInSubtitleWhenTranscoding), ); @@ -37513,8 +36085,7 @@ class PlaybackInfoResponse { this.errorCode, }); - factory PlaybackInfoResponse.fromJson(Map json) => - _$PlaybackInfoResponseFromJson(json); + factory PlaybackInfoResponse.fromJson(Map json) => _$PlaybackInfoResponseFromJson(json); static const toJsonFactory = _$PlaybackInfoResponseToJson; Map toJson() => _$PlaybackInfoResponseToJson(this); @@ -37587,12 +36158,8 @@ extension $PlaybackInfoResponseExtension on PlaybackInfoResponse { Wrapped? errorCode, }) { return PlaybackInfoResponse( - mediaSources: (mediaSources != null - ? mediaSources.value - : this.mediaSources), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + mediaSources: (mediaSources != null ? mediaSources.value : this.mediaSources), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), errorCode: (errorCode != null ? errorCode.value : this.errorCode), ); } @@ -37624,8 +36191,7 @@ class PlaybackProgressInfo { this.playlistItemId, }); - factory PlaybackProgressInfo.fromJson(Map json) => - _$PlaybackProgressInfoFromJson(json); + factory PlaybackProgressInfo.fromJson(Map json) => _$PlaybackProgressInfoFromJson(json); static const toJsonFactory = _$PlaybackProgressInfoToJson; Map toJson() => _$PlaybackProgressInfoToJson(this); @@ -37702,10 +36268,8 @@ class PlaybackProgressInfo { other.canSeek, canSeek, )) && - (identical(other.item, item) || - const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -37862,8 +36426,7 @@ extension $PlaybackProgressInfoExtension on PlaybackProgressInfo { isPaused: isPaused ?? this.isPaused, isMuted: isMuted ?? this.isMuted, positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: - playbackStartTimeTicks ?? this.playbackStartTimeTicks, + playbackStartTimeTicks: playbackStartTimeTicks ?? this.playbackStartTimeTicks, volumeLevel: volumeLevel ?? this.volumeLevel, brightness: brightness ?? this.brightness, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -37905,43 +36468,24 @@ extension $PlaybackProgressInfoExtension on PlaybackProgressInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), - playbackStartTimeTicks: (playbackStartTimeTicks != null - ? playbackStartTimeTicks.value - : this.playbackStartTimeTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + playbackStartTimeTicks: + (playbackStartTimeTicks != null ? playbackStartTimeTicks.value : this.playbackStartTimeTicks), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), brightness: (brightness != null ? brightness.value : this.brightness), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), playMethod: (playMethod != null ? playMethod.value : this.playMethod), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null - ? playbackOrder.value - : this.playbackOrder), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -37972,8 +36516,7 @@ class PlaybackStartInfo { this.playlistItemId, }); - factory PlaybackStartInfo.fromJson(Map json) => - _$PlaybackStartInfoFromJson(json); + factory PlaybackStartInfo.fromJson(Map json) => _$PlaybackStartInfoFromJson(json); static const toJsonFactory = _$PlaybackStartInfoToJson; Map toJson() => _$PlaybackStartInfoToJson(this); @@ -38050,10 +36593,8 @@ class PlaybackStartInfo { other.canSeek, canSeek, )) && - (identical(other.item, item) || - const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -38210,8 +36751,7 @@ extension $PlaybackStartInfoExtension on PlaybackStartInfo { isPaused: isPaused ?? this.isPaused, isMuted: isMuted ?? this.isMuted, positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: - playbackStartTimeTicks ?? this.playbackStartTimeTicks, + playbackStartTimeTicks: playbackStartTimeTicks ?? this.playbackStartTimeTicks, volumeLevel: volumeLevel ?? this.volumeLevel, brightness: brightness ?? this.brightness, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -38253,43 +36793,24 @@ extension $PlaybackStartInfoExtension on PlaybackStartInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), - playbackStartTimeTicks: (playbackStartTimeTicks != null - ? playbackStartTimeTicks.value - : this.playbackStartTimeTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + playbackStartTimeTicks: + (playbackStartTimeTicks != null ? playbackStartTimeTicks.value : this.playbackStartTimeTicks), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), brightness: (brightness != null ? brightness.value : this.brightness), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), playMethod: (playMethod != null ? playMethod.value : this.playMethod), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null - ? playbackOrder.value - : this.playbackOrder), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -38310,8 +36831,7 @@ class PlaybackStopInfo { this.nowPlayingQueue, }); - factory PlaybackStopInfo.fromJson(Map json) => - _$PlaybackStopInfoFromJson(json); + factory PlaybackStopInfo.fromJson(Map json) => _$PlaybackStopInfoFromJson(json); static const toJsonFactory = _$PlaybackStopInfoToJson; Map toJson() => _$PlaybackStopInfoToJson(this); @@ -38348,10 +36868,8 @@ class PlaybackStopInfo { bool operator ==(Object other) { return identical(this, other) || (other is PlaybackStopInfo && - (identical(other.item, item) || - const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -38377,8 +36895,7 @@ class PlaybackStopInfo { other.playSessionId, playSessionId, )) && - (identical(other.failed, failed) || - const DeepCollectionEquality().equals(other.failed, failed)) && + (identical(other.failed, failed) || const DeepCollectionEquality().equals(other.failed, failed)) && (identical(other.nextMediaType, nextMediaType) || const DeepCollectionEquality().equals( other.nextMediaType, @@ -38461,28 +36978,14 @@ extension $PlaybackStopInfoExtension on PlaybackStopInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), failed: (failed != null ? failed.value : this.failed), - nextMediaType: (nextMediaType != null - ? nextMediaType.value - : this.nextMediaType), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), + nextMediaType: (nextMediaType != null ? nextMediaType.value : this.nextMediaType), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), ); } } @@ -38504,8 +37007,7 @@ class PlayerStateInfo { this.liveStreamId, }); - factory PlayerStateInfo.fromJson(Map json) => - _$PlayerStateInfoFromJson(json); + factory PlayerStateInfo.fromJson(Map json) => _$PlayerStateInfoFromJson(json); static const toJsonFactory = _$PlayerStateInfoToJson; Map toJson() => _$PlayerStateInfoToJson(this); @@ -38683,30 +37185,18 @@ extension $PlayerStateInfoExtension on PlayerStateInfo { Wrapped? liveStreamId, }) { return PlayerStateInfo( - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), canSeek: (canSeek != null ? canSeek.value : this.canSeek), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), playMethod: (playMethod != null ? playMethod.value : this.playMethod), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null - ? playbackOrder.value - : this.playbackOrder), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), + playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), ); } } @@ -38715,8 +37205,7 @@ extension $PlayerStateInfoExtension on PlayerStateInfo { class PlaylistCreationResult { const PlaylistCreationResult({this.id}); - factory PlaylistCreationResult.fromJson(Map json) => - _$PlaylistCreationResultFromJson(json); + factory PlaylistCreationResult.fromJson(Map json) => _$PlaylistCreationResultFromJson(json); static const toJsonFactory = _$PlaylistCreationResultToJson; Map toJson() => _$PlaylistCreationResultToJson(this); @@ -38729,16 +37218,14 @@ class PlaylistCreationResult { bool operator ==(Object other) { return identical(this, other) || (other is PlaylistCreationResult && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $PlaylistCreationResultExtension on PlaylistCreationResult { @@ -38755,8 +37242,7 @@ extension $PlaylistCreationResultExtension on PlaylistCreationResult { class PlaylistDto { const PlaylistDto({this.openAccess, this.shares, this.itemIds}); - factory PlaylistDto.fromJson(Map json) => - _$PlaylistDtoFromJson(json); + factory PlaylistDto.fromJson(Map json) => _$PlaylistDtoFromJson(json); static const toJsonFactory = _$PlaylistDtoToJson; Map toJson() => _$PlaylistDtoToJson(this); @@ -38782,10 +37268,8 @@ class PlaylistDto { other.openAccess, openAccess, )) && - (identical(other.shares, shares) || - const DeepCollectionEquality().equals(other.shares, shares)) && - (identical(other.itemIds, itemIds) || - const DeepCollectionEquality().equals(other.itemIds, itemIds))); + (identical(other.shares, shares) || const DeepCollectionEquality().equals(other.shares, shares)) && + (identical(other.itemIds, itemIds) || const DeepCollectionEquality().equals(other.itemIds, itemIds))); } @override @@ -38829,8 +37313,7 @@ extension $PlaylistDtoExtension on PlaylistDto { class PlaylistUserPermissions { const PlaylistUserPermissions({this.userId, this.canEdit}); - factory PlaylistUserPermissions.fromJson(Map json) => - _$PlaylistUserPermissionsFromJson(json); + factory PlaylistUserPermissions.fromJson(Map json) => _$PlaylistUserPermissionsFromJson(json); static const toJsonFactory = _$PlaylistUserPermissionsToJson; Map toJson() => _$PlaylistUserPermissionsToJson(this); @@ -38845,10 +37328,8 @@ class PlaylistUserPermissions { bool operator ==(Object other) { return identical(this, other) || (other is PlaylistUserPermissions && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && - (identical(other.canEdit, canEdit) || - const DeepCollectionEquality().equals(other.canEdit, canEdit))); + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.canEdit, canEdit) || const DeepCollectionEquality().equals(other.canEdit, canEdit))); } @override @@ -38856,9 +37337,7 @@ class PlaylistUserPermissions { @override int get hashCode => - const DeepCollectionEquality().hash(userId) ^ - const DeepCollectionEquality().hash(canEdit) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(userId) ^ const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; } extension $PlaylistUserPermissionsExtension on PlaylistUserPermissions { @@ -38884,8 +37363,7 @@ extension $PlaylistUserPermissionsExtension on PlaylistUserPermissions { class PlayMessage { const PlayMessage({this.data, this.messageId, this.messageType}); - factory PlayMessage.fromJson(Map json) => - _$PlayMessageFromJson(json); + factory PlayMessage.fromJson(Map json) => _$PlayMessageFromJson(json); static const toJsonFactory = _$PlayMessageToJson; Map toJson() => _$PlayMessageToJson(this); @@ -38901,8 +37379,7 @@ class PlayMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson(value, enums.SessionMessageType.play); static const fromJsonFactory = _$PlayMessageFromJson; @@ -38911,8 +37388,7 @@ class PlayMessage { bool operator ==(Object other) { return identical(this, other) || (other is PlayMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -38975,8 +37451,7 @@ class PlayQueueUpdate { this.repeatMode, }); - factory PlayQueueUpdate.fromJson(Map json) => - _$PlayQueueUpdateFromJson(json); + factory PlayQueueUpdate.fromJson(Map json) => _$PlayQueueUpdateFromJson(json); static const toJsonFactory = _$PlayQueueUpdateToJson; Map toJson() => _$PlayQueueUpdateToJson(this); @@ -39022,8 +37497,7 @@ class PlayQueueUpdate { bool operator ==(Object other) { return identical(this, other) || (other is PlayQueueUpdate && - (identical(other.reason, reason) || - const DeepCollectionEquality().equals(other.reason, reason)) && + (identical(other.reason, reason) || const DeepCollectionEquality().equals(other.reason, reason)) && (identical(other.lastUpdate, lastUpdate) || const DeepCollectionEquality().equals( other.lastUpdate, @@ -39114,12 +37588,8 @@ extension $PlayQueueUpdateExtension on PlayQueueUpdate { reason: (reason != null ? reason.value : this.reason), lastUpdate: (lastUpdate != null ? lastUpdate.value : this.lastUpdate), playlist: (playlist != null ? playlist.value : this.playlist), - playingItemIndex: (playingItemIndex != null - ? playingItemIndex.value - : this.playingItemIndex), - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + playingItemIndex: (playingItemIndex != null ? playingItemIndex.value : this.playingItemIndex), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), shuffleMode: (shuffleMode != null ? shuffleMode.value : this.shuffleMode), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), @@ -39140,8 +37610,7 @@ class PlayRequest { this.startIndex, }); - factory PlayRequest.fromJson(Map json) => - _$PlayRequestFromJson(json); + factory PlayRequest.fromJson(Map json) => _$PlayRequestFromJson(json); static const toJsonFactory = _$PlayRequestToJson; Map toJson() => _$PlayRequestToJson(this); @@ -39266,22 +37735,12 @@ extension $PlayRequestExtension on PlayRequest { }) { return PlayRequest( itemIds: (itemIds != null ? itemIds.value : this.itemIds), - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), playCommand: (playCommand != null ? playCommand.value : this.playCommand), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), + controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -39295,8 +37754,7 @@ class PlayRequestDto { this.startPositionTicks, }); - factory PlayRequestDto.fromJson(Map json) => - _$PlayRequestDtoFromJson(json); + factory PlayRequestDto.fromJson(Map json) => _$PlayRequestDtoFromJson(json); static const toJsonFactory = _$PlayRequestDtoToJson; Map toJson() => _$PlayRequestDtoToJson(this); @@ -39360,15 +37818,9 @@ extension $PlayRequestDtoExtension on PlayRequestDto { Wrapped? startPositionTicks, }) { return PlayRequestDto( - playingQueue: (playingQueue != null - ? playingQueue.value - : this.playingQueue), - playingItemPosition: (playingItemPosition != null - ? playingItemPosition.value - : this.playingItemPosition), - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + playingQueue: (playingQueue != null ? playingQueue.value : this.playingQueue), + playingItemPosition: (playingItemPosition != null ? playingItemPosition.value : this.playingItemPosition), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), ); } } @@ -39377,8 +37829,7 @@ extension $PlayRequestDtoExtension on PlayRequestDto { class PlaystateMessage { const PlaystateMessage({this.data, this.messageId, this.messageType}); - factory PlaystateMessage.fromJson(Map json) => - _$PlaystateMessageFromJson(json); + factory PlaystateMessage.fromJson(Map json) => _$PlaystateMessageFromJson(json); static const toJsonFactory = _$PlaystateMessageToJson; Map toJson() => _$PlaystateMessageToJson(this); @@ -39394,8 +37845,7 @@ class PlaystateMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.playstate, @@ -39407,8 +37857,7 @@ class PlaystateMessage { bool operator ==(Object other) { return identical(this, other) || (other is PlaystateMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39466,8 +37915,7 @@ class PlaystateRequest { this.controllingUserId, }); - factory PlaystateRequest.fromJson(Map json) => - _$PlaystateRequestFromJson(json); + factory PlaystateRequest.fromJson(Map json) => _$PlaystateRequestFromJson(json); static const toJsonFactory = _$PlaystateRequestToJson; Map toJson() => _$PlaystateRequestToJson(this); @@ -39537,12 +37985,8 @@ extension $PlaystateRequestExtension on PlaystateRequest { }) { return PlaystateRequest( command: (command != null ? command.value : this.command), - seekPositionTicks: (seekPositionTicks != null - ? seekPositionTicks.value - : this.seekPositionTicks), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId), + seekPositionTicks: (seekPositionTicks != null ? seekPositionTicks.value : this.seekPositionTicks), + controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), ); } } @@ -39560,8 +38004,7 @@ class PluginInfo { this.status, }); - factory PluginInfo.fromJson(Map json) => - _$PluginInfoFromJson(json); + factory PluginInfo.fromJson(Map json) => _$PluginInfoFromJson(json); static const toJsonFactory = _$PluginInfoToJson; Map toJson() => _$PluginInfoToJson(this); @@ -39593,8 +38036,7 @@ class PluginInfo { bool operator ==(Object other) { return identical(this, other) || (other is PluginInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -39610,8 +38052,7 @@ class PluginInfo { other.description, description, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canUninstall, canUninstall) || const DeepCollectionEquality().equals( other.canUninstall, @@ -39622,8 +38063,7 @@ class PluginInfo { other.hasImage, hasImage, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status))); + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status))); } @override @@ -39656,8 +38096,7 @@ extension $PluginInfoExtension on PluginInfo { return PluginInfo( name: name ?? this.name, version: version ?? this.version, - configurationFileName: - configurationFileName ?? this.configurationFileName, + configurationFileName: configurationFileName ?? this.configurationFileName, description: description ?? this.description, id: id ?? this.id, canUninstall: canUninstall ?? this.canUninstall, @@ -39679,14 +38118,10 @@ extension $PluginInfoExtension on PluginInfo { return PluginInfo( name: (name != null ? name.value : this.name), version: (version != null ? version.value : this.version), - configurationFileName: (configurationFileName != null - ? configurationFileName.value - : this.configurationFileName), + configurationFileName: (configurationFileName != null ? configurationFileName.value : this.configurationFileName), description: (description != null ? description.value : this.description), id: (id != null ? id.value : this.id), - canUninstall: (canUninstall != null - ? canUninstall.value - : this.canUninstall), + canUninstall: (canUninstall != null ? canUninstall.value : this.canUninstall), hasImage: (hasImage != null ? hasImage.value : this.hasImage), status: (status != null ? status.value : this.status), ); @@ -39703,11 +38138,11 @@ class PluginInstallationCancelledMessage { factory PluginInstallationCancelledMessage.fromJson( Map json, - ) => _$PluginInstallationCancelledMessageFromJson(json); + ) => + _$PluginInstallationCancelledMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCancelledMessageToJson; - Map toJson() => - _$PluginInstallationCancelledMessageToJson(this); + Map toJson() => _$PluginInstallationCancelledMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -39720,8 +38155,7 @@ class PluginInstallationCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationcancelled, @@ -39733,8 +38167,7 @@ class PluginInstallationCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationCancelledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39758,8 +38191,7 @@ class PluginInstallationCancelledMessage { runtimeType.hashCode; } -extension $PluginInstallationCancelledMessageExtension - on PluginInstallationCancelledMessage { +extension $PluginInstallationCancelledMessageExtension on PluginInstallationCancelledMessage { PluginInstallationCancelledMessage copyWith({ InstallationInfo? data, String? messageId, @@ -39795,11 +38227,11 @@ class PluginInstallationCompletedMessage { factory PluginInstallationCompletedMessage.fromJson( Map json, - ) => _$PluginInstallationCompletedMessageFromJson(json); + ) => + _$PluginInstallationCompletedMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCompletedMessageToJson; - Map toJson() => - _$PluginInstallationCompletedMessageToJson(this); + Map toJson() => _$PluginInstallationCompletedMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -39812,8 +38244,7 @@ class PluginInstallationCompletedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationcompleted, @@ -39825,8 +38256,7 @@ class PluginInstallationCompletedMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationCompletedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39850,8 +38280,7 @@ class PluginInstallationCompletedMessage { runtimeType.hashCode; } -extension $PluginInstallationCompletedMessageExtension - on PluginInstallationCompletedMessage { +extension $PluginInstallationCompletedMessageExtension on PluginInstallationCompletedMessage { PluginInstallationCompletedMessage copyWith({ InstallationInfo? data, String? messageId, @@ -39889,8 +38318,7 @@ class PluginInstallationFailedMessage { _$PluginInstallationFailedMessageFromJson(json); static const toJsonFactory = _$PluginInstallationFailedMessageToJson; - Map toJson() => - _$PluginInstallationFailedMessageToJson(this); + Map toJson() => _$PluginInstallationFailedMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -39903,8 +38331,7 @@ class PluginInstallationFailedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationfailed, @@ -39916,8 +38343,7 @@ class PluginInstallationFailedMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationFailedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39941,8 +38367,7 @@ class PluginInstallationFailedMessage { runtimeType.hashCode; } -extension $PluginInstallationFailedMessageExtension - on PluginInstallationFailedMessage { +extension $PluginInstallationFailedMessageExtension on PluginInstallationFailedMessage { PluginInstallationFailedMessage copyWith({ InstallationInfo? data, String? messageId, @@ -39972,8 +38397,7 @@ extension $PluginInstallationFailedMessageExtension class PluginInstallingMessage { const PluginInstallingMessage({this.data, this.messageId, this.messageType}); - factory PluginInstallingMessage.fromJson(Map json) => - _$PluginInstallingMessageFromJson(json); + factory PluginInstallingMessage.fromJson(Map json) => _$PluginInstallingMessageFromJson(json); static const toJsonFactory = _$PluginInstallingMessageToJson; Map toJson() => _$PluginInstallingMessageToJson(this); @@ -39989,8 +38413,7 @@ class PluginInstallingMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstalling, @@ -40002,8 +38425,7 @@ class PluginInstallingMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallingMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -40057,8 +38479,7 @@ extension $PluginInstallingMessageExtension on PluginInstallingMessage { class PluginUninstalledMessage { const PluginUninstalledMessage({this.data, this.messageId, this.messageType}); - factory PluginUninstalledMessage.fromJson(Map json) => - _$PluginUninstalledMessageFromJson(json); + factory PluginUninstalledMessage.fromJson(Map json) => _$PluginUninstalledMessageFromJson(json); static const toJsonFactory = _$PluginUninstalledMessageToJson; Map toJson() => _$PluginUninstalledMessageToJson(this); @@ -40074,8 +38495,7 @@ class PluginUninstalledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageuninstalled, @@ -40087,8 +38507,7 @@ class PluginUninstalledMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginUninstalledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -40142,8 +38561,7 @@ extension $PluginUninstalledMessageExtension on PluginUninstalledMessage { class PreviousItemRequestDto { const PreviousItemRequestDto({this.playlistItemId}); - factory PreviousItemRequestDto.fromJson(Map json) => - _$PreviousItemRequestDtoFromJson(json); + factory PreviousItemRequestDto.fromJson(Map json) => _$PreviousItemRequestDtoFromJson(json); static const toJsonFactory = _$PreviousItemRequestDtoToJson; Map toJson() => _$PreviousItemRequestDtoToJson(this); @@ -40167,9 +38585,7 @@ class PreviousItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(playlistItemId) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; } extension $PreviousItemRequestDtoExtension on PreviousItemRequestDto { @@ -40181,9 +38597,7 @@ extension $PreviousItemRequestDtoExtension on PreviousItemRequestDto { PreviousItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return PreviousItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -40198,8 +38612,7 @@ class ProblemDetails { this.instance, }); - factory ProblemDetails.fromJson(Map json) => - _$ProblemDetailsFromJson(json); + factory ProblemDetails.fromJson(Map json) => _$ProblemDetailsFromJson(json); static const toJsonFactory = _$ProblemDetailsToJson; Map toJson() => _$ProblemDetailsToJson(this); @@ -40220,14 +38633,10 @@ class ProblemDetails { bool operator ==(Object other) { return identical(this, other) || (other is ProblemDetails && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.title, title) || - const DeepCollectionEquality().equals(other.title, title)) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.detail, detail) || - const DeepCollectionEquality().equals(other.detail, detail)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.detail, detail) || const DeepCollectionEquality().equals(other.detail, detail)) && (identical(other.instance, instance) || const DeepCollectionEquality().equals( other.instance, @@ -40291,8 +38700,7 @@ class ProfileCondition { this.isRequired, }); - factory ProfileCondition.fromJson(Map json) => - _$ProfileConditionFromJson(json); + factory ProfileCondition.fromJson(Map json) => _$ProfileConditionFromJson(json); static const toJsonFactory = _$ProfileConditionToJson; Map toJson() => _$ProfileConditionToJson(this); @@ -40331,8 +38739,7 @@ class ProfileCondition { other.property, property, )) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value)) && (identical(other.isRequired, isRequired) || const DeepCollectionEquality().equals( other.isRequired, @@ -40394,8 +38801,7 @@ class PublicSystemInfo { this.startupWizardCompleted, }); - factory PublicSystemInfo.fromJson(Map json) => - _$PublicSystemInfoFromJson(json); + factory PublicSystemInfo.fromJson(Map json) => _$PublicSystemInfoFromJson(json); static const toJsonFactory = _$PublicSystemInfoToJson; Map toJson() => _$PublicSystemInfoToJson(this); @@ -40446,8 +38852,7 @@ class PublicSystemInfo { other.operatingSystem, operatingSystem, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( other.startupWizardCompleted, @@ -40487,8 +38892,7 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { productName: productName ?? this.productName, operatingSystem: operatingSystem ?? this.operatingSystem, id: id ?? this.id, - startupWizardCompleted: - startupWizardCompleted ?? this.startupWizardCompleted, + startupWizardCompleted: startupWizardCompleted ?? this.startupWizardCompleted, ); } @@ -40502,19 +38906,14 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { Wrapped? startupWizardCompleted, }) { return PublicSystemInfo( - localAddress: (localAddress != null - ? localAddress.value - : this.localAddress), + localAddress: (localAddress != null ? localAddress.value : this.localAddress), serverName: (serverName != null ? serverName.value : this.serverName), version: (version != null ? version.value : this.version), productName: (productName != null ? productName.value : this.productName), - operatingSystem: (operatingSystem != null - ? operatingSystem.value - : this.operatingSystem), + operatingSystem: (operatingSystem != null ? operatingSystem.value : this.operatingSystem), id: (id != null ? id.value : this.id), - startupWizardCompleted: (startupWizardCompleted != null - ? startupWizardCompleted.value - : this.startupWizardCompleted), + startupWizardCompleted: + (startupWizardCompleted != null ? startupWizardCompleted.value : this.startupWizardCompleted), ); } } @@ -40523,8 +38922,7 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { class QueryFilters { const QueryFilters({this.genres, this.tags}); - factory QueryFilters.fromJson(Map json) => - _$QueryFiltersFromJson(json); + factory QueryFilters.fromJson(Map json) => _$QueryFiltersFromJson(json); static const toJsonFactory = _$QueryFiltersToJson; Map toJson() => _$QueryFiltersToJson(this); @@ -40539,10 +38937,8 @@ class QueryFilters { bool operator ==(Object other) { return identical(this, other) || (other is QueryFilters && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && - (identical(other.tags, tags) || - const DeepCollectionEquality().equals(other.tags, tags))); + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags))); } @override @@ -40550,9 +38946,7 @@ class QueryFilters { @override int get hashCode => - const DeepCollectionEquality().hash(genres) ^ - const DeepCollectionEquality().hash(tags) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(genres) ^ const DeepCollectionEquality().hash(tags) ^ runtimeType.hashCode; } extension $QueryFiltersExtension on QueryFilters { @@ -40580,8 +38974,7 @@ class QueryFiltersLegacy { this.years, }); - factory QueryFiltersLegacy.fromJson(Map json) => - _$QueryFiltersLegacyFromJson(json); + factory QueryFiltersLegacy.fromJson(Map json) => _$QueryFiltersLegacyFromJson(json); static const toJsonFactory = _$QueryFiltersLegacyToJson; Map toJson() => _$QueryFiltersLegacyToJson(this); @@ -40604,17 +38997,14 @@ class QueryFiltersLegacy { bool operator ==(Object other) { return identical(this, other) || (other is QueryFiltersLegacy && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && - (identical(other.tags, tags) || - const DeepCollectionEquality().equals(other.tags, tags)) && + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && (identical(other.officialRatings, officialRatings) || const DeepCollectionEquality().equals( other.officialRatings, officialRatings, )) && - (identical(other.years, years) || - const DeepCollectionEquality().equals(other.years, years))); + (identical(other.years, years) || const DeepCollectionEquality().equals(other.years, years))); } @override @@ -40653,9 +39043,7 @@ extension $QueryFiltersLegacyExtension on QueryFiltersLegacy { return QueryFiltersLegacy( genres: (genres != null ? genres.value : this.genres), tags: (tags != null ? tags.value : this.tags), - officialRatings: (officialRatings != null - ? officialRatings.value - : this.officialRatings), + officialRatings: (officialRatings != null ? officialRatings.value : this.officialRatings), years: (years != null ? years.value : this.years), ); } @@ -40665,8 +39053,7 @@ extension $QueryFiltersLegacyExtension on QueryFiltersLegacy { class QueueItem { const QueueItem({this.id, this.playlistItemId}); - factory QueueItem.fromJson(Map json) => - _$QueueItemFromJson(json); + factory QueueItem.fromJson(Map json) => _$QueueItemFromJson(json); static const toJsonFactory = _$QueueItemToJson; Map toJson() => _$QueueItemToJson(this); @@ -40681,8 +39068,7 @@ class QueueItem { bool operator ==(Object other) { return identical(this, other) || (other is QueueItem && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.playlistItemId, playlistItemId) || const DeepCollectionEquality().equals( other.playlistItemId, @@ -40714,9 +39100,7 @@ extension $QueueItemExtension on QueueItem { }) { return QueueItem( id: (id != null ? id.value : this.id), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -40725,8 +39109,7 @@ extension $QueueItemExtension on QueueItem { class QueueRequestDto { const QueueRequestDto({this.itemIds, this.mode}); - factory QueueRequestDto.fromJson(Map json) => - _$QueueRequestDtoFromJson(json); + factory QueueRequestDto.fromJson(Map json) => _$QueueRequestDtoFromJson(json); static const toJsonFactory = _$QueueRequestDtoToJson; Map toJson() => _$QueueRequestDtoToJson(this); @@ -40751,8 +39134,7 @@ class QueueRequestDto { other.itemIds, itemIds, )) && - (identical(other.mode, mode) || - const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); } @override @@ -40760,9 +39142,7 @@ class QueueRequestDto { @override int get hashCode => - const DeepCollectionEquality().hash(itemIds) ^ - const DeepCollectionEquality().hash(mode) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(itemIds) ^ const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $QueueRequestDtoExtension on QueueRequestDto { @@ -40791,8 +39171,7 @@ extension $QueueRequestDtoExtension on QueueRequestDto { class QuickConnectDto { const QuickConnectDto({required this.secret}); - factory QuickConnectDto.fromJson(Map json) => - _$QuickConnectDtoFromJson(json); + factory QuickConnectDto.fromJson(Map json) => _$QuickConnectDtoFromJson(json); static const toJsonFactory = _$QuickConnectDtoToJson; Map toJson() => _$QuickConnectDtoToJson(this); @@ -40805,16 +39184,14 @@ class QuickConnectDto { bool operator ==(Object other) { return identical(this, other) || (other is QuickConnectDto && - (identical(other.secret, secret) || - const DeepCollectionEquality().equals(other.secret, secret))); + (identical(other.secret, secret) || const DeepCollectionEquality().equals(other.secret, secret))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(secret) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(secret) ^ runtimeType.hashCode; } extension $QuickConnectDtoExtension on QuickConnectDto { @@ -40842,8 +39219,7 @@ class QuickConnectResult { this.dateAdded, }); - factory QuickConnectResult.fromJson(Map json) => - _$QuickConnectResultFromJson(json); + factory QuickConnectResult.fromJson(Map json) => _$QuickConnectResultFromJson(json); static const toJsonFactory = _$QuickConnectResultToJson; Map toJson() => _$QuickConnectResultToJson(this); @@ -40875,10 +39251,8 @@ class QuickConnectResult { other.authenticated, authenticated, )) && - (identical(other.secret, secret) || - const DeepCollectionEquality().equals(other.secret, secret)) && - (identical(other.code, code) || - const DeepCollectionEquality().equals(other.code, code)) && + (identical(other.secret, secret) || const DeepCollectionEquality().equals(other.secret, secret)) && + (identical(other.code, code) || const DeepCollectionEquality().equals(other.code, code)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -40956,9 +39330,7 @@ extension $QuickConnectResultExtension on QuickConnectResult { Wrapped? dateAdded, }) { return QuickConnectResult( - authenticated: (authenticated != null - ? authenticated.value - : this.authenticated), + authenticated: (authenticated != null ? authenticated.value : this.authenticated), secret: (secret != null ? secret.value : this.secret), code: (code != null ? code.value : this.code), deviceId: (deviceId != null ? deviceId.value : this.deviceId), @@ -40979,8 +39351,7 @@ class ReadyRequestDto { this.playlistItemId, }); - factory ReadyRequestDto.fromJson(Map json) => - _$ReadyRequestDtoFromJson(json); + factory ReadyRequestDto.fromJson(Map json) => _$ReadyRequestDtoFromJson(json); static const toJsonFactory = _$ReadyRequestDtoToJson; Map toJson() => _$ReadyRequestDtoToJson(this); @@ -40999,8 +39370,7 @@ class ReadyRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is ReadyRequestDto && - (identical(other.when, when) || - const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -41053,13 +39423,9 @@ extension $ReadyRequestDtoExtension on ReadyRequestDto { }) { return ReadyRequestDto( when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -41073,8 +39439,7 @@ class RecommendationDto { this.categoryId, }); - factory RecommendationDto.fromJson(Map json) => - _$RecommendationDtoFromJson(json); + factory RecommendationDto.fromJson(Map json) => _$RecommendationDtoFromJson(json); static const toJsonFactory = _$RecommendationDtoToJson; Map toJson() => _$RecommendationDtoToJson(this); @@ -41098,8 +39463,7 @@ class RecommendationDto { bool operator ==(Object other) { return identical(this, other) || (other is RecommendationDto && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.recommendationType, recommendationType) || const DeepCollectionEquality().equals( other.recommendationType, @@ -41152,12 +39516,8 @@ extension $RecommendationDtoExtension on RecommendationDto { }) { return RecommendationDto( items: (items != null ? items.value : this.items), - recommendationType: (recommendationType != null - ? recommendationType.value - : this.recommendationType), - baselineItemName: (baselineItemName != null - ? baselineItemName.value - : this.baselineItemName), + recommendationType: (recommendationType != null ? recommendationType.value : this.recommendationType), + baselineItemName: (baselineItemName != null ? baselineItemName.value : this.baselineItemName), categoryId: (categoryId != null ? categoryId.value : this.categoryId), ); } @@ -41167,8 +39527,7 @@ extension $RecommendationDtoExtension on RecommendationDto { class RefreshProgressMessage { const RefreshProgressMessage({this.data, this.messageId, this.messageType}); - factory RefreshProgressMessage.fromJson(Map json) => - _$RefreshProgressMessageFromJson(json); + factory RefreshProgressMessage.fromJson(Map json) => _$RefreshProgressMessageFromJson(json); static const toJsonFactory = _$RefreshProgressMessageToJson; Map toJson() => _$RefreshProgressMessageToJson(this); @@ -41184,8 +39543,7 @@ class RefreshProgressMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.refreshprogress, @@ -41197,8 +39555,7 @@ class RefreshProgressMessage { bool operator ==(Object other) { return identical(this, other) || (other is RefreshProgressMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -41263,8 +39620,7 @@ class RemoteImageInfo { this.ratingType, }); - factory RemoteImageInfo.fromJson(Map json) => - _$RemoteImageInfoFromJson(json); + factory RemoteImageInfo.fromJson(Map json) => _$RemoteImageInfoFromJson(json); static const toJsonFactory = _$RemoteImageInfoToJson; Map toJson() => _$RemoteImageInfoToJson(this); @@ -41310,17 +39666,14 @@ class RemoteImageInfo { other.providerName, providerName, )) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && (identical(other.thumbnailUrl, thumbnailUrl) || const DeepCollectionEquality().equals( other.thumbnailUrl, thumbnailUrl, )) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && (identical(other.communityRating, communityRating) || const DeepCollectionEquality().equals( other.communityRating, @@ -41336,8 +39689,7 @@ class RemoteImageInfo { other.language, language, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.ratingType, ratingType) || const DeepCollectionEquality().equals( other.ratingType, @@ -41403,18 +39755,12 @@ extension $RemoteImageInfoExtension on RemoteImageInfo { Wrapped? ratingType, }) { return RemoteImageInfo( - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), url: (url != null ? url.value : this.url), - thumbnailUrl: (thumbnailUrl != null - ? thumbnailUrl.value - : this.thumbnailUrl), + thumbnailUrl: (thumbnailUrl != null ? thumbnailUrl.value : this.thumbnailUrl), height: (height != null ? height.value : this.height), width: (width != null ? width.value : this.width), - communityRating: (communityRating != null - ? communityRating.value - : this.communityRating), + communityRating: (communityRating != null ? communityRating.value : this.communityRating), voteCount: (voteCount != null ? voteCount.value : this.voteCount), language: (language != null ? language.value : this.language), type: (type != null ? type.value : this.type), @@ -41427,8 +39773,7 @@ extension $RemoteImageInfoExtension on RemoteImageInfo { class RemoteImageResult { const RemoteImageResult({this.images, this.totalRecordCount, this.providers}); - factory RemoteImageResult.fromJson(Map json) => - _$RemoteImageResultFromJson(json); + factory RemoteImageResult.fromJson(Map json) => _$RemoteImageResultFromJson(json); static const toJsonFactory = _$RemoteImageResultToJson; Map toJson() => _$RemoteImageResultToJson(this); @@ -41449,8 +39794,7 @@ class RemoteImageResult { bool operator ==(Object other) { return identical(this, other) || (other is RemoteImageResult && - (identical(other.images, images) || - const DeepCollectionEquality().equals(other.images, images)) && + (identical(other.images, images) || const DeepCollectionEquality().equals(other.images, images)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -41494,9 +39838,7 @@ extension $RemoteImageResultExtension on RemoteImageResult { }) { return RemoteImageResult( images: (images != null ? images.value : this.images), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), providers: (providers != null ? providers.value : this.providers), ); } @@ -41506,8 +39848,7 @@ extension $RemoteImageResultExtension on RemoteImageResult { class RemoteLyricInfoDto { const RemoteLyricInfoDto({this.id, this.providerName, this.lyrics}); - factory RemoteLyricInfoDto.fromJson(Map json) => - _$RemoteLyricInfoDtoFromJson(json); + factory RemoteLyricInfoDto.fromJson(Map json) => _$RemoteLyricInfoDtoFromJson(json); static const toJsonFactory = _$RemoteLyricInfoDtoToJson; Map toJson() => _$RemoteLyricInfoDtoToJson(this); @@ -41524,15 +39865,13 @@ class RemoteLyricInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is RemoteLyricInfoDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || const DeepCollectionEquality().equals( other.providerName, providerName, )) && - (identical(other.lyrics, lyrics) || - const DeepCollectionEquality().equals(other.lyrics, lyrics))); + (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @override @@ -41566,9 +39905,7 @@ extension $RemoteLyricInfoDtoExtension on RemoteLyricInfoDto { }) { return RemoteLyricInfoDto( id: (id != null ? id.value : this.id), - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), lyrics: (lyrics != null ? lyrics.value : this.lyrics), ); } @@ -41591,8 +39928,7 @@ class RemoteSearchResult { this.artists, }); - factory RemoteSearchResult.fromJson(Map json) => - _$RemoteSearchResultFromJson(json); + factory RemoteSearchResult.fromJson(Map json) => _$RemoteSearchResultFromJson(json); static const toJsonFactory = _$RemoteSearchResultToJson; Map toJson() => _$RemoteSearchResultToJson(this); @@ -41631,8 +39967,7 @@ class RemoteSearchResult { bool operator ==(Object other) { return identical(this, other) || (other is RemoteSearchResult && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerIds, providerIds) || const DeepCollectionEquality().equals( other.providerIds, @@ -41683,8 +40018,7 @@ class RemoteSearchResult { other.albumArtist, albumArtist, )) && - (identical(other.artists, artists) || - const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -41755,23 +40089,13 @@ extension $RemoteSearchResultExtension on RemoteSearchResult { return RemoteSearchResult( name: (name != null ? name.value : this.name), providerIds: (providerIds != null ? providerIds.value : this.providerIds), - productionYear: (productionYear != null - ? productionYear.value - : this.productionYear), + productionYear: (productionYear != null ? productionYear.value : this.productionYear), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - indexNumberEnd: (indexNumberEnd != null - ? indexNumberEnd.value - : this.indexNumberEnd), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + indexNumberEnd: (indexNumberEnd != null ? indexNumberEnd.value : this.indexNumberEnd), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), overview: (overview != null ? overview.value : this.overview), albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), artists: (artists != null ? artists.value : this.artists), @@ -41800,8 +40124,7 @@ class RemoteSubtitleInfo { this.hearingImpaired, }); - factory RemoteSubtitleInfo.fromJson(Map json) => - _$RemoteSubtitleInfoFromJson(json); + factory RemoteSubtitleInfo.fromJson(Map json) => _$RemoteSubtitleInfoFromJson(json); static const toJsonFactory = _$RemoteSubtitleInfoToJson; Map toJson() => _$RemoteSubtitleInfoToJson(this); @@ -41852,19 +40175,15 @@ class RemoteSubtitleInfo { other.threeLetterISOLanguageName, threeLetterISOLanguageName, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || const DeepCollectionEquality().equals( other.providerName, providerName, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.format, format) || - const DeepCollectionEquality().equals(other.format, format)) && - (identical(other.author, author) || - const DeepCollectionEquality().equals(other.author, author)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && (identical(other.comment, comment) || const DeepCollectionEquality().equals( other.comment, @@ -41905,8 +40224,7 @@ class RemoteSubtitleInfo { other.machineTranslated, machineTranslated, )) && - (identical(other.forced, forced) || - const DeepCollectionEquality().equals(other.forced, forced)) && + (identical(other.forced, forced) || const DeepCollectionEquality().equals(other.forced, forced)) && (identical(other.hearingImpaired, hearingImpaired) || const DeepCollectionEquality().equals( other.hearingImpaired, @@ -41958,8 +40276,7 @@ extension $RemoteSubtitleInfoExtension on RemoteSubtitleInfo { bool? hearingImpaired, }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: - threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + threeLetterISOLanguageName: threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, id: id ?? this.id, providerName: providerName ?? this.providerName, name: name ?? this.name, @@ -41997,36 +40314,23 @@ extension $RemoteSubtitleInfoExtension on RemoteSubtitleInfo { Wrapped? hearingImpaired, }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: (threeLetterISOLanguageName != null - ? threeLetterISOLanguageName.value - : this.threeLetterISOLanguageName), + threeLetterISOLanguageName: + (threeLetterISOLanguageName != null ? threeLetterISOLanguageName.value : this.threeLetterISOLanguageName), id: (id != null ? id.value : this.id), - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), name: (name != null ? name.value : this.name), format: (format != null ? format.value : this.format), author: (author != null ? author.value : this.author), comment: (comment != null ? comment.value : this.comment), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - communityRating: (communityRating != null - ? communityRating.value - : this.communityRating), + communityRating: (communityRating != null ? communityRating.value : this.communityRating), frameRate: (frameRate != null ? frameRate.value : this.frameRate), - downloadCount: (downloadCount != null - ? downloadCount.value - : this.downloadCount), + downloadCount: (downloadCount != null ? downloadCount.value : this.downloadCount), isHashMatch: (isHashMatch != null ? isHashMatch.value : this.isHashMatch), - aiTranslated: (aiTranslated != null - ? aiTranslated.value - : this.aiTranslated), - machineTranslated: (machineTranslated != null - ? machineTranslated.value - : this.machineTranslated), + aiTranslated: (aiTranslated != null ? aiTranslated.value : this.aiTranslated), + machineTranslated: (machineTranslated != null ? machineTranslated.value : this.machineTranslated), forced: (forced != null ? forced.value : this.forced), - hearingImpaired: (hearingImpaired != null - ? hearingImpaired.value - : this.hearingImpaired), + hearingImpaired: (hearingImpaired != null ? hearingImpaired.value : this.hearingImpaired), ); } } @@ -42089,8 +40393,7 @@ class RemoveFromPlaylistRequestDto { runtimeType.hashCode; } -extension $RemoveFromPlaylistRequestDtoExtension - on RemoveFromPlaylistRequestDto { +extension $RemoveFromPlaylistRequestDtoExtension on RemoveFromPlaylistRequestDto { RemoveFromPlaylistRequestDto copyWith({ List? playlistItemIds, bool? clearPlaylist, @@ -42109,15 +40412,9 @@ extension $RemoveFromPlaylistRequestDtoExtension Wrapped? clearPlayingItem, }) { return RemoveFromPlaylistRequestDto( - playlistItemIds: (playlistItemIds != null - ? playlistItemIds.value - : this.playlistItemIds), - clearPlaylist: (clearPlaylist != null - ? clearPlaylist.value - : this.clearPlaylist), - clearPlayingItem: (clearPlayingItem != null - ? clearPlayingItem.value - : this.clearPlayingItem), + playlistItemIds: (playlistItemIds != null ? playlistItemIds.value : this.playlistItemIds), + clearPlaylist: (clearPlaylist != null ? clearPlaylist.value : this.clearPlaylist), + clearPlayingItem: (clearPlayingItem != null ? clearPlayingItem.value : this.clearPlayingItem), ); } } @@ -42130,8 +40427,7 @@ class ReportPlaybackOptions { this.maxBackupFiles, }); - factory ReportPlaybackOptions.fromJson(Map json) => - _$ReportPlaybackOptionsFromJson(json); + factory ReportPlaybackOptions.fromJson(Map json) => _$ReportPlaybackOptionsFromJson(json); static const toJsonFactory = _$ReportPlaybackOptionsToJson; Map toJson() => _$ReportPlaybackOptionsToJson(this); @@ -42197,9 +40493,7 @@ extension $ReportPlaybackOptionsExtension on ReportPlaybackOptions { return ReportPlaybackOptions( maxDataAge: (maxDataAge != null ? maxDataAge.value : this.maxDataAge), backupPath: (backupPath != null ? backupPath.value : this.backupPath), - maxBackupFiles: (maxBackupFiles != null - ? maxBackupFiles.value - : this.maxBackupFiles), + maxBackupFiles: (maxBackupFiles != null ? maxBackupFiles.value : this.maxBackupFiles), ); } } @@ -42208,8 +40502,7 @@ extension $ReportPlaybackOptionsExtension on ReportPlaybackOptions { class RepositoryInfo { const RepositoryInfo({this.name, this.url, this.enabled}); - factory RepositoryInfo.fromJson(Map json) => - _$RepositoryInfoFromJson(json); + factory RepositoryInfo.fromJson(Map json) => _$RepositoryInfoFromJson(json); static const toJsonFactory = _$RepositoryInfoToJson; Map toJson() => _$RepositoryInfoToJson(this); @@ -42226,12 +40519,9 @@ class RepositoryInfo { bool operator ==(Object other) { return identical(this, other) || (other is RepositoryInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.enabled, enabled) || - const DeepCollectionEquality().equals(other.enabled, enabled))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.enabled, enabled) || const DeepCollectionEquality().equals(other.enabled, enabled))); } @override @@ -42271,8 +40561,7 @@ extension $RepositoryInfoExtension on RepositoryInfo { class RestartRequiredMessage { const RestartRequiredMessage({this.messageId, this.messageType}); - factory RestartRequiredMessage.fromJson(Map json) => - _$RestartRequiredMessageFromJson(json); + factory RestartRequiredMessage.fromJson(Map json) => _$RestartRequiredMessageFromJson(json); static const toJsonFactory = _$RestartRequiredMessageToJson; Map toJson() => _$RestartRequiredMessageToJson(this); @@ -42286,8 +40575,7 @@ class RestartRequiredMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.restartrequired, @@ -42351,8 +40639,7 @@ class ScheduledTaskEndedMessage { this.messageType, }); - factory ScheduledTaskEndedMessage.fromJson(Map json) => - _$ScheduledTaskEndedMessageFromJson(json); + factory ScheduledTaskEndedMessage.fromJson(Map json) => _$ScheduledTaskEndedMessageFromJson(json); static const toJsonFactory = _$ScheduledTaskEndedMessageToJson; Map toJson() => _$ScheduledTaskEndedMessageToJson(this); @@ -42368,8 +40655,7 @@ class ScheduledTaskEndedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtaskended, @@ -42381,8 +40667,7 @@ class ScheduledTaskEndedMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTaskEndedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -42440,8 +40725,7 @@ class ScheduledTasksInfoMessage { this.messageType, }); - factory ScheduledTasksInfoMessage.fromJson(Map json) => - _$ScheduledTasksInfoMessageFromJson(json); + factory ScheduledTasksInfoMessage.fromJson(Map json) => _$ScheduledTasksInfoMessageFromJson(json); static const toJsonFactory = _$ScheduledTasksInfoMessageToJson; Map toJson() => _$ScheduledTasksInfoMessageToJson(this); @@ -42457,8 +40741,7 @@ class ScheduledTasksInfoMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfo, @@ -42470,8 +40753,7 @@ class ScheduledTasksInfoMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTasksInfoMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -42540,8 +40822,7 @@ class ScheduledTasksInfoStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfostart, @@ -42553,8 +40834,7 @@ class ScheduledTasksInfoStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTasksInfoStartMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -42572,8 +40852,7 @@ class ScheduledTasksInfoStartMessage { runtimeType.hashCode; } -extension $ScheduledTasksInfoStartMessageExtension - on ScheduledTasksInfoStartMessage { +extension $ScheduledTasksInfoStartMessageExtension on ScheduledTasksInfoStartMessage { ScheduledTasksInfoStartMessage copyWith({ String? data, enums.SessionMessageType? messageType, @@ -42612,8 +40891,7 @@ class ScheduledTasksInfoStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfostop, @@ -42636,12 +40914,10 @@ class ScheduledTasksInfoStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } -extension $ScheduledTasksInfoStopMessageExtension - on ScheduledTasksInfoStopMessage { +extension $ScheduledTasksInfoStopMessageExtension on ScheduledTasksInfoStopMessage { ScheduledTasksInfoStopMessage copyWith({ enums.SessionMessageType? messageType, }) { @@ -42693,8 +40969,7 @@ class SearchHint { this.primaryImageAspectRatio, }); - factory SearchHint.fromJson(Map json) => - _$SearchHintFromJson(json); + factory SearchHint.fromJson(Map json) => _$SearchHintFromJson(json); static const toJsonFactory = _$SearchHintToJson; Map toJson() => _$SearchHintToJson(this); @@ -42777,12 +41052,9 @@ class SearchHint { bool operator ==(Object other) { return identical(this, other) || (other is SearchHint && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.matchedTerm, matchedTerm) || const DeepCollectionEquality().equals( other.matchedTerm, @@ -42828,8 +41100,7 @@ class SearchHint { other.backdropImageItemId, backdropImageItemId, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.isFolder, isFolder) || const DeepCollectionEquality().equals( other.isFolder, @@ -42855,12 +41126,9 @@ class SearchHint { other.endDate, endDate, )) && - (identical(other.series, series) || - const DeepCollectionEquality().equals(other.series, series)) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.series, series) || const DeepCollectionEquality().equals(other.series, series)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && (identical(other.albumId, albumId) || const DeepCollectionEquality().equals( other.albumId, @@ -43004,8 +41272,7 @@ extension $SearchHintExtension on SearchHint { episodeCount: episodeCount ?? this.episodeCount, channelId: channelId ?? this.channelId, channelName: channelName ?? this.channelName, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, ); } @@ -43046,32 +41313,16 @@ extension $SearchHintExtension on SearchHint { name: (name != null ? name.value : this.name), matchedTerm: (matchedTerm != null ? matchedTerm.value : this.matchedTerm), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - productionYear: (productionYear != null - ? productionYear.value - : this.productionYear), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - primaryImageTag: (primaryImageTag != null - ? primaryImageTag.value - : this.primaryImageTag), - thumbImageTag: (thumbImageTag != null - ? thumbImageTag.value - : this.thumbImageTag), - thumbImageItemId: (thumbImageItemId != null - ? thumbImageItemId.value - : this.thumbImageItemId), - backdropImageTag: (backdropImageTag != null - ? backdropImageTag.value - : this.backdropImageTag), - backdropImageItemId: (backdropImageItemId != null - ? backdropImageItemId.value - : this.backdropImageItemId), + productionYear: (productionYear != null ? productionYear.value : this.productionYear), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), + thumbImageTag: (thumbImageTag != null ? thumbImageTag.value : this.thumbImageTag), + thumbImageItemId: (thumbImageItemId != null ? thumbImageItemId.value : this.thumbImageItemId), + backdropImageTag: (backdropImageTag != null ? backdropImageTag.value : this.backdropImageTag), + backdropImageItemId: (backdropImageItemId != null ? backdropImageItemId.value : this.backdropImageItemId), type: (type != null ? type.value : this.type), isFolder: (isFolder != null ? isFolder.value : this.isFolder), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), mediaType: (mediaType != null ? mediaType.value : this.mediaType), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), @@ -43082,14 +41333,11 @@ extension $SearchHintExtension on SearchHint { albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), artists: (artists != null ? artists.value : this.artists), songCount: (songCount != null ? songCount.value : this.songCount), - episodeCount: (episodeCount != null - ? episodeCount.value - : this.episodeCount), + episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), channelId: (channelId != null ? channelId.value : this.channelId), channelName: (channelName != null ? channelName.value : this.channelName), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio), + primaryImageAspectRatio: + (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), ); } } @@ -43098,8 +41346,7 @@ extension $SearchHintExtension on SearchHint { class SearchHintResult { const SearchHintResult({this.searchHints, this.totalRecordCount}); - factory SearchHintResult.fromJson(Map json) => - _$SearchHintResultFromJson(json); + factory SearchHintResult.fromJson(Map json) => _$SearchHintResultFromJson(json); static const toJsonFactory = _$SearchHintResultToJson; Map toJson() => _$SearchHintResultToJson(this); @@ -43157,9 +41404,7 @@ extension $SearchHintResultExtension on SearchHintResult { }) { return SearchHintResult( searchHints: (searchHints != null ? searchHints.value : this.searchHints), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), ); } } @@ -43168,8 +41413,7 @@ extension $SearchHintResultExtension on SearchHintResult { class SeekRequestDto { const SeekRequestDto({this.positionTicks}); - factory SeekRequestDto.fromJson(Map json) => - _$SeekRequestDtoFromJson(json); + factory SeekRequestDto.fromJson(Map json) => _$SeekRequestDtoFromJson(json); static const toJsonFactory = _$SeekRequestDtoToJson; Map toJson() => _$SeekRequestDtoToJson(this); @@ -43193,8 +41437,7 @@ class SeekRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(positionTicks) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(positionTicks) ^ runtimeType.hashCode; } extension $SeekRequestDtoExtension on SeekRequestDto { @@ -43204,9 +41447,7 @@ extension $SeekRequestDtoExtension on SeekRequestDto { SeekRequestDto copyWithWrapped({Wrapped? positionTicks}) { return SeekRequestDto( - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), ); } } @@ -43222,8 +41463,7 @@ class SendCommand { this.emittedAt, }); - factory SendCommand.fromJson(Map json) => - _$SendCommandFromJson(json); + factory SendCommand.fromJson(Map json) => _$SendCommandFromJson(json); static const toJsonFactory = _$SendCommandToJson; Map toJson() => _$SendCommandToJson(this); @@ -43261,8 +41501,7 @@ class SendCommand { other.playlistItemId, playlistItemId, )) && - (identical(other.when, when) || - const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -43323,13 +41562,9 @@ extension $SendCommandExtension on SendCommand { }) { return SendCommand( groupId: (groupId != null ? groupId.value : this.groupId), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), command: (command != null ? command.value : this.command), emittedAt: (emittedAt != null ? emittedAt.value : this.emittedAt), ); @@ -43352,8 +41587,7 @@ class SeriesInfo { this.isAutomated, }); - factory SeriesInfo.fromJson(Map json) => - _$SeriesInfoFromJson(json); + factory SeriesInfo.fromJson(Map json) => _$SeriesInfoFromJson(json); static const toJsonFactory = _$SeriesInfoToJson; Map toJson() => _$SeriesInfoToJson(this); @@ -43386,15 +41620,13 @@ class SeriesInfo { bool operator ==(Object other) { return identical(this, other) || (other is SeriesInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -43410,8 +41642,7 @@ class SeriesInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -43497,25 +41728,15 @@ extension $SeriesInfoExtension on SeriesInfo { }) { return SeriesInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -43555,8 +41776,7 @@ class SeriesInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -43595,8 +41815,7 @@ extension $SeriesInfoRemoteSearchQueryExtension on SeriesInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -43609,12 +41828,9 @@ extension $SeriesInfoRemoteSearchQueryExtension on SeriesInfoRemoteSearchQuery { return SeriesInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -43644,8 +41860,7 @@ class SeriesTimerCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.seriestimercancelled, @@ -43657,8 +41872,7 @@ class SeriesTimerCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerCancelledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -43716,8 +41930,7 @@ class SeriesTimerCreatedMessage { this.messageType, }); - factory SeriesTimerCreatedMessage.fromJson(Map json) => - _$SeriesTimerCreatedMessageFromJson(json); + factory SeriesTimerCreatedMessage.fromJson(Map json) => _$SeriesTimerCreatedMessageFromJson(json); static const toJsonFactory = _$SeriesTimerCreatedMessageToJson; Map toJson() => _$SeriesTimerCreatedMessageToJson(this); @@ -43733,8 +41946,7 @@ class SeriesTimerCreatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.seriestimercreated, @@ -43746,8 +41958,7 @@ class SeriesTimerCreatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerCreatedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -43837,8 +42048,7 @@ class SeriesTimerInfoDto { this.parentPrimaryImageTag, }); - factory SeriesTimerInfoDto.fromJson(Map json) => - _$SeriesTimerInfoDtoFromJson(json); + factory SeriesTimerInfoDto.fromJson(Map json) => _$SeriesTimerInfoDtoFromJson(json); static const toJsonFactory = _$SeriesTimerInfoDtoToJson; Map toJson() => _$SeriesTimerInfoDtoToJson(this); @@ -43938,10 +42148,8 @@ class SeriesTimerInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerInfoDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -43982,8 +42190,7 @@ class SeriesTimerInfoDto { other.externalProgramId, externalProgramId, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -44072,8 +42279,7 @@ class SeriesTimerInfoDto { other.recordNewOnly, recordNewOnly, )) && - (identical(other.days, days) || - const DeepCollectionEquality().equals(other.days, days)) && + (identical(other.days, days) || const DeepCollectionEquality().equals(other.days, days)) && (identical(other.dayPattern, dayPattern) || const DeepCollectionEquality().equals( other.dayPattern, @@ -44198,8 +42404,7 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { channelId: channelId ?? this.channelId, externalChannelId: externalChannelId ?? this.externalChannelId, channelName: channelName ?? this.channelName, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, programId: programId ?? this.programId, externalProgramId: externalProgramId ?? this.externalProgramId, name: name ?? this.name, @@ -44212,14 +42417,11 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: - isPostPaddingRequired ?? this.isPostPaddingRequired, + parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: isPostPaddingRequired ?? this.isPostPaddingRequired, keepUntil: keepUntil ?? this.keepUntil, recordAnyTime: recordAnyTime ?? this.recordAnyTime, - skipEpisodesInLibrary: - skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, + skipEpisodesInLibrary: skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, recordAnyChannel: recordAnyChannel ?? this.recordAnyChannel, keepUpTo: keepUpTo ?? this.keepUpTo, recordNewOnly: recordNewOnly ?? this.recordNewOnly, @@ -44228,10 +42430,8 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { imageTags: imageTags ?? this.imageTags, parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: - parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: - parentPrimaryImageTag ?? this.parentPrimaryImageTag, + parentPrimaryImageItemId: parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: parentPrimaryImageTag ?? this.parentPrimaryImageTag, ); } @@ -44278,70 +42478,39 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { serverId: (serverId != null ? serverId.value : this.serverId), externalId: (externalId != null ? externalId.value : this.externalId), channelId: (channelId != null ? channelId.value : this.channelId), - externalChannelId: (externalChannelId != null - ? externalChannelId.value - : this.externalChannelId), + externalChannelId: (externalChannelId != null ? externalChannelId.value : this.externalChannelId), channelName: (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), + channelPrimaryImageTag: + (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), programId: (programId != null ? programId.value : this.programId), - externalProgramId: (externalProgramId != null - ? externalProgramId.value - : this.externalProgramId), + externalProgramId: (externalProgramId != null ? externalProgramId.value : this.externalProgramId), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), serviceName: (serviceName != null ? serviceName.value : this.serviceName), priority: (priority != null ? priority.value : this.priority), - prePaddingSeconds: (prePaddingSeconds != null - ? prePaddingSeconds.value - : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null - ? postPaddingSeconds.value - : this.postPaddingSeconds), - isPrePaddingRequired: (isPrePaddingRequired != null - ? isPrePaddingRequired.value - : this.isPrePaddingRequired), - parentBackdropItemId: (parentBackdropItemId != null - ? parentBackdropItemId.value - : this.parentBackdropItemId), - parentBackdropImageTags: (parentBackdropImageTags != null - ? parentBackdropImageTags.value - : this.parentBackdropImageTags), - isPostPaddingRequired: (isPostPaddingRequired != null - ? isPostPaddingRequired.value - : this.isPostPaddingRequired), + prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), + isPrePaddingRequired: (isPrePaddingRequired != null ? isPrePaddingRequired.value : this.isPrePaddingRequired), + parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), + parentBackdropImageTags: + (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), + isPostPaddingRequired: (isPostPaddingRequired != null ? isPostPaddingRequired.value : this.isPostPaddingRequired), keepUntil: (keepUntil != null ? keepUntil.value : this.keepUntil), - recordAnyTime: (recordAnyTime != null - ? recordAnyTime.value - : this.recordAnyTime), - skipEpisodesInLibrary: (skipEpisodesInLibrary != null - ? skipEpisodesInLibrary.value - : this.skipEpisodesInLibrary), - recordAnyChannel: (recordAnyChannel != null - ? recordAnyChannel.value - : this.recordAnyChannel), + recordAnyTime: (recordAnyTime != null ? recordAnyTime.value : this.recordAnyTime), + skipEpisodesInLibrary: (skipEpisodesInLibrary != null ? skipEpisodesInLibrary.value : this.skipEpisodesInLibrary), + recordAnyChannel: (recordAnyChannel != null ? recordAnyChannel.value : this.recordAnyChannel), keepUpTo: (keepUpTo != null ? keepUpTo.value : this.keepUpTo), - recordNewOnly: (recordNewOnly != null - ? recordNewOnly.value - : this.recordNewOnly), + recordNewOnly: (recordNewOnly != null ? recordNewOnly.value : this.recordNewOnly), days: (days != null ? days.value : this.days), dayPattern: (dayPattern != null ? dayPattern.value : this.dayPattern), imageTags: (imageTags != null ? imageTags.value : this.imageTags), - parentThumbItemId: (parentThumbItemId != null - ? parentThumbItemId.value - : this.parentThumbItemId), - parentThumbImageTag: (parentThumbImageTag != null - ? parentThumbImageTag.value - : this.parentThumbImageTag), - parentPrimaryImageItemId: (parentPrimaryImageItemId != null - ? parentPrimaryImageItemId.value - : this.parentPrimaryImageItemId), - parentPrimaryImageTag: (parentPrimaryImageTag != null - ? parentPrimaryImageTag.value - : this.parentPrimaryImageTag), + parentThumbItemId: (parentThumbItemId != null ? parentThumbItemId.value : this.parentThumbItemId), + parentThumbImageTag: (parentThumbImageTag != null ? parentThumbImageTag.value : this.parentThumbImageTag), + parentPrimaryImageItemId: + (parentPrimaryImageItemId != null ? parentPrimaryImageItemId.value : this.parentPrimaryImageItemId), + parentPrimaryImageTag: (parentPrimaryImageTag != null ? parentPrimaryImageTag.value : this.parentPrimaryImageTag), ); } } @@ -44376,8 +42545,7 @@ class SeriesTimerInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerInfoDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -44401,8 +42569,7 @@ class SeriesTimerInfoDtoQueryResult { runtimeType.hashCode; } -extension $SeriesTimerInfoDtoQueryResultExtension - on SeriesTimerInfoDtoQueryResult { +extension $SeriesTimerInfoDtoQueryResultExtension on SeriesTimerInfoDtoQueryResult { SeriesTimerInfoDtoQueryResult copyWith({ List? items, int? totalRecordCount, @@ -44422,9 +42589,7 @@ extension $SeriesTimerInfoDtoQueryResultExtension }) { return SeriesTimerInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -44491,8 +42656,7 @@ class ServerConfiguration { this.enableLegacyAuthorization, }); - factory ServerConfiguration.fromJson(Map json) => - _$ServerConfigurationFromJson(json); + factory ServerConfiguration.fromJson(Map json) => _$ServerConfigurationFromJson(json); static const toJsonFactory = _$ServerConfigurationToJson; Map toJson() => _$ServerConfigurationToJson(this); @@ -45130,94 +43294,62 @@ extension $ServerConfigurationExtension on ServerConfiguration { }) { return ServerConfiguration( logFileRetentionDays: logFileRetentionDays ?? this.logFileRetentionDays, - isStartupWizardCompleted: - isStartupWizardCompleted ?? this.isStartupWizardCompleted, + isStartupWizardCompleted: isStartupWizardCompleted ?? this.isStartupWizardCompleted, cachePath: cachePath ?? this.cachePath, previousVersion: previousVersion ?? this.previousVersion, previousVersionStr: previousVersionStr ?? this.previousVersionStr, enableMetrics: enableMetrics ?? this.enableMetrics, - enableNormalizedItemByNameIds: - enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, + enableNormalizedItemByNameIds: enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, isPortAuthorized: isPortAuthorized ?? this.isPortAuthorized, - quickConnectAvailable: - quickConnectAvailable ?? this.quickConnectAvailable, - enableCaseSensitiveItemIds: - enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, - disableLiveTvChannelUserDataName: - disableLiveTvChannelUserDataName ?? - this.disableLiveTvChannelUserDataName, + quickConnectAvailable: quickConnectAvailable ?? this.quickConnectAvailable, + enableCaseSensitiveItemIds: enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, + disableLiveTvChannelUserDataName: disableLiveTvChannelUserDataName ?? this.disableLiveTvChannelUserDataName, metadataPath: metadataPath ?? this.metadataPath, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - sortReplaceCharacters: - sortReplaceCharacters ?? this.sortReplaceCharacters, + sortReplaceCharacters: sortReplaceCharacters ?? this.sortReplaceCharacters, sortRemoveCharacters: sortRemoveCharacters ?? this.sortRemoveCharacters, sortRemoveWords: sortRemoveWords ?? this.sortRemoveWords, minResumePct: minResumePct ?? this.minResumePct, maxResumePct: maxResumePct ?? this.maxResumePct, - minResumeDurationSeconds: - minResumeDurationSeconds ?? this.minResumeDurationSeconds, + minResumeDurationSeconds: minResumeDurationSeconds ?? this.minResumeDurationSeconds, minAudiobookResume: minAudiobookResume ?? this.minAudiobookResume, maxAudiobookResume: maxAudiobookResume ?? this.maxAudiobookResume, - inactiveSessionThreshold: - inactiveSessionThreshold ?? this.inactiveSessionThreshold, + inactiveSessionThreshold: inactiveSessionThreshold ?? this.inactiveSessionThreshold, libraryMonitorDelay: libraryMonitorDelay ?? this.libraryMonitorDelay, - libraryUpdateDuration: - libraryUpdateDuration ?? this.libraryUpdateDuration, + libraryUpdateDuration: libraryUpdateDuration ?? this.libraryUpdateDuration, cacheSize: cacheSize ?? this.cacheSize, - imageSavingConvention: - imageSavingConvention ?? this.imageSavingConvention, + imageSavingConvention: imageSavingConvention ?? this.imageSavingConvention, metadataOptions: metadataOptions ?? this.metadataOptions, - skipDeserializationForBasicTypes: - skipDeserializationForBasicTypes ?? - this.skipDeserializationForBasicTypes, + skipDeserializationForBasicTypes: skipDeserializationForBasicTypes ?? this.skipDeserializationForBasicTypes, serverName: serverName ?? this.serverName, uICulture: uICulture ?? this.uICulture, saveMetadataHidden: saveMetadataHidden ?? this.saveMetadataHidden, contentTypes: contentTypes ?? this.contentTypes, - remoteClientBitrateLimit: - remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, + remoteClientBitrateLimit: remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, enableFolderView: enableFolderView ?? this.enableFolderView, enableGroupingMoviesIntoCollections: - enableGroupingMoviesIntoCollections ?? - this.enableGroupingMoviesIntoCollections, - enableGroupingShowsIntoCollections: - enableGroupingShowsIntoCollections ?? - this.enableGroupingShowsIntoCollections, - displaySpecialsWithinSeasons: - displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, + enableGroupingMoviesIntoCollections ?? this.enableGroupingMoviesIntoCollections, + enableGroupingShowsIntoCollections: enableGroupingShowsIntoCollections ?? this.enableGroupingShowsIntoCollections, + displaySpecialsWithinSeasons: displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, codecsUsed: codecsUsed ?? this.codecsUsed, pluginRepositories: pluginRepositories ?? this.pluginRepositories, - enableExternalContentInSuggestions: - enableExternalContentInSuggestions ?? - this.enableExternalContentInSuggestions, - imageExtractionTimeoutMs: - imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, + enableExternalContentInSuggestions: enableExternalContentInSuggestions ?? this.enableExternalContentInSuggestions, + imageExtractionTimeoutMs: imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, pathSubstitutions: pathSubstitutions ?? this.pathSubstitutions, - enableSlowResponseWarning: - enableSlowResponseWarning ?? this.enableSlowResponseWarning, - slowResponseThresholdMs: - slowResponseThresholdMs ?? this.slowResponseThresholdMs, + enableSlowResponseWarning: enableSlowResponseWarning ?? this.enableSlowResponseWarning, + slowResponseThresholdMs: slowResponseThresholdMs ?? this.slowResponseThresholdMs, corsHosts: corsHosts ?? this.corsHosts, - activityLogRetentionDays: - activityLogRetentionDays ?? this.activityLogRetentionDays, - libraryScanFanoutConcurrency: - libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, - libraryMetadataRefreshConcurrency: - libraryMetadataRefreshConcurrency ?? - this.libraryMetadataRefreshConcurrency, + activityLogRetentionDays: activityLogRetentionDays ?? this.activityLogRetentionDays, + libraryScanFanoutConcurrency: libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, + libraryMetadataRefreshConcurrency: libraryMetadataRefreshConcurrency ?? this.libraryMetadataRefreshConcurrency, allowClientLogUpload: allowClientLogUpload ?? this.allowClientLogUpload, dummyChapterDuration: dummyChapterDuration ?? this.dummyChapterDuration, - chapterImageResolution: - chapterImageResolution ?? this.chapterImageResolution, - parallelImageEncodingLimit: - parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, - castReceiverApplications: - castReceiverApplications ?? this.castReceiverApplications, + chapterImageResolution: chapterImageResolution ?? this.chapterImageResolution, + parallelImageEncodingLimit: parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, + castReceiverApplications: castReceiverApplications ?? this.castReceiverApplications, trickplayOptions: trickplayOptions ?? this.trickplayOptions, - enableLegacyAuthorization: - enableLegacyAuthorization ?? this.enableLegacyAuthorization, + enableLegacyAuthorization: enableLegacyAuthorization ?? this.enableLegacyAuthorization, ); } @@ -45280,168 +43412,94 @@ extension $ServerConfigurationExtension on ServerConfiguration { Wrapped? enableLegacyAuthorization, }) { return ServerConfiguration( - logFileRetentionDays: (logFileRetentionDays != null - ? logFileRetentionDays.value - : this.logFileRetentionDays), - isStartupWizardCompleted: (isStartupWizardCompleted != null - ? isStartupWizardCompleted.value - : this.isStartupWizardCompleted), + logFileRetentionDays: (logFileRetentionDays != null ? logFileRetentionDays.value : this.logFileRetentionDays), + isStartupWizardCompleted: + (isStartupWizardCompleted != null ? isStartupWizardCompleted.value : this.isStartupWizardCompleted), cachePath: (cachePath != null ? cachePath.value : this.cachePath), - previousVersion: (previousVersion != null - ? previousVersion.value - : this.previousVersion), - previousVersionStr: (previousVersionStr != null - ? previousVersionStr.value - : this.previousVersionStr), - enableMetrics: (enableMetrics != null - ? enableMetrics.value - : this.enableMetrics), + previousVersion: (previousVersion != null ? previousVersion.value : this.previousVersion), + previousVersionStr: (previousVersionStr != null ? previousVersionStr.value : this.previousVersionStr), + enableMetrics: (enableMetrics != null ? enableMetrics.value : this.enableMetrics), enableNormalizedItemByNameIds: (enableNormalizedItemByNameIds != null ? enableNormalizedItemByNameIds.value : this.enableNormalizedItemByNameIds), - isPortAuthorized: (isPortAuthorized != null - ? isPortAuthorized.value - : this.isPortAuthorized), - quickConnectAvailable: (quickConnectAvailable != null - ? quickConnectAvailable.value - : this.quickConnectAvailable), - enableCaseSensitiveItemIds: (enableCaseSensitiveItemIds != null - ? enableCaseSensitiveItemIds.value - : this.enableCaseSensitiveItemIds), - disableLiveTvChannelUserDataName: - (disableLiveTvChannelUserDataName != null + isPortAuthorized: (isPortAuthorized != null ? isPortAuthorized.value : this.isPortAuthorized), + quickConnectAvailable: (quickConnectAvailable != null ? quickConnectAvailable.value : this.quickConnectAvailable), + enableCaseSensitiveItemIds: + (enableCaseSensitiveItemIds != null ? enableCaseSensitiveItemIds.value : this.enableCaseSensitiveItemIds), + disableLiveTvChannelUserDataName: (disableLiveTvChannelUserDataName != null ? disableLiveTvChannelUserDataName.value : this.disableLiveTvChannelUserDataName), - metadataPath: (metadataPath != null - ? metadataPath.value - : this.metadataPath), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), - sortReplaceCharacters: (sortReplaceCharacters != null - ? sortReplaceCharacters.value - : this.sortReplaceCharacters), - sortRemoveCharacters: (sortRemoveCharacters != null - ? sortRemoveCharacters.value - : this.sortRemoveCharacters), - sortRemoveWords: (sortRemoveWords != null - ? sortRemoveWords.value - : this.sortRemoveWords), - minResumePct: (minResumePct != null - ? minResumePct.value - : this.minResumePct), - maxResumePct: (maxResumePct != null - ? maxResumePct.value - : this.maxResumePct), - minResumeDurationSeconds: (minResumeDurationSeconds != null - ? minResumeDurationSeconds.value - : this.minResumeDurationSeconds), - minAudiobookResume: (minAudiobookResume != null - ? minAudiobookResume.value - : this.minAudiobookResume), - maxAudiobookResume: (maxAudiobookResume != null - ? maxAudiobookResume.value - : this.maxAudiobookResume), - inactiveSessionThreshold: (inactiveSessionThreshold != null - ? inactiveSessionThreshold.value - : this.inactiveSessionThreshold), - libraryMonitorDelay: (libraryMonitorDelay != null - ? libraryMonitorDelay.value - : this.libraryMonitorDelay), - libraryUpdateDuration: (libraryUpdateDuration != null - ? libraryUpdateDuration.value - : this.libraryUpdateDuration), + metadataPath: (metadataPath != null ? metadataPath.value : this.metadataPath), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + sortReplaceCharacters: (sortReplaceCharacters != null ? sortReplaceCharacters.value : this.sortReplaceCharacters), + sortRemoveCharacters: (sortRemoveCharacters != null ? sortRemoveCharacters.value : this.sortRemoveCharacters), + sortRemoveWords: (sortRemoveWords != null ? sortRemoveWords.value : this.sortRemoveWords), + minResumePct: (minResumePct != null ? minResumePct.value : this.minResumePct), + maxResumePct: (maxResumePct != null ? maxResumePct.value : this.maxResumePct), + minResumeDurationSeconds: + (minResumeDurationSeconds != null ? minResumeDurationSeconds.value : this.minResumeDurationSeconds), + minAudiobookResume: (minAudiobookResume != null ? minAudiobookResume.value : this.minAudiobookResume), + maxAudiobookResume: (maxAudiobookResume != null ? maxAudiobookResume.value : this.maxAudiobookResume), + inactiveSessionThreshold: + (inactiveSessionThreshold != null ? inactiveSessionThreshold.value : this.inactiveSessionThreshold), + libraryMonitorDelay: (libraryMonitorDelay != null ? libraryMonitorDelay.value : this.libraryMonitorDelay), + libraryUpdateDuration: (libraryUpdateDuration != null ? libraryUpdateDuration.value : this.libraryUpdateDuration), cacheSize: (cacheSize != null ? cacheSize.value : this.cacheSize), - imageSavingConvention: (imageSavingConvention != null - ? imageSavingConvention.value - : this.imageSavingConvention), - metadataOptions: (metadataOptions != null - ? metadataOptions.value - : this.metadataOptions), - skipDeserializationForBasicTypes: - (skipDeserializationForBasicTypes != null + imageSavingConvention: (imageSavingConvention != null ? imageSavingConvention.value : this.imageSavingConvention), + metadataOptions: (metadataOptions != null ? metadataOptions.value : this.metadataOptions), + skipDeserializationForBasicTypes: (skipDeserializationForBasicTypes != null ? skipDeserializationForBasicTypes.value : this.skipDeserializationForBasicTypes), serverName: (serverName != null ? serverName.value : this.serverName), uICulture: (uICulture != null ? uICulture.value : this.uICulture), - saveMetadataHidden: (saveMetadataHidden != null - ? saveMetadataHidden.value - : this.saveMetadataHidden), - contentTypes: (contentTypes != null - ? contentTypes.value - : this.contentTypes), - remoteClientBitrateLimit: (remoteClientBitrateLimit != null - ? remoteClientBitrateLimit.value - : this.remoteClientBitrateLimit), - enableFolderView: (enableFolderView != null - ? enableFolderView.value - : this.enableFolderView), - enableGroupingMoviesIntoCollections: - (enableGroupingMoviesIntoCollections != null + saveMetadataHidden: (saveMetadataHidden != null ? saveMetadataHidden.value : this.saveMetadataHidden), + contentTypes: (contentTypes != null ? contentTypes.value : this.contentTypes), + remoteClientBitrateLimit: + (remoteClientBitrateLimit != null ? remoteClientBitrateLimit.value : this.remoteClientBitrateLimit), + enableFolderView: (enableFolderView != null ? enableFolderView.value : this.enableFolderView), + enableGroupingMoviesIntoCollections: (enableGroupingMoviesIntoCollections != null ? enableGroupingMoviesIntoCollections.value : this.enableGroupingMoviesIntoCollections), - enableGroupingShowsIntoCollections: - (enableGroupingShowsIntoCollections != null + enableGroupingShowsIntoCollections: (enableGroupingShowsIntoCollections != null ? enableGroupingShowsIntoCollections.value : this.enableGroupingShowsIntoCollections), displaySpecialsWithinSeasons: (displaySpecialsWithinSeasons != null ? displaySpecialsWithinSeasons.value : this.displaySpecialsWithinSeasons), codecsUsed: (codecsUsed != null ? codecsUsed.value : this.codecsUsed), - pluginRepositories: (pluginRepositories != null - ? pluginRepositories.value - : this.pluginRepositories), - enableExternalContentInSuggestions: - (enableExternalContentInSuggestions != null + pluginRepositories: (pluginRepositories != null ? pluginRepositories.value : this.pluginRepositories), + enableExternalContentInSuggestions: (enableExternalContentInSuggestions != null ? enableExternalContentInSuggestions.value : this.enableExternalContentInSuggestions), - imageExtractionTimeoutMs: (imageExtractionTimeoutMs != null - ? imageExtractionTimeoutMs.value - : this.imageExtractionTimeoutMs), - pathSubstitutions: (pathSubstitutions != null - ? pathSubstitutions.value - : this.pathSubstitutions), - enableSlowResponseWarning: (enableSlowResponseWarning != null - ? enableSlowResponseWarning.value - : this.enableSlowResponseWarning), - slowResponseThresholdMs: (slowResponseThresholdMs != null - ? slowResponseThresholdMs.value - : this.slowResponseThresholdMs), + imageExtractionTimeoutMs: + (imageExtractionTimeoutMs != null ? imageExtractionTimeoutMs.value : this.imageExtractionTimeoutMs), + pathSubstitutions: (pathSubstitutions != null ? pathSubstitutions.value : this.pathSubstitutions), + enableSlowResponseWarning: + (enableSlowResponseWarning != null ? enableSlowResponseWarning.value : this.enableSlowResponseWarning), + slowResponseThresholdMs: + (slowResponseThresholdMs != null ? slowResponseThresholdMs.value : this.slowResponseThresholdMs), corsHosts: (corsHosts != null ? corsHosts.value : this.corsHosts), - activityLogRetentionDays: (activityLogRetentionDays != null - ? activityLogRetentionDays.value - : this.activityLogRetentionDays), + activityLogRetentionDays: + (activityLogRetentionDays != null ? activityLogRetentionDays.value : this.activityLogRetentionDays), libraryScanFanoutConcurrency: (libraryScanFanoutConcurrency != null ? libraryScanFanoutConcurrency.value : this.libraryScanFanoutConcurrency), - libraryMetadataRefreshConcurrency: - (libraryMetadataRefreshConcurrency != null + libraryMetadataRefreshConcurrency: (libraryMetadataRefreshConcurrency != null ? libraryMetadataRefreshConcurrency.value : this.libraryMetadataRefreshConcurrency), - allowClientLogUpload: (allowClientLogUpload != null - ? allowClientLogUpload.value - : this.allowClientLogUpload), - dummyChapterDuration: (dummyChapterDuration != null - ? dummyChapterDuration.value - : this.dummyChapterDuration), - chapterImageResolution: (chapterImageResolution != null - ? chapterImageResolution.value - : this.chapterImageResolution), - parallelImageEncodingLimit: (parallelImageEncodingLimit != null - ? parallelImageEncodingLimit.value - : this.parallelImageEncodingLimit), - castReceiverApplications: (castReceiverApplications != null - ? castReceiverApplications.value - : this.castReceiverApplications), - trickplayOptions: (trickplayOptions != null - ? trickplayOptions.value - : this.trickplayOptions), - enableLegacyAuthorization: (enableLegacyAuthorization != null - ? enableLegacyAuthorization.value - : this.enableLegacyAuthorization), + allowClientLogUpload: (allowClientLogUpload != null ? allowClientLogUpload.value : this.allowClientLogUpload), + dummyChapterDuration: (dummyChapterDuration != null ? dummyChapterDuration.value : this.dummyChapterDuration), + chapterImageResolution: + (chapterImageResolution != null ? chapterImageResolution.value : this.chapterImageResolution), + parallelImageEncodingLimit: + (parallelImageEncodingLimit != null ? parallelImageEncodingLimit.value : this.parallelImageEncodingLimit), + castReceiverApplications: + (castReceiverApplications != null ? castReceiverApplications.value : this.castReceiverApplications), + trickplayOptions: (trickplayOptions != null ? trickplayOptions.value : this.trickplayOptions), + enableLegacyAuthorization: + (enableLegacyAuthorization != null ? enableLegacyAuthorization.value : this.enableLegacyAuthorization), ); } } @@ -45455,8 +43513,7 @@ class ServerDiscoveryInfo { this.endpointAddress, }); - factory ServerDiscoveryInfo.fromJson(Map json) => - _$ServerDiscoveryInfoFromJson(json); + factory ServerDiscoveryInfo.fromJson(Map json) => _$ServerDiscoveryInfoFromJson(json); static const toJsonFactory = _$ServerDiscoveryInfoToJson; Map toJson() => _$ServerDiscoveryInfoToJson(this); @@ -45480,10 +43537,8 @@ class ServerDiscoveryInfo { other.address, address, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.endpointAddress, endpointAddress) || const DeepCollectionEquality().equals( other.endpointAddress, @@ -45528,9 +43583,7 @@ extension $ServerDiscoveryInfoExtension on ServerDiscoveryInfo { address: (address != null ? address.value : this.address), id: (id != null ? id.value : this.id), name: (name != null ? name.value : this.name), - endpointAddress: (endpointAddress != null - ? endpointAddress.value - : this.endpointAddress), + endpointAddress: (endpointAddress != null ? endpointAddress.value : this.endpointAddress), ); } } @@ -45539,8 +43592,7 @@ extension $ServerDiscoveryInfoExtension on ServerDiscoveryInfo { class ServerRestartingMessage { const ServerRestartingMessage({this.messageId, this.messageType}); - factory ServerRestartingMessage.fromJson(Map json) => - _$ServerRestartingMessageFromJson(json); + factory ServerRestartingMessage.fromJson(Map json) => _$ServerRestartingMessageFromJson(json); static const toJsonFactory = _$ServerRestartingMessageToJson; Map toJson() => _$ServerRestartingMessageToJson(this); @@ -45554,8 +43606,7 @@ class ServerRestartingMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.serverrestarting, @@ -45615,8 +43666,7 @@ extension $ServerRestartingMessageExtension on ServerRestartingMessage { class ServerShuttingDownMessage { const ServerShuttingDownMessage({this.messageId, this.messageType}); - factory ServerShuttingDownMessage.fromJson(Map json) => - _$ServerShuttingDownMessageFromJson(json); + factory ServerShuttingDownMessage.fromJson(Map json) => _$ServerShuttingDownMessageFromJson(json); static const toJsonFactory = _$ServerShuttingDownMessageToJson; Map toJson() => _$ServerShuttingDownMessageToJson(this); @@ -45630,8 +43680,7 @@ class ServerShuttingDownMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.servershuttingdown, @@ -45721,8 +43770,7 @@ class SessionInfoDto { this.supportedCommands, }); - factory SessionInfoDto.fromJson(Map json) => - _$SessionInfoDtoFromJson(json); + factory SessionInfoDto.fromJson(Map json) => _$SessionInfoDtoFromJson(json); static const toJsonFactory = _$SessionInfoDtoToJson; Map toJson() => _$SessionInfoDtoToJson(this); @@ -45838,10 +43886,8 @@ class SessionInfoDto { other.playableMediaTypes, playableMediaTypes, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userName, userName) || const DeepCollectionEquality().equals( other.userName, @@ -46048,11 +44094,9 @@ extension $SessionInfoDtoExtension on SessionInfoDto { transcodingInfo: transcodingInfo ?? this.transcodingInfo, isActive: isActive ?? this.isActive, supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsRemoteControl: - supportsRemoteControl ?? this.supportsRemoteControl, + supportsRemoteControl: supportsRemoteControl ?? this.supportsRemoteControl, nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, - nowPlayingQueueFullItems: - nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, + nowPlayingQueueFullItems: nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, hasCustomDeviceName: hasCustomDeviceName ?? this.hasCustomDeviceName, playlistItemId: playlistItemId ?? this.playlistItemId, serverId: serverId ?? this.serverId, @@ -46094,72 +44138,35 @@ extension $SessionInfoDtoExtension on SessionInfoDto { }) { return SessionInfoDto( playState: (playState != null ? playState.value : this.playState), - additionalUsers: (additionalUsers != null - ? additionalUsers.value - : this.additionalUsers), - capabilities: (capabilities != null - ? capabilities.value - : this.capabilities), - remoteEndPoint: (remoteEndPoint != null - ? remoteEndPoint.value - : this.remoteEndPoint), - playableMediaTypes: (playableMediaTypes != null - ? playableMediaTypes.value - : this.playableMediaTypes), + additionalUsers: (additionalUsers != null ? additionalUsers.value : this.additionalUsers), + capabilities: (capabilities != null ? capabilities.value : this.capabilities), + remoteEndPoint: (remoteEndPoint != null ? remoteEndPoint.value : this.remoteEndPoint), + playableMediaTypes: (playableMediaTypes != null ? playableMediaTypes.value : this.playableMediaTypes), id: (id != null ? id.value : this.id), userId: (userId != null ? userId.value : this.userId), userName: (userName != null ? userName.value : this.userName), $Client: ($Client != null ? $Client.value : this.$Client), - lastActivityDate: (lastActivityDate != null - ? lastActivityDate.value - : this.lastActivityDate), - lastPlaybackCheckIn: (lastPlaybackCheckIn != null - ? lastPlaybackCheckIn.value - : this.lastPlaybackCheckIn), - lastPausedDate: (lastPausedDate != null - ? lastPausedDate.value - : this.lastPausedDate), + lastActivityDate: (lastActivityDate != null ? lastActivityDate.value : this.lastActivityDate), + lastPlaybackCheckIn: (lastPlaybackCheckIn != null ? lastPlaybackCheckIn.value : this.lastPlaybackCheckIn), + lastPausedDate: (lastPausedDate != null ? lastPausedDate.value : this.lastPausedDate), deviceName: (deviceName != null ? deviceName.value : this.deviceName), deviceType: (deviceType != null ? deviceType.value : this.deviceType), - nowPlayingItem: (nowPlayingItem != null - ? nowPlayingItem.value - : this.nowPlayingItem), - nowViewingItem: (nowViewingItem != null - ? nowViewingItem.value - : this.nowViewingItem), + nowPlayingItem: (nowPlayingItem != null ? nowPlayingItem.value : this.nowPlayingItem), + nowViewingItem: (nowViewingItem != null ? nowViewingItem.value : this.nowViewingItem), deviceId: (deviceId != null ? deviceId.value : this.deviceId), - applicationVersion: (applicationVersion != null - ? applicationVersion.value - : this.applicationVersion), - transcodingInfo: (transcodingInfo != null - ? transcodingInfo.value - : this.transcodingInfo), + applicationVersion: (applicationVersion != null ? applicationVersion.value : this.applicationVersion), + transcodingInfo: (transcodingInfo != null ? transcodingInfo.value : this.transcodingInfo), isActive: (isActive != null ? isActive.value : this.isActive), - supportsMediaControl: (supportsMediaControl != null - ? supportsMediaControl.value - : this.supportsMediaControl), - supportsRemoteControl: (supportsRemoteControl != null - ? supportsRemoteControl.value - : this.supportsRemoteControl), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), - nowPlayingQueueFullItems: (nowPlayingQueueFullItems != null - ? nowPlayingQueueFullItems.value - : this.nowPlayingQueueFullItems), - hasCustomDeviceName: (hasCustomDeviceName != null - ? hasCustomDeviceName.value - : this.hasCustomDeviceName), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + supportsMediaControl: (supportsMediaControl != null ? supportsMediaControl.value : this.supportsMediaControl), + supportsRemoteControl: (supportsRemoteControl != null ? supportsRemoteControl.value : this.supportsRemoteControl), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), + nowPlayingQueueFullItems: + (nowPlayingQueueFullItems != null ? nowPlayingQueueFullItems.value : this.nowPlayingQueueFullItems), + hasCustomDeviceName: (hasCustomDeviceName != null ? hasCustomDeviceName.value : this.hasCustomDeviceName), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), serverId: (serverId != null ? serverId.value : this.serverId), - userPrimaryImageTag: (userPrimaryImageTag != null - ? userPrimaryImageTag.value - : this.userPrimaryImageTag), - supportedCommands: (supportedCommands != null - ? supportedCommands.value - : this.supportedCommands), + userPrimaryImageTag: (userPrimaryImageTag != null ? userPrimaryImageTag.value : this.userPrimaryImageTag), + supportedCommands: (supportedCommands != null ? supportedCommands.value : this.supportedCommands), ); } } @@ -46168,8 +44175,7 @@ extension $SessionInfoDtoExtension on SessionInfoDto { class SessionsMessage { const SessionsMessage({this.data, this.messageId, this.messageType}); - factory SessionsMessage.fromJson(Map json) => - _$SessionsMessageFromJson(json); + factory SessionsMessage.fromJson(Map json) => _$SessionsMessageFromJson(json); static const toJsonFactory = _$SessionsMessageToJson; Map toJson() => _$SessionsMessageToJson(this); @@ -46185,8 +44191,7 @@ class SessionsMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessions, @@ -46198,8 +44203,7 @@ class SessionsMessage { bool operator ==(Object other) { return identical(this, other) || (other is SessionsMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -46253,8 +44257,7 @@ extension $SessionsMessageExtension on SessionsMessage { class SessionsStartMessage { const SessionsStartMessage({this.data, this.messageType}); - factory SessionsStartMessage.fromJson(Map json) => - _$SessionsStartMessageFromJson(json); + factory SessionsStartMessage.fromJson(Map json) => _$SessionsStartMessageFromJson(json); static const toJsonFactory = _$SessionsStartMessageToJson; Map toJson() => _$SessionsStartMessageToJson(this); @@ -46268,8 +44271,7 @@ class SessionsStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessionsstart, @@ -46281,8 +44283,7 @@ class SessionsStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is SessionsStartMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -46326,8 +44327,7 @@ extension $SessionsStartMessageExtension on SessionsStartMessage { class SessionsStopMessage { const SessionsStopMessage({this.messageType}); - factory SessionsStopMessage.fromJson(Map json) => - _$SessionsStopMessageFromJson(json); + factory SessionsStopMessage.fromJson(Map json) => _$SessionsStopMessageFromJson(json); static const toJsonFactory = _$SessionsStopMessageToJson; Map toJson() => _$SessionsStopMessageToJson(this); @@ -46339,8 +44339,7 @@ class SessionsStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessionsstop, @@ -46363,8 +44362,7 @@ class SessionsStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $SessionsStopMessageExtension on SessionsStopMessage { @@ -46385,8 +44383,7 @@ extension $SessionsStopMessageExtension on SessionsStopMessage { class SessionUserInfo { const SessionUserInfo({this.userId, this.userName}); - factory SessionUserInfo.fromJson(Map json) => - _$SessionUserInfoFromJson(json); + factory SessionUserInfo.fromJson(Map json) => _$SessionUserInfoFromJson(json); static const toJsonFactory = _$SessionUserInfoToJson; Map toJson() => _$SessionUserInfoToJson(this); @@ -46401,8 +44398,7 @@ class SessionUserInfo { bool operator ==(Object other) { return identical(this, other) || (other is SessionUserInfo && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userName, userName) || const DeepCollectionEquality().equals( other.userName, @@ -46447,8 +44443,7 @@ class SetChannelMappingDto { required this.providerChannelId, }); - factory SetChannelMappingDto.fromJson(Map json) => - _$SetChannelMappingDtoFromJson(json); + factory SetChannelMappingDto.fromJson(Map json) => _$SetChannelMappingDtoFromJson(json); static const toJsonFactory = _$SetChannelMappingDtoToJson; Map toJson() => _$SetChannelMappingDtoToJson(this); @@ -46513,12 +44508,8 @@ extension $SetChannelMappingDtoExtension on SetChannelMappingDto { }) { return SetChannelMappingDto( providerId: (providerId != null ? providerId.value : this.providerId), - tunerChannelId: (tunerChannelId != null - ? tunerChannelId.value - : this.tunerChannelId), - providerChannelId: (providerChannelId != null - ? providerChannelId.value - : this.providerChannelId), + tunerChannelId: (tunerChannelId != null ? tunerChannelId.value : this.tunerChannelId), + providerChannelId: (providerChannelId != null ? providerChannelId.value : this.providerChannelId), ); } } @@ -46527,8 +44518,7 @@ extension $SetChannelMappingDtoExtension on SetChannelMappingDto { class SetPlaylistItemRequestDto { const SetPlaylistItemRequestDto({this.playlistItemId}); - factory SetPlaylistItemRequestDto.fromJson(Map json) => - _$SetPlaylistItemRequestDtoFromJson(json); + factory SetPlaylistItemRequestDto.fromJson(Map json) => _$SetPlaylistItemRequestDtoFromJson(json); static const toJsonFactory = _$SetPlaylistItemRequestDtoToJson; Map toJson() => _$SetPlaylistItemRequestDtoToJson(this); @@ -46552,9 +44542,7 @@ class SetPlaylistItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(playlistItemId) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; } extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { @@ -46568,9 +44556,7 @@ extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { Wrapped? playlistItemId, }) { return SetPlaylistItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -46579,8 +44565,7 @@ extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { class SetRepeatModeRequestDto { const SetRepeatModeRequestDto({this.mode}); - factory SetRepeatModeRequestDto.fromJson(Map json) => - _$SetRepeatModeRequestDtoFromJson(json); + factory SetRepeatModeRequestDto.fromJson(Map json) => _$SetRepeatModeRequestDtoFromJson(json); static const toJsonFactory = _$SetRepeatModeRequestDtoToJson; Map toJson() => _$SetRepeatModeRequestDtoToJson(this); @@ -46598,16 +44583,14 @@ class SetRepeatModeRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is SetRepeatModeRequestDto && - (identical(other.mode, mode) || - const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $SetRepeatModeRequestDtoExtension on SetRepeatModeRequestDto { @@ -46628,8 +44611,7 @@ extension $SetRepeatModeRequestDtoExtension on SetRepeatModeRequestDto { class SetShuffleModeRequestDto { const SetShuffleModeRequestDto({this.mode}); - factory SetShuffleModeRequestDto.fromJson(Map json) => - _$SetShuffleModeRequestDtoFromJson(json); + factory SetShuffleModeRequestDto.fromJson(Map json) => _$SetShuffleModeRequestDtoFromJson(json); static const toJsonFactory = _$SetShuffleModeRequestDtoToJson; Map toJson() => _$SetShuffleModeRequestDtoToJson(this); @@ -46647,16 +44629,14 @@ class SetShuffleModeRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is SetShuffleModeRequestDto && - (identical(other.mode, mode) || - const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $SetShuffleModeRequestDtoExtension on SetShuffleModeRequestDto { @@ -46692,8 +44672,7 @@ class SongInfo { this.artists, }); - factory SongInfo.fromJson(Map json) => - _$SongInfoFromJson(json); + factory SongInfo.fromJson(Map json) => _$SongInfoFromJson(json); static const toJsonFactory = _$SongInfoToJson; Map toJson() => _$SongInfoToJson(this); @@ -46732,15 +44711,13 @@ class SongInfo { bool operator ==(Object other) { return identical(this, other) || (other is SongInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -46756,8 +44733,7 @@ class SongInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -46783,10 +44759,8 @@ class SongInfo { other.albumArtists, albumArtists, )) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && - (identical(other.artists, artists) || - const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -46864,29 +44838,17 @@ extension $SongInfoExtension on SongInfo { }) { return SongInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: (albumArtists != null - ? albumArtists.value - : this.albumArtists), + albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), album: (album != null ? album.value : this.album), artists: (artists != null ? artists.value : this.artists), ); @@ -46897,8 +44859,7 @@ extension $SongInfoExtension on SongInfo { class SpecialViewOptionDto { const SpecialViewOptionDto({this.name, this.id}); - factory SpecialViewOptionDto.fromJson(Map json) => - _$SpecialViewOptionDtoFromJson(json); + factory SpecialViewOptionDto.fromJson(Map json) => _$SpecialViewOptionDtoFromJson(json); static const toJsonFactory = _$SpecialViewOptionDtoToJson; Map toJson() => _$SpecialViewOptionDtoToJson(this); @@ -46913,10 +44874,8 @@ class SpecialViewOptionDto { bool operator ==(Object other) { return identical(this, other) || (other is SpecialViewOptionDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -46924,9 +44883,7 @@ class SpecialViewOptionDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(id) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $SpecialViewOptionDtoExtension on SpecialViewOptionDto { @@ -46954,8 +44911,7 @@ class StartupConfigurationDto { this.preferredMetadataLanguage, }); - factory StartupConfigurationDto.fromJson(Map json) => - _$StartupConfigurationDtoFromJson(json); + factory StartupConfigurationDto.fromJson(Map json) => _$StartupConfigurationDtoFromJson(json); static const toJsonFactory = _$StartupConfigurationDtoToJson; Map toJson() => _$StartupConfigurationDtoToJson(this); @@ -47022,8 +44978,7 @@ extension $StartupConfigurationDtoExtension on StartupConfigurationDto { serverName: serverName ?? this.serverName, uICulture: uICulture ?? this.uICulture, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, ); } @@ -47036,12 +44991,9 @@ extension $StartupConfigurationDtoExtension on StartupConfigurationDto { return StartupConfigurationDto( serverName: (serverName != null ? serverName.value : this.serverName), uICulture: (uICulture != null ? uICulture.value : this.uICulture), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), ); } } @@ -47053,8 +45005,7 @@ class StartupRemoteAccessDto { required this.enableAutomaticPortMapping, }); - factory StartupRemoteAccessDto.fromJson(Map json) => - _$StartupRemoteAccessDtoFromJson(json); + factory StartupRemoteAccessDto.fromJson(Map json) => _$StartupRemoteAccessDtoFromJson(json); static const toJsonFactory = _$StartupRemoteAccessDtoToJson; Map toJson() => _$StartupRemoteAccessDtoToJson(this); @@ -47102,8 +45053,7 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { }) { return StartupRemoteAccessDto( enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - enableAutomaticPortMapping: - enableAutomaticPortMapping ?? this.enableAutomaticPortMapping, + enableAutomaticPortMapping: enableAutomaticPortMapping ?? this.enableAutomaticPortMapping, ); } @@ -47112,12 +45062,9 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { Wrapped? enableAutomaticPortMapping, }) { return StartupRemoteAccessDto( - enableRemoteAccess: (enableRemoteAccess != null - ? enableRemoteAccess.value - : this.enableRemoteAccess), - enableAutomaticPortMapping: (enableAutomaticPortMapping != null - ? enableAutomaticPortMapping.value - : this.enableAutomaticPortMapping), + enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), + enableAutomaticPortMapping: + (enableAutomaticPortMapping != null ? enableAutomaticPortMapping.value : this.enableAutomaticPortMapping), ); } } @@ -47126,8 +45073,7 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { class StartupUserDto { const StartupUserDto({this.name, this.password}); - factory StartupUserDto.fromJson(Map json) => - _$StartupUserDtoFromJson(json); + factory StartupUserDto.fromJson(Map json) => _$StartupUserDtoFromJson(json); static const toJsonFactory = _$StartupUserDtoToJson; Map toJson() => _$StartupUserDtoToJson(this); @@ -47142,8 +45088,7 @@ class StartupUserDto { bool operator ==(Object other) { return identical(this, other) || (other is StartupUserDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || const DeepCollectionEquality().equals( other.password, @@ -47156,9 +45101,7 @@ class StartupUserDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(password) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(password) ^ runtimeType.hashCode; } extension $StartupUserDtoExtension on StartupUserDto { @@ -47194,8 +45137,7 @@ class SubtitleOptions { this.requirePerfectMatch, }); - factory SubtitleOptions.fromJson(Map json) => - _$SubtitleOptionsFromJson(json); + factory SubtitleOptions.fromJson(Map json) => _$SubtitleOptionsFromJson(json); static const toJsonFactory = _$SubtitleOptionsToJson; Map toJson() => _$SubtitleOptionsToJson(this); @@ -47320,21 +45262,14 @@ extension $SubtitleOptionsExtension on SubtitleOptions { bool? requirePerfectMatch, }) { return SubtitleOptions( - skipIfEmbeddedSubtitlesPresent: - skipIfEmbeddedSubtitlesPresent ?? this.skipIfEmbeddedSubtitlesPresent, - skipIfAudioTrackMatches: - skipIfAudioTrackMatches ?? this.skipIfAudioTrackMatches, + skipIfEmbeddedSubtitlesPresent: skipIfEmbeddedSubtitlesPresent ?? this.skipIfEmbeddedSubtitlesPresent, + skipIfAudioTrackMatches: skipIfAudioTrackMatches ?? this.skipIfAudioTrackMatches, downloadLanguages: downloadLanguages ?? this.downloadLanguages, - downloadMovieSubtitles: - downloadMovieSubtitles ?? this.downloadMovieSubtitles, - downloadEpisodeSubtitles: - downloadEpisodeSubtitles ?? this.downloadEpisodeSubtitles, - openSubtitlesUsername: - openSubtitlesUsername ?? this.openSubtitlesUsername, - openSubtitlesPasswordHash: - openSubtitlesPasswordHash ?? this.openSubtitlesPasswordHash, - isOpenSubtitleVipAccount: - isOpenSubtitleVipAccount ?? this.isOpenSubtitleVipAccount, + downloadMovieSubtitles: downloadMovieSubtitles ?? this.downloadMovieSubtitles, + downloadEpisodeSubtitles: downloadEpisodeSubtitles ?? this.downloadEpisodeSubtitles, + openSubtitlesUsername: openSubtitlesUsername ?? this.openSubtitlesUsername, + openSubtitlesPasswordHash: openSubtitlesPasswordHash ?? this.openSubtitlesPasswordHash, + isOpenSubtitleVipAccount: isOpenSubtitleVipAccount ?? this.isOpenSubtitleVipAccount, requirePerfectMatch: requirePerfectMatch ?? this.requirePerfectMatch, ); } @@ -47354,30 +45289,19 @@ extension $SubtitleOptionsExtension on SubtitleOptions { skipIfEmbeddedSubtitlesPresent: (skipIfEmbeddedSubtitlesPresent != null ? skipIfEmbeddedSubtitlesPresent.value : this.skipIfEmbeddedSubtitlesPresent), - skipIfAudioTrackMatches: (skipIfAudioTrackMatches != null - ? skipIfAudioTrackMatches.value - : this.skipIfAudioTrackMatches), - downloadLanguages: (downloadLanguages != null - ? downloadLanguages.value - : this.downloadLanguages), - downloadMovieSubtitles: (downloadMovieSubtitles != null - ? downloadMovieSubtitles.value - : this.downloadMovieSubtitles), - downloadEpisodeSubtitles: (downloadEpisodeSubtitles != null - ? downloadEpisodeSubtitles.value - : this.downloadEpisodeSubtitles), - openSubtitlesUsername: (openSubtitlesUsername != null - ? openSubtitlesUsername.value - : this.openSubtitlesUsername), - openSubtitlesPasswordHash: (openSubtitlesPasswordHash != null - ? openSubtitlesPasswordHash.value - : this.openSubtitlesPasswordHash), - isOpenSubtitleVipAccount: (isOpenSubtitleVipAccount != null - ? isOpenSubtitleVipAccount.value - : this.isOpenSubtitleVipAccount), - requirePerfectMatch: (requirePerfectMatch != null - ? requirePerfectMatch.value - : this.requirePerfectMatch), + skipIfAudioTrackMatches: + (skipIfAudioTrackMatches != null ? skipIfAudioTrackMatches.value : this.skipIfAudioTrackMatches), + downloadLanguages: (downloadLanguages != null ? downloadLanguages.value : this.downloadLanguages), + downloadMovieSubtitles: + (downloadMovieSubtitles != null ? downloadMovieSubtitles.value : this.downloadMovieSubtitles), + downloadEpisodeSubtitles: + (downloadEpisodeSubtitles != null ? downloadEpisodeSubtitles.value : this.downloadEpisodeSubtitles), + openSubtitlesUsername: (openSubtitlesUsername != null ? openSubtitlesUsername.value : this.openSubtitlesUsername), + openSubtitlesPasswordHash: + (openSubtitlesPasswordHash != null ? openSubtitlesPasswordHash.value : this.openSubtitlesPasswordHash), + isOpenSubtitleVipAccount: + (isOpenSubtitleVipAccount != null ? isOpenSubtitleVipAccount.value : this.isOpenSubtitleVipAccount), + requirePerfectMatch: (requirePerfectMatch != null ? requirePerfectMatch.value : this.requirePerfectMatch), ); } } @@ -47392,8 +45316,7 @@ class SubtitleProfile { this.container, }); - factory SubtitleProfile.fromJson(Map json) => - _$SubtitleProfileFromJson(json); + factory SubtitleProfile.fromJson(Map json) => _$SubtitleProfileFromJson(json); static const toJsonFactory = _$SubtitleProfileToJson; Map toJson() => _$SubtitleProfileToJson(this); @@ -47419,10 +45342,8 @@ class SubtitleProfile { bool operator ==(Object other) { return identical(this, other) || (other is SubtitleProfile && - (identical(other.format, format) || - const DeepCollectionEquality().equals(other.format, format)) && - (identical(other.method, method) || - const DeepCollectionEquality().equals(other.method, method)) && + (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.method, method) || const DeepCollectionEquality().equals(other.method, method)) && (identical(other.didlMode, didlMode) || const DeepCollectionEquality().equals( other.didlMode, @@ -47491,8 +45412,7 @@ extension $SubtitleProfileExtension on SubtitleProfile { class SyncPlayCommandMessage { const SyncPlayCommandMessage({this.data, this.messageId, this.messageType}); - factory SyncPlayCommandMessage.fromJson(Map json) => - _$SyncPlayCommandMessageFromJson(json); + factory SyncPlayCommandMessage.fromJson(Map json) => _$SyncPlayCommandMessageFromJson(json); static const toJsonFactory = _$SyncPlayCommandMessageToJson; Map toJson() => _$SyncPlayCommandMessageToJson(this); @@ -47508,8 +45428,7 @@ class SyncPlayCommandMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.syncplaycommand, @@ -47521,8 +45440,7 @@ class SyncPlayCommandMessage { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayCommandMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -47580,8 +45498,7 @@ class SyncPlayGroupDoesNotExistUpdate { _$SyncPlayGroupDoesNotExistUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupDoesNotExistUpdateToJson; - Map toJson() => - _$SyncPlayGroupDoesNotExistUpdateToJson(this); + Map toJson() => _$SyncPlayGroupDoesNotExistUpdateToJson(this); @JsonKey(name: 'GroupId', includeIfNull: false) final String? groupId; @@ -47596,10 +45513,11 @@ class SyncPlayGroupDoesNotExistUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson( - value, - enums.GroupUpdateType.groupdoesnotexist, - ); + ) => + groupUpdateTypeNullableFromJson( + value, + enums.GroupUpdateType.groupdoesnotexist, + ); static const fromJsonFactory = _$SyncPlayGroupDoesNotExistUpdateFromJson; @@ -47612,10 +45530,8 @@ class SyncPlayGroupDoesNotExistUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47629,8 +45545,7 @@ class SyncPlayGroupDoesNotExistUpdate { runtimeType.hashCode; } -extension $SyncPlayGroupDoesNotExistUpdateExtension - on SyncPlayGroupDoesNotExistUpdate { +extension $SyncPlayGroupDoesNotExistUpdateExtension on SyncPlayGroupDoesNotExistUpdate { SyncPlayGroupDoesNotExistUpdate copyWith({ String? groupId, String? data, @@ -47660,8 +45575,7 @@ extension $SyncPlayGroupDoesNotExistUpdateExtension class SyncPlayGroupJoinedUpdate { const SyncPlayGroupJoinedUpdate({this.groupId, this.data, this.type}); - factory SyncPlayGroupJoinedUpdate.fromJson(Map json) => - _$SyncPlayGroupJoinedUpdateFromJson(json); + factory SyncPlayGroupJoinedUpdate.fromJson(Map json) => _$SyncPlayGroupJoinedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupJoinedUpdateToJson; Map toJson() => _$SyncPlayGroupJoinedUpdateToJson(this); @@ -47693,10 +45607,8 @@ class SyncPlayGroupJoinedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47740,8 +45652,7 @@ extension $SyncPlayGroupJoinedUpdateExtension on SyncPlayGroupJoinedUpdate { class SyncPlayGroupLeftUpdate { const SyncPlayGroupLeftUpdate({this.groupId, this.data, this.type}); - factory SyncPlayGroupLeftUpdate.fromJson(Map json) => - _$SyncPlayGroupLeftUpdateFromJson(json); + factory SyncPlayGroupLeftUpdate.fromJson(Map json) => _$SyncPlayGroupLeftUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupLeftUpdateToJson; Map toJson() => _$SyncPlayGroupLeftUpdateToJson(this); @@ -47759,7 +45670,8 @@ class SyncPlayGroupLeftUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.groupleft); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.groupleft); static const fromJsonFactory = _$SyncPlayGroupLeftUpdateFromJson; @@ -47772,10 +45684,8 @@ class SyncPlayGroupLeftUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47823,8 +45733,7 @@ class SyncPlayGroupUpdateMessage { this.messageType, }); - factory SyncPlayGroupUpdateMessage.fromJson(Map json) => - _$SyncPlayGroupUpdateMessageFromJson(json); + factory SyncPlayGroupUpdateMessage.fromJson(Map json) => _$SyncPlayGroupUpdateMessageFromJson(json); static const toJsonFactory = _$SyncPlayGroupUpdateMessageToJson; Map toJson() => _$SyncPlayGroupUpdateMessageToJson(this); @@ -47840,8 +45749,7 @@ class SyncPlayGroupUpdateMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.syncplaygroupupdate, @@ -47853,8 +45761,7 @@ class SyncPlayGroupUpdateMessage { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayGroupUpdateMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -47910,11 +45817,11 @@ class SyncPlayLibraryAccessDeniedUpdate { factory SyncPlayLibraryAccessDeniedUpdate.fromJson( Map json, - ) => _$SyncPlayLibraryAccessDeniedUpdateFromJson(json); + ) => + _$SyncPlayLibraryAccessDeniedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayLibraryAccessDeniedUpdateToJson; - Map toJson() => - _$SyncPlayLibraryAccessDeniedUpdateToJson(this); + Map toJson() => _$SyncPlayLibraryAccessDeniedUpdateToJson(this); @JsonKey(name: 'GroupId', includeIfNull: false) final String? groupId; @@ -47929,10 +45836,11 @@ class SyncPlayLibraryAccessDeniedUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson( - value, - enums.GroupUpdateType.libraryaccessdenied, - ); + ) => + groupUpdateTypeNullableFromJson( + value, + enums.GroupUpdateType.libraryaccessdenied, + ); static const fromJsonFactory = _$SyncPlayLibraryAccessDeniedUpdateFromJson; @@ -47945,10 +45853,8 @@ class SyncPlayLibraryAccessDeniedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47962,8 +45868,7 @@ class SyncPlayLibraryAccessDeniedUpdate { runtimeType.hashCode; } -extension $SyncPlayLibraryAccessDeniedUpdateExtension - on SyncPlayLibraryAccessDeniedUpdate { +extension $SyncPlayLibraryAccessDeniedUpdateExtension on SyncPlayLibraryAccessDeniedUpdate { SyncPlayLibraryAccessDeniedUpdate copyWith({ String? groupId, String? data, @@ -47993,8 +45898,7 @@ extension $SyncPlayLibraryAccessDeniedUpdateExtension class SyncPlayNotInGroupUpdate { const SyncPlayNotInGroupUpdate({this.groupId, this.data, this.type}); - factory SyncPlayNotInGroupUpdate.fromJson(Map json) => - _$SyncPlayNotInGroupUpdateFromJson(json); + factory SyncPlayNotInGroupUpdate.fromJson(Map json) => _$SyncPlayNotInGroupUpdateFromJson(json); static const toJsonFactory = _$SyncPlayNotInGroupUpdateToJson; Map toJson() => _$SyncPlayNotInGroupUpdateToJson(this); @@ -48012,7 +45916,8 @@ class SyncPlayNotInGroupUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.notingroup); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.notingroup); static const fromJsonFactory = _$SyncPlayNotInGroupUpdateFromJson; @@ -48025,10 +45930,8 @@ class SyncPlayNotInGroupUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48072,8 +45975,7 @@ extension $SyncPlayNotInGroupUpdateExtension on SyncPlayNotInGroupUpdate { class SyncPlayPlayQueueUpdate { const SyncPlayPlayQueueUpdate({this.groupId, this.data, this.type}); - factory SyncPlayPlayQueueUpdate.fromJson(Map json) => - _$SyncPlayPlayQueueUpdateFromJson(json); + factory SyncPlayPlayQueueUpdate.fromJson(Map json) => _$SyncPlayPlayQueueUpdateFromJson(json); static const toJsonFactory = _$SyncPlayPlayQueueUpdateToJson; Map toJson() => _$SyncPlayPlayQueueUpdateToJson(this); @@ -48091,7 +45993,8 @@ class SyncPlayPlayQueueUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.playqueue); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.playqueue); static const fromJsonFactory = _$SyncPlayPlayQueueUpdateFromJson; @@ -48104,10 +46007,8 @@ class SyncPlayPlayQueueUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48151,8 +46052,7 @@ extension $SyncPlayPlayQueueUpdateExtension on SyncPlayPlayQueueUpdate { class SyncPlayQueueItem { const SyncPlayQueueItem({this.itemId, this.playlistItemId}); - factory SyncPlayQueueItem.fromJson(Map json) => - _$SyncPlayQueueItemFromJson(json); + factory SyncPlayQueueItem.fromJson(Map json) => _$SyncPlayQueueItemFromJson(json); static const toJsonFactory = _$SyncPlayQueueItemToJson; Map toJson() => _$SyncPlayQueueItemToJson(this); @@ -48167,8 +46067,7 @@ class SyncPlayQueueItem { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayQueueItem && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.playlistItemId, playlistItemId) || const DeepCollectionEquality().equals( other.playlistItemId, @@ -48200,9 +46099,7 @@ extension $SyncPlayQueueItemExtension on SyncPlayQueueItem { }) { return SyncPlayQueueItem( itemId: (itemId != null ? itemId.value : this.itemId), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -48211,8 +46108,7 @@ extension $SyncPlayQueueItemExtension on SyncPlayQueueItem { class SyncPlayStateUpdate { const SyncPlayStateUpdate({this.groupId, this.data, this.type}); - factory SyncPlayStateUpdate.fromJson(Map json) => - _$SyncPlayStateUpdateFromJson(json); + factory SyncPlayStateUpdate.fromJson(Map json) => _$SyncPlayStateUpdateFromJson(json); static const toJsonFactory = _$SyncPlayStateUpdateToJson; Map toJson() => _$SyncPlayStateUpdateToJson(this); @@ -48244,10 +46140,8 @@ class SyncPlayStateUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48291,8 +46185,7 @@ extension $SyncPlayStateUpdateExtension on SyncPlayStateUpdate { class SyncPlayUserJoinedUpdate { const SyncPlayUserJoinedUpdate({this.groupId, this.data, this.type}); - factory SyncPlayUserJoinedUpdate.fromJson(Map json) => - _$SyncPlayUserJoinedUpdateFromJson(json); + factory SyncPlayUserJoinedUpdate.fromJson(Map json) => _$SyncPlayUserJoinedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayUserJoinedUpdateToJson; Map toJson() => _$SyncPlayUserJoinedUpdateToJson(this); @@ -48310,7 +46203,8 @@ class SyncPlayUserJoinedUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userjoined); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userjoined); static const fromJsonFactory = _$SyncPlayUserJoinedUpdateFromJson; @@ -48323,10 +46217,8 @@ class SyncPlayUserJoinedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48370,8 +46262,7 @@ extension $SyncPlayUserJoinedUpdateExtension on SyncPlayUserJoinedUpdate { class SyncPlayUserLeftUpdate { const SyncPlayUserLeftUpdate({this.groupId, this.data, this.type}); - factory SyncPlayUserLeftUpdate.fromJson(Map json) => - _$SyncPlayUserLeftUpdateFromJson(json); + factory SyncPlayUserLeftUpdate.fromJson(Map json) => _$SyncPlayUserLeftUpdateFromJson(json); static const toJsonFactory = _$SyncPlayUserLeftUpdateToJson; Map toJson() => _$SyncPlayUserLeftUpdateToJson(this); @@ -48389,7 +46280,8 @@ class SyncPlayUserLeftUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userleft); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userleft); static const fromJsonFactory = _$SyncPlayUserLeftUpdateFromJson; @@ -48402,10 +46294,8 @@ class SyncPlayUserLeftUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48477,8 +46367,7 @@ class SystemInfo { this.systemArchitecture, }); - factory SystemInfo.fromJson(Map json) => - _$SystemInfoFromJson(json); + factory SystemInfo.fromJson(Map json) => _$SystemInfoFromJson(json); static const toJsonFactory = _$SystemInfoToJson; Map toJson() => _$SystemInfoToJson(this); @@ -48598,8 +46487,7 @@ class SystemInfo { other.operatingSystem, operatingSystem, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( other.startupWizardCompleted, @@ -48785,18 +46673,14 @@ extension $SystemInfoExtension on SystemInfo { productName: productName ?? this.productName, operatingSystem: operatingSystem ?? this.operatingSystem, id: id ?? this.id, - startupWizardCompleted: - startupWizardCompleted ?? this.startupWizardCompleted, - operatingSystemDisplayName: - operatingSystemDisplayName ?? this.operatingSystemDisplayName, + startupWizardCompleted: startupWizardCompleted ?? this.startupWizardCompleted, + operatingSystemDisplayName: operatingSystemDisplayName ?? this.operatingSystemDisplayName, packageName: packageName ?? this.packageName, hasPendingRestart: hasPendingRestart ?? this.hasPendingRestart, isShuttingDown: isShuttingDown ?? this.isShuttingDown, - supportsLibraryMonitor: - supportsLibraryMonitor ?? this.supportsLibraryMonitor, + supportsLibraryMonitor: supportsLibraryMonitor ?? this.supportsLibraryMonitor, webSocketPortNumber: webSocketPortNumber ?? this.webSocketPortNumber, - completedInstallations: - completedInstallations ?? this.completedInstallations, + completedInstallations: completedInstallations ?? this.completedInstallations, canSelfRestart: canSelfRestart ?? this.canSelfRestart, canLaunchWebBrowser: canLaunchWebBrowser ?? this.canLaunchWebBrowser, programDataPath: programDataPath ?? this.programDataPath, @@ -48806,8 +46690,7 @@ extension $SystemInfoExtension on SystemInfo { logPath: logPath ?? this.logPath, internalMetadataPath: internalMetadataPath ?? this.internalMetadataPath, transcodingTempPath: transcodingTempPath ?? this.transcodingTempPath, - castReceiverApplications: - castReceiverApplications ?? this.castReceiverApplications, + castReceiverApplications: castReceiverApplications ?? this.castReceiverApplications, hasUpdateAvailable: hasUpdateAvailable ?? this.hasUpdateAvailable, encoderLocation: encoderLocation ?? this.encoderLocation, systemArchitecture: systemArchitecture ?? this.systemArchitecture, @@ -48844,71 +46727,38 @@ extension $SystemInfoExtension on SystemInfo { Wrapped? systemArchitecture, }) { return SystemInfo( - localAddress: (localAddress != null - ? localAddress.value - : this.localAddress), + localAddress: (localAddress != null ? localAddress.value : this.localAddress), serverName: (serverName != null ? serverName.value : this.serverName), version: (version != null ? version.value : this.version), productName: (productName != null ? productName.value : this.productName), - operatingSystem: (operatingSystem != null - ? operatingSystem.value - : this.operatingSystem), + operatingSystem: (operatingSystem != null ? operatingSystem.value : this.operatingSystem), id: (id != null ? id.value : this.id), - startupWizardCompleted: (startupWizardCompleted != null - ? startupWizardCompleted.value - : this.startupWizardCompleted), - operatingSystemDisplayName: (operatingSystemDisplayName != null - ? operatingSystemDisplayName.value - : this.operatingSystemDisplayName), + startupWizardCompleted: + (startupWizardCompleted != null ? startupWizardCompleted.value : this.startupWizardCompleted), + operatingSystemDisplayName: + (operatingSystemDisplayName != null ? operatingSystemDisplayName.value : this.operatingSystemDisplayName), packageName: (packageName != null ? packageName.value : this.packageName), - hasPendingRestart: (hasPendingRestart != null - ? hasPendingRestart.value - : this.hasPendingRestart), - isShuttingDown: (isShuttingDown != null - ? isShuttingDown.value - : this.isShuttingDown), - supportsLibraryMonitor: (supportsLibraryMonitor != null - ? supportsLibraryMonitor.value - : this.supportsLibraryMonitor), - webSocketPortNumber: (webSocketPortNumber != null - ? webSocketPortNumber.value - : this.webSocketPortNumber), - completedInstallations: (completedInstallations != null - ? completedInstallations.value - : this.completedInstallations), - canSelfRestart: (canSelfRestart != null - ? canSelfRestart.value - : this.canSelfRestart), - canLaunchWebBrowser: (canLaunchWebBrowser != null - ? canLaunchWebBrowser.value - : this.canLaunchWebBrowser), - programDataPath: (programDataPath != null - ? programDataPath.value - : this.programDataPath), + hasPendingRestart: (hasPendingRestart != null ? hasPendingRestart.value : this.hasPendingRestart), + isShuttingDown: (isShuttingDown != null ? isShuttingDown.value : this.isShuttingDown), + supportsLibraryMonitor: + (supportsLibraryMonitor != null ? supportsLibraryMonitor.value : this.supportsLibraryMonitor), + webSocketPortNumber: (webSocketPortNumber != null ? webSocketPortNumber.value : this.webSocketPortNumber), + completedInstallations: + (completedInstallations != null ? completedInstallations.value : this.completedInstallations), + canSelfRestart: (canSelfRestart != null ? canSelfRestart.value : this.canSelfRestart), + canLaunchWebBrowser: (canLaunchWebBrowser != null ? canLaunchWebBrowser.value : this.canLaunchWebBrowser), + programDataPath: (programDataPath != null ? programDataPath.value : this.programDataPath), webPath: (webPath != null ? webPath.value : this.webPath), - itemsByNamePath: (itemsByNamePath != null - ? itemsByNamePath.value - : this.itemsByNamePath), + itemsByNamePath: (itemsByNamePath != null ? itemsByNamePath.value : this.itemsByNamePath), cachePath: (cachePath != null ? cachePath.value : this.cachePath), logPath: (logPath != null ? logPath.value : this.logPath), - internalMetadataPath: (internalMetadataPath != null - ? internalMetadataPath.value - : this.internalMetadataPath), - transcodingTempPath: (transcodingTempPath != null - ? transcodingTempPath.value - : this.transcodingTempPath), - castReceiverApplications: (castReceiverApplications != null - ? castReceiverApplications.value - : this.castReceiverApplications), - hasUpdateAvailable: (hasUpdateAvailable != null - ? hasUpdateAvailable.value - : this.hasUpdateAvailable), - encoderLocation: (encoderLocation != null - ? encoderLocation.value - : this.encoderLocation), - systemArchitecture: (systemArchitecture != null - ? systemArchitecture.value - : this.systemArchitecture), + internalMetadataPath: (internalMetadataPath != null ? internalMetadataPath.value : this.internalMetadataPath), + transcodingTempPath: (transcodingTempPath != null ? transcodingTempPath.value : this.transcodingTempPath), + castReceiverApplications: + (castReceiverApplications != null ? castReceiverApplications.value : this.castReceiverApplications), + hasUpdateAvailable: (hasUpdateAvailable != null ? hasUpdateAvailable.value : this.hasUpdateAvailable), + encoderLocation: (encoderLocation != null ? encoderLocation.value : this.encoderLocation), + systemArchitecture: (systemArchitecture != null ? systemArchitecture.value : this.systemArchitecture), ); } } @@ -48926,8 +46776,7 @@ class SystemStorageDto { this.libraries, }); - factory SystemStorageDto.fromJson(Map json) => - _$SystemStorageDtoFromJson(json); + factory SystemStorageDto.fromJson(Map json) => _$SystemStorageDtoFromJson(json); static const toJsonFactory = _$SystemStorageDtoToJson; Map toJson() => _$SystemStorageDtoToJson(this); @@ -49033,10 +46882,8 @@ extension $SystemStorageDtoExtension on SystemStorageDto { imageCacheFolder: imageCacheFolder ?? this.imageCacheFolder, cacheFolder: cacheFolder ?? this.cacheFolder, logFolder: logFolder ?? this.logFolder, - internalMetadataFolder: - internalMetadataFolder ?? this.internalMetadataFolder, - transcodingTempFolder: - transcodingTempFolder ?? this.transcodingTempFolder, + internalMetadataFolder: internalMetadataFolder ?? this.internalMetadataFolder, + transcodingTempFolder: transcodingTempFolder ?? this.transcodingTempFolder, libraries: libraries ?? this.libraries, ); } @@ -49052,21 +46899,14 @@ extension $SystemStorageDtoExtension on SystemStorageDto { Wrapped?>? libraries, }) { return SystemStorageDto( - programDataFolder: (programDataFolder != null - ? programDataFolder.value - : this.programDataFolder), + programDataFolder: (programDataFolder != null ? programDataFolder.value : this.programDataFolder), webFolder: (webFolder != null ? webFolder.value : this.webFolder), - imageCacheFolder: (imageCacheFolder != null - ? imageCacheFolder.value - : this.imageCacheFolder), + imageCacheFolder: (imageCacheFolder != null ? imageCacheFolder.value : this.imageCacheFolder), cacheFolder: (cacheFolder != null ? cacheFolder.value : this.cacheFolder), logFolder: (logFolder != null ? logFolder.value : this.logFolder), - internalMetadataFolder: (internalMetadataFolder != null - ? internalMetadataFolder.value - : this.internalMetadataFolder), - transcodingTempFolder: (transcodingTempFolder != null - ? transcodingTempFolder.value - : this.transcodingTempFolder), + internalMetadataFolder: + (internalMetadataFolder != null ? internalMetadataFolder.value : this.internalMetadataFolder), + transcodingTempFolder: (transcodingTempFolder != null ? transcodingTempFolder.value : this.transcodingTempFolder), libraries: (libraries != null ? libraries.value : this.libraries), ); } @@ -49087,8 +46927,7 @@ class TaskInfo { this.key, }); - factory TaskInfo.fromJson(Map json) => - _$TaskInfoFromJson(json); + factory TaskInfo.fromJson(Map json) => _$TaskInfoFromJson(json); static const toJsonFactory = _$TaskInfoToJson; Map toJson() => _$TaskInfoToJson(this); @@ -49128,10 +46967,8 @@ class TaskInfo { bool operator ==(Object other) { return identical(this, other) || (other is TaskInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.state, state) || - const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && (identical( other.currentProgressPercentage, currentProgressPercentage, @@ -49140,8 +46977,7 @@ class TaskInfo { other.currentProgressPercentage, currentProgressPercentage, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastExecutionResult, lastExecutionResult) || const DeepCollectionEquality().equals( other.lastExecutionResult, @@ -49167,8 +47003,7 @@ class TaskInfo { other.isHidden, isHidden, )) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key))); + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key))); } @override @@ -49205,8 +47040,7 @@ extension $TaskInfoExtension on TaskInfo { return TaskInfo( name: name ?? this.name, state: state ?? this.state, - currentProgressPercentage: - currentProgressPercentage ?? this.currentProgressPercentage, + currentProgressPercentage: currentProgressPercentage ?? this.currentProgressPercentage, id: id ?? this.id, lastExecutionResult: lastExecutionResult ?? this.lastExecutionResult, triggers: triggers ?? this.triggers, @@ -49232,13 +47066,10 @@ extension $TaskInfoExtension on TaskInfo { return TaskInfo( name: (name != null ? name.value : this.name), state: (state != null ? state.value : this.state), - currentProgressPercentage: (currentProgressPercentage != null - ? currentProgressPercentage.value - : this.currentProgressPercentage), + currentProgressPercentage: + (currentProgressPercentage != null ? currentProgressPercentage.value : this.currentProgressPercentage), id: (id != null ? id.value : this.id), - lastExecutionResult: (lastExecutionResult != null - ? lastExecutionResult.value - : this.lastExecutionResult), + lastExecutionResult: (lastExecutionResult != null ? lastExecutionResult.value : this.lastExecutionResult), triggers: (triggers != null ? triggers.value : this.triggers), description: (description != null ? description.value : this.description), category: (category != null ? category.value : this.category), @@ -49261,8 +47092,7 @@ class TaskResult { this.longErrorMessage, }); - factory TaskResult.fromJson(Map json) => - _$TaskResultFromJson(json); + factory TaskResult.fromJson(Map json) => _$TaskResultFromJson(json); static const toJsonFactory = _$TaskResultToJson; Map toJson() => _$TaskResultToJson(this); @@ -49304,14 +47134,10 @@ class TaskResult { other.endTimeUtc, endTimeUtc, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.errorMessage, errorMessage) || const DeepCollectionEquality().equals( other.errorMessage, @@ -49374,20 +47200,14 @@ extension $TaskResultExtension on TaskResult { Wrapped? longErrorMessage, }) { return TaskResult( - startTimeUtc: (startTimeUtc != null - ? startTimeUtc.value - : this.startTimeUtc), + startTimeUtc: (startTimeUtc != null ? startTimeUtc.value : this.startTimeUtc), endTimeUtc: (endTimeUtc != null ? endTimeUtc.value : this.endTimeUtc), status: (status != null ? status.value : this.status), name: (name != null ? name.value : this.name), key: (key != null ? key.value : this.key), id: (id != null ? id.value : this.id), - errorMessage: (errorMessage != null - ? errorMessage.value - : this.errorMessage), - longErrorMessage: (longErrorMessage != null - ? longErrorMessage.value - : this.longErrorMessage), + errorMessage: (errorMessage != null ? errorMessage.value : this.errorMessage), + longErrorMessage: (longErrorMessage != null ? longErrorMessage.value : this.longErrorMessage), ); } } @@ -49402,8 +47222,7 @@ class TaskTriggerInfo { this.maxRuntimeTicks, }); - factory TaskTriggerInfo.fromJson(Map json) => - _$TaskTriggerInfoFromJson(json); + factory TaskTriggerInfo.fromJson(Map json) => _$TaskTriggerInfoFromJson(json); static const toJsonFactory = _$TaskTriggerInfoToJson; Map toJson() => _$TaskTriggerInfoToJson(this); @@ -49434,8 +47253,7 @@ class TaskTriggerInfo { bool operator ==(Object other) { return identical(this, other) || (other is TaskTriggerInfo && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.timeOfDayTicks, timeOfDayTicks) || const DeepCollectionEquality().equals( other.timeOfDayTicks, @@ -49497,16 +47315,10 @@ extension $TaskTriggerInfoExtension on TaskTriggerInfo { }) { return TaskTriggerInfo( type: (type != null ? type.value : this.type), - timeOfDayTicks: (timeOfDayTicks != null - ? timeOfDayTicks.value - : this.timeOfDayTicks), - intervalTicks: (intervalTicks != null - ? intervalTicks.value - : this.intervalTicks), + timeOfDayTicks: (timeOfDayTicks != null ? timeOfDayTicks.value : this.timeOfDayTicks), + intervalTicks: (intervalTicks != null ? intervalTicks.value : this.intervalTicks), dayOfWeek: (dayOfWeek != null ? dayOfWeek.value : this.dayOfWeek), - maxRuntimeTicks: (maxRuntimeTicks != null - ? maxRuntimeTicks.value - : this.maxRuntimeTicks), + maxRuntimeTicks: (maxRuntimeTicks != null ? maxRuntimeTicks.value : this.maxRuntimeTicks), ); } } @@ -49520,8 +47332,7 @@ class ThemeMediaResult { this.ownerId, }); - factory ThemeMediaResult.fromJson(Map json) => - _$ThemeMediaResultFromJson(json); + factory ThemeMediaResult.fromJson(Map json) => _$ThemeMediaResultFromJson(json); static const toJsonFactory = _$ThemeMediaResultToJson; Map toJson() => _$ThemeMediaResultToJson(this); @@ -49540,8 +47351,7 @@ class ThemeMediaResult { bool operator ==(Object other) { return identical(this, other) || (other is ThemeMediaResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -49552,8 +47362,7 @@ class ThemeMediaResult { other.startIndex, startIndex, )) && - (identical(other.ownerId, ownerId) || - const DeepCollectionEquality().equals(other.ownerId, ownerId))); + (identical(other.ownerId, ownerId) || const DeepCollectionEquality().equals(other.ownerId, ownerId))); } @override @@ -49591,9 +47400,7 @@ extension $ThemeMediaResultExtension on ThemeMediaResult { }) { return ThemeMediaResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ownerId: (ownerId != null ? ownerId.value : this.ownerId), ); @@ -49604,8 +47411,7 @@ extension $ThemeMediaResultExtension on ThemeMediaResult { class TimerCancelledMessage { const TimerCancelledMessage({this.data, this.messageId, this.messageType}); - factory TimerCancelledMessage.fromJson(Map json) => - _$TimerCancelledMessageFromJson(json); + factory TimerCancelledMessage.fromJson(Map json) => _$TimerCancelledMessageFromJson(json); static const toJsonFactory = _$TimerCancelledMessageToJson; Map toJson() => _$TimerCancelledMessageToJson(this); @@ -49621,8 +47427,7 @@ class TimerCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.timercancelled, @@ -49634,8 +47439,7 @@ class TimerCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is TimerCancelledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -49689,8 +47493,7 @@ extension $TimerCancelledMessageExtension on TimerCancelledMessage { class TimerCreatedMessage { const TimerCreatedMessage({this.data, this.messageId, this.messageType}); - factory TimerCreatedMessage.fromJson(Map json) => - _$TimerCreatedMessageFromJson(json); + factory TimerCreatedMessage.fromJson(Map json) => _$TimerCreatedMessageFromJson(json); static const toJsonFactory = _$TimerCreatedMessageToJson; Map toJson() => _$TimerCreatedMessageToJson(this); @@ -49706,8 +47509,7 @@ class TimerCreatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.timercreated, @@ -49719,8 +47521,7 @@ class TimerCreatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is TimerCreatedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -49774,8 +47575,7 @@ extension $TimerCreatedMessageExtension on TimerCreatedMessage { class TimerEventInfo { const TimerEventInfo({this.id, this.programId}); - factory TimerEventInfo.fromJson(Map json) => - _$TimerEventInfoFromJson(json); + factory TimerEventInfo.fromJson(Map json) => _$TimerEventInfoFromJson(json); static const toJsonFactory = _$TimerEventInfoToJson; Map toJson() => _$TimerEventInfoToJson(this); @@ -49790,8 +47590,7 @@ class TimerEventInfo { bool operator ==(Object other) { return identical(this, other) || (other is TimerEventInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.programId, programId) || const DeepCollectionEquality().equals( other.programId, @@ -49804,9 +47603,7 @@ class TimerEventInfo { @override int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(programId) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(id) ^ const DeepCollectionEquality().hash(programId) ^ runtimeType.hashCode; } extension $TimerEventInfoExtension on TimerEventInfo { @@ -49861,8 +47658,7 @@ class TimerInfoDto { this.programInfo, }); - factory TimerInfoDto.fromJson(Map json) => - _$TimerInfoDtoFromJson(json); + factory TimerInfoDto.fromJson(Map json) => _$TimerInfoDtoFromJson(json); static const toJsonFactory = _$TimerInfoDtoToJson; Map toJson() => _$TimerInfoDtoToJson(this); @@ -49943,10 +47739,8 @@ class TimerInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is TimerInfoDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -49987,8 +47781,7 @@ class TimerInfoDto { other.externalProgramId, externalProgramId, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -50052,8 +47845,7 @@ class TimerInfoDto { other.keepUntil, keepUntil, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.seriesTimerId, seriesTimerId) || const DeepCollectionEquality().equals( other.seriesTimerId, @@ -50151,8 +47943,7 @@ extension $TimerInfoDtoExtension on TimerInfoDto { channelId: channelId ?? this.channelId, externalChannelId: externalChannelId ?? this.externalChannelId, channelName: channelName ?? this.channelName, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, programId: programId ?? this.programId, externalProgramId: externalProgramId ?? this.externalProgramId, name: name ?? this.name, @@ -50165,15 +47956,12 @@ extension $TimerInfoDtoExtension on TimerInfoDto { postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: - isPostPaddingRequired ?? this.isPostPaddingRequired, + parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: isPostPaddingRequired ?? this.isPostPaddingRequired, keepUntil: keepUntil ?? this.keepUntil, status: status ?? this.status, seriesTimerId: seriesTimerId ?? this.seriesTimerId, - externalSeriesTimerId: - externalSeriesTimerId ?? this.externalSeriesTimerId, + externalSeriesTimerId: externalSeriesTimerId ?? this.externalSeriesTimerId, runTimeTicks: runTimeTicks ?? this.runTimeTicks, programInfo: programInfo ?? this.programInfo, ); @@ -50215,52 +48003,30 @@ extension $TimerInfoDtoExtension on TimerInfoDto { serverId: (serverId != null ? serverId.value : this.serverId), externalId: (externalId != null ? externalId.value : this.externalId), channelId: (channelId != null ? channelId.value : this.channelId), - externalChannelId: (externalChannelId != null - ? externalChannelId.value - : this.externalChannelId), + externalChannelId: (externalChannelId != null ? externalChannelId.value : this.externalChannelId), channelName: (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), + channelPrimaryImageTag: + (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), programId: (programId != null ? programId.value : this.programId), - externalProgramId: (externalProgramId != null - ? externalProgramId.value - : this.externalProgramId), + externalProgramId: (externalProgramId != null ? externalProgramId.value : this.externalProgramId), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), serviceName: (serviceName != null ? serviceName.value : this.serviceName), priority: (priority != null ? priority.value : this.priority), - prePaddingSeconds: (prePaddingSeconds != null - ? prePaddingSeconds.value - : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null - ? postPaddingSeconds.value - : this.postPaddingSeconds), - isPrePaddingRequired: (isPrePaddingRequired != null - ? isPrePaddingRequired.value - : this.isPrePaddingRequired), - parentBackdropItemId: (parentBackdropItemId != null - ? parentBackdropItemId.value - : this.parentBackdropItemId), - parentBackdropImageTags: (parentBackdropImageTags != null - ? parentBackdropImageTags.value - : this.parentBackdropImageTags), - isPostPaddingRequired: (isPostPaddingRequired != null - ? isPostPaddingRequired.value - : this.isPostPaddingRequired), + prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), + isPrePaddingRequired: (isPrePaddingRequired != null ? isPrePaddingRequired.value : this.isPrePaddingRequired), + parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), + parentBackdropImageTags: + (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), + isPostPaddingRequired: (isPostPaddingRequired != null ? isPostPaddingRequired.value : this.isPostPaddingRequired), keepUntil: (keepUntil != null ? keepUntil.value : this.keepUntil), status: (status != null ? status.value : this.status), - seriesTimerId: (seriesTimerId != null - ? seriesTimerId.value - : this.seriesTimerId), - externalSeriesTimerId: (externalSeriesTimerId != null - ? externalSeriesTimerId.value - : this.externalSeriesTimerId), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), + seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), + externalSeriesTimerId: (externalSeriesTimerId != null ? externalSeriesTimerId.value : this.externalSeriesTimerId), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), programInfo: (programInfo != null ? programInfo.value : this.programInfo), ); } @@ -50274,8 +48040,7 @@ class TimerInfoDtoQueryResult { this.startIndex, }); - factory TimerInfoDtoQueryResult.fromJson(Map json) => - _$TimerInfoDtoQueryResultFromJson(json); + factory TimerInfoDtoQueryResult.fromJson(Map json) => _$TimerInfoDtoQueryResultFromJson(json); static const toJsonFactory = _$TimerInfoDtoQueryResultToJson; Map toJson() => _$TimerInfoDtoQueryResultToJson(this); @@ -50292,8 +48057,7 @@ class TimerInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is TimerInfoDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -50337,9 +48101,7 @@ extension $TimerInfoDtoQueryResultExtension on TimerInfoDtoQueryResult { }) { return TimerInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -50361,8 +48123,7 @@ class TrailerInfo { this.isAutomated, }); - factory TrailerInfo.fromJson(Map json) => - _$TrailerInfoFromJson(json); + factory TrailerInfo.fromJson(Map json) => _$TrailerInfoFromJson(json); static const toJsonFactory = _$TrailerInfoToJson; Map toJson() => _$TrailerInfoToJson(this); @@ -50395,15 +48156,13 @@ class TrailerInfo { bool operator ==(Object other) { return identical(this, other) || (other is TrailerInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -50419,8 +48178,7 @@ class TrailerInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -50506,25 +48264,15 @@ extension $TrailerInfoExtension on TrailerInfo { }) { return TrailerInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -50564,8 +48312,7 @@ class TrailerInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -50593,8 +48340,7 @@ class TrailerInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $TrailerInfoRemoteSearchQueryExtension - on TrailerInfoRemoteSearchQuery { +extension $TrailerInfoRemoteSearchQueryExtension on TrailerInfoRemoteSearchQuery { TrailerInfoRemoteSearchQuery copyWith({ TrailerInfo? searchInfo, String? itemId, @@ -50605,8 +48351,7 @@ extension $TrailerInfoRemoteSearchQueryExtension searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -50619,12 +48364,9 @@ extension $TrailerInfoRemoteSearchQueryExtension return TrailerInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -50647,8 +48389,7 @@ class TranscodingInfo { this.transcodeReasons, }); - factory TranscodingInfo.fromJson(Map json) => - _$TranscodingInfoFromJson(json); + factory TranscodingInfo.fromJson(Map json) => _$TranscodingInfoFromJson(json); static const toJsonFactory = _$TranscodingInfoToJson; Map toJson() => _$TranscodingInfoToJson(this); @@ -50735,10 +48476,8 @@ class TranscodingInfo { other.completionPercentage, completionPercentage, )) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.audioChannels, audioChannels) || const DeepCollectionEquality().equals( other.audioChannels, @@ -50808,8 +48547,7 @@ extension $TranscodingInfoExtension on TranscodingInfo { width: width ?? this.width, height: height ?? this.height, audioChannels: audioChannels ?? this.audioChannels, - hardwareAccelerationType: - hardwareAccelerationType ?? this.hardwareAccelerationType, + hardwareAccelerationType: hardwareAccelerationType ?? this.hardwareAccelerationType, transcodeReasons: transcodeReasons ?? this.transcodeReasons, ); } @@ -50833,28 +48571,17 @@ extension $TranscodingInfoExtension on TranscodingInfo { audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), container: (container != null ? container.value : this.container), - isVideoDirect: (isVideoDirect != null - ? isVideoDirect.value - : this.isVideoDirect), - isAudioDirect: (isAudioDirect != null - ? isAudioDirect.value - : this.isAudioDirect), + isVideoDirect: (isVideoDirect != null ? isVideoDirect.value : this.isVideoDirect), + isAudioDirect: (isAudioDirect != null ? isAudioDirect.value : this.isAudioDirect), bitrate: (bitrate != null ? bitrate.value : this.bitrate), framerate: (framerate != null ? framerate.value : this.framerate), - completionPercentage: (completionPercentage != null - ? completionPercentage.value - : this.completionPercentage), + completionPercentage: (completionPercentage != null ? completionPercentage.value : this.completionPercentage), width: (width != null ? width.value : this.width), height: (height != null ? height.value : this.height), - audioChannels: (audioChannels != null - ? audioChannels.value - : this.audioChannels), - hardwareAccelerationType: (hardwareAccelerationType != null - ? hardwareAccelerationType.value - : this.hardwareAccelerationType), - transcodeReasons: (transcodeReasons != null - ? transcodeReasons.value - : this.transcodeReasons), + audioChannels: (audioChannels != null ? audioChannels.value : this.audioChannels), + hardwareAccelerationType: + (hardwareAccelerationType != null ? hardwareAccelerationType.value : this.hardwareAccelerationType), + transcodeReasons: (transcodeReasons != null ? transcodeReasons.value : this.transcodeReasons), ); } } @@ -50881,8 +48608,7 @@ class TranscodingProfile { this.enableAudioVbrEncoding, }); - factory TranscodingProfile.fromJson(Map json) => - _$TranscodingProfileFromJson(json); + factory TranscodingProfile.fromJson(Map json) => _$TranscodingProfileFromJson(json); static const toJsonFactory = _$TranscodingProfileToJson; Map toJson() => _$TranscodingProfileToJson(this); @@ -50926,8 +48652,7 @@ class TranscodingProfile { fromJson: transcodeSeekInfoTranscodeSeekInfoNullableFromJson, ) final enums.TranscodeSeekInfo? transcodeSeekInfo; - static enums.TranscodeSeekInfo? - transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => + static enums.TranscodeSeekInfo? transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => transcodeSeekInfoNullableFromJson(value, enums.TranscodeSeekInfo.auto); @JsonKey(name: 'CopyTimestamps', includeIfNull: false, defaultValue: false) @@ -50941,7 +48666,8 @@ class TranscodingProfile { final enums.EncodingContext? context; static enums.EncodingContext? encodingContextContextNullableFromJson( Object? value, - ) => encodingContextNullableFromJson(value, enums.EncodingContext.streaming); + ) => + encodingContextNullableFromJson(value, enums.EncodingContext.streaming); @JsonKey( name: 'EnableSubtitlesInManifest', @@ -50984,8 +48710,7 @@ class TranscodingProfile { other.container, container, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.videoCodec, videoCodec) || const DeepCollectionEquality().equals( other.videoCodec, @@ -51117,21 +48842,18 @@ extension $TranscodingProfileExtension on TranscodingProfile { videoCodec: videoCodec ?? this.videoCodec, audioCodec: audioCodec ?? this.audioCodec, protocol: protocol ?? this.protocol, - estimateContentLength: - estimateContentLength ?? this.estimateContentLength, + estimateContentLength: estimateContentLength ?? this.estimateContentLength, enableMpegtsM2TsMode: enableMpegtsM2TsMode ?? this.enableMpegtsM2TsMode, transcodeSeekInfo: transcodeSeekInfo ?? this.transcodeSeekInfo, copyTimestamps: copyTimestamps ?? this.copyTimestamps, context: context ?? this.context, - enableSubtitlesInManifest: - enableSubtitlesInManifest ?? this.enableSubtitlesInManifest, + enableSubtitlesInManifest: enableSubtitlesInManifest ?? this.enableSubtitlesInManifest, maxAudioChannels: maxAudioChannels ?? this.maxAudioChannels, minSegments: minSegments ?? this.minSegments, segmentLength: segmentLength ?? this.segmentLength, breakOnNonKeyFrames: breakOnNonKeyFrames ?? this.breakOnNonKeyFrames, conditions: conditions ?? this.conditions, - enableAudioVbrEncoding: - enableAudioVbrEncoding ?? this.enableAudioVbrEncoding, + enableAudioVbrEncoding: enableAudioVbrEncoding ?? this.enableAudioVbrEncoding, ); } @@ -51160,36 +48882,20 @@ extension $TranscodingProfileExtension on TranscodingProfile { videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), protocol: (protocol != null ? protocol.value : this.protocol), - estimateContentLength: (estimateContentLength != null - ? estimateContentLength.value - : this.estimateContentLength), - enableMpegtsM2TsMode: (enableMpegtsM2TsMode != null - ? enableMpegtsM2TsMode.value - : this.enableMpegtsM2TsMode), - transcodeSeekInfo: (transcodeSeekInfo != null - ? transcodeSeekInfo.value - : this.transcodeSeekInfo), - copyTimestamps: (copyTimestamps != null - ? copyTimestamps.value - : this.copyTimestamps), + estimateContentLength: (estimateContentLength != null ? estimateContentLength.value : this.estimateContentLength), + enableMpegtsM2TsMode: (enableMpegtsM2TsMode != null ? enableMpegtsM2TsMode.value : this.enableMpegtsM2TsMode), + transcodeSeekInfo: (transcodeSeekInfo != null ? transcodeSeekInfo.value : this.transcodeSeekInfo), + copyTimestamps: (copyTimestamps != null ? copyTimestamps.value : this.copyTimestamps), context: (context != null ? context.value : this.context), - enableSubtitlesInManifest: (enableSubtitlesInManifest != null - ? enableSubtitlesInManifest.value - : this.enableSubtitlesInManifest), - maxAudioChannels: (maxAudioChannels != null - ? maxAudioChannels.value - : this.maxAudioChannels), + enableSubtitlesInManifest: + (enableSubtitlesInManifest != null ? enableSubtitlesInManifest.value : this.enableSubtitlesInManifest), + maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), minSegments: (minSegments != null ? minSegments.value : this.minSegments), - segmentLength: (segmentLength != null - ? segmentLength.value - : this.segmentLength), - breakOnNonKeyFrames: (breakOnNonKeyFrames != null - ? breakOnNonKeyFrames.value - : this.breakOnNonKeyFrames), + segmentLength: (segmentLength != null ? segmentLength.value : this.segmentLength), + breakOnNonKeyFrames: (breakOnNonKeyFrames != null ? breakOnNonKeyFrames.value : this.breakOnNonKeyFrames), conditions: (conditions != null ? conditions.value : this.conditions), - enableAudioVbrEncoding: (enableAudioVbrEncoding != null - ? enableAudioVbrEncoding.value - : this.enableAudioVbrEncoding), + enableAudioVbrEncoding: + (enableAudioVbrEncoding != null ? enableAudioVbrEncoding.value : this.enableAudioVbrEncoding), ); } } @@ -51206,8 +48912,7 @@ class TrickplayInfoDto { this.bandwidth, }); - factory TrickplayInfoDto.fromJson(Map json) => - _$TrickplayInfoDtoFromJson(json); + factory TrickplayInfoDto.fromJson(Map json) => _$TrickplayInfoDtoFromJson(json); static const toJsonFactory = _$TrickplayInfoDtoToJson; Map toJson() => _$TrickplayInfoDtoToJson(this); @@ -51232,10 +48937,8 @@ class TrickplayInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is TrickplayInfoDto && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.tileWidth, tileWidth) || const DeepCollectionEquality().equals( other.tileWidth, @@ -51313,9 +49016,7 @@ extension $TrickplayInfoDtoExtension on TrickplayInfoDto { height: (height != null ? height.value : this.height), tileWidth: (tileWidth != null ? tileWidth.value : this.tileWidth), tileHeight: (tileHeight != null ? tileHeight.value : this.tileHeight), - thumbnailCount: (thumbnailCount != null - ? thumbnailCount.value - : this.thumbnailCount), + thumbnailCount: (thumbnailCount != null ? thumbnailCount.value : this.thumbnailCount), interval: (interval != null ? interval.value : this.interval), bandwidth: (bandwidth != null ? bandwidth.value : this.bandwidth), ); @@ -51339,8 +49040,7 @@ class TrickplayOptions { this.processThreads, }); - factory TrickplayOptions.fromJson(Map json) => - _$TrickplayOptionsFromJson(json); + factory TrickplayOptions.fromJson(Map json) => _$TrickplayOptionsFromJson(json); static const toJsonFactory = _$TrickplayOptionsToJson; Map toJson() => _$TrickplayOptionsToJson(this); @@ -51437,8 +49137,7 @@ class TrickplayOptions { other.tileHeight, tileHeight, )) && - (identical(other.qscale, qscale) || - const DeepCollectionEquality().equals(other.qscale, qscale)) && + (identical(other.qscale, qscale) || const DeepCollectionEquality().equals(other.qscale, qscale)) && (identical(other.jpegQuality, jpegQuality) || const DeepCollectionEquality().equals( other.jpegQuality, @@ -51489,8 +49188,7 @@ extension $TrickplayOptionsExtension on TrickplayOptions { return TrickplayOptions( enableHwAcceleration: enableHwAcceleration ?? this.enableHwAcceleration, enableHwEncoding: enableHwEncoding ?? this.enableHwEncoding, - enableKeyFrameOnlyExtraction: - enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, + enableKeyFrameOnlyExtraction: enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, scanBehavior: scanBehavior ?? this.scanBehavior, processPriority: processPriority ?? this.processPriority, interval: interval ?? this.interval, @@ -51518,32 +49216,20 @@ extension $TrickplayOptionsExtension on TrickplayOptions { Wrapped? processThreads, }) { return TrickplayOptions( - enableHwAcceleration: (enableHwAcceleration != null - ? enableHwAcceleration.value - : this.enableHwAcceleration), - enableHwEncoding: (enableHwEncoding != null - ? enableHwEncoding.value - : this.enableHwEncoding), + enableHwAcceleration: (enableHwAcceleration != null ? enableHwAcceleration.value : this.enableHwAcceleration), + enableHwEncoding: (enableHwEncoding != null ? enableHwEncoding.value : this.enableHwEncoding), enableKeyFrameOnlyExtraction: (enableKeyFrameOnlyExtraction != null ? enableKeyFrameOnlyExtraction.value : this.enableKeyFrameOnlyExtraction), - scanBehavior: (scanBehavior != null - ? scanBehavior.value - : this.scanBehavior), - processPriority: (processPriority != null - ? processPriority.value - : this.processPriority), + scanBehavior: (scanBehavior != null ? scanBehavior.value : this.scanBehavior), + processPriority: (processPriority != null ? processPriority.value : this.processPriority), interval: (interval != null ? interval.value : this.interval), - widthResolutions: (widthResolutions != null - ? widthResolutions.value - : this.widthResolutions), + widthResolutions: (widthResolutions != null ? widthResolutions.value : this.widthResolutions), tileWidth: (tileWidth != null ? tileWidth.value : this.tileWidth), tileHeight: (tileHeight != null ? tileHeight.value : this.tileHeight), qscale: (qscale != null ? qscale.value : this.qscale), jpegQuality: (jpegQuality != null ? jpegQuality.value : this.jpegQuality), - processThreads: (processThreads != null - ? processThreads.value - : this.processThreads), + processThreads: (processThreads != null ? processThreads.value : this.processThreads), ); } } @@ -51557,8 +49243,7 @@ class TunerChannelMapping { this.id, }); - factory TunerChannelMapping.fromJson(Map json) => - _$TunerChannelMappingFromJson(json); + factory TunerChannelMapping.fromJson(Map json) => _$TunerChannelMappingFromJson(json); static const toJsonFactory = _$TunerChannelMappingToJson; Map toJson() => _$TunerChannelMappingToJson(this); @@ -51577,8 +49262,7 @@ class TunerChannelMapping { bool operator ==(Object other) { return identical(this, other) || (other is TunerChannelMapping && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerChannelName, providerChannelName) || const DeepCollectionEquality().equals( other.providerChannelName, @@ -51589,8 +49273,7 @@ class TunerChannelMapping { other.providerChannelId, providerChannelId, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -51628,12 +49311,8 @@ extension $TunerChannelMappingExtension on TunerChannelMapping { }) { return TunerChannelMapping( name: (name != null ? name.value : this.name), - providerChannelName: (providerChannelName != null - ? providerChannelName.value - : this.providerChannelName), - providerChannelId: (providerChannelId != null - ? providerChannelId.value - : this.providerChannelId), + providerChannelName: (providerChannelName != null ? providerChannelName.value : this.providerChannelName), + providerChannelId: (providerChannelId != null ? providerChannelId.value : this.providerChannelId), id: (id != null ? id.value : this.id), ); } @@ -51660,8 +49339,7 @@ class TunerHostInfo { this.readAtNativeFramerate, }); - factory TunerHostInfo.fromJson(Map json) => - _$TunerHostInfoFromJson(json); + factory TunerHostInfo.fromJson(Map json) => _$TunerHostInfoFromJson(json); static const toJsonFactory = _$TunerHostInfoToJson; Map toJson() => _$TunerHostInfoToJson(this); @@ -51704,12 +49382,9 @@ class TunerHostInfo { bool operator ==(Object other) { return identical(this, other) || (other is TunerHostInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -51756,8 +49431,7 @@ class TunerHostInfo { other.enableStreamLooping, enableStreamLooping, )) && - (identical(other.source, source) || - const DeepCollectionEquality().equals(other.source, source)) && + (identical(other.source, source) || const DeepCollectionEquality().equals(other.source, source)) && (identical(other.tunerCount, tunerCount) || const DeepCollectionEquality().equals( other.tunerCount, @@ -51831,18 +49505,15 @@ extension $TunerHostInfoExtension on TunerHostInfo { friendlyName: friendlyName ?? this.friendlyName, importFavoritesOnly: importFavoritesOnly ?? this.importFavoritesOnly, allowHWTranscoding: allowHWTranscoding ?? this.allowHWTranscoding, - allowFmp4TranscodingContainer: - allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, + allowFmp4TranscodingContainer: allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, allowStreamSharing: allowStreamSharing ?? this.allowStreamSharing, - fallbackMaxStreamingBitrate: - fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate: fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, enableStreamLooping: enableStreamLooping ?? this.enableStreamLooping, source: source ?? this.source, tunerCount: tunerCount ?? this.tunerCount, userAgent: userAgent ?? this.userAgent, ignoreDts: ignoreDts ?? this.ignoreDts, - readAtNativeFramerate: - readAtNativeFramerate ?? this.readAtNativeFramerate, + readAtNativeFramerate: readAtNativeFramerate ?? this.readAtNativeFramerate, ); } @@ -51869,34 +49540,21 @@ extension $TunerHostInfoExtension on TunerHostInfo { url: (url != null ? url.value : this.url), type: (type != null ? type.value : this.type), deviceId: (deviceId != null ? deviceId.value : this.deviceId), - friendlyName: (friendlyName != null - ? friendlyName.value - : this.friendlyName), - importFavoritesOnly: (importFavoritesOnly != null - ? importFavoritesOnly.value - : this.importFavoritesOnly), - allowHWTranscoding: (allowHWTranscoding != null - ? allowHWTranscoding.value - : this.allowHWTranscoding), + friendlyName: (friendlyName != null ? friendlyName.value : this.friendlyName), + importFavoritesOnly: (importFavoritesOnly != null ? importFavoritesOnly.value : this.importFavoritesOnly), + allowHWTranscoding: (allowHWTranscoding != null ? allowHWTranscoding.value : this.allowHWTranscoding), allowFmp4TranscodingContainer: (allowFmp4TranscodingContainer != null ? allowFmp4TranscodingContainer.value : this.allowFmp4TranscodingContainer), - allowStreamSharing: (allowStreamSharing != null - ? allowStreamSharing.value - : this.allowStreamSharing), - fallbackMaxStreamingBitrate: (fallbackMaxStreamingBitrate != null - ? fallbackMaxStreamingBitrate.value - : this.fallbackMaxStreamingBitrate), - enableStreamLooping: (enableStreamLooping != null - ? enableStreamLooping.value - : this.enableStreamLooping), + allowStreamSharing: (allowStreamSharing != null ? allowStreamSharing.value : this.allowStreamSharing), + fallbackMaxStreamingBitrate: + (fallbackMaxStreamingBitrate != null ? fallbackMaxStreamingBitrate.value : this.fallbackMaxStreamingBitrate), + enableStreamLooping: (enableStreamLooping != null ? enableStreamLooping.value : this.enableStreamLooping), source: (source != null ? source.value : this.source), tunerCount: (tunerCount != null ? tunerCount.value : this.tunerCount), userAgent: (userAgent != null ? userAgent.value : this.userAgent), ignoreDts: (ignoreDts != null ? ignoreDts.value : this.ignoreDts), - readAtNativeFramerate: (readAtNativeFramerate != null - ? readAtNativeFramerate.value - : this.readAtNativeFramerate), + readAtNativeFramerate: (readAtNativeFramerate != null ? readAtNativeFramerate.value : this.readAtNativeFramerate), ); } } @@ -51912,8 +49570,7 @@ class TypeOptions { this.imageOptions, }); - factory TypeOptions.fromJson(Map json) => - _$TypeOptionsFromJson(json); + factory TypeOptions.fromJson(Map json) => _$TypeOptionsFromJson(json); static const toJsonFactory = _$TypeOptionsToJson; Map toJson() => _$TypeOptionsToJson(this); @@ -51956,8 +49613,7 @@ class TypeOptions { bool operator ==(Object other) { return identical(this, other) || (other is TypeOptions && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || const DeepCollectionEquality().equals( other.metadataFetchers, @@ -52028,21 +49684,11 @@ extension $TypeOptionsExtension on TypeOptions { }) { return TypeOptions( type: (type != null ? type.value : this.type), - metadataFetchers: (metadataFetchers != null - ? metadataFetchers.value - : this.metadataFetchers), - metadataFetcherOrder: (metadataFetcherOrder != null - ? metadataFetcherOrder.value - : this.metadataFetcherOrder), - imageFetchers: (imageFetchers != null - ? imageFetchers.value - : this.imageFetchers), - imageFetcherOrder: (imageFetcherOrder != null - ? imageFetcherOrder.value - : this.imageFetcherOrder), - imageOptions: (imageOptions != null - ? imageOptions.value - : this.imageOptions), + metadataFetchers: (metadataFetchers != null ? metadataFetchers.value : this.metadataFetchers), + metadataFetcherOrder: (metadataFetcherOrder != null ? metadataFetcherOrder.value : this.metadataFetcherOrder), + imageFetchers: (imageFetchers != null ? imageFetchers.value : this.imageFetchers), + imageFetcherOrder: (imageFetcherOrder != null ? imageFetcherOrder.value : this.imageFetcherOrder), + imageOptions: (imageOptions != null ? imageOptions.value : this.imageOptions), ); } } @@ -52051,8 +49697,7 @@ extension $TypeOptionsExtension on TypeOptions { class UpdateLibraryOptionsDto { const UpdateLibraryOptionsDto({this.id, this.libraryOptions}); - factory UpdateLibraryOptionsDto.fromJson(Map json) => - _$UpdateLibraryOptionsDtoFromJson(json); + factory UpdateLibraryOptionsDto.fromJson(Map json) => _$UpdateLibraryOptionsDtoFromJson(json); static const toJsonFactory = _$UpdateLibraryOptionsDtoToJson; Map toJson() => _$UpdateLibraryOptionsDtoToJson(this); @@ -52067,8 +49712,7 @@ class UpdateLibraryOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateLibraryOptionsDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.libraryOptions, libraryOptions) || const DeepCollectionEquality().equals( other.libraryOptions, @@ -52103,9 +49747,7 @@ extension $UpdateLibraryOptionsDtoExtension on UpdateLibraryOptionsDto { }) { return UpdateLibraryOptionsDto( id: (id != null ? id.value : this.id), - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions), + libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), ); } } @@ -52114,8 +49756,7 @@ extension $UpdateLibraryOptionsDtoExtension on UpdateLibraryOptionsDto { class UpdateMediaPathRequestDto { const UpdateMediaPathRequestDto({required this.name, required this.pathInfo}); - factory UpdateMediaPathRequestDto.fromJson(Map json) => - _$UpdateMediaPathRequestDtoFromJson(json); + factory UpdateMediaPathRequestDto.fromJson(Map json) => _$UpdateMediaPathRequestDtoFromJson(json); static const toJsonFactory = _$UpdateMediaPathRequestDtoToJson; Map toJson() => _$UpdateMediaPathRequestDtoToJson(this); @@ -52130,8 +49771,7 @@ class UpdateMediaPathRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateMediaPathRequestDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.pathInfo, pathInfo) || const DeepCollectionEquality().equals( other.pathInfo, @@ -52144,9 +49784,7 @@ class UpdateMediaPathRequestDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(pathInfo) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(pathInfo) ^ runtimeType.hashCode; } extension $UpdateMediaPathRequestDtoExtension on UpdateMediaPathRequestDto { @@ -52172,8 +49810,7 @@ extension $UpdateMediaPathRequestDtoExtension on UpdateMediaPathRequestDto { class UpdatePlaylistDto { const UpdatePlaylistDto({this.name, this.ids, this.users, this.isPublic}); - factory UpdatePlaylistDto.fromJson(Map json) => - _$UpdatePlaylistDtoFromJson(json); + factory UpdatePlaylistDto.fromJson(Map json) => _$UpdatePlaylistDtoFromJson(json); static const toJsonFactory = _$UpdatePlaylistDtoToJson; Map toJson() => _$UpdatePlaylistDtoToJson(this); @@ -52196,12 +49833,9 @@ class UpdatePlaylistDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdatePlaylistDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.ids, ids) || - const DeepCollectionEquality().equals(other.ids, ids)) && - (identical(other.users, users) || - const DeepCollectionEquality().equals(other.users, users)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.ids, ids) || const DeepCollectionEquality().equals(other.ids, ids)) && + (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || const DeepCollectionEquality().equals( other.isPublic, @@ -52255,8 +49889,7 @@ extension $UpdatePlaylistDtoExtension on UpdatePlaylistDto { class UpdatePlaylistUserDto { const UpdatePlaylistUserDto({this.canEdit}); - factory UpdatePlaylistUserDto.fromJson(Map json) => - _$UpdatePlaylistUserDtoFromJson(json); + factory UpdatePlaylistUserDto.fromJson(Map json) => _$UpdatePlaylistUserDtoFromJson(json); static const toJsonFactory = _$UpdatePlaylistUserDtoToJson; Map toJson() => _$UpdatePlaylistUserDtoToJson(this); @@ -52269,16 +49902,14 @@ class UpdatePlaylistUserDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdatePlaylistUserDto && - (identical(other.canEdit, canEdit) || - const DeepCollectionEquality().equals(other.canEdit, canEdit))); + (identical(other.canEdit, canEdit) || const DeepCollectionEquality().equals(other.canEdit, canEdit))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; } extension $UpdatePlaylistUserDtoExtension on UpdatePlaylistUserDto { @@ -52309,8 +49940,7 @@ class UpdateUserItemDataDto { this.itemId, }); - factory UpdateUserItemDataDto.fromJson(Map json) => - _$UpdateUserItemDataDtoFromJson(json); + factory UpdateUserItemDataDto.fromJson(Map json) => _$UpdateUserItemDataDtoFromJson(json); static const toJsonFactory = _$UpdateUserItemDataDtoToJson; Map toJson() => _$UpdateUserItemDataDtoToJson(this); @@ -52343,8 +49973,7 @@ class UpdateUserItemDataDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateUserItemDataDto && - (identical(other.rating, rating) || - const DeepCollectionEquality().equals(other.rating, rating)) && + (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || const DeepCollectionEquality().equals( other.playedPercentage, @@ -52370,19 +49999,15 @@ class UpdateUserItemDataDto { other.isFavorite, isFavorite, )) && - (identical(other.likes, likes) || - const DeepCollectionEquality().equals(other.likes, likes)) && + (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || const DeepCollectionEquality().equals( other.lastPlayedDate, lastPlayedDate, )) && - (identical(other.played, played) || - const DeepCollectionEquality().equals(other.played, played)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId))); + (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId))); } @override @@ -52422,8 +50047,7 @@ extension $UpdateUserItemDataDtoExtension on UpdateUserItemDataDto { rating: rating ?? this.rating, playedPercentage: playedPercentage ?? this.playedPercentage, unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: - playbackPositionTicks ?? this.playbackPositionTicks, + playbackPositionTicks: playbackPositionTicks ?? this.playbackPositionTicks, playCount: playCount ?? this.playCount, isFavorite: isFavorite ?? this.isFavorite, likes: likes ?? this.likes, @@ -52449,21 +50073,13 @@ extension $UpdateUserItemDataDtoExtension on UpdateUserItemDataDto { }) { return UpdateUserItemDataDto( rating: (rating != null ? rating.value : this.rating), - playedPercentage: (playedPercentage != null - ? playedPercentage.value - : this.playedPercentage), - unplayedItemCount: (unplayedItemCount != null - ? unplayedItemCount.value - : this.unplayedItemCount), - playbackPositionTicks: (playbackPositionTicks != null - ? playbackPositionTicks.value - : this.playbackPositionTicks), + playedPercentage: (playedPercentage != null ? playedPercentage.value : this.playedPercentage), + unplayedItemCount: (unplayedItemCount != null ? unplayedItemCount.value : this.unplayedItemCount), + playbackPositionTicks: (playbackPositionTicks != null ? playbackPositionTicks.value : this.playbackPositionTicks), playCount: (playCount != null ? playCount.value : this.playCount), isFavorite: (isFavorite != null ? isFavorite.value : this.isFavorite), likes: (likes != null ? likes.value : this.likes), - lastPlayedDate: (lastPlayedDate != null - ? lastPlayedDate.value - : this.lastPlayedDate), + lastPlayedDate: (lastPlayedDate != null ? lastPlayedDate.value : this.lastPlayedDate), played: (played != null ? played.value : this.played), key: (key != null ? key.value : this.key), itemId: (itemId != null ? itemId.value : this.itemId), @@ -52480,8 +50096,7 @@ class UpdateUserPassword { this.resetPassword, }); - factory UpdateUserPassword.fromJson(Map json) => - _$UpdateUserPasswordFromJson(json); + factory UpdateUserPassword.fromJson(Map json) => _$UpdateUserPasswordFromJson(json); static const toJsonFactory = _$UpdateUserPasswordToJson; Map toJson() => _$UpdateUserPasswordToJson(this); @@ -52510,8 +50125,7 @@ class UpdateUserPassword { other.currentPw, currentPw, )) && - (identical(other.newPw, newPw) || - const DeepCollectionEquality().equals(other.newPw, newPw)) && + (identical(other.newPw, newPw) || const DeepCollectionEquality().equals(other.newPw, newPw)) && (identical(other.resetPassword, resetPassword) || const DeepCollectionEquality().equals( other.resetPassword, @@ -52553,14 +50167,10 @@ extension $UpdateUserPasswordExtension on UpdateUserPassword { Wrapped? resetPassword, }) { return UpdateUserPassword( - currentPassword: (currentPassword != null - ? currentPassword.value - : this.currentPassword), + currentPassword: (currentPassword != null ? currentPassword.value : this.currentPassword), currentPw: (currentPw != null ? currentPw.value : this.currentPw), newPw: (newPw != null ? newPw.value : this.newPw), - resetPassword: (resetPassword != null - ? resetPassword.value - : this.resetPassword), + resetPassword: (resetPassword != null ? resetPassword.value : this.resetPassword), ); } } @@ -52575,8 +50185,7 @@ class UploadSubtitleDto { required this.data, }); - factory UploadSubtitleDto.fromJson(Map json) => - _$UploadSubtitleDtoFromJson(json); + factory UploadSubtitleDto.fromJson(Map json) => _$UploadSubtitleDtoFromJson(json); static const toJsonFactory = _$UploadSubtitleDtoToJson; Map toJson() => _$UploadSubtitleDtoToJson(this); @@ -52602,8 +50211,7 @@ class UploadSubtitleDto { other.language, language, )) && - (identical(other.format, format) || - const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && (identical(other.isForced, isForced) || const DeepCollectionEquality().equals( other.isForced, @@ -52614,8 +50222,7 @@ class UploadSubtitleDto { other.isHearingImpaired, isHearingImpaired, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data))); } @override @@ -52659,9 +50266,7 @@ extension $UploadSubtitleDtoExtension on UploadSubtitleDto { language: (language != null ? language.value : this.language), format: (format != null ? format.value : this.format), isForced: (isForced != null ? isForced.value : this.isForced), - isHearingImpaired: (isHearingImpaired != null - ? isHearingImpaired.value - : this.isHearingImpaired), + isHearingImpaired: (isHearingImpaired != null ? isHearingImpaired.value : this.isHearingImpaired), data: (data != null ? data.value : this.data), ); } @@ -52688,8 +50293,7 @@ class UserConfiguration { this.castReceiverId, }); - factory UserConfiguration.fromJson(Map json) => - _$UserConfigurationFromJson(json); + factory UserConfiguration.fromJson(Map json) => _$UserConfigurationFromJson(json); static const toJsonFactory = _$UserConfigurationToJson; Map toJson() => _$UserConfigurationToJson(this); @@ -52890,29 +50494,21 @@ extension $UserConfigurationExtension on UserConfiguration { String? castReceiverId, }) { return UserConfiguration( - audioLanguagePreference: - audioLanguagePreference ?? this.audioLanguagePreference, - playDefaultAudioTrack: - playDefaultAudioTrack ?? this.playDefaultAudioTrack, - subtitleLanguagePreference: - subtitleLanguagePreference ?? this.subtitleLanguagePreference, - displayMissingEpisodes: - displayMissingEpisodes ?? this.displayMissingEpisodes, + audioLanguagePreference: audioLanguagePreference ?? this.audioLanguagePreference, + playDefaultAudioTrack: playDefaultAudioTrack ?? this.playDefaultAudioTrack, + subtitleLanguagePreference: subtitleLanguagePreference ?? this.subtitleLanguagePreference, + displayMissingEpisodes: displayMissingEpisodes ?? this.displayMissingEpisodes, groupedFolders: groupedFolders ?? this.groupedFolders, subtitleMode: subtitleMode ?? this.subtitleMode, - displayCollectionsView: - displayCollectionsView ?? this.displayCollectionsView, + displayCollectionsView: displayCollectionsView ?? this.displayCollectionsView, enableLocalPassword: enableLocalPassword ?? this.enableLocalPassword, orderedViews: orderedViews ?? this.orderedViews, latestItemsExcludes: latestItemsExcludes ?? this.latestItemsExcludes, myMediaExcludes: myMediaExcludes ?? this.myMediaExcludes, hidePlayedInLatest: hidePlayedInLatest ?? this.hidePlayedInLatest, - rememberAudioSelections: - rememberAudioSelections ?? this.rememberAudioSelections, - rememberSubtitleSelections: - rememberSubtitleSelections ?? this.rememberSubtitleSelections, - enableNextEpisodeAutoPlay: - enableNextEpisodeAutoPlay ?? this.enableNextEpisodeAutoPlay, + rememberAudioSelections: rememberAudioSelections ?? this.rememberAudioSelections, + rememberSubtitleSelections: rememberSubtitleSelections ?? this.rememberSubtitleSelections, + enableNextEpisodeAutoPlay: enableNextEpisodeAutoPlay ?? this.enableNextEpisodeAutoPlay, castReceiverId: castReceiverId ?? this.castReceiverId, ); } @@ -52936,54 +50532,29 @@ extension $UserConfigurationExtension on UserConfiguration { Wrapped? castReceiverId, }) { return UserConfiguration( - audioLanguagePreference: (audioLanguagePreference != null - ? audioLanguagePreference.value - : this.audioLanguagePreference), - playDefaultAudioTrack: (playDefaultAudioTrack != null - ? playDefaultAudioTrack.value - : this.playDefaultAudioTrack), - subtitleLanguagePreference: (subtitleLanguagePreference != null - ? subtitleLanguagePreference.value - : this.subtitleLanguagePreference), - displayMissingEpisodes: (displayMissingEpisodes != null - ? displayMissingEpisodes.value - : this.displayMissingEpisodes), - groupedFolders: (groupedFolders != null - ? groupedFolders.value - : this.groupedFolders), - subtitleMode: (subtitleMode != null - ? subtitleMode.value - : this.subtitleMode), - displayCollectionsView: (displayCollectionsView != null - ? displayCollectionsView.value - : this.displayCollectionsView), - enableLocalPassword: (enableLocalPassword != null - ? enableLocalPassword.value - : this.enableLocalPassword), - orderedViews: (orderedViews != null - ? orderedViews.value - : this.orderedViews), - latestItemsExcludes: (latestItemsExcludes != null - ? latestItemsExcludes.value - : this.latestItemsExcludes), - myMediaExcludes: (myMediaExcludes != null - ? myMediaExcludes.value - : this.myMediaExcludes), - hidePlayedInLatest: (hidePlayedInLatest != null - ? hidePlayedInLatest.value - : this.hidePlayedInLatest), - rememberAudioSelections: (rememberAudioSelections != null - ? rememberAudioSelections.value - : this.rememberAudioSelections), - rememberSubtitleSelections: (rememberSubtitleSelections != null - ? rememberSubtitleSelections.value - : this.rememberSubtitleSelections), - enableNextEpisodeAutoPlay: (enableNextEpisodeAutoPlay != null - ? enableNextEpisodeAutoPlay.value - : this.enableNextEpisodeAutoPlay), - castReceiverId: (castReceiverId != null - ? castReceiverId.value - : this.castReceiverId), + audioLanguagePreference: + (audioLanguagePreference != null ? audioLanguagePreference.value : this.audioLanguagePreference), + playDefaultAudioTrack: (playDefaultAudioTrack != null ? playDefaultAudioTrack.value : this.playDefaultAudioTrack), + subtitleLanguagePreference: + (subtitleLanguagePreference != null ? subtitleLanguagePreference.value : this.subtitleLanguagePreference), + displayMissingEpisodes: + (displayMissingEpisodes != null ? displayMissingEpisodes.value : this.displayMissingEpisodes), + groupedFolders: (groupedFolders != null ? groupedFolders.value : this.groupedFolders), + subtitleMode: (subtitleMode != null ? subtitleMode.value : this.subtitleMode), + displayCollectionsView: + (displayCollectionsView != null ? displayCollectionsView.value : this.displayCollectionsView), + enableLocalPassword: (enableLocalPassword != null ? enableLocalPassword.value : this.enableLocalPassword), + orderedViews: (orderedViews != null ? orderedViews.value : this.orderedViews), + latestItemsExcludes: (latestItemsExcludes != null ? latestItemsExcludes.value : this.latestItemsExcludes), + myMediaExcludes: (myMediaExcludes != null ? myMediaExcludes.value : this.myMediaExcludes), + hidePlayedInLatest: (hidePlayedInLatest != null ? hidePlayedInLatest.value : this.hidePlayedInLatest), + rememberAudioSelections: + (rememberAudioSelections != null ? rememberAudioSelections.value : this.rememberAudioSelections), + rememberSubtitleSelections: + (rememberSubtitleSelections != null ? rememberSubtitleSelections.value : this.rememberSubtitleSelections), + enableNextEpisodeAutoPlay: + (enableNextEpisodeAutoPlay != null ? enableNextEpisodeAutoPlay.value : this.enableNextEpisodeAutoPlay), + castReceiverId: (castReceiverId != null ? castReceiverId.value : this.castReceiverId), ); } } @@ -52992,8 +50563,7 @@ extension $UserConfigurationExtension on UserConfiguration { class UserDataChangedMessage { const UserDataChangedMessage({this.data, this.messageId, this.messageType}); - factory UserDataChangedMessage.fromJson(Map json) => - _$UserDataChangedMessageFromJson(json); + factory UserDataChangedMessage.fromJson(Map json) => _$UserDataChangedMessageFromJson(json); static const toJsonFactory = _$UserDataChangedMessageToJson; Map toJson() => _$UserDataChangedMessageToJson(this); @@ -53009,8 +50579,7 @@ class UserDataChangedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userdatachanged, @@ -53022,8 +50591,7 @@ class UserDataChangedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserDataChangedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -53077,8 +50645,7 @@ extension $UserDataChangedMessageExtension on UserDataChangedMessage { class UserDataChangeInfo { const UserDataChangeInfo({this.userId, this.userDataList}); - factory UserDataChangeInfo.fromJson(Map json) => - _$UserDataChangeInfoFromJson(json); + factory UserDataChangeInfo.fromJson(Map json) => _$UserDataChangeInfoFromJson(json); static const toJsonFactory = _$UserDataChangeInfoToJson; Map toJson() => _$UserDataChangeInfoToJson(this); @@ -53097,8 +50664,7 @@ class UserDataChangeInfo { bool operator ==(Object other) { return identical(this, other) || (other is UserDataChangeInfo && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userDataList, userDataList) || const DeepCollectionEquality().equals( other.userDataList, @@ -53133,9 +50699,7 @@ extension $UserDataChangeInfoExtension on UserDataChangeInfo { }) { return UserDataChangeInfo( userId: (userId != null ? userId.value : this.userId), - userDataList: (userDataList != null - ? userDataList.value - : this.userDataList), + userDataList: (userDataList != null ? userDataList.value : this.userDataList), ); } } @@ -53144,8 +50708,7 @@ extension $UserDataChangeInfoExtension on UserDataChangeInfo { class UserDeletedMessage { const UserDeletedMessage({this.data, this.messageId, this.messageType}); - factory UserDeletedMessage.fromJson(Map json) => - _$UserDeletedMessageFromJson(json); + factory UserDeletedMessage.fromJson(Map json) => _$UserDeletedMessageFromJson(json); static const toJsonFactory = _$UserDeletedMessageToJson; Map toJson() => _$UserDeletedMessageToJson(this); @@ -53161,8 +50724,7 @@ class UserDeletedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userdeleted, @@ -53174,8 +50736,7 @@ class UserDeletedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserDeletedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -53244,8 +50805,7 @@ class UserDto { this.primaryImageAspectRatio, }); - factory UserDto.fromJson(Map json) => - _$UserDtoFromJson(json); + factory UserDto.fromJson(Map json) => _$UserDtoFromJson(json); static const toJsonFactory = _$UserDtoToJson; Map toJson() => _$UserDtoToJson(this); @@ -53285,8 +50845,7 @@ class UserDto { bool operator ==(Object other) { return identical(this, other) || (other is UserDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -53297,8 +50856,7 @@ class UserDto { other.serverName, serverName, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.primaryImageTag, primaryImageTag) || const DeepCollectionEquality().equals( other.primaryImageTag, @@ -53342,8 +50900,7 @@ class UserDto { other.configuration, configuration, )) && - (identical(other.policy, policy) || - const DeepCollectionEquality().equals(other.policy, policy)) && + (identical(other.policy, policy) || const DeepCollectionEquality().equals(other.policy, policy)) && (identical( other.primaryImageAspectRatio, primaryImageAspectRatio, @@ -53400,17 +50957,14 @@ extension $UserDtoExtension on UserDto { id: id ?? this.id, primaryImageTag: primaryImageTag ?? this.primaryImageTag, hasPassword: hasPassword ?? this.hasPassword, - hasConfiguredPassword: - hasConfiguredPassword ?? this.hasConfiguredPassword, - hasConfiguredEasyPassword: - hasConfiguredEasyPassword ?? this.hasConfiguredEasyPassword, + hasConfiguredPassword: hasConfiguredPassword ?? this.hasConfiguredPassword, + hasConfiguredEasyPassword: hasConfiguredEasyPassword ?? this.hasConfiguredEasyPassword, enableAutoLogin: enableAutoLogin ?? this.enableAutoLogin, lastLoginDate: lastLoginDate ?? this.lastLoginDate, lastActivityDate: lastActivityDate ?? this.lastActivityDate, configuration: configuration ?? this.configuration, policy: policy ?? this.policy, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, ); } @@ -53435,32 +50989,18 @@ extension $UserDtoExtension on UserDto { serverId: (serverId != null ? serverId.value : this.serverId), serverName: (serverName != null ? serverName.value : this.serverName), id: (id != null ? id.value : this.id), - primaryImageTag: (primaryImageTag != null - ? primaryImageTag.value - : this.primaryImageTag), + primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), hasPassword: (hasPassword != null ? hasPassword.value : this.hasPassword), - hasConfiguredPassword: (hasConfiguredPassword != null - ? hasConfiguredPassword.value - : this.hasConfiguredPassword), - hasConfiguredEasyPassword: (hasConfiguredEasyPassword != null - ? hasConfiguredEasyPassword.value - : this.hasConfiguredEasyPassword), - enableAutoLogin: (enableAutoLogin != null - ? enableAutoLogin.value - : this.enableAutoLogin), - lastLoginDate: (lastLoginDate != null - ? lastLoginDate.value - : this.lastLoginDate), - lastActivityDate: (lastActivityDate != null - ? lastActivityDate.value - : this.lastActivityDate), - configuration: (configuration != null - ? configuration.value - : this.configuration), + hasConfiguredPassword: (hasConfiguredPassword != null ? hasConfiguredPassword.value : this.hasConfiguredPassword), + hasConfiguredEasyPassword: + (hasConfiguredEasyPassword != null ? hasConfiguredEasyPassword.value : this.hasConfiguredEasyPassword), + enableAutoLogin: (enableAutoLogin != null ? enableAutoLogin.value : this.enableAutoLogin), + lastLoginDate: (lastLoginDate != null ? lastLoginDate.value : this.lastLoginDate), + lastActivityDate: (lastActivityDate != null ? lastActivityDate.value : this.lastActivityDate), + configuration: (configuration != null ? configuration.value : this.configuration), policy: (policy != null ? policy.value : this.policy), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio), + primaryImageAspectRatio: + (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), ); } } @@ -53481,8 +51021,7 @@ class UserItemDataDto { this.itemId, }); - factory UserItemDataDto.fromJson(Map json) => - _$UserItemDataDtoFromJson(json); + factory UserItemDataDto.fromJson(Map json) => _$UserItemDataDtoFromJson(json); static const toJsonFactory = _$UserItemDataDtoToJson; Map toJson() => _$UserItemDataDtoToJson(this); @@ -53515,8 +51054,7 @@ class UserItemDataDto { bool operator ==(Object other) { return identical(this, other) || (other is UserItemDataDto && - (identical(other.rating, rating) || - const DeepCollectionEquality().equals(other.rating, rating)) && + (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || const DeepCollectionEquality().equals( other.playedPercentage, @@ -53542,19 +51080,15 @@ class UserItemDataDto { other.isFavorite, isFavorite, )) && - (identical(other.likes, likes) || - const DeepCollectionEquality().equals(other.likes, likes)) && + (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || const DeepCollectionEquality().equals( other.lastPlayedDate, lastPlayedDate, )) && - (identical(other.played, played) || - const DeepCollectionEquality().equals(other.played, played)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId))); + (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId))); } @override @@ -53594,8 +51128,7 @@ extension $UserItemDataDtoExtension on UserItemDataDto { rating: rating ?? this.rating, playedPercentage: playedPercentage ?? this.playedPercentage, unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: - playbackPositionTicks ?? this.playbackPositionTicks, + playbackPositionTicks: playbackPositionTicks ?? this.playbackPositionTicks, playCount: playCount ?? this.playCount, isFavorite: isFavorite ?? this.isFavorite, likes: likes ?? this.likes, @@ -53621,21 +51154,13 @@ extension $UserItemDataDtoExtension on UserItemDataDto { }) { return UserItemDataDto( rating: (rating != null ? rating.value : this.rating), - playedPercentage: (playedPercentage != null - ? playedPercentage.value - : this.playedPercentage), - unplayedItemCount: (unplayedItemCount != null - ? unplayedItemCount.value - : this.unplayedItemCount), - playbackPositionTicks: (playbackPositionTicks != null - ? playbackPositionTicks.value - : this.playbackPositionTicks), + playedPercentage: (playedPercentage != null ? playedPercentage.value : this.playedPercentage), + unplayedItemCount: (unplayedItemCount != null ? unplayedItemCount.value : this.unplayedItemCount), + playbackPositionTicks: (playbackPositionTicks != null ? playbackPositionTicks.value : this.playbackPositionTicks), playCount: (playCount != null ? playCount.value : this.playCount), isFavorite: (isFavorite != null ? isFavorite.value : this.isFavorite), likes: (likes != null ? likes.value : this.likes), - lastPlayedDate: (lastPlayedDate != null - ? lastPlayedDate.value - : this.lastPlayedDate), + lastPlayedDate: (lastPlayedDate != null ? lastPlayedDate.value : this.lastPlayedDate), played: (played != null ? played.value : this.played), key: (key != null ? key.value : this.key), itemId: (itemId != null ? itemId.value : this.itemId), @@ -53692,8 +51217,7 @@ class UserPolicy { this.syncPlayAccess, }); - factory UserPolicy.fromJson(Map json) => - _$UserPolicyFromJson(json); + factory UserPolicy.fromJson(Map json) => _$UserPolicyFromJson(json); static const toJsonFactory = _$UserPolicyToJson; Map toJson() => _$UserPolicyToJson(this); @@ -54211,70 +51735,47 @@ extension $UserPolicyExtension on UserPolicy { return UserPolicy( isAdministrator: isAdministrator ?? this.isAdministrator, isHidden: isHidden ?? this.isHidden, - enableCollectionManagement: - enableCollectionManagement ?? this.enableCollectionManagement, - enableSubtitleManagement: - enableSubtitleManagement ?? this.enableSubtitleManagement, - enableLyricManagement: - enableLyricManagement ?? this.enableLyricManagement, + enableCollectionManagement: enableCollectionManagement ?? this.enableCollectionManagement, + enableSubtitleManagement: enableSubtitleManagement ?? this.enableSubtitleManagement, + enableLyricManagement: enableLyricManagement ?? this.enableLyricManagement, isDisabled: isDisabled ?? this.isDisabled, maxParentalRating: maxParentalRating ?? this.maxParentalRating, maxParentalSubRating: maxParentalSubRating ?? this.maxParentalSubRating, blockedTags: blockedTags ?? this.blockedTags, allowedTags: allowedTags ?? this.allowedTags, - enableUserPreferenceAccess: - enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, + enableUserPreferenceAccess: enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, accessSchedules: accessSchedules ?? this.accessSchedules, blockUnratedItems: blockUnratedItems ?? this.blockUnratedItems, - enableRemoteControlOfOtherUsers: - enableRemoteControlOfOtherUsers ?? - this.enableRemoteControlOfOtherUsers, - enableSharedDeviceControl: - enableSharedDeviceControl ?? this.enableSharedDeviceControl, + enableRemoteControlOfOtherUsers: enableRemoteControlOfOtherUsers ?? this.enableRemoteControlOfOtherUsers, + enableSharedDeviceControl: enableSharedDeviceControl ?? this.enableSharedDeviceControl, enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - enableLiveTvManagement: - enableLiveTvManagement ?? this.enableLiveTvManagement, + enableLiveTvManagement: enableLiveTvManagement ?? this.enableLiveTvManagement, enableLiveTvAccess: enableLiveTvAccess ?? this.enableLiveTvAccess, enableMediaPlayback: enableMediaPlayback ?? this.enableMediaPlayback, - enableAudioPlaybackTranscoding: - enableAudioPlaybackTranscoding ?? this.enableAudioPlaybackTranscoding, - enableVideoPlaybackTranscoding: - enableVideoPlaybackTranscoding ?? this.enableVideoPlaybackTranscoding, - enablePlaybackRemuxing: - enablePlaybackRemuxing ?? this.enablePlaybackRemuxing, - forceRemoteSourceTranscoding: - forceRemoteSourceTranscoding ?? this.forceRemoteSourceTranscoding, - enableContentDeletion: - enableContentDeletion ?? this.enableContentDeletion, - enableContentDeletionFromFolders: - enableContentDeletionFromFolders ?? - this.enableContentDeletionFromFolders, - enableContentDownloading: - enableContentDownloading ?? this.enableContentDownloading, - enableSyncTranscoding: - enableSyncTranscoding ?? this.enableSyncTranscoding, - enableMediaConversion: - enableMediaConversion ?? this.enableMediaConversion, + enableAudioPlaybackTranscoding: enableAudioPlaybackTranscoding ?? this.enableAudioPlaybackTranscoding, + enableVideoPlaybackTranscoding: enableVideoPlaybackTranscoding ?? this.enableVideoPlaybackTranscoding, + enablePlaybackRemuxing: enablePlaybackRemuxing ?? this.enablePlaybackRemuxing, + forceRemoteSourceTranscoding: forceRemoteSourceTranscoding ?? this.forceRemoteSourceTranscoding, + enableContentDeletion: enableContentDeletion ?? this.enableContentDeletion, + enableContentDeletionFromFolders: enableContentDeletionFromFolders ?? this.enableContentDeletionFromFolders, + enableContentDownloading: enableContentDownloading ?? this.enableContentDownloading, + enableSyncTranscoding: enableSyncTranscoding ?? this.enableSyncTranscoding, + enableMediaConversion: enableMediaConversion ?? this.enableMediaConversion, enabledDevices: enabledDevices ?? this.enabledDevices, enableAllDevices: enableAllDevices ?? this.enableAllDevices, enabledChannels: enabledChannels ?? this.enabledChannels, enableAllChannels: enableAllChannels ?? this.enableAllChannels, enabledFolders: enabledFolders ?? this.enabledFolders, enableAllFolders: enableAllFolders ?? this.enableAllFolders, - invalidLoginAttemptCount: - invalidLoginAttemptCount ?? this.invalidLoginAttemptCount, - loginAttemptsBeforeLockout: - loginAttemptsBeforeLockout ?? this.loginAttemptsBeforeLockout, + invalidLoginAttemptCount: invalidLoginAttemptCount ?? this.invalidLoginAttemptCount, + loginAttemptsBeforeLockout: loginAttemptsBeforeLockout ?? this.loginAttemptsBeforeLockout, maxActiveSessions: maxActiveSessions ?? this.maxActiveSessions, enablePublicSharing: enablePublicSharing ?? this.enablePublicSharing, blockedMediaFolders: blockedMediaFolders ?? this.blockedMediaFolders, blockedChannels: blockedChannels ?? this.blockedChannels, - remoteClientBitrateLimit: - remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, - authenticationProviderId: - authenticationProviderId ?? this.authenticationProviderId, - passwordResetProviderId: - passwordResetProviderId ?? this.passwordResetProviderId, + remoteClientBitrateLimit: remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, + authenticationProviderId: authenticationProviderId ?? this.authenticationProviderId, + passwordResetProviderId: passwordResetProviderId ?? this.passwordResetProviderId, syncPlayAccess: syncPlayAccess ?? this.syncPlayAccess, ); } @@ -54326,131 +51827,72 @@ extension $UserPolicyExtension on UserPolicy { Wrapped? syncPlayAccess, }) { return UserPolicy( - isAdministrator: (isAdministrator != null - ? isAdministrator.value - : this.isAdministrator), + isAdministrator: (isAdministrator != null ? isAdministrator.value : this.isAdministrator), isHidden: (isHidden != null ? isHidden.value : this.isHidden), - enableCollectionManagement: (enableCollectionManagement != null - ? enableCollectionManagement.value - : this.enableCollectionManagement), - enableSubtitleManagement: (enableSubtitleManagement != null - ? enableSubtitleManagement.value - : this.enableSubtitleManagement), - enableLyricManagement: (enableLyricManagement != null - ? enableLyricManagement.value - : this.enableLyricManagement), + enableCollectionManagement: + (enableCollectionManagement != null ? enableCollectionManagement.value : this.enableCollectionManagement), + enableSubtitleManagement: + (enableSubtitleManagement != null ? enableSubtitleManagement.value : this.enableSubtitleManagement), + enableLyricManagement: (enableLyricManagement != null ? enableLyricManagement.value : this.enableLyricManagement), isDisabled: (isDisabled != null ? isDisabled.value : this.isDisabled), - maxParentalRating: (maxParentalRating != null - ? maxParentalRating.value - : this.maxParentalRating), - maxParentalSubRating: (maxParentalSubRating != null - ? maxParentalSubRating.value - : this.maxParentalSubRating), + maxParentalRating: (maxParentalRating != null ? maxParentalRating.value : this.maxParentalRating), + maxParentalSubRating: (maxParentalSubRating != null ? maxParentalSubRating.value : this.maxParentalSubRating), blockedTags: (blockedTags != null ? blockedTags.value : this.blockedTags), allowedTags: (allowedTags != null ? allowedTags.value : this.allowedTags), - enableUserPreferenceAccess: (enableUserPreferenceAccess != null - ? enableUserPreferenceAccess.value - : this.enableUserPreferenceAccess), - accessSchedules: (accessSchedules != null - ? accessSchedules.value - : this.accessSchedules), - blockUnratedItems: (blockUnratedItems != null - ? blockUnratedItems.value - : this.blockUnratedItems), + enableUserPreferenceAccess: + (enableUserPreferenceAccess != null ? enableUserPreferenceAccess.value : this.enableUserPreferenceAccess), + accessSchedules: (accessSchedules != null ? accessSchedules.value : this.accessSchedules), + blockUnratedItems: (blockUnratedItems != null ? blockUnratedItems.value : this.blockUnratedItems), enableRemoteControlOfOtherUsers: (enableRemoteControlOfOtherUsers != null ? enableRemoteControlOfOtherUsers.value : this.enableRemoteControlOfOtherUsers), - enableSharedDeviceControl: (enableSharedDeviceControl != null - ? enableSharedDeviceControl.value - : this.enableSharedDeviceControl), - enableRemoteAccess: (enableRemoteAccess != null - ? enableRemoteAccess.value - : this.enableRemoteAccess), - enableLiveTvManagement: (enableLiveTvManagement != null - ? enableLiveTvManagement.value - : this.enableLiveTvManagement), - enableLiveTvAccess: (enableLiveTvAccess != null - ? enableLiveTvAccess.value - : this.enableLiveTvAccess), - enableMediaPlayback: (enableMediaPlayback != null - ? enableMediaPlayback.value - : this.enableMediaPlayback), + enableSharedDeviceControl: + (enableSharedDeviceControl != null ? enableSharedDeviceControl.value : this.enableSharedDeviceControl), + enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), + enableLiveTvManagement: + (enableLiveTvManagement != null ? enableLiveTvManagement.value : this.enableLiveTvManagement), + enableLiveTvAccess: (enableLiveTvAccess != null ? enableLiveTvAccess.value : this.enableLiveTvAccess), + enableMediaPlayback: (enableMediaPlayback != null ? enableMediaPlayback.value : this.enableMediaPlayback), enableAudioPlaybackTranscoding: (enableAudioPlaybackTranscoding != null ? enableAudioPlaybackTranscoding.value : this.enableAudioPlaybackTranscoding), enableVideoPlaybackTranscoding: (enableVideoPlaybackTranscoding != null ? enableVideoPlaybackTranscoding.value : this.enableVideoPlaybackTranscoding), - enablePlaybackRemuxing: (enablePlaybackRemuxing != null - ? enablePlaybackRemuxing.value - : this.enablePlaybackRemuxing), + enablePlaybackRemuxing: + (enablePlaybackRemuxing != null ? enablePlaybackRemuxing.value : this.enablePlaybackRemuxing), forceRemoteSourceTranscoding: (forceRemoteSourceTranscoding != null ? forceRemoteSourceTranscoding.value : this.forceRemoteSourceTranscoding), - enableContentDeletion: (enableContentDeletion != null - ? enableContentDeletion.value - : this.enableContentDeletion), - enableContentDeletionFromFolders: - (enableContentDeletionFromFolders != null + enableContentDeletion: (enableContentDeletion != null ? enableContentDeletion.value : this.enableContentDeletion), + enableContentDeletionFromFolders: (enableContentDeletionFromFolders != null ? enableContentDeletionFromFolders.value : this.enableContentDeletionFromFolders), - enableContentDownloading: (enableContentDownloading != null - ? enableContentDownloading.value - : this.enableContentDownloading), - enableSyncTranscoding: (enableSyncTranscoding != null - ? enableSyncTranscoding.value - : this.enableSyncTranscoding), - enableMediaConversion: (enableMediaConversion != null - ? enableMediaConversion.value - : this.enableMediaConversion), - enabledDevices: (enabledDevices != null - ? enabledDevices.value - : this.enabledDevices), - enableAllDevices: (enableAllDevices != null - ? enableAllDevices.value - : this.enableAllDevices), - enabledChannels: (enabledChannels != null - ? enabledChannels.value - : this.enabledChannels), - enableAllChannels: (enableAllChannels != null - ? enableAllChannels.value - : this.enableAllChannels), - enabledFolders: (enabledFolders != null - ? enabledFolders.value - : this.enabledFolders), - enableAllFolders: (enableAllFolders != null - ? enableAllFolders.value - : this.enableAllFolders), - invalidLoginAttemptCount: (invalidLoginAttemptCount != null - ? invalidLoginAttemptCount.value - : this.invalidLoginAttemptCount), - loginAttemptsBeforeLockout: (loginAttemptsBeforeLockout != null - ? loginAttemptsBeforeLockout.value - : this.loginAttemptsBeforeLockout), - maxActiveSessions: (maxActiveSessions != null - ? maxActiveSessions.value - : this.maxActiveSessions), - enablePublicSharing: (enablePublicSharing != null - ? enablePublicSharing.value - : this.enablePublicSharing), - blockedMediaFolders: (blockedMediaFolders != null - ? blockedMediaFolders.value - : this.blockedMediaFolders), - blockedChannels: (blockedChannels != null - ? blockedChannels.value - : this.blockedChannels), - remoteClientBitrateLimit: (remoteClientBitrateLimit != null - ? remoteClientBitrateLimit.value - : this.remoteClientBitrateLimit), - authenticationProviderId: (authenticationProviderId != null - ? authenticationProviderId.value - : this.authenticationProviderId), - passwordResetProviderId: (passwordResetProviderId != null - ? passwordResetProviderId.value - : this.passwordResetProviderId), - syncPlayAccess: (syncPlayAccess != null - ? syncPlayAccess.value - : this.syncPlayAccess), + enableContentDownloading: + (enableContentDownloading != null ? enableContentDownloading.value : this.enableContentDownloading), + enableSyncTranscoding: (enableSyncTranscoding != null ? enableSyncTranscoding.value : this.enableSyncTranscoding), + enableMediaConversion: (enableMediaConversion != null ? enableMediaConversion.value : this.enableMediaConversion), + enabledDevices: (enabledDevices != null ? enabledDevices.value : this.enabledDevices), + enableAllDevices: (enableAllDevices != null ? enableAllDevices.value : this.enableAllDevices), + enabledChannels: (enabledChannels != null ? enabledChannels.value : this.enabledChannels), + enableAllChannels: (enableAllChannels != null ? enableAllChannels.value : this.enableAllChannels), + enabledFolders: (enabledFolders != null ? enabledFolders.value : this.enabledFolders), + enableAllFolders: (enableAllFolders != null ? enableAllFolders.value : this.enableAllFolders), + invalidLoginAttemptCount: + (invalidLoginAttemptCount != null ? invalidLoginAttemptCount.value : this.invalidLoginAttemptCount), + loginAttemptsBeforeLockout: + (loginAttemptsBeforeLockout != null ? loginAttemptsBeforeLockout.value : this.loginAttemptsBeforeLockout), + maxActiveSessions: (maxActiveSessions != null ? maxActiveSessions.value : this.maxActiveSessions), + enablePublicSharing: (enablePublicSharing != null ? enablePublicSharing.value : this.enablePublicSharing), + blockedMediaFolders: (blockedMediaFolders != null ? blockedMediaFolders.value : this.blockedMediaFolders), + blockedChannels: (blockedChannels != null ? blockedChannels.value : this.blockedChannels), + remoteClientBitrateLimit: + (remoteClientBitrateLimit != null ? remoteClientBitrateLimit.value : this.remoteClientBitrateLimit), + authenticationProviderId: + (authenticationProviderId != null ? authenticationProviderId.value : this.authenticationProviderId), + passwordResetProviderId: + (passwordResetProviderId != null ? passwordResetProviderId.value : this.passwordResetProviderId), + syncPlayAccess: (syncPlayAccess != null ? syncPlayAccess.value : this.syncPlayAccess), ); } } @@ -54459,8 +51901,7 @@ extension $UserPolicyExtension on UserPolicy { class UserUpdatedMessage { const UserUpdatedMessage({this.data, this.messageId, this.messageType}); - factory UserUpdatedMessage.fromJson(Map json) => - _$UserUpdatedMessageFromJson(json); + factory UserUpdatedMessage.fromJson(Map json) => _$UserUpdatedMessageFromJson(json); static const toJsonFactory = _$UserUpdatedMessageToJson; Map toJson() => _$UserUpdatedMessageToJson(this); @@ -54476,8 +51917,7 @@ class UserUpdatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userupdated, @@ -54489,8 +51929,7 @@ class UserUpdatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserUpdatedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -54547,8 +51986,7 @@ class UtcTimeResponse { this.responseTransmissionTime, }); - factory UtcTimeResponse.fromJson(Map json) => - _$UtcTimeResponseFromJson(json); + factory UtcTimeResponse.fromJson(Map json) => _$UtcTimeResponseFromJson(json); static const toJsonFactory = _$UtcTimeResponseToJson; Map toJson() => _$UtcTimeResponseToJson(this); @@ -54595,8 +52033,7 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { }) { return UtcTimeResponse( requestReceptionTime: requestReceptionTime ?? this.requestReceptionTime, - responseTransmissionTime: - responseTransmissionTime ?? this.responseTransmissionTime, + responseTransmissionTime: responseTransmissionTime ?? this.responseTransmissionTime, ); } @@ -54605,12 +52042,9 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { Wrapped? responseTransmissionTime, }) { return UtcTimeResponse( - requestReceptionTime: (requestReceptionTime != null - ? requestReceptionTime.value - : this.requestReceptionTime), - responseTransmissionTime: (responseTransmissionTime != null - ? responseTransmissionTime.value - : this.responseTransmissionTime), + requestReceptionTime: (requestReceptionTime != null ? requestReceptionTime.value : this.requestReceptionTime), + responseTransmissionTime: + (responseTransmissionTime != null ? responseTransmissionTime.value : this.responseTransmissionTime), ); } } @@ -54619,8 +52053,7 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { class ValidatePathDto { const ValidatePathDto({this.validateWritable, this.path, this.isFile}); - factory ValidatePathDto.fromJson(Map json) => - _$ValidatePathDtoFromJson(json); + factory ValidatePathDto.fromJson(Map json) => _$ValidatePathDtoFromJson(json); static const toJsonFactory = _$ValidatePathDtoToJson; Map toJson() => _$ValidatePathDtoToJson(this); @@ -54642,10 +52075,8 @@ class ValidatePathDto { other.validateWritable, validateWritable, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.isFile, isFile) || - const DeepCollectionEquality().equals(other.isFile, isFile))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.isFile, isFile) || const DeepCollectionEquality().equals(other.isFile, isFile))); } @override @@ -54678,9 +52109,7 @@ extension $ValidatePathDtoExtension on ValidatePathDto { Wrapped? isFile, }) { return ValidatePathDto( - validateWritable: (validateWritable != null - ? validateWritable.value - : this.validateWritable), + validateWritable: (validateWritable != null ? validateWritable.value : this.validateWritable), path: (path != null ? path.value : this.path), isFile: (isFile != null ? isFile.value : this.isFile), ); @@ -54701,8 +52130,7 @@ class VersionInfo { this.repositoryUrl, }); - factory VersionInfo.fromJson(Map json) => - _$VersionInfoFromJson(json); + factory VersionInfo.fromJson(Map json) => _$VersionInfoFromJson(json); static const toJsonFactory = _$VersionInfoToJson; Map toJson() => _$VersionInfoToJson(this); @@ -54833,20 +52261,14 @@ extension $VersionInfoExtension on VersionInfo { }) { return VersionInfo( version: (version != null ? version.value : this.version), - versionNumber: (versionNumber != null - ? versionNumber.value - : this.versionNumber), + versionNumber: (versionNumber != null ? versionNumber.value : this.versionNumber), changelog: (changelog != null ? changelog.value : this.changelog), targetAbi: (targetAbi != null ? targetAbi.value : this.targetAbi), sourceUrl: (sourceUrl != null ? sourceUrl.value : this.sourceUrl), checksum: (checksum != null ? checksum.value : this.checksum), timestamp: (timestamp != null ? timestamp.value : this.timestamp), - repositoryName: (repositoryName != null - ? repositoryName.value - : this.repositoryName), - repositoryUrl: (repositoryUrl != null - ? repositoryUrl.value - : this.repositoryUrl), + repositoryName: (repositoryName != null ? repositoryName.value : this.repositoryName), + repositoryUrl: (repositoryUrl != null ? repositoryUrl.value : this.repositoryUrl), ); } } @@ -54864,8 +52286,7 @@ class VirtualFolderInfo { this.refreshStatus, }); - factory VirtualFolderInfo.fromJson(Map json) => - _$VirtualFolderInfoFromJson(json); + factory VirtualFolderInfo.fromJson(Map json) => _$VirtualFolderInfoFromJson(json); static const toJsonFactory = _$VirtualFolderInfoToJson; Map toJson() => _$VirtualFolderInfoToJson(this); @@ -54897,8 +52318,7 @@ class VirtualFolderInfo { bool operator ==(Object other) { return identical(this, other) || (other is VirtualFolderInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.locations, locations) || const DeepCollectionEquality().equals( other.locations, @@ -54914,8 +52334,7 @@ class VirtualFolderInfo { other.libraryOptions, libraryOptions, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.primaryImageItemId, primaryImageItemId) || const DeepCollectionEquality().equals( other.primaryImageItemId, @@ -54985,22 +52404,12 @@ extension $VirtualFolderInfoExtension on VirtualFolderInfo { return VirtualFolderInfo( name: (name != null ? name.value : this.name), locations: (locations != null ? locations.value : this.locations), - collectionType: (collectionType != null - ? collectionType.value - : this.collectionType), - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions), + collectionType: (collectionType != null ? collectionType.value : this.collectionType), + libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), itemId: (itemId != null ? itemId.value : this.itemId), - primaryImageItemId: (primaryImageItemId != null - ? primaryImageItemId.value - : this.primaryImageItemId), - refreshProgress: (refreshProgress != null - ? refreshProgress.value - : this.refreshProgress), - refreshStatus: (refreshStatus != null - ? refreshStatus.value - : this.refreshStatus), + primaryImageItemId: (primaryImageItemId != null ? primaryImageItemId.value : this.primaryImageItemId), + refreshProgress: (refreshProgress != null ? refreshProgress.value : this.refreshProgress), + refreshStatus: (refreshStatus != null ? refreshStatus.value : this.refreshStatus), ); } } @@ -55009,8 +52418,7 @@ extension $VirtualFolderInfoExtension on VirtualFolderInfo { class WebSocketMessage { const WebSocketMessage(); - factory WebSocketMessage.fromJson(Map json) => - _$WebSocketMessageFromJson(json); + factory WebSocketMessage.fromJson(Map json) => _$WebSocketMessageFromJson(json); static const toJsonFactory = _$WebSocketMessageToJson; Map toJson() => _$WebSocketMessageToJson(this); @@ -55034,8 +52442,7 @@ class XbmcMetadataOptions { this.enableExtraThumbsDuplication, }); - factory XbmcMetadataOptions.fromJson(Map json) => - _$XbmcMetadataOptionsFromJson(json); + factory XbmcMetadataOptions.fromJson(Map json) => _$XbmcMetadataOptionsFromJson(json); static const toJsonFactory = _$XbmcMetadataOptionsToJson; Map toJson() => _$XbmcMetadataOptionsToJson(this); @@ -55056,8 +52463,7 @@ class XbmcMetadataOptions { bool operator ==(Object other) { return identical(this, other) || (other is XbmcMetadataOptions && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.releaseDateFormat, releaseDateFormat) || const DeepCollectionEquality().equals( other.releaseDateFormat, @@ -55108,10 +52514,8 @@ extension $XbmcMetadataOptionsExtension on XbmcMetadataOptions { userId: userId ?? this.userId, releaseDateFormat: releaseDateFormat ?? this.releaseDateFormat, saveImagePathsInNfo: saveImagePathsInNfo ?? this.saveImagePathsInNfo, - enablePathSubstitution: - enablePathSubstitution ?? this.enablePathSubstitution, - enableExtraThumbsDuplication: - enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication, + enablePathSubstitution: enablePathSubstitution ?? this.enablePathSubstitution, + enableExtraThumbsDuplication: enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication, ); } @@ -55124,15 +52528,10 @@ extension $XbmcMetadataOptionsExtension on XbmcMetadataOptions { }) { return XbmcMetadataOptions( userId: (userId != null ? userId.value : this.userId), - releaseDateFormat: (releaseDateFormat != null - ? releaseDateFormat.value - : this.releaseDateFormat), - saveImagePathsInNfo: (saveImagePathsInNfo != null - ? saveImagePathsInNfo.value - : this.saveImagePathsInNfo), - enablePathSubstitution: (enablePathSubstitution != null - ? enablePathSubstitution.value - : this.enablePathSubstitution), + releaseDateFormat: (releaseDateFormat != null ? releaseDateFormat.value : this.releaseDateFormat), + saveImagePathsInNfo: (saveImagePathsInNfo != null ? saveImagePathsInNfo.value : this.saveImagePathsInNfo), + enablePathSubstitution: + (enablePathSubstitution != null ? enablePathSubstitution.value : this.enablePathSubstitution), enableExtraThumbsDuplication: (enableExtraThumbsDuplication != null ? enableExtraThumbsDuplication.value : this.enableExtraThumbsDuplication), @@ -55201,30 +52600,23 @@ class BaseItemDto$ImageBlurHashes { other.primary, primary, )) && - (identical(other.art, art) || - const DeepCollectionEquality().equals(other.art, art)) && + (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || const DeepCollectionEquality().equals( other.backdrop, backdrop, )) && - (identical(other.banner, banner) || - const DeepCollectionEquality().equals(other.banner, banner)) && - (identical(other.logo, logo) || - const DeepCollectionEquality().equals(other.logo, logo)) && - (identical(other.thumb, thumb) || - const DeepCollectionEquality().equals(other.thumb, thumb)) && - (identical(other.disc, disc) || - const DeepCollectionEquality().equals(other.disc, disc)) && - (identical(other.box, box) || - const DeepCollectionEquality().equals(other.box, box)) && + (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && + (identical(other.logo, logo) || const DeepCollectionEquality().equals(other.logo, logo)) && + (identical(other.thumb, thumb) || const DeepCollectionEquality().equals(other.thumb, thumb)) && + (identical(other.disc, disc) || const DeepCollectionEquality().equals(other.disc, disc)) && + (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || const DeepCollectionEquality().equals( other.screenshot, screenshot, )) && - (identical(other.menu, menu) || - const DeepCollectionEquality().equals(other.menu, menu)) && + (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || const DeepCollectionEquality().equals( other.chapter, @@ -55235,8 +52627,7 @@ class BaseItemDto$ImageBlurHashes { other.boxRear, boxRear, )) && - (identical(other.profile, profile) || - const DeepCollectionEquality().equals(other.profile, profile))); + (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); } @override @@ -55387,30 +52778,23 @@ class BaseItemPerson$ImageBlurHashes { other.primary, primary, )) && - (identical(other.art, art) || - const DeepCollectionEquality().equals(other.art, art)) && + (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || const DeepCollectionEquality().equals( other.backdrop, backdrop, )) && - (identical(other.banner, banner) || - const DeepCollectionEquality().equals(other.banner, banner)) && - (identical(other.logo, logo) || - const DeepCollectionEquality().equals(other.logo, logo)) && - (identical(other.thumb, thumb) || - const DeepCollectionEquality().equals(other.thumb, thumb)) && - (identical(other.disc, disc) || - const DeepCollectionEquality().equals(other.disc, disc)) && - (identical(other.box, box) || - const DeepCollectionEquality().equals(other.box, box)) && + (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && + (identical(other.logo, logo) || const DeepCollectionEquality().equals(other.logo, logo)) && + (identical(other.thumb, thumb) || const DeepCollectionEquality().equals(other.thumb, thumb)) && + (identical(other.disc, disc) || const DeepCollectionEquality().equals(other.disc, disc)) && + (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || const DeepCollectionEquality().equals( other.screenshot, screenshot, )) && - (identical(other.menu, menu) || - const DeepCollectionEquality().equals(other.menu, menu)) && + (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || const DeepCollectionEquality().equals( other.chapter, @@ -55421,8 +52805,7 @@ class BaseItemPerson$ImageBlurHashes { other.boxRear, boxRear, )) && - (identical(other.profile, profile) || - const DeepCollectionEquality().equals(other.profile, profile))); + (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); } @override @@ -55446,8 +52829,7 @@ class BaseItemPerson$ImageBlurHashes { runtimeType.hashCode; } -extension $BaseItemPerson$ImageBlurHashesExtension - on BaseItemPerson$ImageBlurHashes { +extension $BaseItemPerson$ImageBlurHashesExtension on BaseItemPerson$ImageBlurHashes { BaseItemPerson$ImageBlurHashes copyWith({ Map? primary, Map? art, @@ -55571,9 +52953,7 @@ List audioSpatialFormatListFromJson( return defaultValue ?? []; } - return audioSpatialFormat - .map((e) => audioSpatialFormatFromJson(e.toString())) - .toList(); + return audioSpatialFormat.map((e) => audioSpatialFormatFromJson(e.toString())).toList(); } List? audioSpatialFormatNullableListFromJson( @@ -55584,9 +52964,7 @@ List? audioSpatialFormatNullableListFromJson( return defaultValue; } - return audioSpatialFormat - .map((e) => audioSpatialFormatFromJson(e.toString())) - .toList(); + return audioSpatialFormat.map((e) => audioSpatialFormatFromJson(e.toString())).toList(); } String? baseItemKindNullableToJson(enums.BaseItemKind? baseItemKind) { @@ -55715,9 +53093,7 @@ List channelItemSortFieldListFromJson( return defaultValue ?? []; } - return channelItemSortField - .map((e) => channelItemSortFieldFromJson(e.toString())) - .toList(); + return channelItemSortField.map((e) => channelItemSortFieldFromJson(e.toString())).toList(); } List? channelItemSortFieldNullableListFromJson( @@ -55728,9 +53104,7 @@ List? channelItemSortFieldNullableListFromJson( return defaultValue; } - return channelItemSortField - .map((e) => channelItemSortFieldFromJson(e.toString())) - .toList(); + return channelItemSortField.map((e) => channelItemSortFieldFromJson(e.toString())).toList(); } String? channelMediaContentTypeNullableToJson( @@ -55793,13 +53167,10 @@ List channelMediaContentTypeListFromJson( return defaultValue ?? []; } - return channelMediaContentType - .map((e) => channelMediaContentTypeFromJson(e.toString())) - .toList(); + return channelMediaContentType.map((e) => channelMediaContentTypeFromJson(e.toString())).toList(); } -List? -channelMediaContentTypeNullableListFromJson( +List? channelMediaContentTypeNullableListFromJson( List? channelMediaContentType, [ List? defaultValue, ]) { @@ -55807,9 +53178,7 @@ channelMediaContentTypeNullableListFromJson( return defaultValue; } - return channelMediaContentType - .map((e) => channelMediaContentTypeFromJson(e.toString())) - .toList(); + return channelMediaContentType.map((e) => channelMediaContentTypeFromJson(e.toString())).toList(); } String? channelMediaTypeNullableToJson( @@ -55870,9 +53239,7 @@ List channelMediaTypeListFromJson( return defaultValue ?? []; } - return channelMediaType - .map((e) => channelMediaTypeFromJson(e.toString())) - .toList(); + return channelMediaType.map((e) => channelMediaTypeFromJson(e.toString())).toList(); } List? channelMediaTypeNullableListFromJson( @@ -55883,9 +53250,7 @@ List? channelMediaTypeNullableListFromJson( return defaultValue; } - return channelMediaType - .map((e) => channelMediaTypeFromJson(e.toString())) - .toList(); + return channelMediaType.map((e) => channelMediaTypeFromJson(e.toString())).toList(); } String? channelTypeNullableToJson(enums.ChannelType? channelType) { @@ -55978,8 +53343,7 @@ enums.CodecType? codecTypeNullableFromJson( if (codecType == null) { return null; } - return enums.CodecType.values.firstWhereOrNull((e) => e.value == codecType) ?? - defaultValue; + return enums.CodecType.values.firstWhereOrNull((e) => e.value == codecType) ?? defaultValue; } String codecTypeExplodedListToJson(List? codecType) { @@ -56072,9 +53436,7 @@ List collectionTypeListFromJson( return defaultValue ?? []; } - return collectionType - .map((e) => collectionTypeFromJson(e.toString())) - .toList(); + return collectionType.map((e) => collectionTypeFromJson(e.toString())).toList(); } List? collectionTypeNullableListFromJson( @@ -56085,9 +53447,7 @@ List? collectionTypeNullableListFromJson( return defaultValue; } - return collectionType - .map((e) => collectionTypeFromJson(e.toString())) - .toList(); + return collectionType.map((e) => collectionTypeFromJson(e.toString())).toList(); } String? collectionTypeOptionsNullableToJson( @@ -56150,9 +53510,7 @@ List collectionTypeOptionsListFromJson( return defaultValue ?? []; } - return collectionTypeOptions - .map((e) => collectionTypeOptionsFromJson(e.toString())) - .toList(); + return collectionTypeOptions.map((e) => collectionTypeOptionsFromJson(e.toString())).toList(); } List? collectionTypeOptionsNullableListFromJson( @@ -56163,9 +53521,7 @@ List? collectionTypeOptionsNullableListFromJson( return defaultValue; } - return collectionTypeOptions - .map((e) => collectionTypeOptionsFromJson(e.toString())) - .toList(); + return collectionTypeOptions.map((e) => collectionTypeOptionsFromJson(e.toString())).toList(); } String? databaseLockingBehaviorTypesNullableToJson( @@ -56191,8 +53547,7 @@ enums.DatabaseLockingBehaviorTypes databaseLockingBehaviorTypesFromJson( enums.DatabaseLockingBehaviorTypes.swaggerGeneratedUnknown; } -enums.DatabaseLockingBehaviorTypes? -databaseLockingBehaviorTypesNullableFromJson( +enums.DatabaseLockingBehaviorTypes? databaseLockingBehaviorTypesNullableFromJson( Object? databaseLockingBehaviorTypes, [ enums.DatabaseLockingBehaviorTypes? defaultValue, ]) { @@ -56221,8 +53576,7 @@ List databaseLockingBehaviorTypesListToJson( return databaseLockingBehaviorTypes.map((e) => e.value!).toList(); } -List -databaseLockingBehaviorTypesListFromJson( +List databaseLockingBehaviorTypesListFromJson( List? databaseLockingBehaviorTypes, [ List? defaultValue, ]) { @@ -56230,13 +53584,10 @@ databaseLockingBehaviorTypesListFromJson( return defaultValue ?? []; } - return databaseLockingBehaviorTypes - .map((e) => databaseLockingBehaviorTypesFromJson(e.toString())) - .toList(); + return databaseLockingBehaviorTypes.map((e) => databaseLockingBehaviorTypesFromJson(e.toString())).toList(); } -List? -databaseLockingBehaviorTypesNullableListFromJson( +List? databaseLockingBehaviorTypesNullableListFromJson( List? databaseLockingBehaviorTypes, [ List? defaultValue, ]) { @@ -56244,9 +53595,7 @@ databaseLockingBehaviorTypesNullableListFromJson( return defaultValue; } - return databaseLockingBehaviorTypes - .map((e) => databaseLockingBehaviorTypesFromJson(e.toString())) - .toList(); + return databaseLockingBehaviorTypes.map((e) => databaseLockingBehaviorTypesFromJson(e.toString())).toList(); } String? dayOfWeekNullableToJson(enums.DayOfWeek? dayOfWeek) { @@ -56273,8 +53622,7 @@ enums.DayOfWeek? dayOfWeekNullableFromJson( if (dayOfWeek == null) { return null; } - return enums.DayOfWeek.values.firstWhereOrNull((e) => e.value == dayOfWeek) ?? - defaultValue; + return enums.DayOfWeek.values.firstWhereOrNull((e) => e.value == dayOfWeek) ?? defaultValue; } String dayOfWeekExplodedListToJson(List? dayOfWeek) { @@ -56435,9 +53783,7 @@ List deinterlaceMethodListFromJson( return defaultValue ?? []; } - return deinterlaceMethod - .map((e) => deinterlaceMethodFromJson(e.toString())) - .toList(); + return deinterlaceMethod.map((e) => deinterlaceMethodFromJson(e.toString())).toList(); } List? deinterlaceMethodNullableListFromJson( @@ -56448,9 +53794,7 @@ List? deinterlaceMethodNullableListFromJson( return defaultValue; } - return deinterlaceMethod - .map((e) => deinterlaceMethodFromJson(e.toString())) - .toList(); + return deinterlaceMethod.map((e) => deinterlaceMethodFromJson(e.toString())).toList(); } String? dlnaProfileTypeNullableToJson(enums.DlnaProfileType? dlnaProfileType) { @@ -56509,9 +53853,7 @@ List dlnaProfileTypeListFromJson( return defaultValue ?? []; } - return dlnaProfileType - .map((e) => dlnaProfileTypeFromJson(e.toString())) - .toList(); + return dlnaProfileType.map((e) => dlnaProfileTypeFromJson(e.toString())).toList(); } List? dlnaProfileTypeNullableListFromJson( @@ -56522,9 +53864,7 @@ List? dlnaProfileTypeNullableListFromJson( return defaultValue; } - return dlnaProfileType - .map((e) => dlnaProfileTypeFromJson(e.toString())) - .toList(); + return dlnaProfileType.map((e) => dlnaProfileTypeFromJson(e.toString())).toList(); } String? downMixStereoAlgorithmsNullableToJson( @@ -56587,13 +53927,10 @@ List downMixStereoAlgorithmsListFromJson( return defaultValue ?? []; } - return downMixStereoAlgorithms - .map((e) => downMixStereoAlgorithmsFromJson(e.toString())) - .toList(); + return downMixStereoAlgorithms.map((e) => downMixStereoAlgorithmsFromJson(e.toString())).toList(); } -List? -downMixStereoAlgorithmsNullableListFromJson( +List? downMixStereoAlgorithmsNullableListFromJson( List? downMixStereoAlgorithms, [ List? defaultValue, ]) { @@ -56601,9 +53938,7 @@ downMixStereoAlgorithmsNullableListFromJson( return defaultValue; } - return downMixStereoAlgorithms - .map((e) => downMixStereoAlgorithmsFromJson(e.toString())) - .toList(); + return downMixStereoAlgorithms.map((e) => downMixStereoAlgorithmsFromJson(e.toString())).toList(); } String? dynamicDayOfWeekNullableToJson( @@ -56664,9 +53999,7 @@ List dynamicDayOfWeekListFromJson( return defaultValue ?? []; } - return dynamicDayOfWeek - .map((e) => dynamicDayOfWeekFromJson(e.toString())) - .toList(); + return dynamicDayOfWeek.map((e) => dynamicDayOfWeekFromJson(e.toString())).toList(); } List? dynamicDayOfWeekNullableListFromJson( @@ -56677,9 +54010,7 @@ List? dynamicDayOfWeekNullableListFromJson( return defaultValue; } - return dynamicDayOfWeek - .map((e) => dynamicDayOfWeekFromJson(e.toString())) - .toList(); + return dynamicDayOfWeek.map((e) => dynamicDayOfWeekFromJson(e.toString())).toList(); } String? embeddedSubtitleOptionsNullableToJson( @@ -56742,13 +54073,10 @@ List embeddedSubtitleOptionsListFromJson( return defaultValue ?? []; } - return embeddedSubtitleOptions - .map((e) => embeddedSubtitleOptionsFromJson(e.toString())) - .toList(); + return embeddedSubtitleOptions.map((e) => embeddedSubtitleOptionsFromJson(e.toString())).toList(); } -List? -embeddedSubtitleOptionsNullableListFromJson( +List? embeddedSubtitleOptionsNullableListFromJson( List? embeddedSubtitleOptions, [ List? defaultValue, ]) { @@ -56756,9 +54084,7 @@ embeddedSubtitleOptionsNullableListFromJson( return defaultValue; } - return embeddedSubtitleOptions - .map((e) => embeddedSubtitleOptionsFromJson(e.toString())) - .toList(); + return embeddedSubtitleOptions.map((e) => embeddedSubtitleOptionsFromJson(e.toString())).toList(); } String? encoderPresetNullableToJson(enums.EncoderPreset? encoderPreset) { @@ -56885,9 +54211,7 @@ List encodingContextListFromJson( return defaultValue ?? []; } - return encodingContext - .map((e) => encodingContextFromJson(e.toString())) - .toList(); + return encodingContext.map((e) => encodingContextFromJson(e.toString())).toList(); } List? encodingContextNullableListFromJson( @@ -56898,9 +54222,7 @@ List? encodingContextNullableListFromJson( return defaultValue; } - return encodingContext - .map((e) => encodingContextFromJson(e.toString())) - .toList(); + return encodingContext.map((e) => encodingContextFromJson(e.toString())).toList(); } String? externalIdMediaTypeNullableToJson( @@ -56963,9 +54285,7 @@ List externalIdMediaTypeListFromJson( return defaultValue ?? []; } - return externalIdMediaType - .map((e) => externalIdMediaTypeFromJson(e.toString())) - .toList(); + return externalIdMediaType.map((e) => externalIdMediaTypeFromJson(e.toString())).toList(); } List? externalIdMediaTypeNullableListFromJson( @@ -56976,9 +54296,7 @@ List? externalIdMediaTypeNullableListFromJson( return defaultValue; } - return externalIdMediaType - .map((e) => externalIdMediaTypeFromJson(e.toString())) - .toList(); + return externalIdMediaType.map((e) => externalIdMediaTypeFromJson(e.toString())).toList(); } String? extraTypeNullableToJson(enums.ExtraType? extraType) { @@ -57005,8 +54323,7 @@ enums.ExtraType? extraTypeNullableFromJson( if (extraType == null) { return null; } - return enums.ExtraType.values.firstWhereOrNull((e) => e.value == extraType) ?? - defaultValue; + return enums.ExtraType.values.firstWhereOrNull((e) => e.value == extraType) ?? defaultValue; } String extraTypeExplodedListToJson(List? extraType) { @@ -57103,9 +54420,7 @@ List fileSystemEntryTypeListFromJson( return defaultValue ?? []; } - return fileSystemEntryType - .map((e) => fileSystemEntryTypeFromJson(e.toString())) - .toList(); + return fileSystemEntryType.map((e) => fileSystemEntryTypeFromJson(e.toString())).toList(); } List? fileSystemEntryTypeNullableListFromJson( @@ -57116,9 +54431,7 @@ List? fileSystemEntryTypeNullableListFromJson( return defaultValue; } - return fileSystemEntryType - .map((e) => fileSystemEntryTypeFromJson(e.toString())) - .toList(); + return fileSystemEntryType.map((e) => fileSystemEntryTypeFromJson(e.toString())).toList(); } String? forgotPasswordActionNullableToJson( @@ -57181,9 +54494,7 @@ List forgotPasswordActionListFromJson( return defaultValue ?? []; } - return forgotPasswordAction - .map((e) => forgotPasswordActionFromJson(e.toString())) - .toList(); + return forgotPasswordAction.map((e) => forgotPasswordActionFromJson(e.toString())).toList(); } List? forgotPasswordActionNullableListFromJson( @@ -57194,9 +54505,7 @@ List? forgotPasswordActionNullableListFromJson( return defaultValue; } - return forgotPasswordAction - .map((e) => forgotPasswordActionFromJson(e.toString())) - .toList(); + return forgotPasswordAction.map((e) => forgotPasswordActionFromJson(e.toString())).toList(); } String? generalCommandTypeNullableToJson( @@ -57257,9 +54566,7 @@ List generalCommandTypeListFromJson( return defaultValue ?? []; } - return generalCommandType - .map((e) => generalCommandTypeFromJson(e.toString())) - .toList(); + return generalCommandType.map((e) => generalCommandTypeFromJson(e.toString())).toList(); } List? generalCommandTypeNullableListFromJson( @@ -57270,9 +54577,7 @@ List? generalCommandTypeNullableListFromJson( return defaultValue; } - return generalCommandType - .map((e) => generalCommandTypeFromJson(e.toString())) - .toList(); + return generalCommandType.map((e) => generalCommandTypeFromJson(e.toString())).toList(); } String? groupQueueModeNullableToJson(enums.GroupQueueMode? groupQueueMode) { @@ -57331,9 +54636,7 @@ List groupQueueModeListFromJson( return defaultValue ?? []; } - return groupQueueMode - .map((e) => groupQueueModeFromJson(e.toString())) - .toList(); + return groupQueueMode.map((e) => groupQueueModeFromJson(e.toString())).toList(); } List? groupQueueModeNullableListFromJson( @@ -57344,9 +54647,7 @@ List? groupQueueModeNullableListFromJson( return defaultValue; } - return groupQueueMode - .map((e) => groupQueueModeFromJson(e.toString())) - .toList(); + return groupQueueMode.map((e) => groupQueueModeFromJson(e.toString())).toList(); } String? groupRepeatModeNullableToJson(enums.GroupRepeatMode? groupRepeatMode) { @@ -57405,9 +54706,7 @@ List groupRepeatModeListFromJson( return defaultValue ?? []; } - return groupRepeatMode - .map((e) => groupRepeatModeFromJson(e.toString())) - .toList(); + return groupRepeatMode.map((e) => groupRepeatModeFromJson(e.toString())).toList(); } List? groupRepeatModeNullableListFromJson( @@ -57418,9 +54717,7 @@ List? groupRepeatModeNullableListFromJson( return defaultValue; } - return groupRepeatMode - .map((e) => groupRepeatModeFromJson(e.toString())) - .toList(); + return groupRepeatMode.map((e) => groupRepeatModeFromJson(e.toString())).toList(); } String? groupShuffleModeNullableToJson( @@ -57481,9 +54778,7 @@ List groupShuffleModeListFromJson( return defaultValue ?? []; } - return groupShuffleMode - .map((e) => groupShuffleModeFromJson(e.toString())) - .toList(); + return groupShuffleMode.map((e) => groupShuffleModeFromJson(e.toString())).toList(); } List? groupShuffleModeNullableListFromJson( @@ -57494,9 +54789,7 @@ List? groupShuffleModeNullableListFromJson( return defaultValue; } - return groupShuffleMode - .map((e) => groupShuffleModeFromJson(e.toString())) - .toList(); + return groupShuffleMode.map((e) => groupShuffleModeFromJson(e.toString())).toList(); } String? groupStateTypeNullableToJson(enums.GroupStateType? groupStateType) { @@ -57555,9 +54848,7 @@ List groupStateTypeListFromJson( return defaultValue ?? []; } - return groupStateType - .map((e) => groupStateTypeFromJson(e.toString())) - .toList(); + return groupStateType.map((e) => groupStateTypeFromJson(e.toString())).toList(); } List? groupStateTypeNullableListFromJson( @@ -57568,9 +54859,7 @@ List? groupStateTypeNullableListFromJson( return defaultValue; } - return groupStateType - .map((e) => groupStateTypeFromJson(e.toString())) - .toList(); + return groupStateType.map((e) => groupStateTypeFromJson(e.toString())).toList(); } String? groupUpdateTypeNullableToJson(enums.GroupUpdateType? groupUpdateType) { @@ -57629,9 +54918,7 @@ List groupUpdateTypeListFromJson( return defaultValue ?? []; } - return groupUpdateType - .map((e) => groupUpdateTypeFromJson(e.toString())) - .toList(); + return groupUpdateType.map((e) => groupUpdateTypeFromJson(e.toString())).toList(); } List? groupUpdateTypeNullableListFromJson( @@ -57642,9 +54929,7 @@ List? groupUpdateTypeNullableListFromJson( return defaultValue; } - return groupUpdateType - .map((e) => groupUpdateTypeFromJson(e.toString())) - .toList(); + return groupUpdateType.map((e) => groupUpdateTypeFromJson(e.toString())).toList(); } String? hardwareAccelerationTypeNullableToJson( @@ -57707,13 +54992,10 @@ List hardwareAccelerationTypeListFromJson( return defaultValue ?? []; } - return hardwareAccelerationType - .map((e) => hardwareAccelerationTypeFromJson(e.toString())) - .toList(); + return hardwareAccelerationType.map((e) => hardwareAccelerationTypeFromJson(e.toString())).toList(); } -List? -hardwareAccelerationTypeNullableListFromJson( +List? hardwareAccelerationTypeNullableListFromJson( List? hardwareAccelerationType, [ List? defaultValue, ]) { @@ -57721,9 +55003,7 @@ hardwareAccelerationTypeNullableListFromJson( return defaultValue; } - return hardwareAccelerationType - .map((e) => hardwareAccelerationTypeFromJson(e.toString())) - .toList(); + return hardwareAccelerationType.map((e) => hardwareAccelerationTypeFromJson(e.toString())).toList(); } String? imageFormatNullableToJson(enums.ImageFormat? imageFormat) { @@ -57850,9 +55130,7 @@ List imageOrientationListFromJson( return defaultValue ?? []; } - return imageOrientation - .map((e) => imageOrientationFromJson(e.toString())) - .toList(); + return imageOrientation.map((e) => imageOrientationFromJson(e.toString())).toList(); } List? imageOrientationNullableListFromJson( @@ -57863,9 +55141,7 @@ List? imageOrientationNullableListFromJson( return defaultValue; } - return imageOrientation - .map((e) => imageOrientationFromJson(e.toString())) - .toList(); + return imageOrientation.map((e) => imageOrientationFromJson(e.toString())).toList(); } String? imageResolutionNullableToJson(enums.ImageResolution? imageResolution) { @@ -57924,9 +55200,7 @@ List imageResolutionListFromJson( return defaultValue ?? []; } - return imageResolution - .map((e) => imageResolutionFromJson(e.toString())) - .toList(); + return imageResolution.map((e) => imageResolutionFromJson(e.toString())).toList(); } List? imageResolutionNullableListFromJson( @@ -57937,9 +55211,7 @@ List? imageResolutionNullableListFromJson( return defaultValue; } - return imageResolution - .map((e) => imageResolutionFromJson(e.toString())) - .toList(); + return imageResolution.map((e) => imageResolutionFromJson(e.toString())).toList(); } String? imageSavingConventionNullableToJson( @@ -58002,9 +55274,7 @@ List imageSavingConventionListFromJson( return defaultValue ?? []; } - return imageSavingConvention - .map((e) => imageSavingConventionFromJson(e.toString())) - .toList(); + return imageSavingConvention.map((e) => imageSavingConventionFromJson(e.toString())).toList(); } List? imageSavingConventionNullableListFromJson( @@ -58015,9 +55285,7 @@ List? imageSavingConventionNullableListFromJson( return defaultValue; } - return imageSavingConvention - .map((e) => imageSavingConventionFromJson(e.toString())) - .toList(); + return imageSavingConvention.map((e) => imageSavingConventionFromJson(e.toString())).toList(); } String? imageTypeNullableToJson(enums.ImageType? imageType) { @@ -58044,8 +55312,7 @@ enums.ImageType? imageTypeNullableFromJson( if (imageType == null) { return null; } - return enums.ImageType.values.firstWhereOrNull((e) => e.value == imageType) ?? - defaultValue; + return enums.ImageType.values.firstWhereOrNull((e) => e.value == imageType) ?? defaultValue; } String imageTypeExplodedListToJson(List? imageType) { @@ -58103,8 +55370,7 @@ enums.IsoType? isoTypeNullableFromJson( if (isoType == null) { return null; } - return enums.IsoType.values.firstWhereOrNull((e) => e.value == isoType) ?? - defaultValue; + return enums.IsoType.values.firstWhereOrNull((e) => e.value == isoType) ?? defaultValue; } String isoTypeExplodedListToJson(List? isoType) { @@ -58363,8 +55629,7 @@ enums.KeepUntil? keepUntilNullableFromJson( if (keepUntil == null) { return null; } - return enums.KeepUntil.values.firstWhereOrNull((e) => e.value == keepUntil) ?? - defaultValue; + return enums.KeepUntil.values.firstWhereOrNull((e) => e.value == keepUntil) ?? defaultValue; } String keepUntilExplodedListToJson(List? keepUntil) { @@ -58461,9 +55726,7 @@ List liveTvServiceStatusListFromJson( return defaultValue ?? []; } - return liveTvServiceStatus - .map((e) => liveTvServiceStatusFromJson(e.toString())) - .toList(); + return liveTvServiceStatus.map((e) => liveTvServiceStatusFromJson(e.toString())).toList(); } List? liveTvServiceStatusNullableListFromJson( @@ -58474,9 +55737,7 @@ List? liveTvServiceStatusNullableListFromJson( return defaultValue; } - return liveTvServiceStatus - .map((e) => liveTvServiceStatusFromJson(e.toString())) - .toList(); + return liveTvServiceStatus.map((e) => liveTvServiceStatusFromJson(e.toString())).toList(); } String? locationTypeNullableToJson(enums.LocationType? locationType) { @@ -58569,8 +55830,7 @@ enums.LogLevel? logLevelNullableFromJson( if (logLevel == null) { return null; } - return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? - defaultValue; + return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? defaultValue; } String logLevelExplodedListToJson(List? logLevel) { @@ -58733,9 +55993,7 @@ List mediaSegmentTypeListFromJson( return defaultValue ?? []; } - return mediaSegmentType - .map((e) => mediaSegmentTypeFromJson(e.toString())) - .toList(); + return mediaSegmentType.map((e) => mediaSegmentTypeFromJson(e.toString())).toList(); } List? mediaSegmentTypeNullableListFromJson( @@ -58746,9 +56004,7 @@ List? mediaSegmentTypeNullableListFromJson( return defaultValue; } - return mediaSegmentType - .map((e) => mediaSegmentTypeFromJson(e.toString())) - .toList(); + return mediaSegmentType.map((e) => mediaSegmentTypeFromJson(e.toString())).toList(); } String? mediaSourceTypeNullableToJson(enums.MediaSourceType? mediaSourceType) { @@ -58807,9 +56063,7 @@ List mediaSourceTypeListFromJson( return defaultValue ?? []; } - return mediaSourceType - .map((e) => mediaSourceTypeFromJson(e.toString())) - .toList(); + return mediaSourceType.map((e) => mediaSourceTypeFromJson(e.toString())).toList(); } List? mediaSourceTypeNullableListFromJson( @@ -58820,9 +56074,7 @@ List? mediaSourceTypeNullableListFromJson( return defaultValue; } - return mediaSourceType - .map((e) => mediaSourceTypeFromJson(e.toString())) - .toList(); + return mediaSourceType.map((e) => mediaSourceTypeFromJson(e.toString())).toList(); } String? mediaStreamProtocolNullableToJson( @@ -58885,9 +56137,7 @@ List mediaStreamProtocolListFromJson( return defaultValue ?? []; } - return mediaStreamProtocol - .map((e) => mediaStreamProtocolFromJson(e.toString())) - .toList(); + return mediaStreamProtocol.map((e) => mediaStreamProtocolFromJson(e.toString())).toList(); } List? mediaStreamProtocolNullableListFromJson( @@ -58898,9 +56148,7 @@ List? mediaStreamProtocolNullableListFromJson( return defaultValue; } - return mediaStreamProtocol - .map((e) => mediaStreamProtocolFromJson(e.toString())) - .toList(); + return mediaStreamProtocol.map((e) => mediaStreamProtocolFromJson(e.toString())).toList(); } String? mediaStreamTypeNullableToJson(enums.MediaStreamType? mediaStreamType) { @@ -58959,9 +56207,7 @@ List mediaStreamTypeListFromJson( return defaultValue ?? []; } - return mediaStreamType - .map((e) => mediaStreamTypeFromJson(e.toString())) - .toList(); + return mediaStreamType.map((e) => mediaStreamTypeFromJson(e.toString())).toList(); } List? mediaStreamTypeNullableListFromJson( @@ -58972,9 +56218,7 @@ List? mediaStreamTypeNullableListFromJson( return defaultValue; } - return mediaStreamType - .map((e) => mediaStreamTypeFromJson(e.toString())) - .toList(); + return mediaStreamType.map((e) => mediaStreamTypeFromJson(e.toString())).toList(); } String? mediaTypeNullableToJson(enums.MediaType? mediaType) { @@ -59001,8 +56245,7 @@ enums.MediaType? mediaTypeNullableFromJson( if (mediaType == null) { return null; } - return enums.MediaType.values.firstWhereOrNull((e) => e.value == mediaType) ?? - defaultValue; + return enums.MediaType.values.firstWhereOrNull((e) => e.value == mediaType) ?? defaultValue; } String mediaTypeExplodedListToJson(List? mediaType) { @@ -59167,9 +56410,7 @@ List metadataRefreshModeListFromJson( return defaultValue ?? []; } - return metadataRefreshMode - .map((e) => metadataRefreshModeFromJson(e.toString())) - .toList(); + return metadataRefreshMode.map((e) => metadataRefreshModeFromJson(e.toString())).toList(); } List? metadataRefreshModeNullableListFromJson( @@ -59180,9 +56421,7 @@ List? metadataRefreshModeNullableListFromJson( return defaultValue; } - return metadataRefreshMode - .map((e) => metadataRefreshModeFromJson(e.toString())) - .toList(); + return metadataRefreshMode.map((e) => metadataRefreshModeFromJson(e.toString())).toList(); } String? personKindNullableToJson(enums.PersonKind? personKind) { @@ -59375,9 +56614,7 @@ List playbackErrorCodeListFromJson( return defaultValue ?? []; } - return playbackErrorCode - .map((e) => playbackErrorCodeFromJson(e.toString())) - .toList(); + return playbackErrorCode.map((e) => playbackErrorCodeFromJson(e.toString())).toList(); } List? playbackErrorCodeNullableListFromJson( @@ -59388,9 +56625,7 @@ List? playbackErrorCodeNullableListFromJson( return defaultValue; } - return playbackErrorCode - .map((e) => playbackErrorCodeFromJson(e.toString())) - .toList(); + return playbackErrorCode.map((e) => playbackErrorCodeFromJson(e.toString())).toList(); } String? playbackOrderNullableToJson(enums.PlaybackOrder? playbackOrder) { @@ -59521,9 +56756,7 @@ List playbackRequestTypeListFromJson( return defaultValue ?? []; } - return playbackRequestType - .map((e) => playbackRequestTypeFromJson(e.toString())) - .toList(); + return playbackRequestType.map((e) => playbackRequestTypeFromJson(e.toString())).toList(); } List? playbackRequestTypeNullableListFromJson( @@ -59534,9 +56767,7 @@ List? playbackRequestTypeNullableListFromJson( return defaultValue; } - return playbackRequestType - .map((e) => playbackRequestTypeFromJson(e.toString())) - .toList(); + return playbackRequestType.map((e) => playbackRequestTypeFromJson(e.toString())).toList(); } String? playCommandNullableToJson(enums.PlayCommand? playCommand) { @@ -59731,9 +56962,7 @@ List playQueueUpdateReasonListFromJson( return defaultValue ?? []; } - return playQueueUpdateReason - .map((e) => playQueueUpdateReasonFromJson(e.toString())) - .toList(); + return playQueueUpdateReason.map((e) => playQueueUpdateReasonFromJson(e.toString())).toList(); } List? playQueueUpdateReasonNullableListFromJson( @@ -59744,9 +56973,7 @@ List? playQueueUpdateReasonNullableListFromJson( return defaultValue; } - return playQueueUpdateReason - .map((e) => playQueueUpdateReasonFromJson(e.toString())) - .toList(); + return playQueueUpdateReason.map((e) => playQueueUpdateReasonFromJson(e.toString())).toList(); } String? playstateCommandNullableToJson( @@ -59807,9 +57034,7 @@ List playstateCommandListFromJson( return defaultValue ?? []; } - return playstateCommand - .map((e) => playstateCommandFromJson(e.toString())) - .toList(); + return playstateCommand.map((e) => playstateCommandFromJson(e.toString())).toList(); } List? playstateCommandNullableListFromJson( @@ -59820,9 +57045,7 @@ List? playstateCommandNullableListFromJson( return defaultValue; } - return playstateCommand - .map((e) => playstateCommandFromJson(e.toString())) - .toList(); + return playstateCommand.map((e) => playstateCommandFromJson(e.toString())).toList(); } String? pluginStatusNullableToJson(enums.PluginStatus? pluginStatus) { @@ -59951,9 +57174,7 @@ List processPriorityClassListFromJson( return defaultValue ?? []; } - return processPriorityClass - .map((e) => processPriorityClassFromJson(e.toString())) - .toList(); + return processPriorityClass.map((e) => processPriorityClassFromJson(e.toString())).toList(); } List? processPriorityClassNullableListFromJson( @@ -59964,9 +57185,7 @@ List? processPriorityClassNullableListFromJson( return defaultValue; } - return processPriorityClass - .map((e) => processPriorityClassFromJson(e.toString())) - .toList(); + return processPriorityClass.map((e) => processPriorityClassFromJson(e.toString())).toList(); } String? profileConditionTypeNullableToJson( @@ -60029,9 +57248,7 @@ List profileConditionTypeListFromJson( return defaultValue ?? []; } - return profileConditionType - .map((e) => profileConditionTypeFromJson(e.toString())) - .toList(); + return profileConditionType.map((e) => profileConditionTypeFromJson(e.toString())).toList(); } List? profileConditionTypeNullableListFromJson( @@ -60042,9 +57259,7 @@ List? profileConditionTypeNullableListFromJson( return defaultValue; } - return profileConditionType - .map((e) => profileConditionTypeFromJson(e.toString())) - .toList(); + return profileConditionType.map((e) => profileConditionTypeFromJson(e.toString())).toList(); } String? profileConditionValueNullableToJson( @@ -60107,9 +57322,7 @@ List profileConditionValueListFromJson( return defaultValue ?? []; } - return profileConditionValue - .map((e) => profileConditionValueFromJson(e.toString())) - .toList(); + return profileConditionValue.map((e) => profileConditionValueFromJson(e.toString())).toList(); } List? profileConditionValueNullableListFromJson( @@ -60120,9 +57333,7 @@ List? profileConditionValueNullableListFromJson( return defaultValue; } - return profileConditionValue - .map((e) => profileConditionValueFromJson(e.toString())) - .toList(); + return profileConditionValue.map((e) => profileConditionValueFromJson(e.toString())).toList(); } String? programAudioNullableToJson(enums.ProgramAudio? programAudio) { @@ -60315,9 +57526,7 @@ List recommendationTypeListFromJson( return defaultValue ?? []; } - return recommendationType - .map((e) => recommendationTypeFromJson(e.toString())) - .toList(); + return recommendationType.map((e) => recommendationTypeFromJson(e.toString())).toList(); } List? recommendationTypeNullableListFromJson( @@ -60328,9 +57537,7 @@ List? recommendationTypeNullableListFromJson( return defaultValue; } - return recommendationType - .map((e) => recommendationTypeFromJson(e.toString())) - .toList(); + return recommendationType.map((e) => recommendationTypeFromJson(e.toString())).toList(); } String? recordingStatusNullableToJson(enums.RecordingStatus? recordingStatus) { @@ -60389,9 +57596,7 @@ List recordingStatusListFromJson( return defaultValue ?? []; } - return recordingStatus - .map((e) => recordingStatusFromJson(e.toString())) - .toList(); + return recordingStatus.map((e) => recordingStatusFromJson(e.toString())).toList(); } List? recordingStatusNullableListFromJson( @@ -60402,9 +57607,7 @@ List? recordingStatusNullableListFromJson( return defaultValue; } - return recordingStatus - .map((e) => recordingStatusFromJson(e.toString())) - .toList(); + return recordingStatus.map((e) => recordingStatusFromJson(e.toString())).toList(); } String? repeatModeNullableToJson(enums.RepeatMode? repeatMode) { @@ -60529,9 +57732,7 @@ List scrollDirectionListFromJson( return defaultValue ?? []; } - return scrollDirection - .map((e) => scrollDirectionFromJson(e.toString())) - .toList(); + return scrollDirection.map((e) => scrollDirectionFromJson(e.toString())).toList(); } List? scrollDirectionNullableListFromJson( @@ -60542,9 +57743,7 @@ List? scrollDirectionNullableListFromJson( return defaultValue; } - return scrollDirection - .map((e) => scrollDirectionFromJson(e.toString())) - .toList(); + return scrollDirection.map((e) => scrollDirectionFromJson(e.toString())).toList(); } String? sendCommandTypeNullableToJson(enums.SendCommandType? sendCommandType) { @@ -60603,9 +57802,7 @@ List sendCommandTypeListFromJson( return defaultValue ?? []; } - return sendCommandType - .map((e) => sendCommandTypeFromJson(e.toString())) - .toList(); + return sendCommandType.map((e) => sendCommandTypeFromJson(e.toString())).toList(); } List? sendCommandTypeNullableListFromJson( @@ -60616,9 +57813,7 @@ List? sendCommandTypeNullableListFromJson( return defaultValue; } - return sendCommandType - .map((e) => sendCommandTypeFromJson(e.toString())) - .toList(); + return sendCommandType.map((e) => sendCommandTypeFromJson(e.toString())).toList(); } String? seriesStatusNullableToJson(enums.SeriesStatus? seriesStatus) { @@ -60745,9 +57940,7 @@ List sessionMessageTypeListFromJson( return defaultValue ?? []; } - return sessionMessageType - .map((e) => sessionMessageTypeFromJson(e.toString())) - .toList(); + return sessionMessageType.map((e) => sessionMessageTypeFromJson(e.toString())).toList(); } List? sessionMessageTypeNullableListFromJson( @@ -60758,9 +57951,7 @@ List? sessionMessageTypeNullableListFromJson( return defaultValue; } - return sessionMessageType - .map((e) => sessionMessageTypeFromJson(e.toString())) - .toList(); + return sessionMessageType.map((e) => sessionMessageTypeFromJson(e.toString())).toList(); } String? sortOrderNullableToJson(enums.SortOrder? sortOrder) { @@ -60787,8 +57978,7 @@ enums.SortOrder? sortOrderNullableFromJson( if (sortOrder == null) { return null; } - return enums.SortOrder.values.firstWhereOrNull((e) => e.value == sortOrder) ?? - defaultValue; + return enums.SortOrder.values.firstWhereOrNull((e) => e.value == sortOrder) ?? defaultValue; } String sortOrderExplodedListToJson(List? sortOrder) { @@ -60885,9 +58075,7 @@ List subtitleDeliveryMethodListFromJson( return defaultValue ?? []; } - return subtitleDeliveryMethod - .map((e) => subtitleDeliveryMethodFromJson(e.toString())) - .toList(); + return subtitleDeliveryMethod.map((e) => subtitleDeliveryMethodFromJson(e.toString())).toList(); } List? subtitleDeliveryMethodNullableListFromJson( @@ -60898,9 +58086,7 @@ List? subtitleDeliveryMethodNullableListFromJson( return defaultValue; } - return subtitleDeliveryMethod - .map((e) => subtitleDeliveryMethodFromJson(e.toString())) - .toList(); + return subtitleDeliveryMethod.map((e) => subtitleDeliveryMethodFromJson(e.toString())).toList(); } String? subtitlePlaybackModeNullableToJson( @@ -60963,9 +58149,7 @@ List subtitlePlaybackModeListFromJson( return defaultValue ?? []; } - return subtitlePlaybackMode - .map((e) => subtitlePlaybackModeFromJson(e.toString())) - .toList(); + return subtitlePlaybackMode.map((e) => subtitlePlaybackModeFromJson(e.toString())).toList(); } List? subtitlePlaybackModeNullableListFromJson( @@ -60976,9 +58160,7 @@ List? subtitlePlaybackModeNullableListFromJson( return defaultValue; } - return subtitlePlaybackMode - .map((e) => subtitlePlaybackModeFromJson(e.toString())) - .toList(); + return subtitlePlaybackMode.map((e) => subtitlePlaybackModeFromJson(e.toString())).toList(); } String? syncPlayUserAccessTypeNullableToJson( @@ -61041,9 +58223,7 @@ List syncPlayUserAccessTypeListFromJson( return defaultValue ?? []; } - return syncPlayUserAccessType - .map((e) => syncPlayUserAccessTypeFromJson(e.toString())) - .toList(); + return syncPlayUserAccessType.map((e) => syncPlayUserAccessTypeFromJson(e.toString())).toList(); } List? syncPlayUserAccessTypeNullableListFromJson( @@ -61054,9 +58234,7 @@ List? syncPlayUserAccessTypeNullableListFromJson( return defaultValue; } - return syncPlayUserAccessType - .map((e) => syncPlayUserAccessTypeFromJson(e.toString())) - .toList(); + return syncPlayUserAccessType.map((e) => syncPlayUserAccessTypeFromJson(e.toString())).toList(); } String? taskCompletionStatusNullableToJson( @@ -61119,9 +58297,7 @@ List taskCompletionStatusListFromJson( return defaultValue ?? []; } - return taskCompletionStatus - .map((e) => taskCompletionStatusFromJson(e.toString())) - .toList(); + return taskCompletionStatus.map((e) => taskCompletionStatusFromJson(e.toString())).toList(); } List? taskCompletionStatusNullableListFromJson( @@ -61132,9 +58308,7 @@ List? taskCompletionStatusNullableListFromJson( return defaultValue; } - return taskCompletionStatus - .map((e) => taskCompletionStatusFromJson(e.toString())) - .toList(); + return taskCompletionStatus.map((e) => taskCompletionStatusFromJson(e.toString())).toList(); } String? taskStateNullableToJson(enums.TaskState? taskState) { @@ -61161,8 +58335,7 @@ enums.TaskState? taskStateNullableFromJson( if (taskState == null) { return null; } - return enums.TaskState.values.firstWhereOrNull((e) => e.value == taskState) ?? - defaultValue; + return enums.TaskState.values.firstWhereOrNull((e) => e.value == taskState) ?? defaultValue; } String taskStateExplodedListToJson(List? taskState) { @@ -61259,9 +58432,7 @@ List taskTriggerInfoTypeListFromJson( return defaultValue ?? []; } - return taskTriggerInfoType - .map((e) => taskTriggerInfoTypeFromJson(e.toString())) - .toList(); + return taskTriggerInfoType.map((e) => taskTriggerInfoTypeFromJson(e.toString())).toList(); } List? taskTriggerInfoTypeNullableListFromJson( @@ -61272,9 +58443,7 @@ List? taskTriggerInfoTypeNullableListFromJson( return defaultValue; } - return taskTriggerInfoType - .map((e) => taskTriggerInfoTypeFromJson(e.toString())) - .toList(); + return taskTriggerInfoType.map((e) => taskTriggerInfoTypeFromJson(e.toString())).toList(); } String? tonemappingAlgorithmNullableToJson( @@ -61337,9 +58506,7 @@ List tonemappingAlgorithmListFromJson( return defaultValue ?? []; } - return tonemappingAlgorithm - .map((e) => tonemappingAlgorithmFromJson(e.toString())) - .toList(); + return tonemappingAlgorithm.map((e) => tonemappingAlgorithmFromJson(e.toString())).toList(); } List? tonemappingAlgorithmNullableListFromJson( @@ -61350,9 +58517,7 @@ List? tonemappingAlgorithmNullableListFromJson( return defaultValue; } - return tonemappingAlgorithm - .map((e) => tonemappingAlgorithmFromJson(e.toString())) - .toList(); + return tonemappingAlgorithm.map((e) => tonemappingAlgorithmFromJson(e.toString())).toList(); } String? tonemappingModeNullableToJson(enums.TonemappingMode? tonemappingMode) { @@ -61411,9 +58576,7 @@ List tonemappingModeListFromJson( return defaultValue ?? []; } - return tonemappingMode - .map((e) => tonemappingModeFromJson(e.toString())) - .toList(); + return tonemappingMode.map((e) => tonemappingModeFromJson(e.toString())).toList(); } List? tonemappingModeNullableListFromJson( @@ -61424,9 +58587,7 @@ List? tonemappingModeNullableListFromJson( return defaultValue; } - return tonemappingMode - .map((e) => tonemappingModeFromJson(e.toString())) - .toList(); + return tonemappingMode.map((e) => tonemappingModeFromJson(e.toString())).toList(); } String? tonemappingRangeNullableToJson( @@ -61487,9 +58648,7 @@ List tonemappingRangeListFromJson( return defaultValue ?? []; } - return tonemappingRange - .map((e) => tonemappingRangeFromJson(e.toString())) - .toList(); + return tonemappingRange.map((e) => tonemappingRangeFromJson(e.toString())).toList(); } List? tonemappingRangeNullableListFromJson( @@ -61500,9 +58659,7 @@ List? tonemappingRangeNullableListFromJson( return defaultValue; } - return tonemappingRange - .map((e) => tonemappingRangeFromJson(e.toString())) - .toList(); + return tonemappingRange.map((e) => tonemappingRangeFromJson(e.toString())).toList(); } String? transcodeReasonNullableToJson(enums.TranscodeReason? transcodeReason) { @@ -61561,9 +58718,7 @@ List transcodeReasonListFromJson( return defaultValue ?? []; } - return transcodeReason - .map((e) => transcodeReasonFromJson(e.toString())) - .toList(); + return transcodeReason.map((e) => transcodeReasonFromJson(e.toString())).toList(); } List? transcodeReasonNullableListFromJson( @@ -61574,9 +58729,7 @@ List? transcodeReasonNullableListFromJson( return defaultValue; } - return transcodeReason - .map((e) => transcodeReasonFromJson(e.toString())) - .toList(); + return transcodeReason.map((e) => transcodeReasonFromJson(e.toString())).toList(); } String? transcodeSeekInfoNullableToJson( @@ -61637,9 +58790,7 @@ List transcodeSeekInfoListFromJson( return defaultValue ?? []; } - return transcodeSeekInfo - .map((e) => transcodeSeekInfoFromJson(e.toString())) - .toList(); + return transcodeSeekInfo.map((e) => transcodeSeekInfoFromJson(e.toString())).toList(); } List? transcodeSeekInfoNullableListFromJson( @@ -61650,9 +58801,7 @@ List? transcodeSeekInfoNullableListFromJson( return defaultValue; } - return transcodeSeekInfo - .map((e) => transcodeSeekInfoFromJson(e.toString())) - .toList(); + return transcodeSeekInfo.map((e) => transcodeSeekInfoFromJson(e.toString())).toList(); } String? transcodingInfoTranscodeReasonsNullableToJson( @@ -61678,8 +58827,7 @@ enums.TranscodingInfoTranscodeReasons transcodingInfoTranscodeReasonsFromJson( enums.TranscodingInfoTranscodeReasons.swaggerGeneratedUnknown; } -enums.TranscodingInfoTranscodeReasons? -transcodingInfoTranscodeReasonsNullableFromJson( +enums.TranscodingInfoTranscodeReasons? transcodingInfoTranscodeReasonsNullableFromJson( Object? transcodingInfoTranscodeReasons, [ enums.TranscodingInfoTranscodeReasons? defaultValue, ]) { @@ -61708,8 +58856,7 @@ List transcodingInfoTranscodeReasonsListToJson( return transcodingInfoTranscodeReasons.map((e) => e.value!).toList(); } -List -transcodingInfoTranscodeReasonsListFromJson( +List transcodingInfoTranscodeReasonsListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -61717,13 +58864,10 @@ transcodingInfoTranscodeReasonsListFromJson( return defaultValue ?? []; } - return transcodingInfoTranscodeReasons - .map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())) - .toList(); + return transcodingInfoTranscodeReasons.map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())).toList(); } -List? -transcodingInfoTranscodeReasonsNullableListFromJson( +List? transcodingInfoTranscodeReasonsNullableListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -61731,9 +58875,7 @@ transcodingInfoTranscodeReasonsNullableListFromJson( return defaultValue; } - return transcodingInfoTranscodeReasons - .map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())) - .toList(); + return transcodingInfoTranscodeReasons.map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())).toList(); } String? transportStreamTimestampNullableToJson( @@ -61796,13 +58938,10 @@ List transportStreamTimestampListFromJson( return defaultValue ?? []; } - return transportStreamTimestamp - .map((e) => transportStreamTimestampFromJson(e.toString())) - .toList(); + return transportStreamTimestamp.map((e) => transportStreamTimestampFromJson(e.toString())).toList(); } -List? -transportStreamTimestampNullableListFromJson( +List? transportStreamTimestampNullableListFromJson( List? transportStreamTimestamp, [ List? defaultValue, ]) { @@ -61810,9 +58949,7 @@ transportStreamTimestampNullableListFromJson( return defaultValue; } - return transportStreamTimestamp - .map((e) => transportStreamTimestampFromJson(e.toString())) - .toList(); + return transportStreamTimestamp.map((e) => transportStreamTimestampFromJson(e.toString())).toList(); } String? trickplayScanBehaviorNullableToJson( @@ -61875,9 +59012,7 @@ List trickplayScanBehaviorListFromJson( return defaultValue ?? []; } - return trickplayScanBehavior - .map((e) => trickplayScanBehaviorFromJson(e.toString())) - .toList(); + return trickplayScanBehavior.map((e) => trickplayScanBehaviorFromJson(e.toString())).toList(); } List? trickplayScanBehaviorNullableListFromJson( @@ -61888,9 +59023,7 @@ List? trickplayScanBehaviorNullableListFromJson( return defaultValue; } - return trickplayScanBehavior - .map((e) => trickplayScanBehaviorFromJson(e.toString())) - .toList(); + return trickplayScanBehavior.map((e) => trickplayScanBehaviorFromJson(e.toString())).toList(); } String? unratedItemNullableToJson(enums.UnratedItem? unratedItem) { @@ -62149,9 +59282,7 @@ List videoRangeTypeListFromJson( return defaultValue ?? []; } - return videoRangeType - .map((e) => videoRangeTypeFromJson(e.toString())) - .toList(); + return videoRangeType.map((e) => videoRangeTypeFromJson(e.toString())).toList(); } List? videoRangeTypeNullableListFromJson( @@ -62162,9 +59293,7 @@ List? videoRangeTypeNullableListFromJson( return defaultValue; } - return videoRangeType - .map((e) => videoRangeTypeFromJson(e.toString())) - .toList(); + return videoRangeType.map((e) => videoRangeTypeFromJson(e.toString())).toList(); } String? videoTypeNullableToJson(enums.VideoType? videoType) { @@ -62191,8 +59320,7 @@ enums.VideoType? videoTypeNullableFromJson( if (videoType == null) { return null; } - return enums.VideoType.values.firstWhereOrNull((e) => e.value == videoType) ?? - defaultValue; + return enums.VideoType.values.firstWhereOrNull((e) => e.value == videoType) ?? defaultValue; } String videoTypeExplodedListToJson(List? videoType) { @@ -62241,8 +59369,7 @@ String? audioItemIdStreamGetSubtitleMethodToJson( return audioItemIdStreamGetSubtitleMethod.value; } -enums.AudioItemIdStreamGetSubtitleMethod -audioItemIdStreamGetSubtitleMethodFromJson( +enums.AudioItemIdStreamGetSubtitleMethod audioItemIdStreamGetSubtitleMethodFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -62253,8 +59380,7 @@ audioItemIdStreamGetSubtitleMethodFromJson( enums.AudioItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamGetSubtitleMethod? -audioItemIdStreamGetSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamGetSubtitleMethod? audioItemIdStreamGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -62268,16 +59394,13 @@ audioItemIdStreamGetSubtitleMethodNullableFromJson( } String audioItemIdStreamGetSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamGetSubtitleMethod, + List? audioItemIdStreamGetSubtitleMethod, ) { - return audioItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamGetSubtitleMethodListToJson( - List? - audioItemIdStreamGetSubtitleMethod, + List? audioItemIdStreamGetSubtitleMethod, ) { if (audioItemIdStreamGetSubtitleMethod == null) { return []; @@ -62286,8 +59409,7 @@ List audioItemIdStreamGetSubtitleMethodListToJson( return audioItemIdStreamGetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamGetSubtitleMethodListFromJson( +List audioItemIdStreamGetSubtitleMethodListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62300,8 +59422,7 @@ audioItemIdStreamGetSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdStreamGetSubtitleMethodNullableListFromJson( +List? audioItemIdStreamGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62374,13 +59495,10 @@ List audioItemIdStreamGetContextListFromJson( return defaultValue ?? []; } - return audioItemIdStreamGetContext - .map((e) => audioItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamGetContext.map((e) => audioItemIdStreamGetContextFromJson(e.toString())).toList(); } -List? -audioItemIdStreamGetContextNullableListFromJson( +List? audioItemIdStreamGetContextNullableListFromJson( List? audioItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -62388,14 +59506,11 @@ audioItemIdStreamGetContextNullableListFromJson( return defaultValue; } - return audioItemIdStreamGetContext - .map((e) => audioItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamGetContext.map((e) => audioItemIdStreamGetContextFromJson(e.toString())).toList(); } String? audioItemIdStreamHeadSubtitleMethodNullableToJson( - enums.AudioItemIdStreamHeadSubtitleMethod? - audioItemIdStreamHeadSubtitleMethod, + enums.AudioItemIdStreamHeadSubtitleMethod? audioItemIdStreamHeadSubtitleMethod, ) { return audioItemIdStreamHeadSubtitleMethod?.value; } @@ -62406,8 +59521,7 @@ String? audioItemIdStreamHeadSubtitleMethodToJson( return audioItemIdStreamHeadSubtitleMethod.value; } -enums.AudioItemIdStreamHeadSubtitleMethod -audioItemIdStreamHeadSubtitleMethodFromJson( +enums.AudioItemIdStreamHeadSubtitleMethod audioItemIdStreamHeadSubtitleMethodFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -62418,8 +59532,7 @@ audioItemIdStreamHeadSubtitleMethodFromJson( enums.AudioItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamHeadSubtitleMethod? -audioItemIdStreamHeadSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamHeadSubtitleMethod? audioItemIdStreamHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -62433,16 +59546,13 @@ audioItemIdStreamHeadSubtitleMethodNullableFromJson( } String audioItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamHeadSubtitleMethod, + List? audioItemIdStreamHeadSubtitleMethod, ) { - return audioItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamHeadSubtitleMethodListToJson( - List? - audioItemIdStreamHeadSubtitleMethod, + List? audioItemIdStreamHeadSubtitleMethod, ) { if (audioItemIdStreamHeadSubtitleMethod == null) { return []; @@ -62451,8 +59561,7 @@ List audioItemIdStreamHeadSubtitleMethodListToJson( return audioItemIdStreamHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamHeadSubtitleMethodListFromJson( +List audioItemIdStreamHeadSubtitleMethodListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62465,8 +59574,7 @@ audioItemIdStreamHeadSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdStreamHeadSubtitleMethodNullableListFromJson( +List? audioItemIdStreamHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62502,8 +59610,7 @@ enums.AudioItemIdStreamHeadContext audioItemIdStreamHeadContextFromJson( enums.AudioItemIdStreamHeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamHeadContext? -audioItemIdStreamHeadContextNullableFromJson( +enums.AudioItemIdStreamHeadContext? audioItemIdStreamHeadContextNullableFromJson( Object? audioItemIdStreamHeadContext, [ enums.AudioItemIdStreamHeadContext? defaultValue, ]) { @@ -62532,8 +59639,7 @@ List audioItemIdStreamHeadContextListToJson( return audioItemIdStreamHeadContext.map((e) => e.value!).toList(); } -List -audioItemIdStreamHeadContextListFromJson( +List audioItemIdStreamHeadContextListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -62541,13 +59647,10 @@ audioItemIdStreamHeadContextListFromJson( return defaultValue ?? []; } - return audioItemIdStreamHeadContext - .map((e) => audioItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamHeadContext.map((e) => audioItemIdStreamHeadContextFromJson(e.toString())).toList(); } -List? -audioItemIdStreamHeadContextNullableListFromJson( +List? audioItemIdStreamHeadContextNullableListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -62555,78 +59658,62 @@ audioItemIdStreamHeadContextNullableListFromJson( return defaultValue; } - return audioItemIdStreamHeadContext - .map((e) => audioItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamHeadContext.map((e) => audioItemIdStreamHeadContextFromJson(e.toString())).toList(); } String? audioItemIdStreamContainerGetSubtitleMethodNullableToJson( - enums.AudioItemIdStreamContainerGetSubtitleMethod? - audioItemIdStreamContainerGetSubtitleMethod, + enums.AudioItemIdStreamContainerGetSubtitleMethod? audioItemIdStreamContainerGetSubtitleMethod, ) { return audioItemIdStreamContainerGetSubtitleMethod?.value; } String? audioItemIdStreamContainerGetSubtitleMethodToJson( - enums.AudioItemIdStreamContainerGetSubtitleMethod - audioItemIdStreamContainerGetSubtitleMethod, + enums.AudioItemIdStreamContainerGetSubtitleMethod audioItemIdStreamContainerGetSubtitleMethod, ) { return audioItemIdStreamContainerGetSubtitleMethod.value; } -enums.AudioItemIdStreamContainerGetSubtitleMethod -audioItemIdStreamContainerGetSubtitleMethodFromJson( +enums.AudioItemIdStreamContainerGetSubtitleMethod audioItemIdStreamContainerGetSubtitleMethodFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { - return enums.AudioItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerGetSubtitleMethod? -audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamContainerGetSubtitleMethod? audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { if (audioItemIdStreamContainerGetSubtitleMethod == null) { return null; } - return enums.AudioItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamContainerGetSubtitleMethod, + List? audioItemIdStreamContainerGetSubtitleMethod, ) { - return audioItemIdStreamContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdStreamContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerGetSubtitleMethodListToJson( - List? - audioItemIdStreamContainerGetSubtitleMethod, + List? audioItemIdStreamContainerGetSubtitleMethod, ) { if (audioItemIdStreamContainerGetSubtitleMethod == null) { return []; } - return audioItemIdStreamContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return audioItemIdStreamContainerGetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerGetSubtitleMethodListFromJson( +List audioItemIdStreamContainerGetSubtitleMethodListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62636,14 +59723,13 @@ audioItemIdStreamContainerGetSubtitleMethodListFromJson( return audioItemIdStreamContainerGetSubtitleMethod .map( - (e) => - audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( + audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62653,28 +59739,24 @@ audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( return audioItemIdStreamContainerGetSubtitleMethod .map( - (e) => - audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } String? audioItemIdStreamContainerGetContextNullableToJson( - enums.AudioItemIdStreamContainerGetContext? - audioItemIdStreamContainerGetContext, + enums.AudioItemIdStreamContainerGetContext? audioItemIdStreamContainerGetContext, ) { return audioItemIdStreamContainerGetContext?.value; } String? audioItemIdStreamContainerGetContextToJson( - enums.AudioItemIdStreamContainerGetContext - audioItemIdStreamContainerGetContext, + enums.AudioItemIdStreamContainerGetContext audioItemIdStreamContainerGetContext, ) { return audioItemIdStreamContainerGetContext.value; } -enums.AudioItemIdStreamContainerGetContext -audioItemIdStreamContainerGetContextFromJson( +enums.AudioItemIdStreamContainerGetContext audioItemIdStreamContainerGetContextFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { @@ -62685,8 +59767,7 @@ audioItemIdStreamContainerGetContextFromJson( enums.AudioItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerGetContext? -audioItemIdStreamContainerGetContextNullableFromJson( +enums.AudioItemIdStreamContainerGetContext? audioItemIdStreamContainerGetContextNullableFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { @@ -62700,16 +59781,13 @@ audioItemIdStreamContainerGetContextNullableFromJson( } String audioItemIdStreamContainerGetContextExplodedListToJson( - List? - audioItemIdStreamContainerGetContext, + List? audioItemIdStreamContainerGetContext, ) { - return audioItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerGetContextListToJson( - List? - audioItemIdStreamContainerGetContext, + List? audioItemIdStreamContainerGetContext, ) { if (audioItemIdStreamContainerGetContext == null) { return []; @@ -62718,8 +59796,7 @@ List audioItemIdStreamContainerGetContextListToJson( return audioItemIdStreamContainerGetContext.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerGetContextListFromJson( +List audioItemIdStreamContainerGetContextListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -62732,8 +59809,7 @@ audioItemIdStreamContainerGetContextListFromJson( .toList(); } -List? -audioItemIdStreamContainerGetContextNullableListFromJson( +List? audioItemIdStreamContainerGetContextNullableListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -62747,74 +59823,58 @@ audioItemIdStreamContainerGetContextNullableListFromJson( } String? audioItemIdStreamContainerHeadSubtitleMethodNullableToJson( - enums.AudioItemIdStreamContainerHeadSubtitleMethod? - audioItemIdStreamContainerHeadSubtitleMethod, + enums.AudioItemIdStreamContainerHeadSubtitleMethod? audioItemIdStreamContainerHeadSubtitleMethod, ) { return audioItemIdStreamContainerHeadSubtitleMethod?.value; } String? audioItemIdStreamContainerHeadSubtitleMethodToJson( - enums.AudioItemIdStreamContainerHeadSubtitleMethod - audioItemIdStreamContainerHeadSubtitleMethod, + enums.AudioItemIdStreamContainerHeadSubtitleMethod audioItemIdStreamContainerHeadSubtitleMethod, ) { return audioItemIdStreamContainerHeadSubtitleMethod.value; } -enums.AudioItemIdStreamContainerHeadSubtitleMethod -audioItemIdStreamContainerHeadSubtitleMethodFromJson( +enums.AudioItemIdStreamContainerHeadSubtitleMethod audioItemIdStreamContainerHeadSubtitleMethodFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { - return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? - enums - .AudioItemIdStreamContainerHeadSubtitleMethod - .swaggerGeneratedUnknown; + enums.AudioItemIdStreamContainerHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerHeadSubtitleMethod? -audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamContainerHeadSubtitleMethod? audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { if (audioItemIdStreamContainerHeadSubtitleMethod == null) { return null; } - return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamContainerHeadSubtitleMethod, + List? audioItemIdStreamContainerHeadSubtitleMethod, ) { - return audioItemIdStreamContainerHeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdStreamContainerHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerHeadSubtitleMethodListToJson( - List? - audioItemIdStreamContainerHeadSubtitleMethod, + List? audioItemIdStreamContainerHeadSubtitleMethod, ) { if (audioItemIdStreamContainerHeadSubtitleMethod == null) { return []; } - return audioItemIdStreamContainerHeadSubtitleMethod - .map((e) => e.value!) - .toList(); + return audioItemIdStreamContainerHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerHeadSubtitleMethodListFromJson( +List audioItemIdStreamContainerHeadSubtitleMethodListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62824,14 +59884,13 @@ audioItemIdStreamContainerHeadSubtitleMethodListFromJson( return audioItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( + audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62841,28 +59900,24 @@ audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( return audioItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } String? audioItemIdStreamContainerHeadContextNullableToJson( - enums.AudioItemIdStreamContainerHeadContext? - audioItemIdStreamContainerHeadContext, + enums.AudioItemIdStreamContainerHeadContext? audioItemIdStreamContainerHeadContext, ) { return audioItemIdStreamContainerHeadContext?.value; } String? audioItemIdStreamContainerHeadContextToJson( - enums.AudioItemIdStreamContainerHeadContext - audioItemIdStreamContainerHeadContext, + enums.AudioItemIdStreamContainerHeadContext audioItemIdStreamContainerHeadContext, ) { return audioItemIdStreamContainerHeadContext.value; } -enums.AudioItemIdStreamContainerHeadContext -audioItemIdStreamContainerHeadContextFromJson( +enums.AudioItemIdStreamContainerHeadContext audioItemIdStreamContainerHeadContextFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -62873,8 +59928,7 @@ audioItemIdStreamContainerHeadContextFromJson( enums.AudioItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerHeadContext? -audioItemIdStreamContainerHeadContextNullableFromJson( +enums.AudioItemIdStreamContainerHeadContext? audioItemIdStreamContainerHeadContextNullableFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -62888,18 +59942,13 @@ audioItemIdStreamContainerHeadContextNullableFromJson( } String audioItemIdStreamContainerHeadContextExplodedListToJson( - List? - audioItemIdStreamContainerHeadContext, + List? audioItemIdStreamContainerHeadContext, ) { - return audioItemIdStreamContainerHeadContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdStreamContainerHeadContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerHeadContextListToJson( - List? - audioItemIdStreamContainerHeadContext, + List? audioItemIdStreamContainerHeadContext, ) { if (audioItemIdStreamContainerHeadContext == null) { return []; @@ -62908,8 +59957,7 @@ List audioItemIdStreamContainerHeadContextListToJson( return audioItemIdStreamContainerHeadContext.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerHeadContextListFromJson( +List audioItemIdStreamContainerHeadContextListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -62922,8 +59970,7 @@ audioItemIdStreamContainerHeadContextListFromJson( .toList(); } -List? -audioItemIdStreamContainerHeadContextNullableListFromJson( +List? audioItemIdStreamContainerHeadContextNullableListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -62936,91 +59983,68 @@ audioItemIdStreamContainerHeadContextNullableListFromJson( .toList(); } -String? -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( +String? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { - return enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .swaggerGeneratedUnknown; + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } - return enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } -String -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( +String audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { - return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } -List -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( +List audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } - return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.map((e) => e.value!).toList(); } List -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; @@ -63028,19 +60052,17 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } List? -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; @@ -63048,90 +60070,73 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext?.value; } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetContextToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext.value; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext - .swaggerGeneratedUnknown; + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return null; } - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String audioItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { - return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } - return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => e.value!) - .toList(); + return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext.map((e) => e.value!).toList(); } List -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; @@ -63147,10 +60152,9 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( } List? -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; @@ -63166,21 +60170,18 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( } String? audioItemIdMainM3u8GetSubtitleMethodNullableToJson( - enums.AudioItemIdMainM3u8GetSubtitleMethod? - audioItemIdMainM3u8GetSubtitleMethod, + enums.AudioItemIdMainM3u8GetSubtitleMethod? audioItemIdMainM3u8GetSubtitleMethod, ) { return audioItemIdMainM3u8GetSubtitleMethod?.value; } String? audioItemIdMainM3u8GetSubtitleMethodToJson( - enums.AudioItemIdMainM3u8GetSubtitleMethod - audioItemIdMainM3u8GetSubtitleMethod, + enums.AudioItemIdMainM3u8GetSubtitleMethod audioItemIdMainM3u8GetSubtitleMethod, ) { return audioItemIdMainM3u8GetSubtitleMethod.value; } -enums.AudioItemIdMainM3u8GetSubtitleMethod -audioItemIdMainM3u8GetSubtitleMethodFromJson( +enums.AudioItemIdMainM3u8GetSubtitleMethod audioItemIdMainM3u8GetSubtitleMethodFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63191,8 +60192,7 @@ audioItemIdMainM3u8GetSubtitleMethodFromJson( enums.AudioItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMainM3u8GetSubtitleMethod? -audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( +enums.AudioItemIdMainM3u8GetSubtitleMethod? audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63206,16 +60206,13 @@ audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( } String audioItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? - audioItemIdMainM3u8GetSubtitleMethod, + List? audioItemIdMainM3u8GetSubtitleMethod, ) { - return audioItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMainM3u8GetSubtitleMethodListToJson( - List? - audioItemIdMainM3u8GetSubtitleMethod, + List? audioItemIdMainM3u8GetSubtitleMethod, ) { if (audioItemIdMainM3u8GetSubtitleMethod == null) { return []; @@ -63224,8 +60221,7 @@ List audioItemIdMainM3u8GetSubtitleMethodListToJson( return audioItemIdMainM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdMainM3u8GetSubtitleMethodListFromJson( +List audioItemIdMainM3u8GetSubtitleMethodListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63238,8 +60234,7 @@ audioItemIdMainM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +List? audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63275,8 +60270,7 @@ enums.AudioItemIdMainM3u8GetContext audioItemIdMainM3u8GetContextFromJson( enums.AudioItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMainM3u8GetContext? -audioItemIdMainM3u8GetContextNullableFromJson( +enums.AudioItemIdMainM3u8GetContext? audioItemIdMainM3u8GetContextNullableFromJson( Object? audioItemIdMainM3u8GetContext, [ enums.AudioItemIdMainM3u8GetContext? defaultValue, ]) { @@ -63305,8 +60299,7 @@ List audioItemIdMainM3u8GetContextListToJson( return audioItemIdMainM3u8GetContext.map((e) => e.value!).toList(); } -List -audioItemIdMainM3u8GetContextListFromJson( +List audioItemIdMainM3u8GetContextListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -63314,13 +60307,10 @@ audioItemIdMainM3u8GetContextListFromJson( return defaultValue ?? []; } - return audioItemIdMainM3u8GetContext - .map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMainM3u8GetContext.map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } -List? -audioItemIdMainM3u8GetContextNullableListFromJson( +List? audioItemIdMainM3u8GetContextNullableListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -63328,27 +60318,22 @@ audioItemIdMainM3u8GetContextNullableListFromJson( return defaultValue; } - return audioItemIdMainM3u8GetContext - .map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMainM3u8GetContext.map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } String? audioItemIdMasterM3u8GetSubtitleMethodNullableToJson( - enums.AudioItemIdMasterM3u8GetSubtitleMethod? - audioItemIdMasterM3u8GetSubtitleMethod, + enums.AudioItemIdMasterM3u8GetSubtitleMethod? audioItemIdMasterM3u8GetSubtitleMethod, ) { return audioItemIdMasterM3u8GetSubtitleMethod?.value; } String? audioItemIdMasterM3u8GetSubtitleMethodToJson( - enums.AudioItemIdMasterM3u8GetSubtitleMethod - audioItemIdMasterM3u8GetSubtitleMethod, + enums.AudioItemIdMasterM3u8GetSubtitleMethod audioItemIdMasterM3u8GetSubtitleMethod, ) { return audioItemIdMasterM3u8GetSubtitleMethod.value; } -enums.AudioItemIdMasterM3u8GetSubtitleMethod -audioItemIdMasterM3u8GetSubtitleMethodFromJson( +enums.AudioItemIdMasterM3u8GetSubtitleMethod audioItemIdMasterM3u8GetSubtitleMethodFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63359,8 +60344,7 @@ audioItemIdMasterM3u8GetSubtitleMethodFromJson( enums.AudioItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8GetSubtitleMethod? -audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +enums.AudioItemIdMasterM3u8GetSubtitleMethod? audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63374,18 +60358,13 @@ audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( } String audioItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? - audioItemIdMasterM3u8GetSubtitleMethod, + List? audioItemIdMasterM3u8GetSubtitleMethod, ) { - return audioItemIdMasterM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdMasterM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8GetSubtitleMethodListToJson( - List? - audioItemIdMasterM3u8GetSubtitleMethod, + List? audioItemIdMasterM3u8GetSubtitleMethod, ) { if (audioItemIdMasterM3u8GetSubtitleMethod == null) { return []; @@ -63394,8 +60373,7 @@ List audioItemIdMasterM3u8GetSubtitleMethodListToJson( return audioItemIdMasterM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8GetSubtitleMethodListFromJson( +List audioItemIdMasterM3u8GetSubtitleMethodListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63408,8 +60386,7 @@ audioItemIdMasterM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +List? audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63445,8 +60422,7 @@ enums.AudioItemIdMasterM3u8GetContext audioItemIdMasterM3u8GetContextFromJson( enums.AudioItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8GetContext? -audioItemIdMasterM3u8GetContextNullableFromJson( +enums.AudioItemIdMasterM3u8GetContext? audioItemIdMasterM3u8GetContextNullableFromJson( Object? audioItemIdMasterM3u8GetContext, [ enums.AudioItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -63475,8 +60451,7 @@ List audioItemIdMasterM3u8GetContextListToJson( return audioItemIdMasterM3u8GetContext.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8GetContextListFromJson( +List audioItemIdMasterM3u8GetContextListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -63484,13 +60459,10 @@ audioItemIdMasterM3u8GetContextListFromJson( return defaultValue ?? []; } - return audioItemIdMasterM3u8GetContext - .map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8GetContext.map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } -List? -audioItemIdMasterM3u8GetContextNullableListFromJson( +List? audioItemIdMasterM3u8GetContextNullableListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -63498,27 +60470,22 @@ audioItemIdMasterM3u8GetContextNullableListFromJson( return defaultValue; } - return audioItemIdMasterM3u8GetContext - .map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8GetContext.map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } String? audioItemIdMasterM3u8HeadSubtitleMethodNullableToJson( - enums.AudioItemIdMasterM3u8HeadSubtitleMethod? - audioItemIdMasterM3u8HeadSubtitleMethod, + enums.AudioItemIdMasterM3u8HeadSubtitleMethod? audioItemIdMasterM3u8HeadSubtitleMethod, ) { return audioItemIdMasterM3u8HeadSubtitleMethod?.value; } String? audioItemIdMasterM3u8HeadSubtitleMethodToJson( - enums.AudioItemIdMasterM3u8HeadSubtitleMethod - audioItemIdMasterM3u8HeadSubtitleMethod, + enums.AudioItemIdMasterM3u8HeadSubtitleMethod audioItemIdMasterM3u8HeadSubtitleMethod, ) { return audioItemIdMasterM3u8HeadSubtitleMethod.value; } -enums.AudioItemIdMasterM3u8HeadSubtitleMethod -audioItemIdMasterM3u8HeadSubtitleMethodFromJson( +enums.AudioItemIdMasterM3u8HeadSubtitleMethod audioItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -63529,8 +60496,7 @@ audioItemIdMasterM3u8HeadSubtitleMethodFromJson( enums.AudioItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8HeadSubtitleMethod? -audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +enums.AudioItemIdMasterM3u8HeadSubtitleMethod? audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -63544,18 +60510,13 @@ audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( } String audioItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? - audioItemIdMasterM3u8HeadSubtitleMethod, + List? audioItemIdMasterM3u8HeadSubtitleMethod, ) { - return audioItemIdMasterM3u8HeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdMasterM3u8HeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? - audioItemIdMasterM3u8HeadSubtitleMethod, + List? audioItemIdMasterM3u8HeadSubtitleMethod, ) { if (audioItemIdMasterM3u8HeadSubtitleMethod == null) { return []; @@ -63564,8 +60525,7 @@ List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( return audioItemIdMasterM3u8HeadSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( +List audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -63578,8 +60538,7 @@ audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +List? audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -63615,8 +60574,7 @@ enums.AudioItemIdMasterM3u8HeadContext audioItemIdMasterM3u8HeadContextFromJson( enums.AudioItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8HeadContext? -audioItemIdMasterM3u8HeadContextNullableFromJson( +enums.AudioItemIdMasterM3u8HeadContext? audioItemIdMasterM3u8HeadContextNullableFromJson( Object? audioItemIdMasterM3u8HeadContext, [ enums.AudioItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -63630,15 +60588,13 @@ audioItemIdMasterM3u8HeadContextNullableFromJson( } String audioItemIdMasterM3u8HeadContextExplodedListToJson( - List? - audioItemIdMasterM3u8HeadContext, + List? audioItemIdMasterM3u8HeadContext, ) { return audioItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8HeadContextListToJson( - List? - audioItemIdMasterM3u8HeadContext, + List? audioItemIdMasterM3u8HeadContext, ) { if (audioItemIdMasterM3u8HeadContext == null) { return []; @@ -63647,8 +60603,7 @@ List audioItemIdMasterM3u8HeadContextListToJson( return audioItemIdMasterM3u8HeadContext.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8HeadContextListFromJson( +List audioItemIdMasterM3u8HeadContextListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -63656,13 +60611,10 @@ audioItemIdMasterM3u8HeadContextListFromJson( return defaultValue ?? []; } - return audioItemIdMasterM3u8HeadContext - .map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8HeadContext.map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } -List? -audioItemIdMasterM3u8HeadContextNullableListFromJson( +List? audioItemIdMasterM3u8HeadContextNullableListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -63670,96 +60622,71 @@ audioItemIdMasterM3u8HeadContextNullableListFromJson( return defaultValue; } - return audioItemIdMasterM3u8HeadContext - .map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8HeadContext.map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } -String? -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( +String? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { - return enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .swaggerGeneratedUnknown; + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } - return enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } -String -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( +String videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { - return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } -List -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( +List videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } - return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.map((e) => e.value!).toList(); } List -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; @@ -63767,19 +60694,17 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } List? -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; @@ -63787,90 +60712,73 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJso return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext?.value; } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetContextToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext.value; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext - .swaggerGeneratedUnknown; + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return null; } - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String videosItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { - return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } - return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => e.value!) - .toList(); + return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext.map((e) => e.value!).toList(); } List -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; @@ -63886,10 +60794,9 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( } List? -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; @@ -63905,21 +60812,18 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( } String? videosItemIdLiveM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdLiveM3u8GetSubtitleMethod? - videosItemIdLiveM3u8GetSubtitleMethod, + enums.VideosItemIdLiveM3u8GetSubtitleMethod? videosItemIdLiveM3u8GetSubtitleMethod, ) { return videosItemIdLiveM3u8GetSubtitleMethod?.value; } String? videosItemIdLiveM3u8GetSubtitleMethodToJson( - enums.VideosItemIdLiveM3u8GetSubtitleMethod - videosItemIdLiveM3u8GetSubtitleMethod, + enums.VideosItemIdLiveM3u8GetSubtitleMethod videosItemIdLiveM3u8GetSubtitleMethod, ) { return videosItemIdLiveM3u8GetSubtitleMethod.value; } -enums.VideosItemIdLiveM3u8GetSubtitleMethod -videosItemIdLiveM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdLiveM3u8GetSubtitleMethod videosItemIdLiveM3u8GetSubtitleMethodFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63930,8 +60834,7 @@ videosItemIdLiveM3u8GetSubtitleMethodFromJson( enums.VideosItemIdLiveM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdLiveM3u8GetSubtitleMethod? -videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdLiveM3u8GetSubtitleMethod? videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63945,18 +60848,13 @@ videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( } String videosItemIdLiveM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdLiveM3u8GetSubtitleMethod, + List? videosItemIdLiveM3u8GetSubtitleMethod, ) { - return videosItemIdLiveM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdLiveM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdLiveM3u8GetSubtitleMethodListToJson( - List? - videosItemIdLiveM3u8GetSubtitleMethod, + List? videosItemIdLiveM3u8GetSubtitleMethod, ) { if (videosItemIdLiveM3u8GetSubtitleMethod == null) { return []; @@ -63965,8 +60863,7 @@ List videosItemIdLiveM3u8GetSubtitleMethodListToJson( return videosItemIdLiveM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdLiveM3u8GetSubtitleMethodListFromJson( +List videosItemIdLiveM3u8GetSubtitleMethodListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63979,8 +60876,7 @@ videosItemIdLiveM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( +List? videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64016,8 +60912,7 @@ enums.VideosItemIdLiveM3u8GetContext videosItemIdLiveM3u8GetContextFromJson( enums.VideosItemIdLiveM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdLiveM3u8GetContext? -videosItemIdLiveM3u8GetContextNullableFromJson( +enums.VideosItemIdLiveM3u8GetContext? videosItemIdLiveM3u8GetContextNullableFromJson( Object? videosItemIdLiveM3u8GetContext, [ enums.VideosItemIdLiveM3u8GetContext? defaultValue, ]) { @@ -64046,8 +60941,7 @@ List videosItemIdLiveM3u8GetContextListToJson( return videosItemIdLiveM3u8GetContext.map((e) => e.value!).toList(); } -List -videosItemIdLiveM3u8GetContextListFromJson( +List videosItemIdLiveM3u8GetContextListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -64055,13 +60949,10 @@ videosItemIdLiveM3u8GetContextListFromJson( return defaultValue ?? []; } - return videosItemIdLiveM3u8GetContext - .map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdLiveM3u8GetContext.map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())).toList(); } -List? -videosItemIdLiveM3u8GetContextNullableListFromJson( +List? videosItemIdLiveM3u8GetContextNullableListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -64069,27 +60960,22 @@ videosItemIdLiveM3u8GetContextNullableListFromJson( return defaultValue; } - return videosItemIdLiveM3u8GetContext - .map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdLiveM3u8GetContext.map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())).toList(); } String? videosItemIdMainM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdMainM3u8GetSubtitleMethod? - videosItemIdMainM3u8GetSubtitleMethod, + enums.VideosItemIdMainM3u8GetSubtitleMethod? videosItemIdMainM3u8GetSubtitleMethod, ) { return videosItemIdMainM3u8GetSubtitleMethod?.value; } String? videosItemIdMainM3u8GetSubtitleMethodToJson( - enums.VideosItemIdMainM3u8GetSubtitleMethod - videosItemIdMainM3u8GetSubtitleMethod, + enums.VideosItemIdMainM3u8GetSubtitleMethod videosItemIdMainM3u8GetSubtitleMethod, ) { return videosItemIdMainM3u8GetSubtitleMethod.value; } -enums.VideosItemIdMainM3u8GetSubtitleMethod -videosItemIdMainM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdMainM3u8GetSubtitleMethod videosItemIdMainM3u8GetSubtitleMethodFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64100,8 +60986,7 @@ videosItemIdMainM3u8GetSubtitleMethodFromJson( enums.VideosItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMainM3u8GetSubtitleMethod? -videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdMainM3u8GetSubtitleMethod? videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64115,18 +61000,13 @@ videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( } String videosItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdMainM3u8GetSubtitleMethod, + List? videosItemIdMainM3u8GetSubtitleMethod, ) { - return videosItemIdMainM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMainM3u8GetSubtitleMethodListToJson( - List? - videosItemIdMainM3u8GetSubtitleMethod, + List? videosItemIdMainM3u8GetSubtitleMethod, ) { if (videosItemIdMainM3u8GetSubtitleMethod == null) { return []; @@ -64135,8 +61015,7 @@ List videosItemIdMainM3u8GetSubtitleMethodListToJson( return videosItemIdMainM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdMainM3u8GetSubtitleMethodListFromJson( +List videosItemIdMainM3u8GetSubtitleMethodListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64149,8 +61028,7 @@ videosItemIdMainM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +List? videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64186,8 +61064,7 @@ enums.VideosItemIdMainM3u8GetContext videosItemIdMainM3u8GetContextFromJson( enums.VideosItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMainM3u8GetContext? -videosItemIdMainM3u8GetContextNullableFromJson( +enums.VideosItemIdMainM3u8GetContext? videosItemIdMainM3u8GetContextNullableFromJson( Object? videosItemIdMainM3u8GetContext, [ enums.VideosItemIdMainM3u8GetContext? defaultValue, ]) { @@ -64216,8 +61093,7 @@ List videosItemIdMainM3u8GetContextListToJson( return videosItemIdMainM3u8GetContext.map((e) => e.value!).toList(); } -List -videosItemIdMainM3u8GetContextListFromJson( +List videosItemIdMainM3u8GetContextListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -64225,13 +61101,10 @@ videosItemIdMainM3u8GetContextListFromJson( return defaultValue ?? []; } - return videosItemIdMainM3u8GetContext - .map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMainM3u8GetContext.map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } -List? -videosItemIdMainM3u8GetContextNullableListFromJson( +List? videosItemIdMainM3u8GetContextNullableListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -64239,27 +61112,22 @@ videosItemIdMainM3u8GetContextNullableListFromJson( return defaultValue; } - return videosItemIdMainM3u8GetContext - .map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMainM3u8GetContext.map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } String? videosItemIdMasterM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdMasterM3u8GetSubtitleMethod? - videosItemIdMasterM3u8GetSubtitleMethod, + enums.VideosItemIdMasterM3u8GetSubtitleMethod? videosItemIdMasterM3u8GetSubtitleMethod, ) { return videosItemIdMasterM3u8GetSubtitleMethod?.value; } String? videosItemIdMasterM3u8GetSubtitleMethodToJson( - enums.VideosItemIdMasterM3u8GetSubtitleMethod - videosItemIdMasterM3u8GetSubtitleMethod, + enums.VideosItemIdMasterM3u8GetSubtitleMethod videosItemIdMasterM3u8GetSubtitleMethod, ) { return videosItemIdMasterM3u8GetSubtitleMethod.value; } -enums.VideosItemIdMasterM3u8GetSubtitleMethod -videosItemIdMasterM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdMasterM3u8GetSubtitleMethod videosItemIdMasterM3u8GetSubtitleMethodFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64270,8 +61138,7 @@ videosItemIdMasterM3u8GetSubtitleMethodFromJson( enums.VideosItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8GetSubtitleMethod? -videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdMasterM3u8GetSubtitleMethod? videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64285,18 +61152,13 @@ videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( } String videosItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdMasterM3u8GetSubtitleMethod, + List? videosItemIdMasterM3u8GetSubtitleMethod, ) { - return videosItemIdMasterM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdMasterM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8GetSubtitleMethodListToJson( - List? - videosItemIdMasterM3u8GetSubtitleMethod, + List? videosItemIdMasterM3u8GetSubtitleMethod, ) { if (videosItemIdMasterM3u8GetSubtitleMethod == null) { return []; @@ -64305,8 +61167,7 @@ List videosItemIdMasterM3u8GetSubtitleMethodListToJson( return videosItemIdMasterM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8GetSubtitleMethodListFromJson( +List videosItemIdMasterM3u8GetSubtitleMethodListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64319,8 +61180,7 @@ videosItemIdMasterM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +List? videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64356,8 +61216,7 @@ enums.VideosItemIdMasterM3u8GetContext videosItemIdMasterM3u8GetContextFromJson( enums.VideosItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8GetContext? -videosItemIdMasterM3u8GetContextNullableFromJson( +enums.VideosItemIdMasterM3u8GetContext? videosItemIdMasterM3u8GetContextNullableFromJson( Object? videosItemIdMasterM3u8GetContext, [ enums.VideosItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -64371,15 +61230,13 @@ videosItemIdMasterM3u8GetContextNullableFromJson( } String videosItemIdMasterM3u8GetContextExplodedListToJson( - List? - videosItemIdMasterM3u8GetContext, + List? videosItemIdMasterM3u8GetContext, ) { return videosItemIdMasterM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8GetContextListToJson( - List? - videosItemIdMasterM3u8GetContext, + List? videosItemIdMasterM3u8GetContext, ) { if (videosItemIdMasterM3u8GetContext == null) { return []; @@ -64388,8 +61245,7 @@ List videosItemIdMasterM3u8GetContextListToJson( return videosItemIdMasterM3u8GetContext.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8GetContextListFromJson( +List videosItemIdMasterM3u8GetContextListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -64397,13 +61253,10 @@ videosItemIdMasterM3u8GetContextListFromJson( return defaultValue ?? []; } - return videosItemIdMasterM3u8GetContext - .map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8GetContext.map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } -List? -videosItemIdMasterM3u8GetContextNullableListFromJson( +List? videosItemIdMasterM3u8GetContextNullableListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -64411,27 +61264,22 @@ videosItemIdMasterM3u8GetContextNullableListFromJson( return defaultValue; } - return videosItemIdMasterM3u8GetContext - .map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8GetContext.map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } String? videosItemIdMasterM3u8HeadSubtitleMethodNullableToJson( - enums.VideosItemIdMasterM3u8HeadSubtitleMethod? - videosItemIdMasterM3u8HeadSubtitleMethod, + enums.VideosItemIdMasterM3u8HeadSubtitleMethod? videosItemIdMasterM3u8HeadSubtitleMethod, ) { return videosItemIdMasterM3u8HeadSubtitleMethod?.value; } String? videosItemIdMasterM3u8HeadSubtitleMethodToJson( - enums.VideosItemIdMasterM3u8HeadSubtitleMethod - videosItemIdMasterM3u8HeadSubtitleMethod, + enums.VideosItemIdMasterM3u8HeadSubtitleMethod videosItemIdMasterM3u8HeadSubtitleMethod, ) { return videosItemIdMasterM3u8HeadSubtitleMethod.value; } -enums.VideosItemIdMasterM3u8HeadSubtitleMethod -videosItemIdMasterM3u8HeadSubtitleMethodFromJson( +enums.VideosItemIdMasterM3u8HeadSubtitleMethod videosItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -64442,8 +61290,7 @@ videosItemIdMasterM3u8HeadSubtitleMethodFromJson( enums.VideosItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8HeadSubtitleMethod? -videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +enums.VideosItemIdMasterM3u8HeadSubtitleMethod? videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -64457,18 +61304,13 @@ videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( } String videosItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? - videosItemIdMasterM3u8HeadSubtitleMethod, + List? videosItemIdMasterM3u8HeadSubtitleMethod, ) { - return videosItemIdMasterM3u8HeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdMasterM3u8HeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? - videosItemIdMasterM3u8HeadSubtitleMethod, + List? videosItemIdMasterM3u8HeadSubtitleMethod, ) { if (videosItemIdMasterM3u8HeadSubtitleMethod == null) { return []; @@ -64477,8 +61319,7 @@ List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( return videosItemIdMasterM3u8HeadSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( +List videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -64493,8 +61334,7 @@ videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +List? videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -64521,8 +61361,7 @@ String? videosItemIdMasterM3u8HeadContextToJson( return videosItemIdMasterM3u8HeadContext.value; } -enums.VideosItemIdMasterM3u8HeadContext -videosItemIdMasterM3u8HeadContextFromJson( +enums.VideosItemIdMasterM3u8HeadContext videosItemIdMasterM3u8HeadContextFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -64533,8 +61372,7 @@ videosItemIdMasterM3u8HeadContextFromJson( enums.VideosItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8HeadContext? -videosItemIdMasterM3u8HeadContextNullableFromJson( +enums.VideosItemIdMasterM3u8HeadContext? videosItemIdMasterM3u8HeadContextNullableFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -64548,16 +61386,13 @@ videosItemIdMasterM3u8HeadContextNullableFromJson( } String videosItemIdMasterM3u8HeadContextExplodedListToJson( - List? - videosItemIdMasterM3u8HeadContext, + List? videosItemIdMasterM3u8HeadContext, ) { - return videosItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? - ''; + return videosItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8HeadContextListToJson( - List? - videosItemIdMasterM3u8HeadContext, + List? videosItemIdMasterM3u8HeadContext, ) { if (videosItemIdMasterM3u8HeadContext == null) { return []; @@ -64566,8 +61401,7 @@ List videosItemIdMasterM3u8HeadContextListToJson( return videosItemIdMasterM3u8HeadContext.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8HeadContextListFromJson( +List videosItemIdMasterM3u8HeadContextListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -64575,13 +61409,10 @@ videosItemIdMasterM3u8HeadContextListFromJson( return defaultValue ?? []; } - return videosItemIdMasterM3u8HeadContext - .map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8HeadContext.map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } -List? -videosItemIdMasterM3u8HeadContextNullableListFromJson( +List? videosItemIdMasterM3u8HeadContextNullableListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -64589,80 +61420,64 @@ videosItemIdMasterM3u8HeadContextNullableListFromJson( return defaultValue; } - return videosItemIdMasterM3u8HeadContext - .map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8HeadContext.map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } String? artistsNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetImageType? - artistsNameImagesImageTypeImageIndexGetImageType, + enums.ArtistsNameImagesImageTypeImageIndexGetImageType? artistsNameImagesImageTypeImageIndexGetImageType, ) { return artistsNameImagesImageTypeImageIndexGetImageType?.value; } String? artistsNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetImageType - artistsNameImagesImageTypeImageIndexGetImageType, + enums.ArtistsNameImagesImageTypeImageIndexGetImageType artistsNameImagesImageTypeImageIndexGetImageType, ) { return artistsNameImagesImageTypeImageIndexGetImageType.value; } -enums.ArtistsNameImagesImageTypeImageIndexGetImageType -artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetImageType artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexGetImageType? -artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexGetImageType, + List? artistsNameImagesImageTypeImageIndexGetImageType, ) { - return artistsNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - artistsNameImagesImageTypeImageIndexGetImageType, + List? artistsNameImagesImageTypeImageIndexGetImageType, ) { if (artistsNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return artistsNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( + artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -64680,7 +61495,7 @@ artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -64698,74 +61513,58 @@ artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? artistsNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetFormat? - artistsNameImagesImageTypeImageIndexGetFormat, + enums.ArtistsNameImagesImageTypeImageIndexGetFormat? artistsNameImagesImageTypeImageIndexGetFormat, ) { return artistsNameImagesImageTypeImageIndexGetFormat?.value; } String? artistsNameImagesImageTypeImageIndexGetFormatToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetFormat - artistsNameImagesImageTypeImageIndexGetFormat, + enums.ArtistsNameImagesImageTypeImageIndexGetFormat artistsNameImagesImageTypeImageIndexGetFormat, ) { return artistsNameImagesImageTypeImageIndexGetFormat.value; } -enums.ArtistsNameImagesImageTypeImageIndexGetFormat -artistsNameImagesImageTypeImageIndexGetFormatFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetFormat artistsNameImagesImageTypeImageIndexGetFormatFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.ArtistsNameImagesImageTypeImageIndexGetFormat? -artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetFormat? artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexGetFormat, + List? artistsNameImagesImageTypeImageIndexGetFormat, ) { - return artistsNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexGetFormatListToJson( - List? - artistsNameImagesImageTypeImageIndexGetFormat, + List? artistsNameImagesImageTypeImageIndexGetFormat, ) { if (artistsNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return artistsNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -artistsNameImagesImageTypeImageIndexGetFormatListFromJson( +List artistsNameImagesImageTypeImageIndexGetFormatListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -64775,14 +61574,13 @@ artistsNameImagesImageTypeImageIndexGetFormatListFromJson( return artistsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -64792,81 +61590,66 @@ artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return artistsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? artistsNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? - artistsNameImagesImageTypeImageIndexHeadImageType, + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? artistsNameImagesImageTypeImageIndexHeadImageType, ) { return artistsNameImagesImageTypeImageIndexHeadImageType?.value; } String? artistsNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType - artistsNameImagesImageTypeImageIndexHeadImageType, + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType artistsNameImagesImageTypeImageIndexHeadImageType, ) { return artistsNameImagesImageTypeImageIndexHeadImageType.value; } -enums.ArtistsNameImagesImageTypeImageIndexHeadImageType -artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadImageType artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? -artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadImageType, + List? artistsNameImagesImageTypeImageIndexHeadImageType, ) { - return artistsNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadImageType, + List? artistsNameImagesImageTypeImageIndexHeadImageType, ) { if (artistsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return artistsNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -64884,7 +61667,7 @@ artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -64902,74 +61685,58 @@ artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? artistsNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? - artistsNameImagesImageTypeImageIndexHeadFormat, + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? artistsNameImagesImageTypeImageIndexHeadFormat, ) { return artistsNameImagesImageTypeImageIndexHeadFormat?.value; } String? artistsNameImagesImageTypeImageIndexHeadFormatToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat - artistsNameImagesImageTypeImageIndexHeadFormat, + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat artistsNameImagesImageTypeImageIndexHeadFormat, ) { return artistsNameImagesImageTypeImageIndexHeadFormat.value; } -enums.ArtistsNameImagesImageTypeImageIndexHeadFormat -artistsNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadFormat artistsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? -artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadFormat, + List? artistsNameImagesImageTypeImageIndexHeadFormat, ) { - return artistsNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadFormat, + List? artistsNameImagesImageTypeImageIndexHeadFormat, ) { if (artistsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return artistsNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( +List artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -64987,7 +61754,7 @@ artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65027,8 +61794,7 @@ enums.BrandingSplashscreenGetFormat brandingSplashscreenGetFormatFromJson( enums.BrandingSplashscreenGetFormat.swaggerGeneratedUnknown; } -enums.BrandingSplashscreenGetFormat? -brandingSplashscreenGetFormatNullableFromJson( +enums.BrandingSplashscreenGetFormat? brandingSplashscreenGetFormatNullableFromJson( Object? brandingSplashscreenGetFormat, [ enums.BrandingSplashscreenGetFormat? defaultValue, ]) { @@ -65057,8 +61823,7 @@ List brandingSplashscreenGetFormatListToJson( return brandingSplashscreenGetFormat.map((e) => e.value!).toList(); } -List -brandingSplashscreenGetFormatListFromJson( +List brandingSplashscreenGetFormatListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -65066,13 +61831,10 @@ brandingSplashscreenGetFormatListFromJson( return defaultValue ?? []; } - return brandingSplashscreenGetFormat - .map((e) => brandingSplashscreenGetFormatFromJson(e.toString())) - .toList(); + return brandingSplashscreenGetFormat.map((e) => brandingSplashscreenGetFormatFromJson(e.toString())).toList(); } -List? -brandingSplashscreenGetFormatNullableListFromJson( +List? brandingSplashscreenGetFormatNullableListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -65080,27 +61842,22 @@ brandingSplashscreenGetFormatNullableListFromJson( return defaultValue; } - return brandingSplashscreenGetFormat - .map((e) => brandingSplashscreenGetFormatFromJson(e.toString())) - .toList(); + return brandingSplashscreenGetFormat.map((e) => brandingSplashscreenGetFormatFromJson(e.toString())).toList(); } String? genresNameImagesImageTypeGetImageTypeNullableToJson( - enums.GenresNameImagesImageTypeGetImageType? - genresNameImagesImageTypeGetImageType, + enums.GenresNameImagesImageTypeGetImageType? genresNameImagesImageTypeGetImageType, ) { return genresNameImagesImageTypeGetImageType?.value; } String? genresNameImagesImageTypeGetImageTypeToJson( - enums.GenresNameImagesImageTypeGetImageType - genresNameImagesImageTypeGetImageType, + enums.GenresNameImagesImageTypeGetImageType genresNameImagesImageTypeGetImageType, ) { return genresNameImagesImageTypeGetImageType.value; } -enums.GenresNameImagesImageTypeGetImageType -genresNameImagesImageTypeGetImageTypeFromJson( +enums.GenresNameImagesImageTypeGetImageType genresNameImagesImageTypeGetImageTypeFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -65111,8 +61868,7 @@ genresNameImagesImageTypeGetImageTypeFromJson( enums.GenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeGetImageType? -genresNameImagesImageTypeGetImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeGetImageType? genresNameImagesImageTypeGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -65126,18 +61882,13 @@ genresNameImagesImageTypeGetImageTypeNullableFromJson( } String genresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeGetImageType, + List? genresNameImagesImageTypeGetImageType, ) { - return genresNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeGetImageTypeListToJson( - List? - genresNameImagesImageTypeGetImageType, + List? genresNameImagesImageTypeGetImageType, ) { if (genresNameImagesImageTypeGetImageType == null) { return []; @@ -65146,8 +61897,7 @@ List genresNameImagesImageTypeGetImageTypeListToJson( return genresNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeGetImageTypeListFromJson( +List genresNameImagesImageTypeGetImageTypeListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -65160,8 +61910,7 @@ genresNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -genresNameImagesImageTypeGetImageTypeNullableListFromJson( +List? genresNameImagesImageTypeGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -65186,8 +61935,7 @@ String? genresNameImagesImageTypeGetFormatToJson( return genresNameImagesImageTypeGetFormat.value; } -enums.GenresNameImagesImageTypeGetFormat -genresNameImagesImageTypeGetFormatFromJson( +enums.GenresNameImagesImageTypeGetFormat genresNameImagesImageTypeGetFormatFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -65198,8 +61946,7 @@ genresNameImagesImageTypeGetFormatFromJson( enums.GenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeGetFormat? -genresNameImagesImageTypeGetFormatNullableFromJson( +enums.GenresNameImagesImageTypeGetFormat? genresNameImagesImageTypeGetFormatNullableFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -65213,16 +61960,13 @@ genresNameImagesImageTypeGetFormatNullableFromJson( } String genresNameImagesImageTypeGetFormatExplodedListToJson( - List? - genresNameImagesImageTypeGetFormat, + List? genresNameImagesImageTypeGetFormat, ) { - return genresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return genresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeGetFormatListToJson( - List? - genresNameImagesImageTypeGetFormat, + List? genresNameImagesImageTypeGetFormat, ) { if (genresNameImagesImageTypeGetFormat == null) { return []; @@ -65231,8 +61975,7 @@ List genresNameImagesImageTypeGetFormatListToJson( return genresNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeGetFormatListFromJson( +List genresNameImagesImageTypeGetFormatListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -65245,8 +61988,7 @@ genresNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -genresNameImagesImageTypeGetFormatNullableListFromJson( +List? genresNameImagesImageTypeGetFormatNullableListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -65260,21 +62002,18 @@ genresNameImagesImageTypeGetFormatNullableListFromJson( } String? genresNameImagesImageTypeHeadImageTypeNullableToJson( - enums.GenresNameImagesImageTypeHeadImageType? - genresNameImagesImageTypeHeadImageType, + enums.GenresNameImagesImageTypeHeadImageType? genresNameImagesImageTypeHeadImageType, ) { return genresNameImagesImageTypeHeadImageType?.value; } String? genresNameImagesImageTypeHeadImageTypeToJson( - enums.GenresNameImagesImageTypeHeadImageType - genresNameImagesImageTypeHeadImageType, + enums.GenresNameImagesImageTypeHeadImageType genresNameImagesImageTypeHeadImageType, ) { return genresNameImagesImageTypeHeadImageType.value; } -enums.GenresNameImagesImageTypeHeadImageType -genresNameImagesImageTypeHeadImageTypeFromJson( +enums.GenresNameImagesImageTypeHeadImageType genresNameImagesImageTypeHeadImageTypeFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -65285,8 +62024,7 @@ genresNameImagesImageTypeHeadImageTypeFromJson( enums.GenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeHeadImageType? -genresNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeHeadImageType? genresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -65300,18 +62038,13 @@ genresNameImagesImageTypeHeadImageTypeNullableFromJson( } String genresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeHeadImageType, + List? genresNameImagesImageTypeHeadImageType, ) { - return genresNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeHeadImageTypeListToJson( - List? - genresNameImagesImageTypeHeadImageType, + List? genresNameImagesImageTypeHeadImageType, ) { if (genresNameImagesImageTypeHeadImageType == null) { return []; @@ -65320,8 +62053,7 @@ List genresNameImagesImageTypeHeadImageTypeListToJson( return genresNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeHeadImageTypeListFromJson( +List genresNameImagesImageTypeHeadImageTypeListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -65334,8 +62066,7 @@ genresNameImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -genresNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? genresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -65349,8 +62080,7 @@ genresNameImagesImageTypeHeadImageTypeNullableListFromJson( } String? genresNameImagesImageTypeHeadFormatNullableToJson( - enums.GenresNameImagesImageTypeHeadFormat? - genresNameImagesImageTypeHeadFormat, + enums.GenresNameImagesImageTypeHeadFormat? genresNameImagesImageTypeHeadFormat, ) { return genresNameImagesImageTypeHeadFormat?.value; } @@ -65361,8 +62091,7 @@ String? genresNameImagesImageTypeHeadFormatToJson( return genresNameImagesImageTypeHeadFormat.value; } -enums.GenresNameImagesImageTypeHeadFormat -genresNameImagesImageTypeHeadFormatFromJson( +enums.GenresNameImagesImageTypeHeadFormat genresNameImagesImageTypeHeadFormatFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -65373,8 +62102,7 @@ genresNameImagesImageTypeHeadFormatFromJson( enums.GenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeHeadFormat? -genresNameImagesImageTypeHeadFormatNullableFromJson( +enums.GenresNameImagesImageTypeHeadFormat? genresNameImagesImageTypeHeadFormatNullableFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -65388,16 +62116,13 @@ genresNameImagesImageTypeHeadFormatNullableFromJson( } String genresNameImagesImageTypeHeadFormatExplodedListToJson( - List? - genresNameImagesImageTypeHeadFormat, + List? genresNameImagesImageTypeHeadFormat, ) { - return genresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return genresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeHeadFormatListToJson( - List? - genresNameImagesImageTypeHeadFormat, + List? genresNameImagesImageTypeHeadFormat, ) { if (genresNameImagesImageTypeHeadFormat == null) { return []; @@ -65406,8 +62131,7 @@ List genresNameImagesImageTypeHeadFormatListToJson( return genresNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeHeadFormatListFromJson( +List genresNameImagesImageTypeHeadFormatListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65420,8 +62144,7 @@ genresNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -genresNameImagesImageTypeHeadFormatNullableListFromJson( +List? genresNameImagesImageTypeHeadFormatNullableListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65435,74 +62158,58 @@ genresNameImagesImageTypeHeadFormatNullableListFromJson( } String? genresNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.GenresNameImagesImageTypeImageIndexGetImageType? - genresNameImagesImageTypeImageIndexGetImageType, + enums.GenresNameImagesImageTypeImageIndexGetImageType? genresNameImagesImageTypeImageIndexGetImageType, ) { return genresNameImagesImageTypeImageIndexGetImageType?.value; } String? genresNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.GenresNameImagesImageTypeImageIndexGetImageType - genresNameImagesImageTypeImageIndexGetImageType, + enums.GenresNameImagesImageTypeImageIndexGetImageType genresNameImagesImageTypeImageIndexGetImageType, ) { return genresNameImagesImageTypeImageIndexGetImageType.value; } -enums.GenresNameImagesImageTypeImageIndexGetImageType -genresNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.GenresNameImagesImageTypeImageIndexGetImageType genresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexGetImageType? -genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexGetImageType? genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexGetImageType, + List? genresNameImagesImageTypeImageIndexGetImageType, ) { - return genresNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - genresNameImagesImageTypeImageIndexGetImageType, + List? genresNameImagesImageTypeImageIndexGetImageType, ) { if (genresNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return genresNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( +List genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65520,7 +62227,7 @@ genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65538,74 +62245,58 @@ genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? genresNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.GenresNameImagesImageTypeImageIndexGetFormat? - genresNameImagesImageTypeImageIndexGetFormat, + enums.GenresNameImagesImageTypeImageIndexGetFormat? genresNameImagesImageTypeImageIndexGetFormat, ) { return genresNameImagesImageTypeImageIndexGetFormat?.value; } String? genresNameImagesImageTypeImageIndexGetFormatToJson( - enums.GenresNameImagesImageTypeImageIndexGetFormat - genresNameImagesImageTypeImageIndexGetFormat, + enums.GenresNameImagesImageTypeImageIndexGetFormat genresNameImagesImageTypeImageIndexGetFormat, ) { return genresNameImagesImageTypeImageIndexGetFormat.value; } -enums.GenresNameImagesImageTypeImageIndexGetFormat -genresNameImagesImageTypeImageIndexGetFormatFromJson( +enums.GenresNameImagesImageTypeImageIndexGetFormat genresNameImagesImageTypeImageIndexGetFormatFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexGetFormat? -genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexGetFormat? genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexGetFormat, + List? genresNameImagesImageTypeImageIndexGetFormat, ) { - return genresNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexGetFormatListToJson( - List? - genresNameImagesImageTypeImageIndexGetFormat, + List? genresNameImagesImageTypeImageIndexGetFormat, ) { if (genresNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return genresNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeImageIndexGetFormatListFromJson( +List genresNameImagesImageTypeImageIndexGetFormatListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65615,14 +62306,13 @@ genresNameImagesImageTypeImageIndexGetFormatListFromJson( return genresNameImagesImageTypeImageIndexGetFormat .map( - (e) => - genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65632,81 +62322,66 @@ genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return genresNameImagesImageTypeImageIndexGetFormat .map( - (e) => - genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? genresNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.GenresNameImagesImageTypeImageIndexHeadImageType? - genresNameImagesImageTypeImageIndexHeadImageType, + enums.GenresNameImagesImageTypeImageIndexHeadImageType? genresNameImagesImageTypeImageIndexHeadImageType, ) { return genresNameImagesImageTypeImageIndexHeadImageType?.value; } String? genresNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.GenresNameImagesImageTypeImageIndexHeadImageType - genresNameImagesImageTypeImageIndexHeadImageType, + enums.GenresNameImagesImageTypeImageIndexHeadImageType genresNameImagesImageTypeImageIndexHeadImageType, ) { return genresNameImagesImageTypeImageIndexHeadImageType.value; } -enums.GenresNameImagesImageTypeImageIndexHeadImageType -genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadImageType genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeImageIndexHeadImageType? -genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexHeadImageType, + List? genresNameImagesImageTypeImageIndexHeadImageType, ) { - return genresNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - genresNameImagesImageTypeImageIndexHeadImageType, + List? genresNameImagesImageTypeImageIndexHeadImageType, ) { if (genresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return genresNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65724,7 +62399,7 @@ genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65742,74 +62417,58 @@ genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? genresNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.GenresNameImagesImageTypeImageIndexHeadFormat? - genresNameImagesImageTypeImageIndexHeadFormat, + enums.GenresNameImagesImageTypeImageIndexHeadFormat? genresNameImagesImageTypeImageIndexHeadFormat, ) { return genresNameImagesImageTypeImageIndexHeadFormat?.value; } String? genresNameImagesImageTypeImageIndexHeadFormatToJson( - enums.GenresNameImagesImageTypeImageIndexHeadFormat - genresNameImagesImageTypeImageIndexHeadFormat, + enums.GenresNameImagesImageTypeImageIndexHeadFormat genresNameImagesImageTypeImageIndexHeadFormat, ) { return genresNameImagesImageTypeImageIndexHeadFormat.value; } -enums.GenresNameImagesImageTypeImageIndexHeadFormat -genresNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadFormat genresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexHeadFormat? -genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadFormat? genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexHeadFormat, + List? genresNameImagesImageTypeImageIndexHeadFormat, ) { - return genresNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - genresNameImagesImageTypeImageIndexHeadFormat, + List? genresNameImagesImageTypeImageIndexHeadFormat, ) { if (genresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return genresNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeImageIndexHeadFormatListFromJson( +List genresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65819,14 +62478,13 @@ genresNameImagesImageTypeImageIndexHeadFormatListFromJson( return genresNameImagesImageTypeImageIndexHeadFormat .map( - (e) => - genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), ) .toList(); } List? -genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65836,79 +62494,64 @@ genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( return genresNameImagesImageTypeImageIndexHeadFormat .map( - (e) => - genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), ) .toList(); } String? itemsItemIdImagesImageTypeDeleteImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeDeleteImageType? - itemsItemIdImagesImageTypeDeleteImageType, + enums.ItemsItemIdImagesImageTypeDeleteImageType? itemsItemIdImagesImageTypeDeleteImageType, ) { return itemsItemIdImagesImageTypeDeleteImageType?.value; } String? itemsItemIdImagesImageTypeDeleteImageTypeToJson( - enums.ItemsItemIdImagesImageTypeDeleteImageType - itemsItemIdImagesImageTypeDeleteImageType, + enums.ItemsItemIdImagesImageTypeDeleteImageType itemsItemIdImagesImageTypeDeleteImageType, ) { return itemsItemIdImagesImageTypeDeleteImageType.value; } -enums.ItemsItemIdImagesImageTypeDeleteImageType -itemsItemIdImagesImageTypeDeleteImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeDeleteImageType itemsItemIdImagesImageTypeDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeDeleteImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeDeleteImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeDeleteImageType? -itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeDeleteImageType? itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeDeleteImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeDeleteImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeDeleteImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeDeleteImageType, + List? itemsItemIdImagesImageTypeDeleteImageType, ) { - return itemsItemIdImagesImageTypeDeleteImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeDeleteImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeDeleteImageTypeListToJson( - List? - itemsItemIdImagesImageTypeDeleteImageType, + List? itemsItemIdImagesImageTypeDeleteImageType, ) { if (itemsItemIdImagesImageTypeDeleteImageType == null) { return []; } - return itemsItemIdImagesImageTypeDeleteImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeDeleteImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( +List itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -65923,8 +62566,7 @@ itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -65940,21 +62582,18 @@ itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypePostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypePostImageType? - itemsItemIdImagesImageTypePostImageType, + enums.ItemsItemIdImagesImageTypePostImageType? itemsItemIdImagesImageTypePostImageType, ) { return itemsItemIdImagesImageTypePostImageType?.value; } String? itemsItemIdImagesImageTypePostImageTypeToJson( - enums.ItemsItemIdImagesImageTypePostImageType - itemsItemIdImagesImageTypePostImageType, + enums.ItemsItemIdImagesImageTypePostImageType itemsItemIdImagesImageTypePostImageType, ) { return itemsItemIdImagesImageTypePostImageType.value; } -enums.ItemsItemIdImagesImageTypePostImageType -itemsItemIdImagesImageTypePostImageTypeFromJson( +enums.ItemsItemIdImagesImageTypePostImageType itemsItemIdImagesImageTypePostImageTypeFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { @@ -65965,8 +62604,7 @@ itemsItemIdImagesImageTypePostImageTypeFromJson( enums.ItemsItemIdImagesImageTypePostImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypePostImageType? -itemsItemIdImagesImageTypePostImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypePostImageType? itemsItemIdImagesImageTypePostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { @@ -65980,18 +62618,13 @@ itemsItemIdImagesImageTypePostImageTypeNullableFromJson( } String itemsItemIdImagesImageTypePostImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypePostImageType, + List? itemsItemIdImagesImageTypePostImageType, ) { - return itemsItemIdImagesImageTypePostImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypePostImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypePostImageTypeListToJson( - List? - itemsItemIdImagesImageTypePostImageType, + List? itemsItemIdImagesImageTypePostImageType, ) { if (itemsItemIdImagesImageTypePostImageType == null) { return []; @@ -66000,8 +62633,7 @@ List itemsItemIdImagesImageTypePostImageTypeListToJson( return itemsItemIdImagesImageTypePostImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypePostImageTypeListFromJson( +List itemsItemIdImagesImageTypePostImageTypeListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -66014,8 +62646,7 @@ itemsItemIdImagesImageTypePostImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -66029,21 +62660,18 @@ itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeGetImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeGetImageType? - itemsItemIdImagesImageTypeGetImageType, + enums.ItemsItemIdImagesImageTypeGetImageType? itemsItemIdImagesImageTypeGetImageType, ) { return itemsItemIdImagesImageTypeGetImageType?.value; } String? itemsItemIdImagesImageTypeGetImageTypeToJson( - enums.ItemsItemIdImagesImageTypeGetImageType - itemsItemIdImagesImageTypeGetImageType, + enums.ItemsItemIdImagesImageTypeGetImageType itemsItemIdImagesImageTypeGetImageType, ) { return itemsItemIdImagesImageTypeGetImageType.value; } -enums.ItemsItemIdImagesImageTypeGetImageType -itemsItemIdImagesImageTypeGetImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeGetImageType itemsItemIdImagesImageTypeGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { @@ -66054,8 +62682,7 @@ itemsItemIdImagesImageTypeGetImageTypeFromJson( enums.ItemsItemIdImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeGetImageType? -itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeGetImageType? itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { @@ -66069,18 +62696,13 @@ itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( } String itemsItemIdImagesImageTypeGetImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeGetImageType, + List? itemsItemIdImagesImageTypeGetImageType, ) { - return itemsItemIdImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeGetImageTypeListToJson( - List? - itemsItemIdImagesImageTypeGetImageType, + List? itemsItemIdImagesImageTypeGetImageType, ) { if (itemsItemIdImagesImageTypeGetImageType == null) { return []; @@ -66089,8 +62711,7 @@ List itemsItemIdImagesImageTypeGetImageTypeListToJson( return itemsItemIdImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeGetImageTypeListFromJson( +List itemsItemIdImagesImageTypeGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -66103,8 +62724,7 @@ itemsItemIdImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -66118,8 +62738,7 @@ itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeGetFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeGetFormat? - itemsItemIdImagesImageTypeGetFormat, + enums.ItemsItemIdImagesImageTypeGetFormat? itemsItemIdImagesImageTypeGetFormat, ) { return itemsItemIdImagesImageTypeGetFormat?.value; } @@ -66130,8 +62749,7 @@ String? itemsItemIdImagesImageTypeGetFormatToJson( return itemsItemIdImagesImageTypeGetFormat.value; } -enums.ItemsItemIdImagesImageTypeGetFormat -itemsItemIdImagesImageTypeGetFormatFromJson( +enums.ItemsItemIdImagesImageTypeGetFormat itemsItemIdImagesImageTypeGetFormatFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { @@ -66142,8 +62760,7 @@ itemsItemIdImagesImageTypeGetFormatFromJson( enums.ItemsItemIdImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeGetFormat? -itemsItemIdImagesImageTypeGetFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeGetFormat? itemsItemIdImagesImageTypeGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { @@ -66157,16 +62774,13 @@ itemsItemIdImagesImageTypeGetFormatNullableFromJson( } String itemsItemIdImagesImageTypeGetFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeGetFormat, + List? itemsItemIdImagesImageTypeGetFormat, ) { - return itemsItemIdImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return itemsItemIdImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeGetFormatListToJson( - List? - itemsItemIdImagesImageTypeGetFormat, + List? itemsItemIdImagesImageTypeGetFormat, ) { if (itemsItemIdImagesImageTypeGetFormat == null) { return []; @@ -66175,8 +62789,7 @@ List itemsItemIdImagesImageTypeGetFormatListToJson( return itemsItemIdImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeGetFormatListFromJson( +List itemsItemIdImagesImageTypeGetFormatListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -66189,8 +62802,7 @@ itemsItemIdImagesImageTypeGetFormatListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeGetFormatNullableListFromJson( +List? itemsItemIdImagesImageTypeGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -66204,21 +62816,18 @@ itemsItemIdImagesImageTypeGetFormatNullableListFromJson( } String? itemsItemIdImagesImageTypeHeadImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeHeadImageType? - itemsItemIdImagesImageTypeHeadImageType, + enums.ItemsItemIdImagesImageTypeHeadImageType? itemsItemIdImagesImageTypeHeadImageType, ) { return itemsItemIdImagesImageTypeHeadImageType?.value; } String? itemsItemIdImagesImageTypeHeadImageTypeToJson( - enums.ItemsItemIdImagesImageTypeHeadImageType - itemsItemIdImagesImageTypeHeadImageType, + enums.ItemsItemIdImagesImageTypeHeadImageType itemsItemIdImagesImageTypeHeadImageType, ) { return itemsItemIdImagesImageTypeHeadImageType.value; } -enums.ItemsItemIdImagesImageTypeHeadImageType -itemsItemIdImagesImageTypeHeadImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeHeadImageType itemsItemIdImagesImageTypeHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { @@ -66229,8 +62838,7 @@ itemsItemIdImagesImageTypeHeadImageTypeFromJson( enums.ItemsItemIdImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeHeadImageType? -itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeHeadImageType? itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { @@ -66244,18 +62852,13 @@ itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( } String itemsItemIdImagesImageTypeHeadImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeHeadImageType, + List? itemsItemIdImagesImageTypeHeadImageType, ) { - return itemsItemIdImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeHeadImageTypeListToJson( - List? - itemsItemIdImagesImageTypeHeadImageType, + List? itemsItemIdImagesImageTypeHeadImageType, ) { if (itemsItemIdImagesImageTypeHeadImageType == null) { return []; @@ -66264,8 +62867,7 @@ List itemsItemIdImagesImageTypeHeadImageTypeListToJson( return itemsItemIdImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeHeadImageTypeListFromJson( +List itemsItemIdImagesImageTypeHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -66278,8 +62880,7 @@ itemsItemIdImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -66293,21 +62894,18 @@ itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeHeadFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeHeadFormat? - itemsItemIdImagesImageTypeHeadFormat, + enums.ItemsItemIdImagesImageTypeHeadFormat? itemsItemIdImagesImageTypeHeadFormat, ) { return itemsItemIdImagesImageTypeHeadFormat?.value; } String? itemsItemIdImagesImageTypeHeadFormatToJson( - enums.ItemsItemIdImagesImageTypeHeadFormat - itemsItemIdImagesImageTypeHeadFormat, + enums.ItemsItemIdImagesImageTypeHeadFormat itemsItemIdImagesImageTypeHeadFormat, ) { return itemsItemIdImagesImageTypeHeadFormat.value; } -enums.ItemsItemIdImagesImageTypeHeadFormat -itemsItemIdImagesImageTypeHeadFormatFromJson( +enums.ItemsItemIdImagesImageTypeHeadFormat itemsItemIdImagesImageTypeHeadFormatFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { @@ -66318,8 +62916,7 @@ itemsItemIdImagesImageTypeHeadFormatFromJson( enums.ItemsItemIdImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeHeadFormat? -itemsItemIdImagesImageTypeHeadFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeHeadFormat? itemsItemIdImagesImageTypeHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { @@ -66333,16 +62930,13 @@ itemsItemIdImagesImageTypeHeadFormatNullableFromJson( } String itemsItemIdImagesImageTypeHeadFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeHeadFormat, + List? itemsItemIdImagesImageTypeHeadFormat, ) { - return itemsItemIdImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return itemsItemIdImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeHeadFormatListToJson( - List? - itemsItemIdImagesImageTypeHeadFormat, + List? itemsItemIdImagesImageTypeHeadFormat, ) { if (itemsItemIdImagesImageTypeHeadFormat == null) { return []; @@ -66351,8 +62945,7 @@ List itemsItemIdImagesImageTypeHeadFormatListToJson( return itemsItemIdImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeHeadFormatListFromJson( +List itemsItemIdImagesImageTypeHeadFormatListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -66365,8 +62958,7 @@ itemsItemIdImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( +List? itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -66380,76 +62972,60 @@ itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { return itemsItemIdImagesImageTypeImageIndexDeleteImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexDeleteImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { return itemsItemIdImagesImageTypeImageIndexDeleteImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values - .firstWhereOrNull( - (e) => - e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexDeleteImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexDeleteImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values - .firstWhereOrNull( - (e) => - e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexDeleteImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { - return itemsItemIdImagesImageTypeImageIndexDeleteImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexDeleteImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { if (itemsItemIdImagesImageTypeImageIndexDeleteImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexDeleteImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexDeleteImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -66467,7 +63043,7 @@ itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -66485,74 +63061,60 @@ itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? itemsItemIdImagesImageTypeImageIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexPostImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexPostImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType - itemsItemIdImagesImageTypeImageIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType itemsItemIdImagesImageTypeImageIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexPostImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexPostImageType -itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexPostImageType itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexPostImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? -itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexPostImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexPostImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexPostImageType, + List? itemsItemIdImagesImageTypeImageIndexPostImageType, ) { - return itemsItemIdImagesImageTypeImageIndexPostImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexPostImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexPostImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexPostImageType, + List? itemsItemIdImagesImageTypeImageIndexPostImageType, ) { if (itemsItemIdImagesImageTypeImageIndexPostImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexPostImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexPostImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -66570,7 +63132,7 @@ itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -66588,74 +63150,60 @@ itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? - itemsItemIdImagesImageTypeImageIndexGetImageType, + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? itemsItemIdImagesImageTypeImageIndexGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexGetImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexGetImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType - itemsItemIdImagesImageTypeImageIndexGetImageType, + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType itemsItemIdImagesImageTypeImageIndexGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexGetImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexGetImageType -itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetImageType itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? -itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetImageType, + List? itemsItemIdImagesImageTypeImageIndexGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexGetImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetImageType, + List? itemsItemIdImagesImageTypeImageIndexGetImageType, ) { if (itemsItemIdImagesImageTypeImageIndexGetImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -66673,7 +63221,7 @@ itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -66691,74 +63239,58 @@ itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexGetFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? - itemsItemIdImagesImageTypeImageIndexGetFormat, + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? itemsItemIdImagesImageTypeImageIndexGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexGetFormat?.value; } String? itemsItemIdImagesImageTypeImageIndexGetFormatToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat - itemsItemIdImagesImageTypeImageIndexGetFormat, + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat itemsItemIdImagesImageTypeImageIndexGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexGetFormat.value; } -enums.ItemsItemIdImagesImageTypeImageIndexGetFormat -itemsItemIdImagesImageTypeImageIndexGetFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetFormat itemsItemIdImagesImageTypeImageIndexGetFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? -itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetFormat, + List? itemsItemIdImagesImageTypeImageIndexGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexGetFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetFormat, + List? itemsItemIdImagesImageTypeImageIndexGetFormat, ) { if (itemsItemIdImagesImageTypeImageIndexGetFormat == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( +List itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -66768,14 +63300,13 @@ itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( return itemsItemIdImagesImageTypeImageIndexGetFormat .map( - (e) => - itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -66785,81 +63316,66 @@ itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( return itemsItemIdImagesImageTypeImageIndexGetFormat .map( - (e) => - itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? - itemsItemIdImagesImageTypeImageIndexHeadImageType, + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexHeadImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexHeadImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType - itemsItemIdImagesImageTypeImageIndexHeadImageType, + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexHeadImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType -itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? -itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadImageType, + List? itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadImageType, + List? itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { if (itemsItemIdImagesImageTypeImageIndexHeadImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -66877,7 +63393,7 @@ itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -66895,74 +63411,58 @@ itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? - itemsItemIdImagesImageTypeImageIndexHeadFormat, + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexHeadFormat?.value; } String? itemsItemIdImagesImageTypeImageIndexHeadFormatToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat - itemsItemIdImagesImageTypeImageIndexHeadFormat, + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexHeadFormat.value; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat -itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? -itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadFormat, + List? itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexHeadFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadFormat, + List? itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { if (itemsItemIdImagesImageTypeImageIndexHeadFormat == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( +List itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -66980,7 +63480,7 @@ itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -66998,72 +63498,61 @@ itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( } String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + defaultValue, ]) { return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return null; } return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType ?.map((e) => e.value!) @@ -67072,14 +63561,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return []; } @@ -67088,19 +63574,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return defaultValue ?? []; } @@ -67108,25 +63588,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return defaultValue; } @@ -67134,79 +63608,63 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? defaultValue, ]) { - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return null; } - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat ?.map((e) => e.value!) @@ -67215,14 +63673,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return []; } @@ -67231,19 +63686,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return defaultValue ?? []; } @@ -67251,25 +63700,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return defaultValue; } @@ -67277,79 +63720,68 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + defaultValue, ]) { return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return null; } return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType ?.map((e) => e.value!) @@ -67358,14 +63790,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return []; } @@ -67374,19 +63803,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return defaultValue ?? []; } @@ -67394,25 +63817,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return defaultValue; } @@ -67420,79 +63837,66 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + defaultValue, ]) { - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return null; } - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat ?.map((e) => e.value!) @@ -67501,14 +63905,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return []; } @@ -67517,19 +63918,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return defaultValue ?? []; } @@ -67537,25 +63932,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return defaultValue; } @@ -67563,88 +63952,72 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexIndexPostImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexIndexPostImageType.value; } enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values - .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexIndexPostImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values - .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeExplodedListToJson( List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { - return itemsItemIdImagesImageTypeImageIndexIndexPostImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexIndexPostImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListToJson( List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexIndexPostImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexIndexPostImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue ?? []; @@ -67660,10 +64033,9 @@ itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue; @@ -67679,72 +64051,58 @@ itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeGetImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeGetImageType? - musicGenresNameImagesImageTypeGetImageType, + enums.MusicGenresNameImagesImageTypeGetImageType? musicGenresNameImagesImageTypeGetImageType, ) { return musicGenresNameImagesImageTypeGetImageType?.value; } String? musicGenresNameImagesImageTypeGetImageTypeToJson( - enums.MusicGenresNameImagesImageTypeGetImageType - musicGenresNameImagesImageTypeGetImageType, + enums.MusicGenresNameImagesImageTypeGetImageType musicGenresNameImagesImageTypeGetImageType, ) { return musicGenresNameImagesImageTypeGetImageType.value; } -enums.MusicGenresNameImagesImageTypeGetImageType -musicGenresNameImagesImageTypeGetImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeGetImageType musicGenresNameImagesImageTypeGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeGetImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeGetImageType? -musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( +enums.MusicGenresNameImagesImageTypeGetImageType? musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeGetImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeGetImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeGetImageType, + List? musicGenresNameImagesImageTypeGetImageType, ) { - return musicGenresNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeGetImageTypeListToJson( - List? - musicGenresNameImagesImageTypeGetImageType, + List? musicGenresNameImagesImageTypeGetImageType, ) { if (musicGenresNameImagesImageTypeGetImageType == null) { return []; } - return musicGenresNameImagesImageTypeGetImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeGetImageTypeListFromJson( +List musicGenresNameImagesImageTypeGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -67759,8 +64117,7 @@ musicGenresNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( +List? musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -67776,21 +64133,18 @@ musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeGetFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeGetFormat? - musicGenresNameImagesImageTypeGetFormat, + enums.MusicGenresNameImagesImageTypeGetFormat? musicGenresNameImagesImageTypeGetFormat, ) { return musicGenresNameImagesImageTypeGetFormat?.value; } String? musicGenresNameImagesImageTypeGetFormatToJson( - enums.MusicGenresNameImagesImageTypeGetFormat - musicGenresNameImagesImageTypeGetFormat, + enums.MusicGenresNameImagesImageTypeGetFormat musicGenresNameImagesImageTypeGetFormat, ) { return musicGenresNameImagesImageTypeGetFormat.value; } -enums.MusicGenresNameImagesImageTypeGetFormat -musicGenresNameImagesImageTypeGetFormatFromJson( +enums.MusicGenresNameImagesImageTypeGetFormat musicGenresNameImagesImageTypeGetFormatFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -67801,8 +64155,7 @@ musicGenresNameImagesImageTypeGetFormatFromJson( enums.MusicGenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeGetFormat? -musicGenresNameImagesImageTypeGetFormatNullableFromJson( +enums.MusicGenresNameImagesImageTypeGetFormat? musicGenresNameImagesImageTypeGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -67816,18 +64169,13 @@ musicGenresNameImagesImageTypeGetFormatNullableFromJson( } String musicGenresNameImagesImageTypeGetFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeGetFormat, + List? musicGenresNameImagesImageTypeGetFormat, ) { - return musicGenresNameImagesImageTypeGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeGetFormatListToJson( - List? - musicGenresNameImagesImageTypeGetFormat, + List? musicGenresNameImagesImageTypeGetFormat, ) { if (musicGenresNameImagesImageTypeGetFormat == null) { return []; @@ -67836,8 +64184,7 @@ List musicGenresNameImagesImageTypeGetFormatListToJson( return musicGenresNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeGetFormatListFromJson( +List musicGenresNameImagesImageTypeGetFormatListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -67850,8 +64197,7 @@ musicGenresNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -musicGenresNameImagesImageTypeGetFormatNullableListFromJson( +List? musicGenresNameImagesImageTypeGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -67865,72 +64211,58 @@ musicGenresNameImagesImageTypeGetFormatNullableListFromJson( } String? musicGenresNameImagesImageTypeHeadImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeHeadImageType? - musicGenresNameImagesImageTypeHeadImageType, + enums.MusicGenresNameImagesImageTypeHeadImageType? musicGenresNameImagesImageTypeHeadImageType, ) { return musicGenresNameImagesImageTypeHeadImageType?.value; } String? musicGenresNameImagesImageTypeHeadImageTypeToJson( - enums.MusicGenresNameImagesImageTypeHeadImageType - musicGenresNameImagesImageTypeHeadImageType, + enums.MusicGenresNameImagesImageTypeHeadImageType musicGenresNameImagesImageTypeHeadImageType, ) { return musicGenresNameImagesImageTypeHeadImageType.value; } -enums.MusicGenresNameImagesImageTypeHeadImageType -musicGenresNameImagesImageTypeHeadImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeHeadImageType musicGenresNameImagesImageTypeHeadImageTypeFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeHeadImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeHeadImageType? -musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.MusicGenresNameImagesImageTypeHeadImageType? musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeHeadImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeHeadImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeHeadImageType, + List? musicGenresNameImagesImageTypeHeadImageType, ) { - return musicGenresNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeHeadImageTypeListToJson( - List? - musicGenresNameImagesImageTypeHeadImageType, + List? musicGenresNameImagesImageTypeHeadImageType, ) { if (musicGenresNameImagesImageTypeHeadImageType == null) { return []; } - return musicGenresNameImagesImageTypeHeadImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeHeadImageTypeListFromJson( +List musicGenresNameImagesImageTypeHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -67940,14 +64272,13 @@ musicGenresNameImagesImageTypeHeadImageTypeListFromJson( return musicGenresNameImagesImageTypeHeadImageType .map( - (e) => - musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), + (e) => musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), ) .toList(); } List? -musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( + musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -67957,28 +64288,24 @@ musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( return musicGenresNameImagesImageTypeHeadImageType .map( - (e) => - musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), + (e) => musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), ) .toList(); } String? musicGenresNameImagesImageTypeHeadFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeHeadFormat? - musicGenresNameImagesImageTypeHeadFormat, + enums.MusicGenresNameImagesImageTypeHeadFormat? musicGenresNameImagesImageTypeHeadFormat, ) { return musicGenresNameImagesImageTypeHeadFormat?.value; } String? musicGenresNameImagesImageTypeHeadFormatToJson( - enums.MusicGenresNameImagesImageTypeHeadFormat - musicGenresNameImagesImageTypeHeadFormat, + enums.MusicGenresNameImagesImageTypeHeadFormat musicGenresNameImagesImageTypeHeadFormat, ) { return musicGenresNameImagesImageTypeHeadFormat.value; } -enums.MusicGenresNameImagesImageTypeHeadFormat -musicGenresNameImagesImageTypeHeadFormatFromJson( +enums.MusicGenresNameImagesImageTypeHeadFormat musicGenresNameImagesImageTypeHeadFormatFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -67989,8 +64316,7 @@ musicGenresNameImagesImageTypeHeadFormatFromJson( enums.MusicGenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeHeadFormat? -musicGenresNameImagesImageTypeHeadFormatNullableFromJson( +enums.MusicGenresNameImagesImageTypeHeadFormat? musicGenresNameImagesImageTypeHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -68004,18 +64330,13 @@ musicGenresNameImagesImageTypeHeadFormatNullableFromJson( } String musicGenresNameImagesImageTypeHeadFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeHeadFormat, + List? musicGenresNameImagesImageTypeHeadFormat, ) { - return musicGenresNameImagesImageTypeHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeHeadFormatListToJson( - List? - musicGenresNameImagesImageTypeHeadFormat, + List? musicGenresNameImagesImageTypeHeadFormat, ) { if (musicGenresNameImagesImageTypeHeadFormat == null) { return []; @@ -68024,8 +64345,7 @@ List musicGenresNameImagesImageTypeHeadFormatListToJson( return musicGenresNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeHeadFormatListFromJson( +List musicGenresNameImagesImageTypeHeadFormatListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68040,8 +64360,7 @@ musicGenresNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( +List? musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68057,79 +64376,64 @@ musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? - musicGenresNameImagesImageTypeImageIndexGetImageType, + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? musicGenresNameImagesImageTypeImageIndexGetImageType, ) { return musicGenresNameImagesImageTypeImageIndexGetImageType?.value; } String? musicGenresNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType - musicGenresNameImagesImageTypeImageIndexGetImageType, + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType musicGenresNameImagesImageTypeImageIndexGetImageType, ) { return musicGenresNameImagesImageTypeImageIndexGetImageType.value; } -enums.MusicGenresNameImagesImageTypeImageIndexGetImageType -musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexGetImageType musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? -musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( List? - musicGenresNameImagesImageTypeImageIndexGetImageType, + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { - return musicGenresNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexGetImageTypeListToJson( List? - musicGenresNameImagesImageTypeImageIndexGetImageType, + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( + musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue ?? []; @@ -68145,10 +64449,9 @@ musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue; @@ -68164,74 +64467,60 @@ musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? - musicGenresNameImagesImageTypeImageIndexGetFormat, + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? musicGenresNameImagesImageTypeImageIndexGetFormat, ) { return musicGenresNameImagesImageTypeImageIndexGetFormat?.value; } String? musicGenresNameImagesImageTypeImageIndexGetFormatToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat - musicGenresNameImagesImageTypeImageIndexGetFormat, + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat musicGenresNameImagesImageTypeImageIndexGetFormat, ) { return musicGenresNameImagesImageTypeImageIndexGetFormat.value; } -enums.MusicGenresNameImagesImageTypeImageIndexGetFormat -musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexGetFormat musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? -musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( + musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetFormat, + List? musicGenresNameImagesImageTypeImageIndexGetFormat, ) { - return musicGenresNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexGetFormatListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetFormat, + List? musicGenresNameImagesImageTypeImageIndexGetFormat, ) { if (musicGenresNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( + musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -68249,7 +64538,7 @@ musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -68267,81 +64556,65 @@ musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { return musicGenresNameImagesImageTypeImageIndexHeadImageType?.value; } String? musicGenresNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType - musicGenresNameImagesImageTypeImageIndexHeadImageType, + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { return musicGenresNameImagesImageTypeImageIndexHeadImageType.value; } enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType -musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => - e.value == - musicGenresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? -musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => - e.value == - musicGenresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( List? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { - return musicGenresNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexHeadImageTypeListToJson( List? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue ?? []; @@ -68357,10 +64630,9 @@ musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue; @@ -68376,76 +64648,60 @@ musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? - musicGenresNameImagesImageTypeImageIndexHeadFormat, + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { return musicGenresNameImagesImageTypeImageIndexHeadFormat?.value; } String? musicGenresNameImagesImageTypeImageIndexHeadFormatToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat - musicGenresNameImagesImageTypeImageIndexHeadFormat, + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { return musicGenresNameImagesImageTypeImageIndexHeadFormat.value; } -enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat -musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? -musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( + musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadFormat, + List? musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { - return musicGenresNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadFormat, + List? musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { if (musicGenresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -68463,7 +64719,7 @@ musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -68481,21 +64737,18 @@ musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( } String? personsNameImagesImageTypeGetImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeGetImageType? - personsNameImagesImageTypeGetImageType, + enums.PersonsNameImagesImageTypeGetImageType? personsNameImagesImageTypeGetImageType, ) { return personsNameImagesImageTypeGetImageType?.value; } String? personsNameImagesImageTypeGetImageTypeToJson( - enums.PersonsNameImagesImageTypeGetImageType - personsNameImagesImageTypeGetImageType, + enums.PersonsNameImagesImageTypeGetImageType personsNameImagesImageTypeGetImageType, ) { return personsNameImagesImageTypeGetImageType.value; } -enums.PersonsNameImagesImageTypeGetImageType -personsNameImagesImageTypeGetImageTypeFromJson( +enums.PersonsNameImagesImageTypeGetImageType personsNameImagesImageTypeGetImageTypeFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -68506,8 +64759,7 @@ personsNameImagesImageTypeGetImageTypeFromJson( enums.PersonsNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeGetImageType? -personsNameImagesImageTypeGetImageTypeNullableFromJson( +enums.PersonsNameImagesImageTypeGetImageType? personsNameImagesImageTypeGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -68521,18 +64773,13 @@ personsNameImagesImageTypeGetImageTypeNullableFromJson( } String personsNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeGetImageType, + List? personsNameImagesImageTypeGetImageType, ) { - return personsNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeGetImageTypeListToJson( - List? - personsNameImagesImageTypeGetImageType, + List? personsNameImagesImageTypeGetImageType, ) { if (personsNameImagesImageTypeGetImageType == null) { return []; @@ -68541,8 +64788,7 @@ List personsNameImagesImageTypeGetImageTypeListToJson( return personsNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeGetImageTypeListFromJson( +List personsNameImagesImageTypeGetImageTypeListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -68555,8 +64801,7 @@ personsNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -personsNameImagesImageTypeGetImageTypeNullableListFromJson( +List? personsNameImagesImageTypeGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -68570,8 +64815,7 @@ personsNameImagesImageTypeGetImageTypeNullableListFromJson( } String? personsNameImagesImageTypeGetFormatNullableToJson( - enums.PersonsNameImagesImageTypeGetFormat? - personsNameImagesImageTypeGetFormat, + enums.PersonsNameImagesImageTypeGetFormat? personsNameImagesImageTypeGetFormat, ) { return personsNameImagesImageTypeGetFormat?.value; } @@ -68582,8 +64826,7 @@ String? personsNameImagesImageTypeGetFormatToJson( return personsNameImagesImageTypeGetFormat.value; } -enums.PersonsNameImagesImageTypeGetFormat -personsNameImagesImageTypeGetFormatFromJson( +enums.PersonsNameImagesImageTypeGetFormat personsNameImagesImageTypeGetFormatFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -68594,8 +64837,7 @@ personsNameImagesImageTypeGetFormatFromJson( enums.PersonsNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeGetFormat? -personsNameImagesImageTypeGetFormatNullableFromJson( +enums.PersonsNameImagesImageTypeGetFormat? personsNameImagesImageTypeGetFormatNullableFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -68609,16 +64851,13 @@ personsNameImagesImageTypeGetFormatNullableFromJson( } String personsNameImagesImageTypeGetFormatExplodedListToJson( - List? - personsNameImagesImageTypeGetFormat, + List? personsNameImagesImageTypeGetFormat, ) { - return personsNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return personsNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeGetFormatListToJson( - List? - personsNameImagesImageTypeGetFormat, + List? personsNameImagesImageTypeGetFormat, ) { if (personsNameImagesImageTypeGetFormat == null) { return []; @@ -68627,8 +64866,7 @@ List personsNameImagesImageTypeGetFormatListToJson( return personsNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeGetFormatListFromJson( +List personsNameImagesImageTypeGetFormatListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -68641,8 +64879,7 @@ personsNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -personsNameImagesImageTypeGetFormatNullableListFromJson( +List? personsNameImagesImageTypeGetFormatNullableListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -68656,21 +64893,18 @@ personsNameImagesImageTypeGetFormatNullableListFromJson( } String? personsNameImagesImageTypeHeadImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeHeadImageType? - personsNameImagesImageTypeHeadImageType, + enums.PersonsNameImagesImageTypeHeadImageType? personsNameImagesImageTypeHeadImageType, ) { return personsNameImagesImageTypeHeadImageType?.value; } String? personsNameImagesImageTypeHeadImageTypeToJson( - enums.PersonsNameImagesImageTypeHeadImageType - personsNameImagesImageTypeHeadImageType, + enums.PersonsNameImagesImageTypeHeadImageType personsNameImagesImageTypeHeadImageType, ) { return personsNameImagesImageTypeHeadImageType.value; } -enums.PersonsNameImagesImageTypeHeadImageType -personsNameImagesImageTypeHeadImageTypeFromJson( +enums.PersonsNameImagesImageTypeHeadImageType personsNameImagesImageTypeHeadImageTypeFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -68681,8 +64915,7 @@ personsNameImagesImageTypeHeadImageTypeFromJson( enums.PersonsNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeHeadImageType? -personsNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.PersonsNameImagesImageTypeHeadImageType? personsNameImagesImageTypeHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -68696,18 +64929,13 @@ personsNameImagesImageTypeHeadImageTypeNullableFromJson( } String personsNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeHeadImageType, + List? personsNameImagesImageTypeHeadImageType, ) { - return personsNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeHeadImageTypeListToJson( - List? - personsNameImagesImageTypeHeadImageType, + List? personsNameImagesImageTypeHeadImageType, ) { if (personsNameImagesImageTypeHeadImageType == null) { return []; @@ -68716,8 +64944,7 @@ List personsNameImagesImageTypeHeadImageTypeListToJson( return personsNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeHeadImageTypeListFromJson( +List personsNameImagesImageTypeHeadImageTypeListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -68730,8 +64957,7 @@ personsNameImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -personsNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? personsNameImagesImageTypeHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -68745,21 +64971,18 @@ personsNameImagesImageTypeHeadImageTypeNullableListFromJson( } String? personsNameImagesImageTypeHeadFormatNullableToJson( - enums.PersonsNameImagesImageTypeHeadFormat? - personsNameImagesImageTypeHeadFormat, + enums.PersonsNameImagesImageTypeHeadFormat? personsNameImagesImageTypeHeadFormat, ) { return personsNameImagesImageTypeHeadFormat?.value; } String? personsNameImagesImageTypeHeadFormatToJson( - enums.PersonsNameImagesImageTypeHeadFormat - personsNameImagesImageTypeHeadFormat, + enums.PersonsNameImagesImageTypeHeadFormat personsNameImagesImageTypeHeadFormat, ) { return personsNameImagesImageTypeHeadFormat.value; } -enums.PersonsNameImagesImageTypeHeadFormat -personsNameImagesImageTypeHeadFormatFromJson( +enums.PersonsNameImagesImageTypeHeadFormat personsNameImagesImageTypeHeadFormatFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -68770,8 +64993,7 @@ personsNameImagesImageTypeHeadFormatFromJson( enums.PersonsNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeHeadFormat? -personsNameImagesImageTypeHeadFormatNullableFromJson( +enums.PersonsNameImagesImageTypeHeadFormat? personsNameImagesImageTypeHeadFormatNullableFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -68785,16 +65007,13 @@ personsNameImagesImageTypeHeadFormatNullableFromJson( } String personsNameImagesImageTypeHeadFormatExplodedListToJson( - List? - personsNameImagesImageTypeHeadFormat, + List? personsNameImagesImageTypeHeadFormat, ) { - return personsNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return personsNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeHeadFormatListToJson( - List? - personsNameImagesImageTypeHeadFormat, + List? personsNameImagesImageTypeHeadFormat, ) { if (personsNameImagesImageTypeHeadFormat == null) { return []; @@ -68803,8 +65022,7 @@ List personsNameImagesImageTypeHeadFormatListToJson( return personsNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeHeadFormatListFromJson( +List personsNameImagesImageTypeHeadFormatListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68817,8 +65035,7 @@ personsNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -personsNameImagesImageTypeHeadFormatNullableListFromJson( +List? personsNameImagesImageTypeHeadFormatNullableListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68832,74 +65049,60 @@ personsNameImagesImageTypeHeadFormatNullableListFromJson( } String? personsNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexGetImageType? - personsNameImagesImageTypeImageIndexGetImageType, + enums.PersonsNameImagesImageTypeImageIndexGetImageType? personsNameImagesImageTypeImageIndexGetImageType, ) { return personsNameImagesImageTypeImageIndexGetImageType?.value; } String? personsNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.PersonsNameImagesImageTypeImageIndexGetImageType - personsNameImagesImageTypeImageIndexGetImageType, + enums.PersonsNameImagesImageTypeImageIndexGetImageType personsNameImagesImageTypeImageIndexGetImageType, ) { return personsNameImagesImageTypeImageIndexGetImageType.value; } -enums.PersonsNameImagesImageTypeImageIndexGetImageType -personsNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetImageType personsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexGetImageType? -personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexGetImageType, + List? personsNameImagesImageTypeImageIndexGetImageType, ) { - return personsNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - personsNameImagesImageTypeImageIndexGetImageType, + List? personsNameImagesImageTypeImageIndexGetImageType, ) { if (personsNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return personsNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( + personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -68917,7 +65120,7 @@ personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -68935,74 +65138,58 @@ personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? personsNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexGetFormat? - personsNameImagesImageTypeImageIndexGetFormat, + enums.PersonsNameImagesImageTypeImageIndexGetFormat? personsNameImagesImageTypeImageIndexGetFormat, ) { return personsNameImagesImageTypeImageIndexGetFormat?.value; } String? personsNameImagesImageTypeImageIndexGetFormatToJson( - enums.PersonsNameImagesImageTypeImageIndexGetFormat - personsNameImagesImageTypeImageIndexGetFormat, + enums.PersonsNameImagesImageTypeImageIndexGetFormat personsNameImagesImageTypeImageIndexGetFormat, ) { return personsNameImagesImageTypeImageIndexGetFormat.value; } -enums.PersonsNameImagesImageTypeImageIndexGetFormat -personsNameImagesImageTypeImageIndexGetFormatFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetFormat personsNameImagesImageTypeImageIndexGetFormatFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeImageIndexGetFormat? -personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetFormat? personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexGetFormat, + List? personsNameImagesImageTypeImageIndexGetFormat, ) { - return personsNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexGetFormatListToJson( - List? - personsNameImagesImageTypeImageIndexGetFormat, + List? personsNameImagesImageTypeImageIndexGetFormat, ) { if (personsNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return personsNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeImageIndexGetFormatListFromJson( +List personsNameImagesImageTypeImageIndexGetFormatListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69012,14 +65199,13 @@ personsNameImagesImageTypeImageIndexGetFormatListFromJson( return personsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69029,81 +65215,66 @@ personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return personsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? personsNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadImageType? - personsNameImagesImageTypeImageIndexHeadImageType, + enums.PersonsNameImagesImageTypeImageIndexHeadImageType? personsNameImagesImageTypeImageIndexHeadImageType, ) { return personsNameImagesImageTypeImageIndexHeadImageType?.value; } String? personsNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadImageType - personsNameImagesImageTypeImageIndexHeadImageType, + enums.PersonsNameImagesImageTypeImageIndexHeadImageType personsNameImagesImageTypeImageIndexHeadImageType, ) { return personsNameImagesImageTypeImageIndexHeadImageType.value; } -enums.PersonsNameImagesImageTypeImageIndexHeadImageType -personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadImageType personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexHeadImageType? -personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexHeadImageType, + List? personsNameImagesImageTypeImageIndexHeadImageType, ) { - return personsNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - personsNameImagesImageTypeImageIndexHeadImageType, + List? personsNameImagesImageTypeImageIndexHeadImageType, ) { if (personsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return personsNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69121,7 +65292,7 @@ personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69139,74 +65310,58 @@ personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? personsNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadFormat? - personsNameImagesImageTypeImageIndexHeadFormat, + enums.PersonsNameImagesImageTypeImageIndexHeadFormat? personsNameImagesImageTypeImageIndexHeadFormat, ) { return personsNameImagesImageTypeImageIndexHeadFormat?.value; } String? personsNameImagesImageTypeImageIndexHeadFormatToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadFormat - personsNameImagesImageTypeImageIndexHeadFormat, + enums.PersonsNameImagesImageTypeImageIndexHeadFormat personsNameImagesImageTypeImageIndexHeadFormat, ) { return personsNameImagesImageTypeImageIndexHeadFormat.value; } -enums.PersonsNameImagesImageTypeImageIndexHeadFormat -personsNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadFormat personsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeImageIndexHeadFormat? -personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadFormat? personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexHeadFormat, + List? personsNameImagesImageTypeImageIndexHeadFormat, ) { - return personsNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - personsNameImagesImageTypeImageIndexHeadFormat, + List? personsNameImagesImageTypeImageIndexHeadFormat, ) { if (personsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return personsNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeImageIndexHeadFormatListFromJson( +List personsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -69224,7 +65379,7 @@ personsNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -69242,21 +65397,18 @@ personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( } String? studiosNameImagesImageTypeGetImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeGetImageType? - studiosNameImagesImageTypeGetImageType, + enums.StudiosNameImagesImageTypeGetImageType? studiosNameImagesImageTypeGetImageType, ) { return studiosNameImagesImageTypeGetImageType?.value; } String? studiosNameImagesImageTypeGetImageTypeToJson( - enums.StudiosNameImagesImageTypeGetImageType - studiosNameImagesImageTypeGetImageType, + enums.StudiosNameImagesImageTypeGetImageType studiosNameImagesImageTypeGetImageType, ) { return studiosNameImagesImageTypeGetImageType.value; } -enums.StudiosNameImagesImageTypeGetImageType -studiosNameImagesImageTypeGetImageTypeFromJson( +enums.StudiosNameImagesImageTypeGetImageType studiosNameImagesImageTypeGetImageTypeFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -69267,8 +65419,7 @@ studiosNameImagesImageTypeGetImageTypeFromJson( enums.StudiosNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeGetImageType? -studiosNameImagesImageTypeGetImageTypeNullableFromJson( +enums.StudiosNameImagesImageTypeGetImageType? studiosNameImagesImageTypeGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -69282,18 +65433,13 @@ studiosNameImagesImageTypeGetImageTypeNullableFromJson( } String studiosNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeGetImageType, + List? studiosNameImagesImageTypeGetImageType, ) { - return studiosNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeGetImageTypeListToJson( - List? - studiosNameImagesImageTypeGetImageType, + List? studiosNameImagesImageTypeGetImageType, ) { if (studiosNameImagesImageTypeGetImageType == null) { return []; @@ -69302,8 +65448,7 @@ List studiosNameImagesImageTypeGetImageTypeListToJson( return studiosNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeGetImageTypeListFromJson( +List studiosNameImagesImageTypeGetImageTypeListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -69316,8 +65461,7 @@ studiosNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -studiosNameImagesImageTypeGetImageTypeNullableListFromJson( +List? studiosNameImagesImageTypeGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -69331,8 +65475,7 @@ studiosNameImagesImageTypeGetImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeGetFormatNullableToJson( - enums.StudiosNameImagesImageTypeGetFormat? - studiosNameImagesImageTypeGetFormat, + enums.StudiosNameImagesImageTypeGetFormat? studiosNameImagesImageTypeGetFormat, ) { return studiosNameImagesImageTypeGetFormat?.value; } @@ -69343,8 +65486,7 @@ String? studiosNameImagesImageTypeGetFormatToJson( return studiosNameImagesImageTypeGetFormat.value; } -enums.StudiosNameImagesImageTypeGetFormat -studiosNameImagesImageTypeGetFormatFromJson( +enums.StudiosNameImagesImageTypeGetFormat studiosNameImagesImageTypeGetFormatFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -69355,8 +65497,7 @@ studiosNameImagesImageTypeGetFormatFromJson( enums.StudiosNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeGetFormat? -studiosNameImagesImageTypeGetFormatNullableFromJson( +enums.StudiosNameImagesImageTypeGetFormat? studiosNameImagesImageTypeGetFormatNullableFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -69370,16 +65511,13 @@ studiosNameImagesImageTypeGetFormatNullableFromJson( } String studiosNameImagesImageTypeGetFormatExplodedListToJson( - List? - studiosNameImagesImageTypeGetFormat, + List? studiosNameImagesImageTypeGetFormat, ) { - return studiosNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return studiosNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeGetFormatListToJson( - List? - studiosNameImagesImageTypeGetFormat, + List? studiosNameImagesImageTypeGetFormat, ) { if (studiosNameImagesImageTypeGetFormat == null) { return []; @@ -69388,8 +65526,7 @@ List studiosNameImagesImageTypeGetFormatListToJson( return studiosNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeGetFormatListFromJson( +List studiosNameImagesImageTypeGetFormatListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -69402,8 +65539,7 @@ studiosNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -studiosNameImagesImageTypeGetFormatNullableListFromJson( +List? studiosNameImagesImageTypeGetFormatNullableListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -69417,21 +65553,18 @@ studiosNameImagesImageTypeGetFormatNullableListFromJson( } String? studiosNameImagesImageTypeHeadImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeHeadImageType? - studiosNameImagesImageTypeHeadImageType, + enums.StudiosNameImagesImageTypeHeadImageType? studiosNameImagesImageTypeHeadImageType, ) { return studiosNameImagesImageTypeHeadImageType?.value; } String? studiosNameImagesImageTypeHeadImageTypeToJson( - enums.StudiosNameImagesImageTypeHeadImageType - studiosNameImagesImageTypeHeadImageType, + enums.StudiosNameImagesImageTypeHeadImageType studiosNameImagesImageTypeHeadImageType, ) { return studiosNameImagesImageTypeHeadImageType.value; } -enums.StudiosNameImagesImageTypeHeadImageType -studiosNameImagesImageTypeHeadImageTypeFromJson( +enums.StudiosNameImagesImageTypeHeadImageType studiosNameImagesImageTypeHeadImageTypeFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -69442,8 +65575,7 @@ studiosNameImagesImageTypeHeadImageTypeFromJson( enums.StudiosNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeHeadImageType? -studiosNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.StudiosNameImagesImageTypeHeadImageType? studiosNameImagesImageTypeHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -69457,18 +65589,13 @@ studiosNameImagesImageTypeHeadImageTypeNullableFromJson( } String studiosNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeHeadImageType, + List? studiosNameImagesImageTypeHeadImageType, ) { - return studiosNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeHeadImageTypeListToJson( - List? - studiosNameImagesImageTypeHeadImageType, + List? studiosNameImagesImageTypeHeadImageType, ) { if (studiosNameImagesImageTypeHeadImageType == null) { return []; @@ -69477,8 +65604,7 @@ List studiosNameImagesImageTypeHeadImageTypeListToJson( return studiosNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeHeadImageTypeListFromJson( +List studiosNameImagesImageTypeHeadImageTypeListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -69491,8 +65617,7 @@ studiosNameImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -69506,21 +65631,18 @@ studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeHeadFormatNullableToJson( - enums.StudiosNameImagesImageTypeHeadFormat? - studiosNameImagesImageTypeHeadFormat, + enums.StudiosNameImagesImageTypeHeadFormat? studiosNameImagesImageTypeHeadFormat, ) { return studiosNameImagesImageTypeHeadFormat?.value; } String? studiosNameImagesImageTypeHeadFormatToJson( - enums.StudiosNameImagesImageTypeHeadFormat - studiosNameImagesImageTypeHeadFormat, + enums.StudiosNameImagesImageTypeHeadFormat studiosNameImagesImageTypeHeadFormat, ) { return studiosNameImagesImageTypeHeadFormat.value; } -enums.StudiosNameImagesImageTypeHeadFormat -studiosNameImagesImageTypeHeadFormatFromJson( +enums.StudiosNameImagesImageTypeHeadFormat studiosNameImagesImageTypeHeadFormatFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -69531,8 +65653,7 @@ studiosNameImagesImageTypeHeadFormatFromJson( enums.StudiosNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeHeadFormat? -studiosNameImagesImageTypeHeadFormatNullableFromJson( +enums.StudiosNameImagesImageTypeHeadFormat? studiosNameImagesImageTypeHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -69546,16 +65667,13 @@ studiosNameImagesImageTypeHeadFormatNullableFromJson( } String studiosNameImagesImageTypeHeadFormatExplodedListToJson( - List? - studiosNameImagesImageTypeHeadFormat, + List? studiosNameImagesImageTypeHeadFormat, ) { - return studiosNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return studiosNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeHeadFormatListToJson( - List? - studiosNameImagesImageTypeHeadFormat, + List? studiosNameImagesImageTypeHeadFormat, ) { if (studiosNameImagesImageTypeHeadFormat == null) { return []; @@ -69564,8 +65682,7 @@ List studiosNameImagesImageTypeHeadFormatListToJson( return studiosNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeHeadFormatListFromJson( +List studiosNameImagesImageTypeHeadFormatListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -69578,8 +65695,7 @@ studiosNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -studiosNameImagesImageTypeHeadFormatNullableListFromJson( +List? studiosNameImagesImageTypeHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -69593,74 +65709,60 @@ studiosNameImagesImageTypeHeadFormatNullableListFromJson( } String? studiosNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexGetImageType? - studiosNameImagesImageTypeImageIndexGetImageType, + enums.StudiosNameImagesImageTypeImageIndexGetImageType? studiosNameImagesImageTypeImageIndexGetImageType, ) { return studiosNameImagesImageTypeImageIndexGetImageType?.value; } String? studiosNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.StudiosNameImagesImageTypeImageIndexGetImageType - studiosNameImagesImageTypeImageIndexGetImageType, + enums.StudiosNameImagesImageTypeImageIndexGetImageType studiosNameImagesImageTypeImageIndexGetImageType, ) { return studiosNameImagesImageTypeImageIndexGetImageType.value; } -enums.StudiosNameImagesImageTypeImageIndexGetImageType -studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetImageType studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexGetImageType? -studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexGetImageType, + List? studiosNameImagesImageTypeImageIndexGetImageType, ) { - return studiosNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - studiosNameImagesImageTypeImageIndexGetImageType, + List? studiosNameImagesImageTypeImageIndexGetImageType, ) { if (studiosNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return studiosNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( + studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -69678,7 +65780,7 @@ studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -69696,74 +65798,58 @@ studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexGetFormat? - studiosNameImagesImageTypeImageIndexGetFormat, + enums.StudiosNameImagesImageTypeImageIndexGetFormat? studiosNameImagesImageTypeImageIndexGetFormat, ) { return studiosNameImagesImageTypeImageIndexGetFormat?.value; } String? studiosNameImagesImageTypeImageIndexGetFormatToJson( - enums.StudiosNameImagesImageTypeImageIndexGetFormat - studiosNameImagesImageTypeImageIndexGetFormat, + enums.StudiosNameImagesImageTypeImageIndexGetFormat studiosNameImagesImageTypeImageIndexGetFormat, ) { return studiosNameImagesImageTypeImageIndexGetFormat.value; } -enums.StudiosNameImagesImageTypeImageIndexGetFormat -studiosNameImagesImageTypeImageIndexGetFormatFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetFormat studiosNameImagesImageTypeImageIndexGetFormatFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeImageIndexGetFormat? -studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetFormat? studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexGetFormat, + List? studiosNameImagesImageTypeImageIndexGetFormat, ) { - return studiosNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexGetFormatListToJson( - List? - studiosNameImagesImageTypeImageIndexGetFormat, + List? studiosNameImagesImageTypeImageIndexGetFormat, ) { if (studiosNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return studiosNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeImageIndexGetFormatListFromJson( +List studiosNameImagesImageTypeImageIndexGetFormatListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69773,14 +65859,13 @@ studiosNameImagesImageTypeImageIndexGetFormatListFromJson( return studiosNameImagesImageTypeImageIndexGetFormat .map( - (e) => - studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69790,81 +65875,66 @@ studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return studiosNameImagesImageTypeImageIndexGetFormat .map( - (e) => - studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? studiosNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadImageType? - studiosNameImagesImageTypeImageIndexHeadImageType, + enums.StudiosNameImagesImageTypeImageIndexHeadImageType? studiosNameImagesImageTypeImageIndexHeadImageType, ) { return studiosNameImagesImageTypeImageIndexHeadImageType?.value; } String? studiosNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadImageType - studiosNameImagesImageTypeImageIndexHeadImageType, + enums.StudiosNameImagesImageTypeImageIndexHeadImageType studiosNameImagesImageTypeImageIndexHeadImageType, ) { return studiosNameImagesImageTypeImageIndexHeadImageType.value; } -enums.StudiosNameImagesImageTypeImageIndexHeadImageType -studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadImageType studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexHeadImageType? -studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadImageType, + List? studiosNameImagesImageTypeImageIndexHeadImageType, ) { - return studiosNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadImageType, + List? studiosNameImagesImageTypeImageIndexHeadImageType, ) { if (studiosNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return studiosNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69882,7 +65952,7 @@ studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69900,74 +65970,58 @@ studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadFormat? - studiosNameImagesImageTypeImageIndexHeadFormat, + enums.StudiosNameImagesImageTypeImageIndexHeadFormat? studiosNameImagesImageTypeImageIndexHeadFormat, ) { return studiosNameImagesImageTypeImageIndexHeadFormat?.value; } String? studiosNameImagesImageTypeImageIndexHeadFormatToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadFormat - studiosNameImagesImageTypeImageIndexHeadFormat, + enums.StudiosNameImagesImageTypeImageIndexHeadFormat studiosNameImagesImageTypeImageIndexHeadFormat, ) { return studiosNameImagesImageTypeImageIndexHeadFormat.value; } -enums.StudiosNameImagesImageTypeImageIndexHeadFormat -studiosNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadFormat studiosNameImagesImageTypeImageIndexHeadFormatFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeImageIndexHeadFormat? -studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadFormat? studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadFormat, + List? studiosNameImagesImageTypeImageIndexHeadFormat, ) { - return studiosNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadFormat, + List? studiosNameImagesImageTypeImageIndexHeadFormat, ) { if (studiosNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return studiosNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( +List studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -69985,7 +66039,7 @@ studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -70060,9 +66114,7 @@ List userImageGetFormatListFromJson( return defaultValue ?? []; } - return userImageGetFormat - .map((e) => userImageGetFormatFromJson(e.toString())) - .toList(); + return userImageGetFormat.map((e) => userImageGetFormatFromJson(e.toString())).toList(); } List? userImageGetFormatNullableListFromJson( @@ -70073,9 +66125,7 @@ List? userImageGetFormatNullableListFromJson( return defaultValue; } - return userImageGetFormat - .map((e) => userImageGetFormatFromJson(e.toString())) - .toList(); + return userImageGetFormat.map((e) => userImageGetFormatFromJson(e.toString())).toList(); } String? userImageHeadFormatNullableToJson( @@ -70138,9 +66188,7 @@ List userImageHeadFormatListFromJson( return defaultValue ?? []; } - return userImageHeadFormat - .map((e) => userImageHeadFormatFromJson(e.toString())) - .toList(); + return userImageHeadFormat.map((e) => userImageHeadFormatFromJson(e.toString())).toList(); } List? userImageHeadFormatNullableListFromJson( @@ -70151,78 +66199,62 @@ List? userImageHeadFormatNullableListFromJson( return defaultValue; } - return userImageHeadFormat - .map((e) => userImageHeadFormatFromJson(e.toString())) - .toList(); + return userImageHeadFormat.map((e) => userImageHeadFormatFromJson(e.toString())).toList(); } String? itemsItemIdRefreshPostMetadataRefreshModeNullableToJson( - enums.ItemsItemIdRefreshPostMetadataRefreshMode? - itemsItemIdRefreshPostMetadataRefreshMode, + enums.ItemsItemIdRefreshPostMetadataRefreshMode? itemsItemIdRefreshPostMetadataRefreshMode, ) { return itemsItemIdRefreshPostMetadataRefreshMode?.value; } String? itemsItemIdRefreshPostMetadataRefreshModeToJson( - enums.ItemsItemIdRefreshPostMetadataRefreshMode - itemsItemIdRefreshPostMetadataRefreshMode, + enums.ItemsItemIdRefreshPostMetadataRefreshMode itemsItemIdRefreshPostMetadataRefreshMode, ) { return itemsItemIdRefreshPostMetadataRefreshMode.value; } -enums.ItemsItemIdRefreshPostMetadataRefreshMode -itemsItemIdRefreshPostMetadataRefreshModeFromJson( +enums.ItemsItemIdRefreshPostMetadataRefreshMode itemsItemIdRefreshPostMetadataRefreshModeFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { - return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, - ) ?? + return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values.firstWhereOrNull( + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue ?? enums.ItemsItemIdRefreshPostMetadataRefreshMode.swaggerGeneratedUnknown; } -enums.ItemsItemIdRefreshPostMetadataRefreshMode? -itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( +enums.ItemsItemIdRefreshPostMetadataRefreshMode? itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { if (itemsItemIdRefreshPostMetadataRefreshMode == null) { return null; } - return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, - ) ?? + return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values.firstWhereOrNull( + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue; } String itemsItemIdRefreshPostMetadataRefreshModeExplodedListToJson( - List? - itemsItemIdRefreshPostMetadataRefreshMode, + List? itemsItemIdRefreshPostMetadataRefreshMode, ) { - return itemsItemIdRefreshPostMetadataRefreshMode - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdRefreshPostMetadataRefreshMode?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdRefreshPostMetadataRefreshModeListToJson( - List? - itemsItemIdRefreshPostMetadataRefreshMode, + List? itemsItemIdRefreshPostMetadataRefreshMode, ) { if (itemsItemIdRefreshPostMetadataRefreshMode == null) { return []; } - return itemsItemIdRefreshPostMetadataRefreshMode - .map((e) => e.value!) - .toList(); + return itemsItemIdRefreshPostMetadataRefreshMode.map((e) => e.value!).toList(); } -List -itemsItemIdRefreshPostMetadataRefreshModeListFromJson( +List itemsItemIdRefreshPostMetadataRefreshModeListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -70237,8 +66269,7 @@ itemsItemIdRefreshPostMetadataRefreshModeListFromJson( .toList(); } -List? -itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( +List? itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -70254,21 +66285,18 @@ itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( } String? itemsItemIdRefreshPostImageRefreshModeNullableToJson( - enums.ItemsItemIdRefreshPostImageRefreshMode? - itemsItemIdRefreshPostImageRefreshMode, + enums.ItemsItemIdRefreshPostImageRefreshMode? itemsItemIdRefreshPostImageRefreshMode, ) { return itemsItemIdRefreshPostImageRefreshMode?.value; } String? itemsItemIdRefreshPostImageRefreshModeToJson( - enums.ItemsItemIdRefreshPostImageRefreshMode - itemsItemIdRefreshPostImageRefreshMode, + enums.ItemsItemIdRefreshPostImageRefreshMode itemsItemIdRefreshPostImageRefreshMode, ) { return itemsItemIdRefreshPostImageRefreshMode.value; } -enums.ItemsItemIdRefreshPostImageRefreshMode -itemsItemIdRefreshPostImageRefreshModeFromJson( +enums.ItemsItemIdRefreshPostImageRefreshMode itemsItemIdRefreshPostImageRefreshModeFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { @@ -70279,8 +66307,7 @@ itemsItemIdRefreshPostImageRefreshModeFromJson( enums.ItemsItemIdRefreshPostImageRefreshMode.swaggerGeneratedUnknown; } -enums.ItemsItemIdRefreshPostImageRefreshMode? -itemsItemIdRefreshPostImageRefreshModeNullableFromJson( +enums.ItemsItemIdRefreshPostImageRefreshMode? itemsItemIdRefreshPostImageRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { @@ -70294,18 +66321,13 @@ itemsItemIdRefreshPostImageRefreshModeNullableFromJson( } String itemsItemIdRefreshPostImageRefreshModeExplodedListToJson( - List? - itemsItemIdRefreshPostImageRefreshMode, + List? itemsItemIdRefreshPostImageRefreshMode, ) { - return itemsItemIdRefreshPostImageRefreshMode - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdRefreshPostImageRefreshMode?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdRefreshPostImageRefreshModeListToJson( - List? - itemsItemIdRefreshPostImageRefreshMode, + List? itemsItemIdRefreshPostImageRefreshMode, ) { if (itemsItemIdRefreshPostImageRefreshMode == null) { return []; @@ -70314,8 +66336,7 @@ List itemsItemIdRefreshPostImageRefreshModeListToJson( return itemsItemIdRefreshPostImageRefreshMode.map((e) => e.value!).toList(); } -List -itemsItemIdRefreshPostImageRefreshModeListFromJson( +List itemsItemIdRefreshPostImageRefreshModeListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -70328,8 +66349,7 @@ itemsItemIdRefreshPostImageRefreshModeListFromJson( .toList(); } -List? -itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( +List? itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -70343,74 +66363,58 @@ itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( } String? librariesAvailableOptionsGetLibraryContentTypeNullableToJson( - enums.LibrariesAvailableOptionsGetLibraryContentType? - librariesAvailableOptionsGetLibraryContentType, + enums.LibrariesAvailableOptionsGetLibraryContentType? librariesAvailableOptionsGetLibraryContentType, ) { return librariesAvailableOptionsGetLibraryContentType?.value; } String? librariesAvailableOptionsGetLibraryContentTypeToJson( - enums.LibrariesAvailableOptionsGetLibraryContentType - librariesAvailableOptionsGetLibraryContentType, + enums.LibrariesAvailableOptionsGetLibraryContentType librariesAvailableOptionsGetLibraryContentType, ) { return librariesAvailableOptionsGetLibraryContentType.value; } -enums.LibrariesAvailableOptionsGetLibraryContentType -librariesAvailableOptionsGetLibraryContentTypeFromJson( +enums.LibrariesAvailableOptionsGetLibraryContentType librariesAvailableOptionsGetLibraryContentTypeFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { - return enums.LibrariesAvailableOptionsGetLibraryContentType.values - .firstWhereOrNull( - (e) => e.value == librariesAvailableOptionsGetLibraryContentType, - ) ?? + return enums.LibrariesAvailableOptionsGetLibraryContentType.values.firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue ?? - enums - .LibrariesAvailableOptionsGetLibraryContentType - .swaggerGeneratedUnknown; + enums.LibrariesAvailableOptionsGetLibraryContentType.swaggerGeneratedUnknown; } -enums.LibrariesAvailableOptionsGetLibraryContentType? -librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( +enums.LibrariesAvailableOptionsGetLibraryContentType? librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { if (librariesAvailableOptionsGetLibraryContentType == null) { return null; } - return enums.LibrariesAvailableOptionsGetLibraryContentType.values - .firstWhereOrNull( - (e) => e.value == librariesAvailableOptionsGetLibraryContentType, - ) ?? + return enums.LibrariesAvailableOptionsGetLibraryContentType.values.firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue; } String librariesAvailableOptionsGetLibraryContentTypeExplodedListToJson( - List? - librariesAvailableOptionsGetLibraryContentType, + List? librariesAvailableOptionsGetLibraryContentType, ) { - return librariesAvailableOptionsGetLibraryContentType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return librariesAvailableOptionsGetLibraryContentType?.map((e) => e.value!).join(',') ?? ''; } List librariesAvailableOptionsGetLibraryContentTypeListToJson( - List? - librariesAvailableOptionsGetLibraryContentType, + List? librariesAvailableOptionsGetLibraryContentType, ) { if (librariesAvailableOptionsGetLibraryContentType == null) { return []; } - return librariesAvailableOptionsGetLibraryContentType - .map((e) => e.value!) - .toList(); + return librariesAvailableOptionsGetLibraryContentType.map((e) => e.value!).toList(); } -List -librariesAvailableOptionsGetLibraryContentTypeListFromJson( +List librariesAvailableOptionsGetLibraryContentTypeListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -70428,7 +66432,7 @@ librariesAvailableOptionsGetLibraryContentTypeListFromJson( } List? -librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( + librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -70446,21 +66450,18 @@ librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( } String? libraryVirtualFoldersPostCollectionTypeNullableToJson( - enums.LibraryVirtualFoldersPostCollectionType? - libraryVirtualFoldersPostCollectionType, + enums.LibraryVirtualFoldersPostCollectionType? libraryVirtualFoldersPostCollectionType, ) { return libraryVirtualFoldersPostCollectionType?.value; } String? libraryVirtualFoldersPostCollectionTypeToJson( - enums.LibraryVirtualFoldersPostCollectionType - libraryVirtualFoldersPostCollectionType, + enums.LibraryVirtualFoldersPostCollectionType libraryVirtualFoldersPostCollectionType, ) { return libraryVirtualFoldersPostCollectionType.value; } -enums.LibraryVirtualFoldersPostCollectionType -libraryVirtualFoldersPostCollectionTypeFromJson( +enums.LibraryVirtualFoldersPostCollectionType libraryVirtualFoldersPostCollectionTypeFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { @@ -70471,8 +66472,7 @@ libraryVirtualFoldersPostCollectionTypeFromJson( enums.LibraryVirtualFoldersPostCollectionType.swaggerGeneratedUnknown; } -enums.LibraryVirtualFoldersPostCollectionType? -libraryVirtualFoldersPostCollectionTypeNullableFromJson( +enums.LibraryVirtualFoldersPostCollectionType? libraryVirtualFoldersPostCollectionTypeNullableFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { @@ -70486,18 +66486,13 @@ libraryVirtualFoldersPostCollectionTypeNullableFromJson( } String libraryVirtualFoldersPostCollectionTypeExplodedListToJson( - List? - libraryVirtualFoldersPostCollectionType, + List? libraryVirtualFoldersPostCollectionType, ) { - return libraryVirtualFoldersPostCollectionType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return libraryVirtualFoldersPostCollectionType?.map((e) => e.value!).join(',') ?? ''; } List libraryVirtualFoldersPostCollectionTypeListToJson( - List? - libraryVirtualFoldersPostCollectionType, + List? libraryVirtualFoldersPostCollectionType, ) { if (libraryVirtualFoldersPostCollectionType == null) { return []; @@ -70506,8 +66501,7 @@ List libraryVirtualFoldersPostCollectionTypeListToJson( return libraryVirtualFoldersPostCollectionType.map((e) => e.value!).toList(); } -List -libraryVirtualFoldersPostCollectionTypeListFromJson( +List libraryVirtualFoldersPostCollectionTypeListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -70520,8 +66514,7 @@ libraryVirtualFoldersPostCollectionTypeListFromJson( .toList(); } -List? -libraryVirtualFoldersPostCollectionTypeNullableListFromJson( +List? libraryVirtualFoldersPostCollectionTypeNullableListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -70594,9 +66587,7 @@ List liveTvChannelsGetTypeListFromJson( return defaultValue ?? []; } - return liveTvChannelsGetType - .map((e) => liveTvChannelsGetTypeFromJson(e.toString())) - .toList(); + return liveTvChannelsGetType.map((e) => liveTvChannelsGetTypeFromJson(e.toString())).toList(); } List? liveTvChannelsGetTypeNullableListFromJson( @@ -70607,9 +66598,7 @@ List? liveTvChannelsGetTypeNullableListFromJson( return defaultValue; } - return liveTvChannelsGetType - .map((e) => liveTvChannelsGetTypeFromJson(e.toString())) - .toList(); + return liveTvChannelsGetType.map((e) => liveTvChannelsGetTypeFromJson(e.toString())).toList(); } String? liveTvChannelsGetSortOrderNullableToJson( @@ -70672,13 +66661,10 @@ List liveTvChannelsGetSortOrderListFromJson( return defaultValue ?? []; } - return liveTvChannelsGetSortOrder - .map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvChannelsGetSortOrder.map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())).toList(); } -List? -liveTvChannelsGetSortOrderNullableListFromJson( +List? liveTvChannelsGetSortOrderNullableListFromJson( List? liveTvChannelsGetSortOrder, [ List? defaultValue, ]) { @@ -70686,9 +66672,7 @@ liveTvChannelsGetSortOrderNullableListFromJson( return defaultValue; } - return liveTvChannelsGetSortOrder - .map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvChannelsGetSortOrder.map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())).toList(); } String? liveTvRecordingsGetStatusNullableToJson( @@ -70751,13 +66735,10 @@ List liveTvRecordingsGetStatusListFromJson( return defaultValue ?? []; } - return liveTvRecordingsGetStatus - .map((e) => liveTvRecordingsGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsGetStatus.map((e) => liveTvRecordingsGetStatusFromJson(e.toString())).toList(); } -List? -liveTvRecordingsGetStatusNullableListFromJson( +List? liveTvRecordingsGetStatusNullableListFromJson( List? liveTvRecordingsGetStatus, [ List? defaultValue, ]) { @@ -70765,9 +66746,7 @@ liveTvRecordingsGetStatusNullableListFromJson( return defaultValue; } - return liveTvRecordingsGetStatus - .map((e) => liveTvRecordingsGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsGetStatus.map((e) => liveTvRecordingsGetStatusFromJson(e.toString())).toList(); } String? liveTvRecordingsSeriesGetStatusNullableToJson( @@ -70793,8 +66772,7 @@ enums.LiveTvRecordingsSeriesGetStatus liveTvRecordingsSeriesGetStatusFromJson( enums.LiveTvRecordingsSeriesGetStatus.swaggerGeneratedUnknown; } -enums.LiveTvRecordingsSeriesGetStatus? -liveTvRecordingsSeriesGetStatusNullableFromJson( +enums.LiveTvRecordingsSeriesGetStatus? liveTvRecordingsSeriesGetStatusNullableFromJson( Object? liveTvRecordingsSeriesGetStatus, [ enums.LiveTvRecordingsSeriesGetStatus? defaultValue, ]) { @@ -70823,8 +66801,7 @@ List liveTvRecordingsSeriesGetStatusListToJson( return liveTvRecordingsSeriesGetStatus.map((e) => e.value!).toList(); } -List -liveTvRecordingsSeriesGetStatusListFromJson( +List liveTvRecordingsSeriesGetStatusListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -70832,13 +66809,10 @@ liveTvRecordingsSeriesGetStatusListFromJson( return defaultValue ?? []; } - return liveTvRecordingsSeriesGetStatus - .map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsSeriesGetStatus.map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())).toList(); } -List? -liveTvRecordingsSeriesGetStatusNullableListFromJson( +List? liveTvRecordingsSeriesGetStatusNullableListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -70846,9 +66820,7 @@ liveTvRecordingsSeriesGetStatusNullableListFromJson( return defaultValue; } - return liveTvRecordingsSeriesGetStatus - .map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsSeriesGetStatus.map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())).toList(); } String? liveTvSeriesTimersGetSortOrderNullableToJson( @@ -70874,8 +66846,7 @@ enums.LiveTvSeriesTimersGetSortOrder liveTvSeriesTimersGetSortOrderFromJson( enums.LiveTvSeriesTimersGetSortOrder.swaggerGeneratedUnknown; } -enums.LiveTvSeriesTimersGetSortOrder? -liveTvSeriesTimersGetSortOrderNullableFromJson( +enums.LiveTvSeriesTimersGetSortOrder? liveTvSeriesTimersGetSortOrderNullableFromJson( Object? liveTvSeriesTimersGetSortOrder, [ enums.LiveTvSeriesTimersGetSortOrder? defaultValue, ]) { @@ -70904,8 +66875,7 @@ List liveTvSeriesTimersGetSortOrderListToJson( return liveTvSeriesTimersGetSortOrder.map((e) => e.value!).toList(); } -List -liveTvSeriesTimersGetSortOrderListFromJson( +List liveTvSeriesTimersGetSortOrderListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -70913,13 +66883,10 @@ liveTvSeriesTimersGetSortOrderListFromJson( return defaultValue ?? []; } - return liveTvSeriesTimersGetSortOrder - .map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvSeriesTimersGetSortOrder.map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())).toList(); } -List? -liveTvSeriesTimersGetSortOrderNullableListFromJson( +List? liveTvSeriesTimersGetSortOrderNullableListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -70927,9 +66894,7 @@ liveTvSeriesTimersGetSortOrderNullableListFromJson( return defaultValue; } - return liveTvSeriesTimersGetSortOrder - .map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvSeriesTimersGetSortOrder.map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())).toList(); } String? playlistsPostMediaTypeNullableToJson( @@ -70992,9 +66957,7 @@ List playlistsPostMediaTypeListFromJson( return defaultValue ?? []; } - return playlistsPostMediaType - .map((e) => playlistsPostMediaTypeFromJson(e.toString())) - .toList(); + return playlistsPostMediaType.map((e) => playlistsPostMediaTypeFromJson(e.toString())).toList(); } List? playlistsPostMediaTypeNullableListFromJson( @@ -71005,9 +66968,7 @@ List? playlistsPostMediaTypeNullableListFromJson( return defaultValue; } - return playlistsPostMediaType - .map((e) => playlistsPostMediaTypeFromJson(e.toString())) - .toList(); + return playlistsPostMediaType.map((e) => playlistsPostMediaTypeFromJson(e.toString())).toList(); } String? playingItemsItemIdPostPlayMethodNullableToJson( @@ -71033,8 +66994,7 @@ enums.PlayingItemsItemIdPostPlayMethod playingItemsItemIdPostPlayMethodFromJson( enums.PlayingItemsItemIdPostPlayMethod.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdPostPlayMethod? -playingItemsItemIdPostPlayMethodNullableFromJson( +enums.PlayingItemsItemIdPostPlayMethod? playingItemsItemIdPostPlayMethodNullableFromJson( Object? playingItemsItemIdPostPlayMethod, [ enums.PlayingItemsItemIdPostPlayMethod? defaultValue, ]) { @@ -71048,15 +67008,13 @@ playingItemsItemIdPostPlayMethodNullableFromJson( } String playingItemsItemIdPostPlayMethodExplodedListToJson( - List? - playingItemsItemIdPostPlayMethod, + List? playingItemsItemIdPostPlayMethod, ) { return playingItemsItemIdPostPlayMethod?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdPostPlayMethodListToJson( - List? - playingItemsItemIdPostPlayMethod, + List? playingItemsItemIdPostPlayMethod, ) { if (playingItemsItemIdPostPlayMethod == null) { return []; @@ -71065,8 +67023,7 @@ List playingItemsItemIdPostPlayMethodListToJson( return playingItemsItemIdPostPlayMethod.map((e) => e.value!).toList(); } -List -playingItemsItemIdPostPlayMethodListFromJson( +List playingItemsItemIdPostPlayMethodListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -71074,13 +67031,10 @@ playingItemsItemIdPostPlayMethodListFromJson( return defaultValue ?? []; } - return playingItemsItemIdPostPlayMethod - .map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())) - .toList(); + return playingItemsItemIdPostPlayMethod.map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())).toList(); } -List? -playingItemsItemIdPostPlayMethodNullableListFromJson( +List? playingItemsItemIdPostPlayMethodNullableListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -71088,27 +67042,22 @@ playingItemsItemIdPostPlayMethodNullableListFromJson( return defaultValue; } - return playingItemsItemIdPostPlayMethod - .map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())) - .toList(); + return playingItemsItemIdPostPlayMethod.map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())).toList(); } String? playingItemsItemIdProgressPostPlayMethodNullableToJson( - enums.PlayingItemsItemIdProgressPostPlayMethod? - playingItemsItemIdProgressPostPlayMethod, + enums.PlayingItemsItemIdProgressPostPlayMethod? playingItemsItemIdProgressPostPlayMethod, ) { return playingItemsItemIdProgressPostPlayMethod?.value; } String? playingItemsItemIdProgressPostPlayMethodToJson( - enums.PlayingItemsItemIdProgressPostPlayMethod - playingItemsItemIdProgressPostPlayMethod, + enums.PlayingItemsItemIdProgressPostPlayMethod playingItemsItemIdProgressPostPlayMethod, ) { return playingItemsItemIdProgressPostPlayMethod.value; } -enums.PlayingItemsItemIdProgressPostPlayMethod -playingItemsItemIdProgressPostPlayMethodFromJson( +enums.PlayingItemsItemIdProgressPostPlayMethod playingItemsItemIdProgressPostPlayMethodFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { @@ -71119,8 +67068,7 @@ playingItemsItemIdProgressPostPlayMethodFromJson( enums.PlayingItemsItemIdProgressPostPlayMethod.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdProgressPostPlayMethod? -playingItemsItemIdProgressPostPlayMethodNullableFromJson( +enums.PlayingItemsItemIdProgressPostPlayMethod? playingItemsItemIdProgressPostPlayMethodNullableFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { @@ -71134,18 +67082,13 @@ playingItemsItemIdProgressPostPlayMethodNullableFromJson( } String playingItemsItemIdProgressPostPlayMethodExplodedListToJson( - List? - playingItemsItemIdProgressPostPlayMethod, + List? playingItemsItemIdProgressPostPlayMethod, ) { - return playingItemsItemIdProgressPostPlayMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return playingItemsItemIdProgressPostPlayMethod?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdProgressPostPlayMethodListToJson( - List? - playingItemsItemIdProgressPostPlayMethod, + List? playingItemsItemIdProgressPostPlayMethod, ) { if (playingItemsItemIdProgressPostPlayMethod == null) { return []; @@ -71154,8 +67097,7 @@ List playingItemsItemIdProgressPostPlayMethodListToJson( return playingItemsItemIdProgressPostPlayMethod.map((e) => e.value!).toList(); } -List -playingItemsItemIdProgressPostPlayMethodListFromJson( +List playingItemsItemIdProgressPostPlayMethodListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -71170,8 +67112,7 @@ playingItemsItemIdProgressPostPlayMethodListFromJson( .toList(); } -List? -playingItemsItemIdProgressPostPlayMethodNullableListFromJson( +List? playingItemsItemIdProgressPostPlayMethodNullableListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -71187,21 +67128,18 @@ playingItemsItemIdProgressPostPlayMethodNullableListFromJson( } String? playingItemsItemIdProgressPostRepeatModeNullableToJson( - enums.PlayingItemsItemIdProgressPostRepeatMode? - playingItemsItemIdProgressPostRepeatMode, + enums.PlayingItemsItemIdProgressPostRepeatMode? playingItemsItemIdProgressPostRepeatMode, ) { return playingItemsItemIdProgressPostRepeatMode?.value; } String? playingItemsItemIdProgressPostRepeatModeToJson( - enums.PlayingItemsItemIdProgressPostRepeatMode - playingItemsItemIdProgressPostRepeatMode, + enums.PlayingItemsItemIdProgressPostRepeatMode playingItemsItemIdProgressPostRepeatMode, ) { return playingItemsItemIdProgressPostRepeatMode.value; } -enums.PlayingItemsItemIdProgressPostRepeatMode -playingItemsItemIdProgressPostRepeatModeFromJson( +enums.PlayingItemsItemIdProgressPostRepeatMode playingItemsItemIdProgressPostRepeatModeFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { @@ -71212,8 +67150,7 @@ playingItemsItemIdProgressPostRepeatModeFromJson( enums.PlayingItemsItemIdProgressPostRepeatMode.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdProgressPostRepeatMode? -playingItemsItemIdProgressPostRepeatModeNullableFromJson( +enums.PlayingItemsItemIdProgressPostRepeatMode? playingItemsItemIdProgressPostRepeatModeNullableFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { @@ -71227,18 +67164,13 @@ playingItemsItemIdProgressPostRepeatModeNullableFromJson( } String playingItemsItemIdProgressPostRepeatModeExplodedListToJson( - List? - playingItemsItemIdProgressPostRepeatMode, + List? playingItemsItemIdProgressPostRepeatMode, ) { - return playingItemsItemIdProgressPostRepeatMode - ?.map((e) => e.value!) - .join(',') ?? - ''; + return playingItemsItemIdProgressPostRepeatMode?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdProgressPostRepeatModeListToJson( - List? - playingItemsItemIdProgressPostRepeatMode, + List? playingItemsItemIdProgressPostRepeatMode, ) { if (playingItemsItemIdProgressPostRepeatMode == null) { return []; @@ -71247,8 +67179,7 @@ List playingItemsItemIdProgressPostRepeatModeListToJson( return playingItemsItemIdProgressPostRepeatMode.map((e) => e.value!).toList(); } -List -playingItemsItemIdProgressPostRepeatModeListFromJson( +List playingItemsItemIdProgressPostRepeatModeListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -71263,8 +67194,7 @@ playingItemsItemIdProgressPostRepeatModeListFromJson( .toList(); } -List? -playingItemsItemIdProgressPostRepeatModeNullableListFromJson( +List? playingItemsItemIdProgressPostRepeatModeNullableListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -71302,8 +67232,7 @@ enums.ItemsItemIdRemoteImagesGetType itemsItemIdRemoteImagesGetTypeFromJson( enums.ItemsItemIdRemoteImagesGetType.swaggerGeneratedUnknown; } -enums.ItemsItemIdRemoteImagesGetType? -itemsItemIdRemoteImagesGetTypeNullableFromJson( +enums.ItemsItemIdRemoteImagesGetType? itemsItemIdRemoteImagesGetTypeNullableFromJson( Object? itemsItemIdRemoteImagesGetType, [ enums.ItemsItemIdRemoteImagesGetType? defaultValue, ]) { @@ -71332,8 +67261,7 @@ List itemsItemIdRemoteImagesGetTypeListToJson( return itemsItemIdRemoteImagesGetType.map((e) => e.value!).toList(); } -List -itemsItemIdRemoteImagesGetTypeListFromJson( +List itemsItemIdRemoteImagesGetTypeListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -71341,13 +67269,10 @@ itemsItemIdRemoteImagesGetTypeListFromJson( return defaultValue ?? []; } - return itemsItemIdRemoteImagesGetType - .map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())) - .toList(); + return itemsItemIdRemoteImagesGetType.map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())).toList(); } -List? -itemsItemIdRemoteImagesGetTypeNullableListFromJson( +List? itemsItemIdRemoteImagesGetTypeNullableListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -71355,27 +67280,22 @@ itemsItemIdRemoteImagesGetTypeNullableListFromJson( return defaultValue; } - return itemsItemIdRemoteImagesGetType - .map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())) - .toList(); + return itemsItemIdRemoteImagesGetType.map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())).toList(); } String? itemsItemIdRemoteImagesDownloadPostTypeNullableToJson( - enums.ItemsItemIdRemoteImagesDownloadPostType? - itemsItemIdRemoteImagesDownloadPostType, + enums.ItemsItemIdRemoteImagesDownloadPostType? itemsItemIdRemoteImagesDownloadPostType, ) { return itemsItemIdRemoteImagesDownloadPostType?.value; } String? itemsItemIdRemoteImagesDownloadPostTypeToJson( - enums.ItemsItemIdRemoteImagesDownloadPostType - itemsItemIdRemoteImagesDownloadPostType, + enums.ItemsItemIdRemoteImagesDownloadPostType itemsItemIdRemoteImagesDownloadPostType, ) { return itemsItemIdRemoteImagesDownloadPostType.value; } -enums.ItemsItemIdRemoteImagesDownloadPostType -itemsItemIdRemoteImagesDownloadPostTypeFromJson( +enums.ItemsItemIdRemoteImagesDownloadPostType itemsItemIdRemoteImagesDownloadPostTypeFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { @@ -71386,8 +67306,7 @@ itemsItemIdRemoteImagesDownloadPostTypeFromJson( enums.ItemsItemIdRemoteImagesDownloadPostType.swaggerGeneratedUnknown; } -enums.ItemsItemIdRemoteImagesDownloadPostType? -itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( +enums.ItemsItemIdRemoteImagesDownloadPostType? itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { @@ -71401,18 +67320,13 @@ itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( } String itemsItemIdRemoteImagesDownloadPostTypeExplodedListToJson( - List? - itemsItemIdRemoteImagesDownloadPostType, + List? itemsItemIdRemoteImagesDownloadPostType, ) { - return itemsItemIdRemoteImagesDownloadPostType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdRemoteImagesDownloadPostType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdRemoteImagesDownloadPostTypeListToJson( - List? - itemsItemIdRemoteImagesDownloadPostType, + List? itemsItemIdRemoteImagesDownloadPostType, ) { if (itemsItemIdRemoteImagesDownloadPostType == null) { return []; @@ -71421,8 +67335,7 @@ List itemsItemIdRemoteImagesDownloadPostTypeListToJson( return itemsItemIdRemoteImagesDownloadPostType.map((e) => e.value!).toList(); } -List -itemsItemIdRemoteImagesDownloadPostTypeListFromJson( +List itemsItemIdRemoteImagesDownloadPostTypeListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -71435,8 +67348,7 @@ itemsItemIdRemoteImagesDownloadPostTypeListFromJson( .toList(); } -List? -itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( +List? itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -71450,72 +67362,58 @@ itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( } String? sessionsSessionIdCommandCommandPostCommandNullableToJson( - enums.SessionsSessionIdCommandCommandPostCommand? - sessionsSessionIdCommandCommandPostCommand, + enums.SessionsSessionIdCommandCommandPostCommand? sessionsSessionIdCommandCommandPostCommand, ) { return sessionsSessionIdCommandCommandPostCommand?.value; } String? sessionsSessionIdCommandCommandPostCommandToJson( - enums.SessionsSessionIdCommandCommandPostCommand - sessionsSessionIdCommandCommandPostCommand, + enums.SessionsSessionIdCommandCommandPostCommand sessionsSessionIdCommandCommandPostCommand, ) { return sessionsSessionIdCommandCommandPostCommand.value; } -enums.SessionsSessionIdCommandCommandPostCommand -sessionsSessionIdCommandCommandPostCommandFromJson( +enums.SessionsSessionIdCommandCommandPostCommand sessionsSessionIdCommandCommandPostCommandFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdCommandCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand, - ) ?? + return enums.SessionsSessionIdCommandCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdCommandCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdCommandCommandPostCommand? -sessionsSessionIdCommandCommandPostCommandNullableFromJson( +enums.SessionsSessionIdCommandCommandPostCommand? sessionsSessionIdCommandCommandPostCommandNullableFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdCommandCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdCommandCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand, - ) ?? + return enums.SessionsSessionIdCommandCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdCommandCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdCommandCommandPostCommand, + List? sessionsSessionIdCommandCommandPostCommand, ) { - return sessionsSessionIdCommandCommandPostCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdCommandCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdCommandCommandPostCommandListToJson( - List? - sessionsSessionIdCommandCommandPostCommand, + List? sessionsSessionIdCommandCommandPostCommand, ) { if (sessionsSessionIdCommandCommandPostCommand == null) { return []; } - return sessionsSessionIdCommandCommandPostCommand - .map((e) => e.value!) - .toList(); + return sessionsSessionIdCommandCommandPostCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdCommandCommandPostCommandListFromJson( +List sessionsSessionIdCommandCommandPostCommandListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -71530,8 +67428,7 @@ sessionsSessionIdCommandCommandPostCommandListFromJson( .toList(); } -List? -sessionsSessionIdCommandCommandPostCommandNullableListFromJson( +List? sessionsSessionIdCommandCommandPostCommandNullableListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -71547,21 +67444,18 @@ sessionsSessionIdCommandCommandPostCommandNullableListFromJson( } String? sessionsSessionIdPlayingPostPlayCommandNullableToJson( - enums.SessionsSessionIdPlayingPostPlayCommand? - sessionsSessionIdPlayingPostPlayCommand, + enums.SessionsSessionIdPlayingPostPlayCommand? sessionsSessionIdPlayingPostPlayCommand, ) { return sessionsSessionIdPlayingPostPlayCommand?.value; } String? sessionsSessionIdPlayingPostPlayCommandToJson( - enums.SessionsSessionIdPlayingPostPlayCommand - sessionsSessionIdPlayingPostPlayCommand, + enums.SessionsSessionIdPlayingPostPlayCommand sessionsSessionIdPlayingPostPlayCommand, ) { return sessionsSessionIdPlayingPostPlayCommand.value; } -enums.SessionsSessionIdPlayingPostPlayCommand -sessionsSessionIdPlayingPostPlayCommandFromJson( +enums.SessionsSessionIdPlayingPostPlayCommand sessionsSessionIdPlayingPostPlayCommandFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { @@ -71572,8 +67466,7 @@ sessionsSessionIdPlayingPostPlayCommandFromJson( enums.SessionsSessionIdPlayingPostPlayCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdPlayingPostPlayCommand? -sessionsSessionIdPlayingPostPlayCommandNullableFromJson( +enums.SessionsSessionIdPlayingPostPlayCommand? sessionsSessionIdPlayingPostPlayCommandNullableFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { @@ -71587,18 +67480,13 @@ sessionsSessionIdPlayingPostPlayCommandNullableFromJson( } String sessionsSessionIdPlayingPostPlayCommandExplodedListToJson( - List? - sessionsSessionIdPlayingPostPlayCommand, + List? sessionsSessionIdPlayingPostPlayCommand, ) { - return sessionsSessionIdPlayingPostPlayCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdPlayingPostPlayCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdPlayingPostPlayCommandListToJson( - List? - sessionsSessionIdPlayingPostPlayCommand, + List? sessionsSessionIdPlayingPostPlayCommand, ) { if (sessionsSessionIdPlayingPostPlayCommand == null) { return []; @@ -71607,8 +67495,7 @@ List sessionsSessionIdPlayingPostPlayCommandListToJson( return sessionsSessionIdPlayingPostPlayCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdPlayingPostPlayCommandListFromJson( +List sessionsSessionIdPlayingPostPlayCommandListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -71621,8 +67508,7 @@ sessionsSessionIdPlayingPostPlayCommandListFromJson( .toList(); } -List? -sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( +List? sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -71636,72 +67522,58 @@ sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( } String? sessionsSessionIdPlayingCommandPostCommandNullableToJson( - enums.SessionsSessionIdPlayingCommandPostCommand? - sessionsSessionIdPlayingCommandPostCommand, + enums.SessionsSessionIdPlayingCommandPostCommand? sessionsSessionIdPlayingCommandPostCommand, ) { return sessionsSessionIdPlayingCommandPostCommand?.value; } String? sessionsSessionIdPlayingCommandPostCommandToJson( - enums.SessionsSessionIdPlayingCommandPostCommand - sessionsSessionIdPlayingCommandPostCommand, + enums.SessionsSessionIdPlayingCommandPostCommand sessionsSessionIdPlayingCommandPostCommand, ) { return sessionsSessionIdPlayingCommandPostCommand.value; } -enums.SessionsSessionIdPlayingCommandPostCommand -sessionsSessionIdPlayingCommandPostCommandFromJson( +enums.SessionsSessionIdPlayingCommandPostCommand sessionsSessionIdPlayingCommandPostCommandFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdPlayingCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, - ) ?? + return enums.SessionsSessionIdPlayingCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdPlayingCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdPlayingCommandPostCommand? -sessionsSessionIdPlayingCommandPostCommandNullableFromJson( +enums.SessionsSessionIdPlayingCommandPostCommand? sessionsSessionIdPlayingCommandPostCommandNullableFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdPlayingCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdPlayingCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, - ) ?? + return enums.SessionsSessionIdPlayingCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdPlayingCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdPlayingCommandPostCommand, + List? sessionsSessionIdPlayingCommandPostCommand, ) { - return sessionsSessionIdPlayingCommandPostCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdPlayingCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdPlayingCommandPostCommandListToJson( - List? - sessionsSessionIdPlayingCommandPostCommand, + List? sessionsSessionIdPlayingCommandPostCommand, ) { if (sessionsSessionIdPlayingCommandPostCommand == null) { return []; } - return sessionsSessionIdPlayingCommandPostCommand - .map((e) => e.value!) - .toList(); + return sessionsSessionIdPlayingCommandPostCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdPlayingCommandPostCommandListFromJson( +List sessionsSessionIdPlayingCommandPostCommandListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -71716,8 +67588,7 @@ sessionsSessionIdPlayingCommandPostCommandListFromJson( .toList(); } -List? -sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( +List? sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -71733,72 +67604,58 @@ sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( } String? sessionsSessionIdSystemCommandPostCommandNullableToJson( - enums.SessionsSessionIdSystemCommandPostCommand? - sessionsSessionIdSystemCommandPostCommand, + enums.SessionsSessionIdSystemCommandPostCommand? sessionsSessionIdSystemCommandPostCommand, ) { return sessionsSessionIdSystemCommandPostCommand?.value; } String? sessionsSessionIdSystemCommandPostCommandToJson( - enums.SessionsSessionIdSystemCommandPostCommand - sessionsSessionIdSystemCommandPostCommand, + enums.SessionsSessionIdSystemCommandPostCommand sessionsSessionIdSystemCommandPostCommand, ) { return sessionsSessionIdSystemCommandPostCommand.value; } -enums.SessionsSessionIdSystemCommandPostCommand -sessionsSessionIdSystemCommandPostCommandFromJson( +enums.SessionsSessionIdSystemCommandPostCommand sessionsSessionIdSystemCommandPostCommandFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdSystemCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand, - ) ?? + return enums.SessionsSessionIdSystemCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdSystemCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdSystemCommandPostCommand? -sessionsSessionIdSystemCommandPostCommandNullableFromJson( +enums.SessionsSessionIdSystemCommandPostCommand? sessionsSessionIdSystemCommandPostCommandNullableFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdSystemCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdSystemCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand, - ) ?? + return enums.SessionsSessionIdSystemCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdSystemCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdSystemCommandPostCommand, + List? sessionsSessionIdSystemCommandPostCommand, ) { - return sessionsSessionIdSystemCommandPostCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdSystemCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdSystemCommandPostCommandListToJson( - List? - sessionsSessionIdSystemCommandPostCommand, + List? sessionsSessionIdSystemCommandPostCommand, ) { if (sessionsSessionIdSystemCommandPostCommand == null) { return []; } - return sessionsSessionIdSystemCommandPostCommand - .map((e) => e.value!) - .toList(); + return sessionsSessionIdSystemCommandPostCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdSystemCommandPostCommandListFromJson( +List sessionsSessionIdSystemCommandPostCommandListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -71813,8 +67670,7 @@ sessionsSessionIdSystemCommandPostCommandListFromJson( .toList(); } -List? -sessionsSessionIdSystemCommandPostCommandNullableListFromJson( +List? sessionsSessionIdSystemCommandPostCommandNullableListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -71830,21 +67686,18 @@ sessionsSessionIdSystemCommandPostCommandNullableListFromJson( } String? sessionsSessionIdViewingPostItemTypeNullableToJson( - enums.SessionsSessionIdViewingPostItemType? - sessionsSessionIdViewingPostItemType, + enums.SessionsSessionIdViewingPostItemType? sessionsSessionIdViewingPostItemType, ) { return sessionsSessionIdViewingPostItemType?.value; } String? sessionsSessionIdViewingPostItemTypeToJson( - enums.SessionsSessionIdViewingPostItemType - sessionsSessionIdViewingPostItemType, + enums.SessionsSessionIdViewingPostItemType sessionsSessionIdViewingPostItemType, ) { return sessionsSessionIdViewingPostItemType.value; } -enums.SessionsSessionIdViewingPostItemType -sessionsSessionIdViewingPostItemTypeFromJson( +enums.SessionsSessionIdViewingPostItemType sessionsSessionIdViewingPostItemTypeFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { @@ -71855,8 +67708,7 @@ sessionsSessionIdViewingPostItemTypeFromJson( enums.SessionsSessionIdViewingPostItemType.swaggerGeneratedUnknown; } -enums.SessionsSessionIdViewingPostItemType? -sessionsSessionIdViewingPostItemTypeNullableFromJson( +enums.SessionsSessionIdViewingPostItemType? sessionsSessionIdViewingPostItemTypeNullableFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { @@ -71870,16 +67722,13 @@ sessionsSessionIdViewingPostItemTypeNullableFromJson( } String sessionsSessionIdViewingPostItemTypeExplodedListToJson( - List? - sessionsSessionIdViewingPostItemType, + List? sessionsSessionIdViewingPostItemType, ) { - return sessionsSessionIdViewingPostItemType?.map((e) => e.value!).join(',') ?? - ''; + return sessionsSessionIdViewingPostItemType?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdViewingPostItemTypeListToJson( - List? - sessionsSessionIdViewingPostItemType, + List? sessionsSessionIdViewingPostItemType, ) { if (sessionsSessionIdViewingPostItemType == null) { return []; @@ -71888,8 +67737,7 @@ List sessionsSessionIdViewingPostItemTypeListToJson( return sessionsSessionIdViewingPostItemType.map((e) => e.value!).toList(); } -List -sessionsSessionIdViewingPostItemTypeListFromJson( +List sessionsSessionIdViewingPostItemTypeListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -71902,8 +67750,7 @@ sessionsSessionIdViewingPostItemTypeListFromJson( .toList(); } -List? -sessionsSessionIdViewingPostItemTypeNullableListFromJson( +List? sessionsSessionIdViewingPostItemTypeNullableListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -71939,8 +67786,7 @@ enums.ShowsSeriesIdEpisodesGetSortBy showsSeriesIdEpisodesGetSortByFromJson( enums.ShowsSeriesIdEpisodesGetSortBy.swaggerGeneratedUnknown; } -enums.ShowsSeriesIdEpisodesGetSortBy? -showsSeriesIdEpisodesGetSortByNullableFromJson( +enums.ShowsSeriesIdEpisodesGetSortBy? showsSeriesIdEpisodesGetSortByNullableFromJson( Object? showsSeriesIdEpisodesGetSortBy, [ enums.ShowsSeriesIdEpisodesGetSortBy? defaultValue, ]) { @@ -71969,8 +67815,7 @@ List showsSeriesIdEpisodesGetSortByListToJson( return showsSeriesIdEpisodesGetSortBy.map((e) => e.value!).toList(); } -List -showsSeriesIdEpisodesGetSortByListFromJson( +List showsSeriesIdEpisodesGetSortByListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -71978,13 +67823,10 @@ showsSeriesIdEpisodesGetSortByListFromJson( return defaultValue ?? []; } - return showsSeriesIdEpisodesGetSortBy - .map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())) - .toList(); + return showsSeriesIdEpisodesGetSortBy.map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())).toList(); } -List? -showsSeriesIdEpisodesGetSortByNullableListFromJson( +List? showsSeriesIdEpisodesGetSortByNullableListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -71992,78 +67834,62 @@ showsSeriesIdEpisodesGetSortByNullableListFromJson( return defaultValue; } - return showsSeriesIdEpisodesGetSortBy - .map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())) - .toList(); + return showsSeriesIdEpisodesGetSortBy.map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())).toList(); } String? audioItemIdUniversalGetTranscodingProtocolNullableToJson( - enums.AudioItemIdUniversalGetTranscodingProtocol? - audioItemIdUniversalGetTranscodingProtocol, + enums.AudioItemIdUniversalGetTranscodingProtocol? audioItemIdUniversalGetTranscodingProtocol, ) { return audioItemIdUniversalGetTranscodingProtocol?.value; } String? audioItemIdUniversalGetTranscodingProtocolToJson( - enums.AudioItemIdUniversalGetTranscodingProtocol - audioItemIdUniversalGetTranscodingProtocol, + enums.AudioItemIdUniversalGetTranscodingProtocol audioItemIdUniversalGetTranscodingProtocol, ) { return audioItemIdUniversalGetTranscodingProtocol.value; } -enums.AudioItemIdUniversalGetTranscodingProtocol -audioItemIdUniversalGetTranscodingProtocolFromJson( +enums.AudioItemIdUniversalGetTranscodingProtocol audioItemIdUniversalGetTranscodingProtocolFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { - return enums.AudioItemIdUniversalGetTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalGetTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalGetTranscodingProtocol.swaggerGeneratedUnknown; } -enums.AudioItemIdUniversalGetTranscodingProtocol? -audioItemIdUniversalGetTranscodingProtocolNullableFromJson( +enums.AudioItemIdUniversalGetTranscodingProtocol? audioItemIdUniversalGetTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { if (audioItemIdUniversalGetTranscodingProtocol == null) { return null; } - return enums.AudioItemIdUniversalGetTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalGetTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalGetTranscodingProtocolExplodedListToJson( - List? - audioItemIdUniversalGetTranscodingProtocol, + List? audioItemIdUniversalGetTranscodingProtocol, ) { - return audioItemIdUniversalGetTranscodingProtocol - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdUniversalGetTranscodingProtocol?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdUniversalGetTranscodingProtocolListToJson( - List? - audioItemIdUniversalGetTranscodingProtocol, + List? audioItemIdUniversalGetTranscodingProtocol, ) { if (audioItemIdUniversalGetTranscodingProtocol == null) { return []; } - return audioItemIdUniversalGetTranscodingProtocol - .map((e) => e.value!) - .toList(); + return audioItemIdUniversalGetTranscodingProtocol.map((e) => e.value!).toList(); } -List -audioItemIdUniversalGetTranscodingProtocolListFromJson( +List audioItemIdUniversalGetTranscodingProtocolListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -72078,8 +67904,7 @@ audioItemIdUniversalGetTranscodingProtocolListFromJson( .toList(); } -List? -audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( +List? audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -72095,72 +67920,58 @@ audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( } String? audioItemIdUniversalHeadTranscodingProtocolNullableToJson( - enums.AudioItemIdUniversalHeadTranscodingProtocol? - audioItemIdUniversalHeadTranscodingProtocol, + enums.AudioItemIdUniversalHeadTranscodingProtocol? audioItemIdUniversalHeadTranscodingProtocol, ) { return audioItemIdUniversalHeadTranscodingProtocol?.value; } String? audioItemIdUniversalHeadTranscodingProtocolToJson( - enums.AudioItemIdUniversalHeadTranscodingProtocol - audioItemIdUniversalHeadTranscodingProtocol, + enums.AudioItemIdUniversalHeadTranscodingProtocol audioItemIdUniversalHeadTranscodingProtocol, ) { return audioItemIdUniversalHeadTranscodingProtocol.value; } -enums.AudioItemIdUniversalHeadTranscodingProtocol -audioItemIdUniversalHeadTranscodingProtocolFromJson( +enums.AudioItemIdUniversalHeadTranscodingProtocol audioItemIdUniversalHeadTranscodingProtocolFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { - return enums.AudioItemIdUniversalHeadTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalHeadTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalHeadTranscodingProtocol.swaggerGeneratedUnknown; } -enums.AudioItemIdUniversalHeadTranscodingProtocol? -audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( +enums.AudioItemIdUniversalHeadTranscodingProtocol? audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { if (audioItemIdUniversalHeadTranscodingProtocol == null) { return null; } - return enums.AudioItemIdUniversalHeadTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalHeadTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalHeadTranscodingProtocolExplodedListToJson( - List? - audioItemIdUniversalHeadTranscodingProtocol, + List? audioItemIdUniversalHeadTranscodingProtocol, ) { - return audioItemIdUniversalHeadTranscodingProtocol - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdUniversalHeadTranscodingProtocol?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdUniversalHeadTranscodingProtocolListToJson( - List? - audioItemIdUniversalHeadTranscodingProtocol, + List? audioItemIdUniversalHeadTranscodingProtocol, ) { if (audioItemIdUniversalHeadTranscodingProtocol == null) { return []; } - return audioItemIdUniversalHeadTranscodingProtocol - .map((e) => e.value!) - .toList(); + return audioItemIdUniversalHeadTranscodingProtocol.map((e) => e.value!).toList(); } -List -audioItemIdUniversalHeadTranscodingProtocolListFromJson( +List audioItemIdUniversalHeadTranscodingProtocolListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -72170,14 +67981,13 @@ audioItemIdUniversalHeadTranscodingProtocolListFromJson( return audioItemIdUniversalHeadTranscodingProtocol .map( - (e) => - audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + (e) => audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), ) .toList(); } List? -audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( + audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -72187,15 +67997,13 @@ audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( return audioItemIdUniversalHeadTranscodingProtocol .map( - (e) => - audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + (e) => audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamGetSubtitleMethodNullableToJson( - enums.VideosItemIdStreamGetSubtitleMethod? - videosItemIdStreamGetSubtitleMethod, + enums.VideosItemIdStreamGetSubtitleMethod? videosItemIdStreamGetSubtitleMethod, ) { return videosItemIdStreamGetSubtitleMethod?.value; } @@ -72206,8 +68014,7 @@ String? videosItemIdStreamGetSubtitleMethodToJson( return videosItemIdStreamGetSubtitleMethod.value; } -enums.VideosItemIdStreamGetSubtitleMethod -videosItemIdStreamGetSubtitleMethodFromJson( +enums.VideosItemIdStreamGetSubtitleMethod videosItemIdStreamGetSubtitleMethodFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -72218,8 +68025,7 @@ videosItemIdStreamGetSubtitleMethodFromJson( enums.VideosItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamGetSubtitleMethod? -videosItemIdStreamGetSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamGetSubtitleMethod? videosItemIdStreamGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -72233,16 +68039,13 @@ videosItemIdStreamGetSubtitleMethodNullableFromJson( } String videosItemIdStreamGetSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamGetSubtitleMethod, + List? videosItemIdStreamGetSubtitleMethod, ) { - return videosItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return videosItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamGetSubtitleMethodListToJson( - List? - videosItemIdStreamGetSubtitleMethod, + List? videosItemIdStreamGetSubtitleMethod, ) { if (videosItemIdStreamGetSubtitleMethod == null) { return []; @@ -72251,8 +68054,7 @@ List videosItemIdStreamGetSubtitleMethodListToJson( return videosItemIdStreamGetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamGetSubtitleMethodListFromJson( +List videosItemIdStreamGetSubtitleMethodListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72265,8 +68067,7 @@ videosItemIdStreamGetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdStreamGetSubtitleMethodNullableListFromJson( +List? videosItemIdStreamGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72302,8 +68103,7 @@ enums.VideosItemIdStreamGetContext videosItemIdStreamGetContextFromJson( enums.VideosItemIdStreamGetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamGetContext? -videosItemIdStreamGetContextNullableFromJson( +enums.VideosItemIdStreamGetContext? videosItemIdStreamGetContextNullableFromJson( Object? videosItemIdStreamGetContext, [ enums.VideosItemIdStreamGetContext? defaultValue, ]) { @@ -72332,8 +68132,7 @@ List videosItemIdStreamGetContextListToJson( return videosItemIdStreamGetContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamGetContextListFromJson( +List videosItemIdStreamGetContextListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -72341,13 +68140,10 @@ videosItemIdStreamGetContextListFromJson( return defaultValue ?? []; } - return videosItemIdStreamGetContext - .map((e) => videosItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamGetContext.map((e) => videosItemIdStreamGetContextFromJson(e.toString())).toList(); } -List? -videosItemIdStreamGetContextNullableListFromJson( +List? videosItemIdStreamGetContextNullableListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -72355,27 +68151,22 @@ videosItemIdStreamGetContextNullableListFromJson( return defaultValue; } - return videosItemIdStreamGetContext - .map((e) => videosItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamGetContext.map((e) => videosItemIdStreamGetContextFromJson(e.toString())).toList(); } String? videosItemIdStreamHeadSubtitleMethodNullableToJson( - enums.VideosItemIdStreamHeadSubtitleMethod? - videosItemIdStreamHeadSubtitleMethod, + enums.VideosItemIdStreamHeadSubtitleMethod? videosItemIdStreamHeadSubtitleMethod, ) { return videosItemIdStreamHeadSubtitleMethod?.value; } String? videosItemIdStreamHeadSubtitleMethodToJson( - enums.VideosItemIdStreamHeadSubtitleMethod - videosItemIdStreamHeadSubtitleMethod, + enums.VideosItemIdStreamHeadSubtitleMethod videosItemIdStreamHeadSubtitleMethod, ) { return videosItemIdStreamHeadSubtitleMethod.value; } -enums.VideosItemIdStreamHeadSubtitleMethod -videosItemIdStreamHeadSubtitleMethodFromJson( +enums.VideosItemIdStreamHeadSubtitleMethod videosItemIdStreamHeadSubtitleMethodFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -72386,8 +68177,7 @@ videosItemIdStreamHeadSubtitleMethodFromJson( enums.VideosItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamHeadSubtitleMethod? -videosItemIdStreamHeadSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamHeadSubtitleMethod? videosItemIdStreamHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -72401,16 +68191,13 @@ videosItemIdStreamHeadSubtitleMethodNullableFromJson( } String videosItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamHeadSubtitleMethod, + List? videosItemIdStreamHeadSubtitleMethod, ) { - return videosItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return videosItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamHeadSubtitleMethodListToJson( - List? - videosItemIdStreamHeadSubtitleMethod, + List? videosItemIdStreamHeadSubtitleMethod, ) { if (videosItemIdStreamHeadSubtitleMethod == null) { return []; @@ -72419,8 +68206,7 @@ List videosItemIdStreamHeadSubtitleMethodListToJson( return videosItemIdStreamHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamHeadSubtitleMethodListFromJson( +List videosItemIdStreamHeadSubtitleMethodListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72433,8 +68219,7 @@ videosItemIdStreamHeadSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdStreamHeadSubtitleMethodNullableListFromJson( +List? videosItemIdStreamHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72470,8 +68255,7 @@ enums.VideosItemIdStreamHeadContext videosItemIdStreamHeadContextFromJson( enums.VideosItemIdStreamHeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamHeadContext? -videosItemIdStreamHeadContextNullableFromJson( +enums.VideosItemIdStreamHeadContext? videosItemIdStreamHeadContextNullableFromJson( Object? videosItemIdStreamHeadContext, [ enums.VideosItemIdStreamHeadContext? defaultValue, ]) { @@ -72500,8 +68284,7 @@ List videosItemIdStreamHeadContextListToJson( return videosItemIdStreamHeadContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamHeadContextListFromJson( +List videosItemIdStreamHeadContextListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -72509,13 +68292,10 @@ videosItemIdStreamHeadContextListFromJson( return defaultValue ?? []; } - return videosItemIdStreamHeadContext - .map((e) => videosItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamHeadContext.map((e) => videosItemIdStreamHeadContextFromJson(e.toString())).toList(); } -List? -videosItemIdStreamHeadContextNullableListFromJson( +List? videosItemIdStreamHeadContextNullableListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -72523,80 +68303,62 @@ videosItemIdStreamHeadContextNullableListFromJson( return defaultValue; } - return videosItemIdStreamHeadContext - .map((e) => videosItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamHeadContext.map((e) => videosItemIdStreamHeadContextFromJson(e.toString())).toList(); } String? videosItemIdStreamContainerGetSubtitleMethodNullableToJson( - enums.VideosItemIdStreamContainerGetSubtitleMethod? - videosItemIdStreamContainerGetSubtitleMethod, + enums.VideosItemIdStreamContainerGetSubtitleMethod? videosItemIdStreamContainerGetSubtitleMethod, ) { return videosItemIdStreamContainerGetSubtitleMethod?.value; } String? videosItemIdStreamContainerGetSubtitleMethodToJson( - enums.VideosItemIdStreamContainerGetSubtitleMethod - videosItemIdStreamContainerGetSubtitleMethod, + enums.VideosItemIdStreamContainerGetSubtitleMethod videosItemIdStreamContainerGetSubtitleMethod, ) { return videosItemIdStreamContainerGetSubtitleMethod.value; } -enums.VideosItemIdStreamContainerGetSubtitleMethod -videosItemIdStreamContainerGetSubtitleMethodFromJson( +enums.VideosItemIdStreamContainerGetSubtitleMethod videosItemIdStreamContainerGetSubtitleMethodFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { - return enums.VideosItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums - .VideosItemIdStreamContainerGetSubtitleMethod - .swaggerGeneratedUnknown; + enums.VideosItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerGetSubtitleMethod? -videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamContainerGetSubtitleMethod? videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { if (videosItemIdStreamContainerGetSubtitleMethod == null) { return null; } - return enums.VideosItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamContainerGetSubtitleMethod, + List? videosItemIdStreamContainerGetSubtitleMethod, ) { - return videosItemIdStreamContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerGetSubtitleMethodListToJson( - List? - videosItemIdStreamContainerGetSubtitleMethod, + List? videosItemIdStreamContainerGetSubtitleMethod, ) { if (videosItemIdStreamContainerGetSubtitleMethod == null) { return []; } - return videosItemIdStreamContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return videosItemIdStreamContainerGetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerGetSubtitleMethodListFromJson( +List videosItemIdStreamContainerGetSubtitleMethodListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72606,14 +68368,13 @@ videosItemIdStreamContainerGetSubtitleMethodListFromJson( return videosItemIdStreamContainerGetSubtitleMethod .map( - (e) => - videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( + videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72623,28 +68384,24 @@ videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( return videosItemIdStreamContainerGetSubtitleMethod .map( - (e) => - videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamContainerGetContextNullableToJson( - enums.VideosItemIdStreamContainerGetContext? - videosItemIdStreamContainerGetContext, + enums.VideosItemIdStreamContainerGetContext? videosItemIdStreamContainerGetContext, ) { return videosItemIdStreamContainerGetContext?.value; } String? videosItemIdStreamContainerGetContextToJson( - enums.VideosItemIdStreamContainerGetContext - videosItemIdStreamContainerGetContext, + enums.VideosItemIdStreamContainerGetContext videosItemIdStreamContainerGetContext, ) { return videosItemIdStreamContainerGetContext.value; } -enums.VideosItemIdStreamContainerGetContext -videosItemIdStreamContainerGetContextFromJson( +enums.VideosItemIdStreamContainerGetContext videosItemIdStreamContainerGetContextFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { @@ -72655,8 +68412,7 @@ videosItemIdStreamContainerGetContextFromJson( enums.VideosItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerGetContext? -videosItemIdStreamContainerGetContextNullableFromJson( +enums.VideosItemIdStreamContainerGetContext? videosItemIdStreamContainerGetContextNullableFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { @@ -72670,18 +68426,13 @@ videosItemIdStreamContainerGetContextNullableFromJson( } String videosItemIdStreamContainerGetContextExplodedListToJson( - List? - videosItemIdStreamContainerGetContext, + List? videosItemIdStreamContainerGetContext, ) { - return videosItemIdStreamContainerGetContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerGetContextListToJson( - List? - videosItemIdStreamContainerGetContext, + List? videosItemIdStreamContainerGetContext, ) { if (videosItemIdStreamContainerGetContext == null) { return []; @@ -72690,8 +68441,7 @@ List videosItemIdStreamContainerGetContextListToJson( return videosItemIdStreamContainerGetContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerGetContextListFromJson( +List videosItemIdStreamContainerGetContextListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -72704,8 +68454,7 @@ videosItemIdStreamContainerGetContextListFromJson( .toList(); } -List? -videosItemIdStreamContainerGetContextNullableListFromJson( +List? videosItemIdStreamContainerGetContextNullableListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -72719,74 +68468,58 @@ videosItemIdStreamContainerGetContextNullableListFromJson( } String? videosItemIdStreamContainerHeadSubtitleMethodNullableToJson( - enums.VideosItemIdStreamContainerHeadSubtitleMethod? - videosItemIdStreamContainerHeadSubtitleMethod, + enums.VideosItemIdStreamContainerHeadSubtitleMethod? videosItemIdStreamContainerHeadSubtitleMethod, ) { return videosItemIdStreamContainerHeadSubtitleMethod?.value; } String? videosItemIdStreamContainerHeadSubtitleMethodToJson( - enums.VideosItemIdStreamContainerHeadSubtitleMethod - videosItemIdStreamContainerHeadSubtitleMethod, + enums.VideosItemIdStreamContainerHeadSubtitleMethod videosItemIdStreamContainerHeadSubtitleMethod, ) { return videosItemIdStreamContainerHeadSubtitleMethod.value; } -enums.VideosItemIdStreamContainerHeadSubtitleMethod -videosItemIdStreamContainerHeadSubtitleMethodFromJson( +enums.VideosItemIdStreamContainerHeadSubtitleMethod videosItemIdStreamContainerHeadSubtitleMethodFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { - return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? - enums - .VideosItemIdStreamContainerHeadSubtitleMethod - .swaggerGeneratedUnknown; + enums.VideosItemIdStreamContainerHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerHeadSubtitleMethod? -videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamContainerHeadSubtitleMethod? videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { if (videosItemIdStreamContainerHeadSubtitleMethod == null) { return null; } - return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamContainerHeadSubtitleMethod, + List? videosItemIdStreamContainerHeadSubtitleMethod, ) { - return videosItemIdStreamContainerHeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerHeadSubtitleMethodListToJson( - List? - videosItemIdStreamContainerHeadSubtitleMethod, + List? videosItemIdStreamContainerHeadSubtitleMethod, ) { if (videosItemIdStreamContainerHeadSubtitleMethod == null) { return []; } - return videosItemIdStreamContainerHeadSubtitleMethod - .map((e) => e.value!) - .toList(); + return videosItemIdStreamContainerHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerHeadSubtitleMethodListFromJson( +List videosItemIdStreamContainerHeadSubtitleMethodListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72796,14 +68529,13 @@ videosItemIdStreamContainerHeadSubtitleMethodListFromJson( return videosItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( + videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72813,28 +68545,24 @@ videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( return videosItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamContainerHeadContextNullableToJson( - enums.VideosItemIdStreamContainerHeadContext? - videosItemIdStreamContainerHeadContext, + enums.VideosItemIdStreamContainerHeadContext? videosItemIdStreamContainerHeadContext, ) { return videosItemIdStreamContainerHeadContext?.value; } String? videosItemIdStreamContainerHeadContextToJson( - enums.VideosItemIdStreamContainerHeadContext - videosItemIdStreamContainerHeadContext, + enums.VideosItemIdStreamContainerHeadContext videosItemIdStreamContainerHeadContext, ) { return videosItemIdStreamContainerHeadContext.value; } -enums.VideosItemIdStreamContainerHeadContext -videosItemIdStreamContainerHeadContextFromJson( +enums.VideosItemIdStreamContainerHeadContext videosItemIdStreamContainerHeadContextFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -72845,8 +68573,7 @@ videosItemIdStreamContainerHeadContextFromJson( enums.VideosItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerHeadContext? -videosItemIdStreamContainerHeadContextNullableFromJson( +enums.VideosItemIdStreamContainerHeadContext? videosItemIdStreamContainerHeadContextNullableFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -72860,18 +68587,13 @@ videosItemIdStreamContainerHeadContextNullableFromJson( } String videosItemIdStreamContainerHeadContextExplodedListToJson( - List? - videosItemIdStreamContainerHeadContext, + List? videosItemIdStreamContainerHeadContext, ) { - return videosItemIdStreamContainerHeadContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerHeadContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerHeadContextListToJson( - List? - videosItemIdStreamContainerHeadContext, + List? videosItemIdStreamContainerHeadContext, ) { if (videosItemIdStreamContainerHeadContext == null) { return []; @@ -72880,8 +68602,7 @@ List videosItemIdStreamContainerHeadContextListToJson( return videosItemIdStreamContainerHeadContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerHeadContextListFromJson( +List videosItemIdStreamContainerHeadContextListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -72894,8 +68615,7 @@ videosItemIdStreamContainerHeadContextListFromJson( .toList(); } -List? -videosItemIdStreamContainerHeadContextNullableListFromJson( +List? videosItemIdStreamContainerHeadContextNullableListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -72948,8 +68668,7 @@ class $CustomJsonDecoder { return jsonFactory(values); } - List _decodeList(Iterable values) => - values.where((v) => v != null).map((v) => decode(v) as T).toList(); + List _decodeList(Iterable values) => values.where((v) => v != null).map((v) => decode(v) as T).toList(); } class $JsonSerializableConverter extends chopper.JsonConverter { @@ -72969,9 +68688,7 @@ class $JsonSerializableConverter extends chopper.JsonConverter { if (ResultType == DateTime) { return response.copyWith( - body: - DateTime.parse((response.body as String).replaceAll('"', '')) - as ResultType, + body: DateTime.parse((response.body as String).replaceAll('"', '')) as ResultType, ); } diff --git a/lib/jellyfin/jellyfin_open_api.swagger.g.dart b/lib/jellyfin/jellyfin_open_api.swagger.g.dart index eb1fd2bdf..0284c6fb9 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.g.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.g.dart @@ -6,8 +6,7 @@ part of 'jellyfin_open_api.swagger.dart'; // JsonSerializableGenerator // ************************************************************************** -AccessSchedule _$AccessScheduleFromJson(Map json) => - AccessSchedule( +AccessSchedule _$AccessScheduleFromJson(Map json) => AccessSchedule( id: (json['Id'] as num?)?.toInt(), userId: json['UserId'] as String?, dayOfWeek: dynamicDayOfWeekNullableFromJson(json['DayOfWeek']), @@ -15,33 +14,28 @@ AccessSchedule _$AccessScheduleFromJson(Map json) => endHour: (json['EndHour'] as num?)?.toDouble(), ); -Map _$AccessScheduleToJson(AccessSchedule instance) => - { +Map _$AccessScheduleToJson(AccessSchedule instance) => { if (instance.id case final value?) 'Id': value, if (instance.userId case final value?) 'UserId': value, - if (dynamicDayOfWeekNullableToJson(instance.dayOfWeek) case final value?) - 'DayOfWeek': value, + if (dynamicDayOfWeekNullableToJson(instance.dayOfWeek) case final value?) 'DayOfWeek': value, if (instance.startHour case final value?) 'StartHour': value, if (instance.endHour case final value?) 'EndHour': value, }; -ActivityLogEntry _$ActivityLogEntryFromJson(Map json) => - ActivityLogEntry( +ActivityLogEntry _$ActivityLogEntryFromJson(Map json) => ActivityLogEntry( id: (json['Id'] as num?)?.toInt(), name: json['Name'] as String?, overview: json['Overview'] as String?, shortOverview: json['ShortOverview'] as String?, type: json['Type'] as String?, itemId: json['ItemId'] as String?, - date: - json['Date'] == null ? null : DateTime.parse(json['Date'] as String), + date: json['Date'] == null ? null : DateTime.parse(json['Date'] as String), userId: json['UserId'] as String?, userPrimaryImageTag: json['UserPrimaryImageTag'] as String?, severity: logLevelNullableFromJson(json['Severity']), ); -Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => - { +Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, @@ -50,38 +44,25 @@ Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => if (instance.itemId case final value?) 'ItemId': value, if (instance.date?.toIso8601String() case final value?) 'Date': value, if (instance.userId case final value?) 'UserId': value, - if (instance.userPrimaryImageTag case final value?) - 'UserPrimaryImageTag': value, - if (logLevelNullableToJson(instance.severity) case final value?) - 'Severity': value, + if (instance.userPrimaryImageTag case final value?) 'UserPrimaryImageTag': value, + if (logLevelNullableToJson(instance.severity) case final value?) 'Severity': value, }; -ActivityLogEntryMessage _$ActivityLogEntryMessageFromJson( - Map json) => - ActivityLogEntryMessage( - data: (json['Data'] as List?) - ?.map((e) => ActivityLogEntry.fromJson(e as Map)) - .toList() ?? - [], +ActivityLogEntryMessage _$ActivityLogEntryMessageFromJson(Map json) => ActivityLogEntryMessage( + data: + (json['Data'] as List?)?.map((e) => ActivityLogEntry.fromJson(e as Map)).toList() ?? + [], messageId: json['MessageId'] as String?, - messageType: - ActivityLogEntryMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: ActivityLogEntryMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryMessageToJson( - ActivityLogEntryMessage instance) => - { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) - 'Data': value, +Map _$ActivityLogEntryMessageToJson(ActivityLogEntryMessage instance) => { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson( - Map json) => +ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson(Map json) => ActivityLogEntryQueryResult( items: (json['Items'] as List?) ?.map((e) => ActivityLogEntry.fromJson(e as Map)) @@ -91,61 +72,40 @@ ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson( startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$ActivityLogEntryQueryResultToJson( - ActivityLogEntryQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$ActivityLogEntryQueryResultToJson(ActivityLogEntryQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -ActivityLogEntryStartMessage _$ActivityLogEntryStartMessageFromJson( - Map json) => +ActivityLogEntryStartMessage _$ActivityLogEntryStartMessageFromJson(Map json) => ActivityLogEntryStartMessage( data: json['Data'] as String?, - messageType: ActivityLogEntryStartMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ActivityLogEntryStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryStartMessageToJson( - ActivityLogEntryStartMessage instance) => - { +Map _$ActivityLogEntryStartMessageToJson(ActivityLogEntryStartMessage instance) => { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ActivityLogEntryStopMessage _$ActivityLogEntryStopMessageFromJson( - Map json) => +ActivityLogEntryStopMessage _$ActivityLogEntryStopMessageFromJson(Map json) => ActivityLogEntryStopMessage( - messageType: ActivityLogEntryStopMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ActivityLogEntryStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryStopMessageToJson( - ActivityLogEntryStopMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$ActivityLogEntryStopMessageToJson(ActivityLogEntryStopMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -AddVirtualFolderDto _$AddVirtualFolderDtoFromJson(Map json) => - AddVirtualFolderDto( +AddVirtualFolderDto _$AddVirtualFolderDtoFromJson(Map json) => AddVirtualFolderDto( libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson( - json['LibraryOptions'] as Map), + : LibraryOptions.fromJson(json['LibraryOptions'] as Map), ); -Map _$AddVirtualFolderDtoToJson( - AddVirtualFolderDto instance) => - { - if (instance.libraryOptions?.toJson() case final value?) - 'LibraryOptions': value, +Map _$AddVirtualFolderDtoToJson(AddVirtualFolderDto instance) => { + if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, }; AlbumInfo _$AlbumInfoFromJson(Map json) => AlbumInfo( @@ -158,91 +118,63 @@ AlbumInfo _$AlbumInfoFromJson(Map json) => AlbumInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - albumArtists: (json['AlbumArtists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + albumArtists: (json['AlbumArtists'] as List?)?.map((e) => e as String).toList() ?? [], artistProviderIds: json['ArtistProviderIds'] as Map?, - songInfos: (json['SongInfos'] as List?) - ?.map((e) => SongInfo.fromJson(e as Map)) - .toList() ?? - [], + songInfos: + (json['SongInfos'] as List?)?.map((e) => SongInfo.fromJson(e as Map)).toList() ?? + [], ); Map _$AlbumInfoToJson(AlbumInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.albumArtists case final value?) 'AlbumArtists': value, - if (instance.artistProviderIds case final value?) - 'ArtistProviderIds': value, - if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) - 'SongInfos': value, + if (instance.artistProviderIds case final value?) 'ArtistProviderIds': value, + if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) 'SongInfos': value, }; -AlbumInfoRemoteSearchQuery _$AlbumInfoRemoteSearchQueryFromJson( - Map json) => +AlbumInfoRemoteSearchQuery _$AlbumInfoRemoteSearchQueryFromJson(Map json) => AlbumInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : AlbumInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : AlbumInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$AlbumInfoRemoteSearchQueryToJson( - AlbumInfoRemoteSearchQuery instance) => - { +Map _$AlbumInfoRemoteSearchQueryToJson(AlbumInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -AllThemeMediaResult _$AllThemeMediaResultFromJson(Map json) => - AllThemeMediaResult( +AllThemeMediaResult _$AllThemeMediaResultFromJson(Map json) => AllThemeMediaResult( themeVideosResult: json['ThemeVideosResult'] == null ? null - : ThemeMediaResult.fromJson( - json['ThemeVideosResult'] as Map), + : ThemeMediaResult.fromJson(json['ThemeVideosResult'] as Map), themeSongsResult: json['ThemeSongsResult'] == null ? null - : ThemeMediaResult.fromJson( - json['ThemeSongsResult'] as Map), + : ThemeMediaResult.fromJson(json['ThemeSongsResult'] as Map), soundtrackSongsResult: json['SoundtrackSongsResult'] == null ? null - : ThemeMediaResult.fromJson( - json['SoundtrackSongsResult'] as Map), + : ThemeMediaResult.fromJson(json['SoundtrackSongsResult'] as Map), ); -Map _$AllThemeMediaResultToJson( - AllThemeMediaResult instance) => - { - if (instance.themeVideosResult?.toJson() case final value?) - 'ThemeVideosResult': value, - if (instance.themeSongsResult?.toJson() case final value?) - 'ThemeSongsResult': value, - if (instance.soundtrackSongsResult?.toJson() case final value?) - 'SoundtrackSongsResult': value, +Map _$AllThemeMediaResultToJson(AllThemeMediaResult instance) => { + if (instance.themeVideosResult?.toJson() case final value?) 'ThemeVideosResult': value, + if (instance.themeSongsResult?.toJson() case final value?) 'ThemeSongsResult': value, + if (instance.soundtrackSongsResult?.toJson() case final value?) 'SoundtrackSongsResult': value, }; ArtistInfo _$ArtistInfoFromJson(Map json) => ArtistInfo( @@ -255,75 +187,54 @@ ArtistInfo _$ArtistInfoFromJson(Map json) => ArtistInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - songInfos: (json['SongInfos'] as List?) - ?.map((e) => SongInfo.fromJson(e as Map)) - .toList() ?? - [], + songInfos: + (json['SongInfos'] as List?)?.map((e) => SongInfo.fromJson(e as Map)).toList() ?? + [], ); -Map _$ArtistInfoToJson(ArtistInfo instance) => - { +Map _$ArtistInfoToJson(ArtistInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, - if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) - 'SongInfos': value, + if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) 'SongInfos': value, }; -ArtistInfoRemoteSearchQuery _$ArtistInfoRemoteSearchQueryFromJson( - Map json) => +ArtistInfoRemoteSearchQuery _$ArtistInfoRemoteSearchQueryFromJson(Map json) => ArtistInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : ArtistInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : ArtistInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$ArtistInfoRemoteSearchQueryToJson( - ArtistInfoRemoteSearchQuery instance) => - { +Map _$ArtistInfoRemoteSearchQueryToJson(ArtistInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -AuthenticateUserByName _$AuthenticateUserByNameFromJson( - Map json) => - AuthenticateUserByName( +AuthenticateUserByName _$AuthenticateUserByNameFromJson(Map json) => AuthenticateUserByName( username: json['Username'] as String?, pw: json['Pw'] as String?, ); -Map _$AuthenticateUserByNameToJson( - AuthenticateUserByName instance) => - { +Map _$AuthenticateUserByNameToJson(AuthenticateUserByName instance) => { if (instance.username case final value?) 'Username': value, if (instance.pw case final value?) 'Pw': value, }; -AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => - AuthenticationInfo( +AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => AuthenticationInfo( id: (json['Id'] as num?)?.toInt(), accessToken: json['AccessToken'] as String?, deviceId: json['DeviceId'] as String?, @@ -332,20 +243,13 @@ AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => deviceName: json['DeviceName'] as String?, userId: json['UserId'] as String?, isActive: json['IsActive'] as bool?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateRevoked: json['DateRevoked'] == null - ? null - : DateTime.parse(json['DateRevoked'] as String), - dateLastActivity: json['DateLastActivity'] == null - ? null - : DateTime.parse(json['DateLastActivity'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateRevoked: json['DateRevoked'] == null ? null : DateTime.parse(json['DateRevoked'] as String), + dateLastActivity: json['DateLastActivity'] == null ? null : DateTime.parse(json['DateLastActivity'] as String), userName: json['UserName'] as String?, ); -Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => - { +Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.accessToken case final value?) 'AccessToken': value, if (instance.deviceId case final value?) 'DeviceId': value, @@ -354,110 +258,78 @@ Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => if (instance.deviceName case final value?) 'DeviceName': value, if (instance.userId case final value?) 'UserId': value, if (instance.isActive case final value?) 'IsActive': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateRevoked?.toIso8601String() case final value?) - 'DateRevoked': value, - if (instance.dateLastActivity?.toIso8601String() case final value?) - 'DateLastActivity': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateRevoked?.toIso8601String() case final value?) 'DateRevoked': value, + if (instance.dateLastActivity?.toIso8601String() case final value?) 'DateLastActivity': value, if (instance.userName case final value?) 'UserName': value, }; -AuthenticationInfoQueryResult _$AuthenticationInfoQueryResultFromJson( - Map json) => +AuthenticationInfoQueryResult _$AuthenticationInfoQueryResultFromJson(Map json) => AuthenticationInfoQueryResult( items: (json['Items'] as List?) - ?.map( - (e) => AuthenticationInfo.fromJson(e as Map)) + ?.map((e) => AuthenticationInfo.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$AuthenticationInfoQueryResultToJson( - AuthenticationInfoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$AuthenticationInfoQueryResultToJson(AuthenticationInfoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -AuthenticationResult _$AuthenticationResultFromJson( - Map json) => - AuthenticationResult( - user: json['User'] == null - ? null - : UserDto.fromJson(json['User'] as Map), - sessionInfo: json['SessionInfo'] == null - ? null - : SessionInfoDto.fromJson( - json['SessionInfo'] as Map), +AuthenticationResult _$AuthenticationResultFromJson(Map json) => AuthenticationResult( + user: json['User'] == null ? null : UserDto.fromJson(json['User'] as Map), + sessionInfo: + json['SessionInfo'] == null ? null : SessionInfoDto.fromJson(json['SessionInfo'] as Map), accessToken: json['AccessToken'] as String?, serverId: json['ServerId'] as String?, ); -Map _$AuthenticationResultToJson( - AuthenticationResult instance) => - { +Map _$AuthenticationResultToJson(AuthenticationResult instance) => { if (instance.user?.toJson() case final value?) 'User': value, - if (instance.sessionInfo?.toJson() case final value?) - 'SessionInfo': value, + if (instance.sessionInfo?.toJson() case final value?) 'SessionInfo': value, if (instance.accessToken case final value?) 'AccessToken': value, if (instance.serverId case final value?) 'ServerId': value, }; -BackupManifestDto _$BackupManifestDtoFromJson(Map json) => - BackupManifestDto( +BackupManifestDto _$BackupManifestDtoFromJson(Map json) => BackupManifestDto( serverVersion: json['ServerVersion'] as String?, backupEngineVersion: json['BackupEngineVersion'] as String?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), path: json['Path'] as String?, - options: json['Options'] == null - ? null - : BackupOptionsDto.fromJson(json['Options'] as Map), + options: json['Options'] == null ? null : BackupOptionsDto.fromJson(json['Options'] as Map), ); -Map _$BackupManifestDtoToJson(BackupManifestDto instance) => - { +Map _$BackupManifestDtoToJson(BackupManifestDto instance) => { if (instance.serverVersion case final value?) 'ServerVersion': value, - if (instance.backupEngineVersion case final value?) - 'BackupEngineVersion': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, + if (instance.backupEngineVersion case final value?) 'BackupEngineVersion': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, if (instance.path case final value?) 'Path': value, if (instance.options?.toJson() case final value?) 'Options': value, }; -BackupOptionsDto _$BackupOptionsDtoFromJson(Map json) => - BackupOptionsDto( +BackupOptionsDto _$BackupOptionsDtoFromJson(Map json) => BackupOptionsDto( metadata: json['Metadata'] as bool?, trickplay: json['Trickplay'] as bool?, subtitles: json['Subtitles'] as bool?, database: json['Database'] as bool?, ); -Map _$BackupOptionsDtoToJson(BackupOptionsDto instance) => - { +Map _$BackupOptionsDtoToJson(BackupOptionsDto instance) => { if (instance.metadata case final value?) 'Metadata': value, if (instance.trickplay case final value?) 'Trickplay': value, if (instance.subtitles case final value?) 'Subtitles': value, if (instance.database case final value?) 'Database': value, }; -BackupRestoreRequestDto _$BackupRestoreRequestDtoFromJson( - Map json) => - BackupRestoreRequestDto( +BackupRestoreRequestDto _$BackupRestoreRequestDtoFromJson(Map json) => BackupRestoreRequestDto( archiveFileName: json['ArchiveFileName'] as String?, ); -Map _$BackupRestoreRequestDtoToJson( - BackupRestoreRequestDto instance) => - { +Map _$BackupRestoreRequestDtoToJson(BackupRestoreRequestDto instance) => { if (instance.archiveFileName case final value?) 'ArchiveFileName': value, }; @@ -469,31 +341,24 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( etag: json['Etag'] as String?, sourceType: json['SourceType'] as String?, playlistItemId: json['PlaylistItemId'] as String?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateLastMediaAdded: json['DateLastMediaAdded'] == null - ? null - : DateTime.parse(json['DateLastMediaAdded'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateLastMediaAdded: + json['DateLastMediaAdded'] == null ? null : DateTime.parse(json['DateLastMediaAdded'] as String), extraType: extraTypeNullableFromJson(json['ExtraType']), airsBeforeSeasonNumber: (json['AirsBeforeSeasonNumber'] as num?)?.toInt(), airsAfterSeasonNumber: (json['AirsAfterSeasonNumber'] as num?)?.toInt(), - airsBeforeEpisodeNumber: - (json['AirsBeforeEpisodeNumber'] as num?)?.toInt(), + airsBeforeEpisodeNumber: (json['AirsBeforeEpisodeNumber'] as num?)?.toInt(), canDelete: json['CanDelete'] as bool?, canDownload: json['CanDownload'] as bool?, hasLyrics: json['HasLyrics'] as bool?, hasSubtitles: json['HasSubtitles'] as bool?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, - preferredMetadataCountryCode: - json['PreferredMetadataCountryCode'] as String?, + preferredMetadataCountryCode: json['PreferredMetadataCountryCode'] as String?, container: json['Container'] as String?, sortName: json['SortName'] as String?, forcedSortName: json['ForcedSortName'] as String?, video3DFormat: video3DFormatNullableFromJson(json['Video3DFormat']), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), externalUrls: (json['ExternalUrls'] as List?) ?.map((e) => ExternalUrl.fromJson(e as Map)) .toList() ?? @@ -503,10 +368,7 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( .toList() ?? [], criticRating: (json['CriticRating'] as num?)?.toDouble(), - productionLocations: (json['ProductionLocations'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + productionLocations: (json['ProductionLocations'] as List?)?.map((e) => e as String).toList() ?? [], path: json['Path'] as String?, enableMediaSourceDisplay: json['EnableMediaSourceDisplay'] as bool?, officialRating: json['OfficialRating'] as String?, @@ -514,14 +376,8 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( channelId: json['ChannelId'] as String?, channelName: json['ChannelName'] as String?, overview: json['Overview'] as String?, - taglines: (json['Taglines'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - genres: (json['Genres'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + taglines: (json['Taglines'] as List?)?.map((e) => e as String).toList() ?? [], + genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], communityRating: (json['CommunityRating'] as num?)?.toDouble(), cumulativeRunTimeTicks: (json['CumulativeRunTimeTicks'] as num?)?.toInt(), runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), @@ -543,14 +399,12 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( isFolder: json['IsFolder'] as bool?, parentId: json['ParentId'] as String?, type: baseItemKindNullableFromJson(json['Type']), - people: (json['People'] as List?) - ?.map((e) => BaseItemPerson.fromJson(e as Map)) - .toList() ?? - [], - studios: (json['Studios'] as List?) - ?.map((e) => NameGuidPair.fromJson(e as Map)) - .toList() ?? - [], + people: + (json['People'] as List?)?.map((e) => BaseItemPerson.fromJson(e as Map)).toList() ?? + [], + studios: + (json['Studios'] as List?)?.map((e) => NameGuidPair.fromJson(e as Map)).toList() ?? + [], genreItems: (json['GenreItems'] as List?) ?.map((e) => NameGuidPair.fromJson(e as Map)) .toList() ?? @@ -558,14 +412,9 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( parentLogoItemId: json['ParentLogoItemId'] as String?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], localTrailerCount: (json['LocalTrailerCount'] as num?)?.toInt(), - userData: json['UserData'] == null - ? null - : UserItemDataDto.fromJson(json['UserData'] as Map), + userData: json['UserData'] == null ? null : UserItemDataDto.fromJson(json['UserData'] as Map), recursiveItemCount: (json['RecursiveItemCount'] as num?)?.toInt(), childCount: (json['ChildCount'] as num?)?.toInt(), seriesName: json['SeriesName'] as String?, @@ -576,15 +425,9 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( status: json['Status'] as String?, airTime: json['AirTime'] as String?, airDays: dayOfWeekListFromJson(json['AirDays'] as List?), - tags: - (json['Tags'] as List?)?.map((e) => e as String).toList() ?? - [], - primaryImageAspectRatio: - (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], + primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], artistItems: (json['ArtistItems'] as List?) ?.map((e) => NameGuidPair.fromJson(e as Map)) .toList() ?? @@ -609,39 +452,28 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( partCount: (json['PartCount'] as num?)?.toInt(), mediaSourceCount: (json['MediaSourceCount'] as num?)?.toInt(), imageTags: json['ImageTags'] as Map?, - backdropImageTags: (json['BackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - screenshotImageTags: (json['ScreenshotImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + backdropImageTags: (json['BackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], + screenshotImageTags: (json['ScreenshotImageTags'] as List?)?.map((e) => e as String).toList() ?? [], parentLogoImageTag: json['ParentLogoImageTag'] as String?, parentArtItemId: json['ParentArtItemId'] as String?, parentArtImageTag: json['ParentArtImageTag'] as String?, seriesThumbImageTag: json['SeriesThumbImageTag'] as String?, imageBlurHashes: json['ImageBlurHashes'] == null ? null - : BaseItemDto$ImageBlurHashes.fromJson( - json['ImageBlurHashes'] as Map), + : BaseItemDto$ImageBlurHashes.fromJson(json['ImageBlurHashes'] as Map), seriesStudio: json['SeriesStudio'] as String?, parentThumbItemId: json['ParentThumbItemId'] as String?, parentThumbImageTag: json['ParentThumbImageTag'] as String?, parentPrimaryImageItemId: json['ParentPrimaryImageItemId'] as String?, parentPrimaryImageTag: json['ParentPrimaryImageTag'] as String?, - chapters: (json['Chapters'] as List?) - ?.map((e) => ChapterInfo.fromJson(e as Map)) - .toList() ?? - [], + chapters: + (json['Chapters'] as List?)?.map((e) => ChapterInfo.fromJson(e as Map)).toList() ?? + [], trickplay: json['Trickplay'] as Map?, locationType: locationTypeNullableFromJson(json['LocationType']), isoType: isoTypeNullableFromJson(json['IsoType']), - mediaType: - BaseItemDto.mediaTypeMediaTypeNullableFromJson(json['MediaType']), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + mediaType: BaseItemDto.mediaTypeMediaTypeNullableFromJson(json['MediaType']), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), lockedFields: metadataFieldListFromJson(json['LockedFields'] as List?), trailerCount: (json['TrailerCount'] as num?)?.toInt(), movieCount: (json['MovieCount'] as num?)?.toInt(), @@ -660,8 +492,7 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( software: json['Software'] as String?, exposureTime: (json['ExposureTime'] as num?)?.toDouble(), focalLength: (json['FocalLength'] as num?)?.toDouble(), - imageOrientation: - imageOrientationNullableFromJson(json['ImageOrientation']), + imageOrientation: imageOrientationNullableFromJson(json['ImageOrientation']), aperture: (json['Aperture'] as num?)?.toDouble(), shutterSpeed: (json['ShutterSpeed'] as num?)?.toDouble(), latitude: (json['Latitude'] as num?)?.toDouble(), @@ -671,9 +502,7 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( seriesTimerId: json['SeriesTimerId'] as String?, programId: json['ProgramId'] as String?, channelPrimaryImageTag: json['ChannelPrimaryImageTag'] as String?, - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), completionPercentage: (json['CompletionPercentage'] as num?)?.toDouble(), isRepeat: json['IsRepeat'] as bool?, episodeTitle: json['EpisodeTitle'] as String?, @@ -688,14 +517,11 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( isPremiere: json['IsPremiere'] as bool?, timerId: json['TimerId'] as String?, normalizationGain: (json['NormalizationGain'] as num?)?.toDouble(), - currentProgram: json['CurrentProgram'] == null - ? null - : BaseItemDto.fromJson( - json['CurrentProgram'] as Map), + currentProgram: + json['CurrentProgram'] == null ? null : BaseItemDto.fromJson(json['CurrentProgram'] as Map), ); -Map _$BaseItemDtoToJson(BaseItemDto instance) => - { +Map _$BaseItemDtoToJson(BaseItemDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.serverId case final value?) 'ServerId': value, @@ -703,45 +529,29 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.etag case final value?) 'Etag': value, if (instance.sourceType case final value?) 'SourceType': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateLastMediaAdded?.toIso8601String() case final value?) - 'DateLastMediaAdded': value, - if (extraTypeNullableToJson(instance.extraType) case final value?) - 'ExtraType': value, - if (instance.airsBeforeSeasonNumber case final value?) - 'AirsBeforeSeasonNumber': value, - if (instance.airsAfterSeasonNumber case final value?) - 'AirsAfterSeasonNumber': value, - if (instance.airsBeforeEpisodeNumber case final value?) - 'AirsBeforeEpisodeNumber': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateLastMediaAdded?.toIso8601String() case final value?) 'DateLastMediaAdded': value, + if (extraTypeNullableToJson(instance.extraType) case final value?) 'ExtraType': value, + if (instance.airsBeforeSeasonNumber case final value?) 'AirsBeforeSeasonNumber': value, + if (instance.airsAfterSeasonNumber case final value?) 'AirsAfterSeasonNumber': value, + if (instance.airsBeforeEpisodeNumber case final value?) 'AirsBeforeEpisodeNumber': value, if (instance.canDelete case final value?) 'CanDelete': value, if (instance.canDownload case final value?) 'CanDownload': value, if (instance.hasLyrics case final value?) 'HasLyrics': value, if (instance.hasSubtitles case final value?) 'HasSubtitles': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, - if (instance.preferredMetadataCountryCode case final value?) - 'PreferredMetadataCountryCode': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, + if (instance.preferredMetadataCountryCode case final value?) 'PreferredMetadataCountryCode': value, if (instance.container case final value?) 'Container': value, if (instance.sortName case final value?) 'SortName': value, if (instance.forcedSortName case final value?) 'ForcedSortName': value, - if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) - 'Video3DFormat': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, - if (instance.externalUrls?.map((e) => e.toJson()).toList() - case final value?) - 'ExternalUrls': value, - if (instance.mediaSources?.map((e) => e.toJson()).toList() - case final value?) - 'MediaSources': value, + if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) 'Video3DFormat': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.externalUrls?.map((e) => e.toJson()).toList() case final value?) 'ExternalUrls': value, + if (instance.mediaSources?.map((e) => e.toJson()).toList() case final value?) 'MediaSources': value, if (instance.criticRating case final value?) 'CriticRating': value, - if (instance.productionLocations case final value?) - 'ProductionLocations': value, + if (instance.productionLocations case final value?) 'ProductionLocations': value, if (instance.path case final value?) 'Path': value, - if (instance.enableMediaSourceDisplay case final value?) - 'EnableMediaSourceDisplay': value, + if (instance.enableMediaSourceDisplay case final value?) 'EnableMediaSourceDisplay': value, if (instance.officialRating case final value?) 'OfficialRating': value, if (instance.customRating case final value?) 'CustomRating': value, if (instance.channelId case final value?) 'ChannelId': value, @@ -750,11 +560,9 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.taglines case final value?) 'Taglines': value, if (instance.genres case final value?) 'Genres': value, if (instance.communityRating case final value?) 'CommunityRating': value, - if (instance.cumulativeRunTimeTicks case final value?) - 'CumulativeRunTimeTicks': value, + if (instance.cumulativeRunTimeTicks case final value?) 'CumulativeRunTimeTicks': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (playAccessNullableToJson(instance.playAccess) case final value?) - 'PlayAccess': value, + if (playAccessNullableToJson(instance.playAccess) case final value?) 'PlayAccess': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, if (instance.productionYear case final value?) 'ProductionYear': value, if (instance.isPlaceHolder case final value?) 'IsPlaceHolder': value, @@ -762,110 +570,67 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.channelNumber case final value?) 'ChannelNumber': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.indexNumberEnd case final value?) 'IndexNumberEnd': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.remoteTrailers?.map((e) => e.toJson()).toList() - case final value?) - 'RemoteTrailers': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.remoteTrailers?.map((e) => e.toJson()).toList() case final value?) 'RemoteTrailers': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.isHD case final value?) 'IsHD': value, if (instance.isFolder case final value?) 'IsFolder': value, if (instance.parentId case final value?) 'ParentId': value, - if (baseItemKindNullableToJson(instance.type) case final value?) - 'Type': value, - if (instance.people?.map((e) => e.toJson()).toList() case final value?) - 'People': value, - if (instance.studios?.map((e) => e.toJson()).toList() case final value?) - 'Studios': value, - if (instance.genreItems?.map((e) => e.toJson()).toList() - case final value?) - 'GenreItems': value, - if (instance.parentLogoItemId case final value?) - 'ParentLogoItemId': value, - if (instance.parentBackdropItemId case final value?) - 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) - 'ParentBackdropImageTags': value, - if (instance.localTrailerCount case final value?) - 'LocalTrailerCount': value, + if (baseItemKindNullableToJson(instance.type) case final value?) 'Type': value, + if (instance.people?.map((e) => e.toJson()).toList() case final value?) 'People': value, + if (instance.studios?.map((e) => e.toJson()).toList() case final value?) 'Studios': value, + if (instance.genreItems?.map((e) => e.toJson()).toList() case final value?) 'GenreItems': value, + if (instance.parentLogoItemId case final value?) 'ParentLogoItemId': value, + if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, + if (instance.localTrailerCount case final value?) 'LocalTrailerCount': value, if (instance.userData?.toJson() case final value?) 'UserData': value, - if (instance.recursiveItemCount case final value?) - 'RecursiveItemCount': value, + if (instance.recursiveItemCount case final value?) 'RecursiveItemCount': value, if (instance.childCount case final value?) 'ChildCount': value, if (instance.seriesName case final value?) 'SeriesName': value, if (instance.seriesId case final value?) 'SeriesId': value, if (instance.seasonId case final value?) 'SeasonId': value, - if (instance.specialFeatureCount case final value?) - 'SpecialFeatureCount': value, - if (instance.displayPreferencesId case final value?) - 'DisplayPreferencesId': value, + if (instance.specialFeatureCount case final value?) 'SpecialFeatureCount': value, + if (instance.displayPreferencesId case final value?) 'DisplayPreferencesId': value, if (instance.status case final value?) 'Status': value, if (instance.airTime case final value?) 'AirTime': value, 'AirDays': dayOfWeekListToJson(instance.airDays), if (instance.tags case final value?) 'Tags': value, - if (instance.primaryImageAspectRatio case final value?) - 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, if (instance.artists case final value?) 'Artists': value, - if (instance.artistItems?.map((e) => e.toJson()).toList() - case final value?) - 'ArtistItems': value, + if (instance.artistItems?.map((e) => e.toJson()).toList() case final value?) 'ArtistItems': value, if (instance.album case final value?) 'Album': value, - if (collectionTypeNullableToJson(instance.collectionType) - case final value?) - 'CollectionType': value, + if (collectionTypeNullableToJson(instance.collectionType) case final value?) 'CollectionType': value, if (instance.displayOrder case final value?) 'DisplayOrder': value, if (instance.albumId case final value?) 'AlbumId': value, - if (instance.albumPrimaryImageTag case final value?) - 'AlbumPrimaryImageTag': value, - if (instance.seriesPrimaryImageTag case final value?) - 'SeriesPrimaryImageTag': value, + if (instance.albumPrimaryImageTag case final value?) 'AlbumPrimaryImageTag': value, + if (instance.seriesPrimaryImageTag case final value?) 'SeriesPrimaryImageTag': value, if (instance.albumArtist case final value?) 'AlbumArtist': value, - if (instance.albumArtists?.map((e) => e.toJson()).toList() - case final value?) - 'AlbumArtists': value, + if (instance.albumArtists?.map((e) => e.toJson()).toList() case final value?) 'AlbumArtists': value, if (instance.seasonName case final value?) 'SeasonName': value, - if (instance.mediaStreams?.map((e) => e.toJson()).toList() - case final value?) - 'MediaStreams': value, - if (videoTypeNullableToJson(instance.videoType) case final value?) - 'VideoType': value, + if (instance.mediaStreams?.map((e) => e.toJson()).toList() case final value?) 'MediaStreams': value, + if (videoTypeNullableToJson(instance.videoType) case final value?) 'VideoType': value, if (instance.partCount case final value?) 'PartCount': value, - if (instance.mediaSourceCount case final value?) - 'MediaSourceCount': value, + if (instance.mediaSourceCount case final value?) 'MediaSourceCount': value, if (instance.imageTags case final value?) 'ImageTags': value, - if (instance.backdropImageTags case final value?) - 'BackdropImageTags': value, - if (instance.screenshotImageTags case final value?) - 'ScreenshotImageTags': value, - if (instance.parentLogoImageTag case final value?) - 'ParentLogoImageTag': value, + if (instance.backdropImageTags case final value?) 'BackdropImageTags': value, + if (instance.screenshotImageTags case final value?) 'ScreenshotImageTags': value, + if (instance.parentLogoImageTag case final value?) 'ParentLogoImageTag': value, if (instance.parentArtItemId case final value?) 'ParentArtItemId': value, - if (instance.parentArtImageTag case final value?) - 'ParentArtImageTag': value, - if (instance.seriesThumbImageTag case final value?) - 'SeriesThumbImageTag': value, - if (instance.imageBlurHashes?.toJson() case final value?) - 'ImageBlurHashes': value, + if (instance.parentArtImageTag case final value?) 'ParentArtImageTag': value, + if (instance.seriesThumbImageTag case final value?) 'SeriesThumbImageTag': value, + if (instance.imageBlurHashes?.toJson() case final value?) 'ImageBlurHashes': value, if (instance.seriesStudio case final value?) 'SeriesStudio': value, - if (instance.parentThumbItemId case final value?) - 'ParentThumbItemId': value, - if (instance.parentThumbImageTag case final value?) - 'ParentThumbImageTag': value, - if (instance.parentPrimaryImageItemId case final value?) - 'ParentPrimaryImageItemId': value, - if (instance.parentPrimaryImageTag case final value?) - 'ParentPrimaryImageTag': value, - if (instance.chapters?.map((e) => e.toJson()).toList() case final value?) - 'Chapters': value, + if (instance.parentThumbItemId case final value?) 'ParentThumbItemId': value, + if (instance.parentThumbImageTag case final value?) 'ParentThumbImageTag': value, + if (instance.parentPrimaryImageItemId case final value?) 'ParentPrimaryImageItemId': value, + if (instance.parentPrimaryImageTag case final value?) 'ParentPrimaryImageTag': value, + if (instance.chapters?.map((e) => e.toJson()).toList() case final value?) 'Chapters': value, if (instance.trickplay case final value?) 'Trickplay': value, - if (locationTypeNullableToJson(instance.locationType) case final value?) - 'LocationType': value, - if (isoTypeNullableToJson(instance.isoType) case final value?) - 'IsoType': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) - 'MediaType': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (locationTypeNullableToJson(instance.locationType) case final value?) 'LocationType': value, + if (isoTypeNullableToJson(instance.isoType) case final value?) 'IsoType': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, 'LockedFields': metadataFieldListToJson(instance.lockedFields), if (instance.trailerCount case final value?) 'TrailerCount': value, if (instance.movieCount case final value?) 'MovieCount': value, @@ -884,9 +649,7 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.software case final value?) 'Software': value, if (instance.exposureTime case final value?) 'ExposureTime': value, if (instance.focalLength case final value?) 'FocalLength': value, - if (imageOrientationNullableToJson(instance.imageOrientation) - case final value?) - 'ImageOrientation': value, + if (imageOrientationNullableToJson(instance.imageOrientation) case final value?) 'ImageOrientation': value, if (instance.aperture case final value?) 'Aperture': value, if (instance.shutterSpeed case final value?) 'ShutterSpeed': value, if (instance.latitude case final value?) 'Latitude': value, @@ -895,18 +658,13 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.isoSpeedRating case final value?) 'IsoSpeedRating': value, if (instance.seriesTimerId case final value?) 'SeriesTimerId': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.channelPrimaryImageTag case final value?) - 'ChannelPrimaryImageTag': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.completionPercentage case final value?) - 'CompletionPercentage': value, + if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.completionPercentage case final value?) 'CompletionPercentage': value, if (instance.isRepeat case final value?) 'IsRepeat': value, if (instance.episodeTitle case final value?) 'EpisodeTitle': value, - if (channelTypeNullableToJson(instance.channelType) case final value?) - 'ChannelType': value, - if (programAudioNullableToJson(instance.audio) case final value?) - 'Audio': value, + if (channelTypeNullableToJson(instance.channelType) case final value?) 'ChannelType': value, + if (programAudioNullableToJson(instance.audio) case final value?) 'Audio': value, if (instance.isMovie case final value?) 'IsMovie': value, if (instance.isSports case final value?) 'IsSports': value, if (instance.isSeries case final value?) 'IsSeries': value, @@ -915,35 +673,24 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.isKids case final value?) 'IsKids': value, if (instance.isPremiere case final value?) 'IsPremiere': value, if (instance.timerId case final value?) 'TimerId': value, - if (instance.normalizationGain case final value?) - 'NormalizationGain': value, - if (instance.currentProgram?.toJson() case final value?) - 'CurrentProgram': value, + if (instance.normalizationGain case final value?) 'NormalizationGain': value, + if (instance.currentProgram?.toJson() case final value?) 'CurrentProgram': value, }; -BaseItemDtoQueryResult _$BaseItemDtoQueryResultFromJson( - Map json) => - BaseItemDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], +BaseItemDtoQueryResult _$BaseItemDtoQueryResultFromJson(Map json) => BaseItemDtoQueryResult( + items: + (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$BaseItemDtoQueryResultToJson( - BaseItemDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$BaseItemDtoQueryResultToJson(BaseItemDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -BaseItemPerson _$BaseItemPersonFromJson(Map json) => - BaseItemPerson( +BaseItemPerson _$BaseItemPersonFromJson(Map json) => BaseItemPerson( name: json['Name'] as String?, id: json['Id'] as String?, role: json['Role'] as String?, @@ -951,29 +698,21 @@ BaseItemPerson _$BaseItemPersonFromJson(Map json) => primaryImageTag: json['PrimaryImageTag'] as String?, imageBlurHashes: json['ImageBlurHashes'] == null ? null - : BaseItemPerson$ImageBlurHashes.fromJson( - json['ImageBlurHashes'] as Map), + : BaseItemPerson$ImageBlurHashes.fromJson(json['ImageBlurHashes'] as Map), ); -Map _$BaseItemPersonToJson(BaseItemPerson instance) => - { +Map _$BaseItemPersonToJson(BaseItemPerson instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, if (instance.role case final value?) 'Role': value, - if (personKindNullableToJson(instance.type) case final value?) - 'Type': value, + if (personKindNullableToJson(instance.type) case final value?) 'Type': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, - if (instance.imageBlurHashes?.toJson() case final value?) - 'ImageBlurHashes': value, + if (instance.imageBlurHashes?.toJson() case final value?) 'ImageBlurHashes': value, }; -BasePluginConfiguration _$BasePluginConfigurationFromJson( - Map json) => - BasePluginConfiguration(); +BasePluginConfiguration _$BasePluginConfigurationFromJson(Map json) => BasePluginConfiguration(); -Map _$BasePluginConfigurationToJson( - BasePluginConfiguration instance) => - {}; +Map _$BasePluginConfigurationToJson(BasePluginConfiguration instance) => {}; BookInfo _$BookInfoFromJson(Map json) => BookInfo( name: json['Name'] as String?, @@ -985,9 +724,7 @@ BookInfo _$BookInfoFromJson(Map json) => BookInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, seriesName: json['SeriesName'] as String?, ); @@ -996,41 +733,29 @@ Map _$BookInfoToJson(BookInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.seriesName case final value?) 'SeriesName': value, }; -BookInfoRemoteSearchQuery _$BookInfoRemoteSearchQueryFromJson( - Map json) => - BookInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : BookInfo.fromJson(json['SearchInfo'] as Map), +BookInfoRemoteSearchQuery _$BookInfoRemoteSearchQueryFromJson(Map json) => BookInfoRemoteSearchQuery( + searchInfo: json['SearchInfo'] == null ? null : BookInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$BookInfoRemoteSearchQueryToJson( - BookInfoRemoteSearchQuery instance) => - { +Map _$BookInfoRemoteSearchQueryToJson(BookInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; BoxSetInfo _$BoxSetInfoFromJson(Map json) => BoxSetInfo( @@ -1043,144 +768,108 @@ BoxSetInfo _$BoxSetInfoFromJson(Map json) => BoxSetInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$BoxSetInfoToJson(BoxSetInfo instance) => - { +Map _$BoxSetInfoToJson(BoxSetInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -BoxSetInfoRemoteSearchQuery _$BoxSetInfoRemoteSearchQueryFromJson( - Map json) => +BoxSetInfoRemoteSearchQuery _$BoxSetInfoRemoteSearchQueryFromJson(Map json) => BoxSetInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : BoxSetInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : BoxSetInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$BoxSetInfoRemoteSearchQueryToJson( - BoxSetInfoRemoteSearchQuery instance) => - { +Map _$BoxSetInfoRemoteSearchQueryToJson(BoxSetInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -BrandingOptionsDto _$BrandingOptionsDtoFromJson(Map json) => - BrandingOptionsDto( +BrandingOptionsDto _$BrandingOptionsDtoFromJson(Map json) => BrandingOptionsDto( loginDisclaimer: json['LoginDisclaimer'] as String?, customCss: json['CustomCss'] as String?, splashscreenEnabled: json['SplashscreenEnabled'] as bool?, ); -Map _$BrandingOptionsDtoToJson(BrandingOptionsDto instance) => - { +Map _$BrandingOptionsDtoToJson(BrandingOptionsDto instance) => { if (instance.loginDisclaimer case final value?) 'LoginDisclaimer': value, if (instance.customCss case final value?) 'CustomCss': value, - if (instance.splashscreenEnabled case final value?) - 'SplashscreenEnabled': value, + if (instance.splashscreenEnabled case final value?) 'SplashscreenEnabled': value, }; -BufferRequestDto _$BufferRequestDtoFromJson(Map json) => - BufferRequestDto( - when: - json['When'] == null ? null : DateTime.parse(json['When'] as String), +BufferRequestDto _$BufferRequestDtoFromJson(Map json) => BufferRequestDto( + when: json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), isPlaying: json['IsPlaying'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$BufferRequestDtoToJson(BufferRequestDto instance) => - { +Map _$BufferRequestDtoToJson(BufferRequestDto instance) => { if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -CastReceiverApplication _$CastReceiverApplicationFromJson( - Map json) => - CastReceiverApplication( +CastReceiverApplication _$CastReceiverApplicationFromJson(Map json) => CastReceiverApplication( id: json['Id'] as String?, name: json['Name'] as String?, ); -Map _$CastReceiverApplicationToJson( - CastReceiverApplication instance) => - { +Map _$CastReceiverApplicationToJson(CastReceiverApplication instance) => { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, }; -ChannelFeatures _$ChannelFeaturesFromJson(Map json) => - ChannelFeatures( +ChannelFeatures _$ChannelFeaturesFromJson(Map json) => ChannelFeatures( name: json['Name'] as String?, id: json['Id'] as String?, canSearch: json['CanSearch'] as bool?, mediaTypes: channelMediaTypeListFromJson(json['MediaTypes'] as List?), - contentTypes: - channelMediaContentTypeListFromJson(json['ContentTypes'] as List?), + contentTypes: channelMediaContentTypeListFromJson(json['ContentTypes'] as List?), maxPageSize: (json['MaxPageSize'] as num?)?.toInt(), autoRefreshLevels: (json['AutoRefreshLevels'] as num?)?.toInt(), - defaultSortFields: - channelItemSortFieldListFromJson(json['DefaultSortFields'] as List?), + defaultSortFields: channelItemSortFieldListFromJson(json['DefaultSortFields'] as List?), supportsSortOrderToggle: json['SupportsSortOrderToggle'] as bool?, supportsLatestMedia: json['SupportsLatestMedia'] as bool?, canFilter: json['CanFilter'] as bool?, supportsContentDownloading: json['SupportsContentDownloading'] as bool?, ); -Map _$ChannelFeaturesToJson(ChannelFeatures instance) => - { +Map _$ChannelFeaturesToJson(ChannelFeatures instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, if (instance.canSearch case final value?) 'CanSearch': value, 'MediaTypes': channelMediaTypeListToJson(instance.mediaTypes), 'ContentTypes': channelMediaContentTypeListToJson(instance.contentTypes), if (instance.maxPageSize case final value?) 'MaxPageSize': value, - if (instance.autoRefreshLevels case final value?) - 'AutoRefreshLevels': value, - 'DefaultSortFields': - channelItemSortFieldListToJson(instance.defaultSortFields), - if (instance.supportsSortOrderToggle case final value?) - 'SupportsSortOrderToggle': value, - if (instance.supportsLatestMedia case final value?) - 'SupportsLatestMedia': value, + if (instance.autoRefreshLevels case final value?) 'AutoRefreshLevels': value, + 'DefaultSortFields': channelItemSortFieldListToJson(instance.defaultSortFields), + if (instance.supportsSortOrderToggle case final value?) 'SupportsSortOrderToggle': value, + if (instance.supportsLatestMedia case final value?) 'SupportsLatestMedia': value, if (instance.canFilter case final value?) 'CanFilter': value, - if (instance.supportsContentDownloading case final value?) - 'SupportsContentDownloading': value, + if (instance.supportsContentDownloading case final value?) 'SupportsContentDownloading': value, }; -ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson( - Map json) => - ChannelMappingOptionsDto( +ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson(Map json) => ChannelMappingOptionsDto( tunerChannels: (json['TunerChannels'] as List?) - ?.map((e) => - TunerChannelMapping.fromJson(e as Map)) + ?.map((e) => TunerChannelMapping.fromJson(e as Map)) .toList() ?? [], providerChannels: (json['ProviderChannels'] as List?) @@ -1194,17 +883,10 @@ ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson( providerName: json['ProviderName'] as String?, ); -Map _$ChannelMappingOptionsDtoToJson( - ChannelMappingOptionsDto instance) => - { - if (instance.tunerChannels?.map((e) => e.toJson()).toList() - case final value?) - 'TunerChannels': value, - if (instance.providerChannels?.map((e) => e.toJson()).toList() - case final value?) - 'ProviderChannels': value, - if (instance.mappings?.map((e) => e.toJson()).toList() case final value?) - 'Mappings': value, +Map _$ChannelMappingOptionsDtoToJson(ChannelMappingOptionsDto instance) => { + if (instance.tunerChannels?.map((e) => e.toJson()).toList() case final value?) 'TunerChannels': value, + if (instance.providerChannels?.map((e) => e.toJson()).toList() case final value?) 'ProviderChannels': value, + if (instance.mappings?.map((e) => e.toJson()).toList() case final value?) 'Mappings': value, if (instance.providerName case final value?) 'ProviderName': value, }; @@ -1212,66 +894,45 @@ ChapterInfo _$ChapterInfoFromJson(Map json) => ChapterInfo( startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), name: json['Name'] as String?, imagePath: json['ImagePath'] as String?, - imageDateModified: json['ImageDateModified'] == null - ? null - : DateTime.parse(json['ImageDateModified'] as String), + imageDateModified: json['ImageDateModified'] == null ? null : DateTime.parse(json['ImageDateModified'] as String), imageTag: json['ImageTag'] as String?, ); -Map _$ChapterInfoToJson(ChapterInfo instance) => - { - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, +Map _$ChapterInfoToJson(ChapterInfo instance) => { + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, if (instance.name case final value?) 'Name': value, if (instance.imagePath case final value?) 'ImagePath': value, - if (instance.imageDateModified?.toIso8601String() case final value?) - 'ImageDateModified': value, + if (instance.imageDateModified?.toIso8601String() case final value?) 'ImageDateModified': value, if (instance.imageTag case final value?) 'ImageTag': value, }; -ClientCapabilitiesDto _$ClientCapabilitiesDtoFromJson( - Map json) => - ClientCapabilitiesDto( - playableMediaTypes: - mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), - supportedCommands: - generalCommandTypeListFromJson(json['SupportedCommands'] as List?), +ClientCapabilitiesDto _$ClientCapabilitiesDtoFromJson(Map json) => ClientCapabilitiesDto( + playableMediaTypes: mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), + supportedCommands: generalCommandTypeListFromJson(json['SupportedCommands'] as List?), supportsMediaControl: json['SupportsMediaControl'] as bool?, - supportsPersistentIdentifier: - json['SupportsPersistentIdentifier'] as bool?, - deviceProfile: json['DeviceProfile'] == null - ? null - : DeviceProfile.fromJson( - json['DeviceProfile'] as Map), + supportsPersistentIdentifier: json['SupportsPersistentIdentifier'] as bool?, + deviceProfile: + json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), appStoreUrl: json['AppStoreUrl'] as String?, iconUrl: json['IconUrl'] as String?, ); -Map _$ClientCapabilitiesDtoToJson( - ClientCapabilitiesDto instance) => - { +Map _$ClientCapabilitiesDtoToJson(ClientCapabilitiesDto instance) => { 'PlayableMediaTypes': mediaTypeListToJson(instance.playableMediaTypes), - 'SupportedCommands': - generalCommandTypeListToJson(instance.supportedCommands), - if (instance.supportsMediaControl case final value?) - 'SupportsMediaControl': value, - if (instance.supportsPersistentIdentifier case final value?) - 'SupportsPersistentIdentifier': value, - if (instance.deviceProfile?.toJson() case final value?) - 'DeviceProfile': value, + 'SupportedCommands': generalCommandTypeListToJson(instance.supportedCommands), + if (instance.supportsMediaControl case final value?) 'SupportsMediaControl': value, + if (instance.supportsPersistentIdentifier case final value?) 'SupportsPersistentIdentifier': value, + if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, if (instance.appStoreUrl case final value?) 'AppStoreUrl': value, if (instance.iconUrl case final value?) 'IconUrl': value, }; -ClientLogDocumentResponseDto _$ClientLogDocumentResponseDtoFromJson( - Map json) => +ClientLogDocumentResponseDto _$ClientLogDocumentResponseDtoFromJson(Map json) => ClientLogDocumentResponseDto( fileName: json['FileName'] as String?, ); -Map _$ClientLogDocumentResponseDtoToJson( - ClientLogDocumentResponseDto instance) => - { +Map _$ClientLogDocumentResponseDtoToJson(ClientLogDocumentResponseDto instance) => { if (instance.fileName case final value?) 'FileName': value, }; @@ -1290,61 +951,34 @@ CodecProfile _$CodecProfileFromJson(Map json) => CodecProfile( subContainer: json['SubContainer'] as String?, ); -Map _$CodecProfileToJson(CodecProfile instance) => - { - if (codecTypeNullableToJson(instance.type) case final value?) - 'Type': value, - if (instance.conditions?.map((e) => e.toJson()).toList() - case final value?) - 'Conditions': value, - if (instance.applyConditions?.map((e) => e.toJson()).toList() - case final value?) - 'ApplyConditions': value, +Map _$CodecProfileToJson(CodecProfile instance) => { + if (codecTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, + if (instance.applyConditions?.map((e) => e.toJson()).toList() case final value?) 'ApplyConditions': value, if (instance.codec case final value?) 'Codec': value, if (instance.container case final value?) 'Container': value, if (instance.subContainer case final value?) 'SubContainer': value, }; -CollectionCreationResult _$CollectionCreationResultFromJson( - Map json) => - CollectionCreationResult( +CollectionCreationResult _$CollectionCreationResultFromJson(Map json) => CollectionCreationResult( id: json['Id'] as String?, ); -Map _$CollectionCreationResultToJson( - CollectionCreationResult instance) => - { +Map _$CollectionCreationResultToJson(CollectionCreationResult instance) => { if (instance.id case final value?) 'Id': value, }; -ConfigImageTypes _$ConfigImageTypesFromJson(Map json) => - ConfigImageTypes( - backdropSizes: (json['BackdropSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +ConfigImageTypes _$ConfigImageTypesFromJson(Map json) => ConfigImageTypes( + backdropSizes: (json['BackdropSizes'] as List?)?.map((e) => e as String).toList() ?? [], baseUrl: json['BaseUrl'] as String?, - logoSizes: (json['LogoSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - posterSizes: (json['PosterSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - profileSizes: (json['ProfileSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + logoSizes: (json['LogoSizes'] as List?)?.map((e) => e as String).toList() ?? [], + posterSizes: (json['PosterSizes'] as List?)?.map((e) => e as String).toList() ?? [], + profileSizes: (json['ProfileSizes'] as List?)?.map((e) => e as String).toList() ?? [], secureBaseUrl: json['SecureBaseUrl'] as String?, - stillSizes: (json['StillSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + stillSizes: (json['StillSizes'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => - { +Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => { if (instance.backdropSizes case final value?) 'BackdropSizes': value, if (instance.baseUrl case final value?) 'BaseUrl': value, if (instance.logoSizes case final value?) 'LogoSizes': value, @@ -1354,9 +988,7 @@ Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => if (instance.stillSizes case final value?) 'StillSizes': value, }; -ConfigurationPageInfo _$ConfigurationPageInfoFromJson( - Map json) => - ConfigurationPageInfo( +ConfigurationPageInfo _$ConfigurationPageInfoFromJson(Map json) => ConfigurationPageInfo( name: json['Name'] as String?, enableInMainMenu: json['EnableInMainMenu'] as bool?, menuSection: json['MenuSection'] as String?, @@ -1365,20 +997,16 @@ ConfigurationPageInfo _$ConfigurationPageInfoFromJson( pluginId: json['PluginId'] as String?, ); -Map _$ConfigurationPageInfoToJson( - ConfigurationPageInfo instance) => - { +Map _$ConfigurationPageInfoToJson(ConfigurationPageInfo instance) => { if (instance.name case final value?) 'Name': value, - if (instance.enableInMainMenu case final value?) - 'EnableInMainMenu': value, + if (instance.enableInMainMenu case final value?) 'EnableInMainMenu': value, if (instance.menuSection case final value?) 'MenuSection': value, if (instance.menuIcon case final value?) 'MenuIcon': value, if (instance.displayName case final value?) 'DisplayName': value, if (instance.pluginId case final value?) 'PluginId': value, }; -ContainerProfile _$ContainerProfileFromJson(Map json) => - ContainerProfile( +ContainerProfile _$ContainerProfileFromJson(Map json) => ContainerProfile( type: dlnaProfileTypeNullableFromJson(json['Type']), conditions: (json['Conditions'] as List?) ?.map((e) => ProfileCondition.fromJson(e as Map)) @@ -1388,13 +1016,9 @@ ContainerProfile _$ContainerProfileFromJson(Map json) => subContainer: json['SubContainer'] as String?, ); -Map _$ContainerProfileToJson(ContainerProfile instance) => - { - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) - 'Type': value, - if (instance.conditions?.map((e) => e.toJson()).toList() - case final value?) - 'Conditions': value, +Map _$ContainerProfileToJson(ContainerProfile instance) => { + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, if (instance.container case final value?) 'Container': value, if (instance.subContainer case final value?) 'SubContainer': value, }; @@ -1406,51 +1030,40 @@ CountryInfo _$CountryInfoFromJson(Map json) => CountryInfo( threeLetterISORegionName: json['ThreeLetterISORegionName'] as String?, ); -Map _$CountryInfoToJson(CountryInfo instance) => - { +Map _$CountryInfoToJson(CountryInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.displayName case final value?) 'DisplayName': value, - if (instance.twoLetterISORegionName case final value?) - 'TwoLetterISORegionName': value, - if (instance.threeLetterISORegionName case final value?) - 'ThreeLetterISORegionName': value, + if (instance.twoLetterISORegionName case final value?) 'TwoLetterISORegionName': value, + if (instance.threeLetterISORegionName case final value?) 'ThreeLetterISORegionName': value, }; -CreatePlaylistDto _$CreatePlaylistDtoFromJson(Map json) => - CreatePlaylistDto( +CreatePlaylistDto _$CreatePlaylistDtoFromJson(Map json) => CreatePlaylistDto( name: json['Name'] as String?, - ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? - [], + ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? [], userId: json['UserId'] as String?, mediaType: mediaTypeNullableFromJson(json['MediaType']), users: (json['Users'] as List?) - ?.map((e) => - PlaylistUserPermissions.fromJson(e as Map)) + ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], isPublic: json['IsPublic'] as bool?, ); -Map _$CreatePlaylistDtoToJson(CreatePlaylistDto instance) => - { +Map _$CreatePlaylistDtoToJson(CreatePlaylistDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.ids case final value?) 'Ids': value, if (instance.userId case final value?) 'UserId': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) - 'MediaType': value, - if (instance.users?.map((e) => e.toJson()).toList() case final value?) - 'Users': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, + if (instance.users?.map((e) => e.toJson()).toList() case final value?) 'Users': value, if (instance.isPublic case final value?) 'IsPublic': value, }; -CreateUserByName _$CreateUserByNameFromJson(Map json) => - CreateUserByName( +CreateUserByName _$CreateUserByNameFromJson(Map json) => CreateUserByName( name: json['Name'] as String, password: json['Password'] as String?, ); -Map _$CreateUserByNameToJson(CreateUserByName instance) => - { +Map _$CreateUserByNameToJson(CreateUserByName instance) => { 'Name': instance.name, if (instance.password case final value?) 'Password': value, }; @@ -1461,112 +1074,81 @@ CultureDto _$CultureDtoFromJson(Map json) => CultureDto( twoLetterISOLanguageName: json['TwoLetterISOLanguageName'] as String?, threeLetterISOLanguageName: json['ThreeLetterISOLanguageName'] as String?, threeLetterISOLanguageNames: - (json['ThreeLetterISOLanguageNames'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ThreeLetterISOLanguageNames'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$CultureDtoToJson(CultureDto instance) => - { +Map _$CultureDtoToJson(CultureDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.displayName case final value?) 'DisplayName': value, - if (instance.twoLetterISOLanguageName case final value?) - 'TwoLetterISOLanguageName': value, - if (instance.threeLetterISOLanguageName case final value?) - 'ThreeLetterISOLanguageName': value, - if (instance.threeLetterISOLanguageNames case final value?) - 'ThreeLetterISOLanguageNames': value, + if (instance.twoLetterISOLanguageName case final value?) 'TwoLetterISOLanguageName': value, + if (instance.threeLetterISOLanguageName case final value?) 'ThreeLetterISOLanguageName': value, + if (instance.threeLetterISOLanguageNames case final value?) 'ThreeLetterISOLanguageNames': value, }; -CustomDatabaseOption _$CustomDatabaseOptionFromJson( - Map json) => - CustomDatabaseOption( +CustomDatabaseOption _$CustomDatabaseOptionFromJson(Map json) => CustomDatabaseOption( key: json['Key'] as String?, $Value: json['Value'] as String?, ); -Map _$CustomDatabaseOptionToJson( - CustomDatabaseOption instance) => - { +Map _$CustomDatabaseOptionToJson(CustomDatabaseOption instance) => { if (instance.key case final value?) 'Key': value, if (instance.$Value case final value?) 'Value': value, }; -CustomDatabaseOptions _$CustomDatabaseOptionsFromJson( - Map json) => - CustomDatabaseOptions( +CustomDatabaseOptions _$CustomDatabaseOptionsFromJson(Map json) => CustomDatabaseOptions( pluginName: json['PluginName'] as String?, pluginAssembly: json['PluginAssembly'] as String?, connectionString: json['ConnectionString'] as String?, options: (json['Options'] as List?) - ?.map((e) => - CustomDatabaseOption.fromJson(e as Map)) + ?.map((e) => CustomDatabaseOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$CustomDatabaseOptionsToJson( - CustomDatabaseOptions instance) => - { +Map _$CustomDatabaseOptionsToJson(CustomDatabaseOptions instance) => { if (instance.pluginName case final value?) 'PluginName': value, if (instance.pluginAssembly case final value?) 'PluginAssembly': value, - if (instance.connectionString case final value?) - 'ConnectionString': value, - if (instance.options?.map((e) => e.toJson()).toList() case final value?) - 'Options': value, + if (instance.connectionString case final value?) 'ConnectionString': value, + if (instance.options?.map((e) => e.toJson()).toList() case final value?) 'Options': value, }; -CustomQueryData _$CustomQueryDataFromJson(Map json) => - CustomQueryData( +CustomQueryData _$CustomQueryDataFromJson(Map json) => CustomQueryData( customQueryString: json['CustomQueryString'] as String?, replaceUserId: json['ReplaceUserId'] as bool?, ); -Map _$CustomQueryDataToJson(CustomQueryData instance) => - { - if (instance.customQueryString case final value?) - 'CustomQueryString': value, +Map _$CustomQueryDataToJson(CustomQueryData instance) => { + if (instance.customQueryString case final value?) 'CustomQueryString': value, if (instance.replaceUserId case final value?) 'ReplaceUserId': value, }; -DatabaseConfigurationOptions _$DatabaseConfigurationOptionsFromJson( - Map json) => +DatabaseConfigurationOptions _$DatabaseConfigurationOptionsFromJson(Map json) => DatabaseConfigurationOptions( databaseType: json['DatabaseType'] as String?, customProviderOptions: json['CustomProviderOptions'] == null ? null - : CustomDatabaseOptions.fromJson( - json['CustomProviderOptions'] as Map), - lockingBehavior: - databaseLockingBehaviorTypesNullableFromJson(json['LockingBehavior']), + : CustomDatabaseOptions.fromJson(json['CustomProviderOptions'] as Map), + lockingBehavior: databaseLockingBehaviorTypesNullableFromJson(json['LockingBehavior']), ); -Map _$DatabaseConfigurationOptionsToJson( - DatabaseConfigurationOptions instance) => - { +Map _$DatabaseConfigurationOptionsToJson(DatabaseConfigurationOptions instance) => { if (instance.databaseType case final value?) 'DatabaseType': value, - if (instance.customProviderOptions?.toJson() case final value?) - 'CustomProviderOptions': value, - if (databaseLockingBehaviorTypesNullableToJson(instance.lockingBehavior) - case final value?) + if (instance.customProviderOptions?.toJson() case final value?) 'CustomProviderOptions': value, + if (databaseLockingBehaviorTypesNullableToJson(instance.lockingBehavior) case final value?) 'LockingBehavior': value, }; -DefaultDirectoryBrowserInfoDto _$DefaultDirectoryBrowserInfoDtoFromJson( - Map json) => +DefaultDirectoryBrowserInfoDto _$DefaultDirectoryBrowserInfoDtoFromJson(Map json) => DefaultDirectoryBrowserInfoDto( path: json['Path'] as String?, ); -Map _$DefaultDirectoryBrowserInfoDtoToJson( - DefaultDirectoryBrowserInfoDto instance) => +Map _$DefaultDirectoryBrowserInfoDtoToJson(DefaultDirectoryBrowserInfoDto instance) => { if (instance.path case final value?) 'Path': value, }; -DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => - DeviceInfoDto( +DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => DeviceInfoDto( name: json['Name'] as String?, customName: json['CustomName'] as String?, accessToken: json['AccessToken'] as String?, @@ -1575,18 +1157,14 @@ DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => appName: json['AppName'] as String?, appVersion: json['AppVersion'] as String?, lastUserId: json['LastUserId'] as String?, - dateLastActivity: json['DateLastActivity'] == null - ? null - : DateTime.parse(json['DateLastActivity'] as String), + dateLastActivity: json['DateLastActivity'] == null ? null : DateTime.parse(json['DateLastActivity'] as String), capabilities: json['Capabilities'] == null ? null - : ClientCapabilitiesDto.fromJson( - json['Capabilities'] as Map), + : ClientCapabilitiesDto.fromJson(json['Capabilities'] as Map), iconUrl: json['IconUrl'] as String?, ); -Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => - { +Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.customName case final value?) 'CustomName': value, if (instance.accessToken case final value?) 'AccessToken': value, @@ -1595,65 +1173,50 @@ Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => if (instance.appName case final value?) 'AppName': value, if (instance.appVersion case final value?) 'AppVersion': value, if (instance.lastUserId case final value?) 'LastUserId': value, - if (instance.dateLastActivity?.toIso8601String() case final value?) - 'DateLastActivity': value, - if (instance.capabilities?.toJson() case final value?) - 'Capabilities': value, + if (instance.dateLastActivity?.toIso8601String() case final value?) 'DateLastActivity': value, + if (instance.capabilities?.toJson() case final value?) 'Capabilities': value, if (instance.iconUrl case final value?) 'IconUrl': value, }; -DeviceInfoDtoQueryResult _$DeviceInfoDtoQueryResultFromJson( - Map json) => - DeviceInfoDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => DeviceInfoDto.fromJson(e as Map)) - .toList() ?? - [], +DeviceInfoDtoQueryResult _$DeviceInfoDtoQueryResultFromJson(Map json) => DeviceInfoDtoQueryResult( + items: + (json['Items'] as List?)?.map((e) => DeviceInfoDto.fromJson(e as Map)).toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$DeviceInfoDtoQueryResultToJson( - DeviceInfoDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$DeviceInfoDtoQueryResultToJson(DeviceInfoDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -DeviceOptionsDto _$DeviceOptionsDtoFromJson(Map json) => - DeviceOptionsDto( +DeviceOptionsDto _$DeviceOptionsDtoFromJson(Map json) => DeviceOptionsDto( id: (json['Id'] as num?)?.toInt(), deviceId: json['DeviceId'] as String?, customName: json['CustomName'] as String?, ); -Map _$DeviceOptionsDtoToJson(DeviceOptionsDto instance) => - { +Map _$DeviceOptionsDtoToJson(DeviceOptionsDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.deviceId case final value?) 'DeviceId': value, if (instance.customName case final value?) 'CustomName': value, }; -DeviceProfile _$DeviceProfileFromJson(Map json) => - DeviceProfile( +DeviceProfile _$DeviceProfileFromJson(Map json) => DeviceProfile( name: json['Name'] as String?, id: json['Id'] as String?, maxStreamingBitrate: (json['MaxStreamingBitrate'] as num?)?.toInt(), maxStaticBitrate: (json['MaxStaticBitrate'] as num?)?.toInt(), - musicStreamingTranscodingBitrate: - (json['MusicStreamingTranscodingBitrate'] as num?)?.toInt(), + musicStreamingTranscodingBitrate: (json['MusicStreamingTranscodingBitrate'] as num?)?.toInt(), maxStaticMusicBitrate: (json['MaxStaticMusicBitrate'] as num?)?.toInt(), directPlayProfiles: (json['DirectPlayProfiles'] as List?) - ?.map( - (e) => DirectPlayProfile.fromJson(e as Map)) + ?.map((e) => DirectPlayProfile.fromJson(e as Map)) .toList() ?? [], transcodingProfiles: (json['TranscodingProfiles'] as List?) - ?.map( - (e) => TranscodingProfile.fromJson(e as Map)) + ?.map((e) => TranscodingProfile.fromJson(e as Map)) .toList() ?? [], containerProfiles: (json['ContainerProfiles'] as List?) @@ -1670,55 +1233,35 @@ DeviceProfile _$DeviceProfileFromJson(Map json) => [], ); -Map _$DeviceProfileToJson(DeviceProfile instance) => - { +Map _$DeviceProfileToJson(DeviceProfile instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, - if (instance.maxStreamingBitrate case final value?) - 'MaxStreamingBitrate': value, - if (instance.maxStaticBitrate case final value?) - 'MaxStaticBitrate': value, - if (instance.musicStreamingTranscodingBitrate case final value?) - 'MusicStreamingTranscodingBitrate': value, - if (instance.maxStaticMusicBitrate case final value?) - 'MaxStaticMusicBitrate': value, - if (instance.directPlayProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'DirectPlayProfiles': value, - if (instance.transcodingProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'TranscodingProfiles': value, - if (instance.containerProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'ContainerProfiles': value, - if (instance.codecProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'CodecProfiles': value, - if (instance.subtitleProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'SubtitleProfiles': value, - }; - -DirectPlayProfile _$DirectPlayProfileFromJson(Map json) => - DirectPlayProfile( + if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, + if (instance.maxStaticBitrate case final value?) 'MaxStaticBitrate': value, + if (instance.musicStreamingTranscodingBitrate case final value?) 'MusicStreamingTranscodingBitrate': value, + if (instance.maxStaticMusicBitrate case final value?) 'MaxStaticMusicBitrate': value, + if (instance.directPlayProfiles?.map((e) => e.toJson()).toList() case final value?) 'DirectPlayProfiles': value, + if (instance.transcodingProfiles?.map((e) => e.toJson()).toList() case final value?) 'TranscodingProfiles': value, + if (instance.containerProfiles?.map((e) => e.toJson()).toList() case final value?) 'ContainerProfiles': value, + if (instance.codecProfiles?.map((e) => e.toJson()).toList() case final value?) 'CodecProfiles': value, + if (instance.subtitleProfiles?.map((e) => e.toJson()).toList() case final value?) 'SubtitleProfiles': value, + }; + +DirectPlayProfile _$DirectPlayProfileFromJson(Map json) => DirectPlayProfile( container: json['Container'] as String?, audioCodec: json['AudioCodec'] as String?, videoCodec: json['VideoCodec'] as String?, type: dlnaProfileTypeNullableFromJson(json['Type']), ); -Map _$DirectPlayProfileToJson(DirectPlayProfile instance) => - { +Map _$DirectPlayProfileToJson(DirectPlayProfile instance) => { if (instance.container case final value?) 'Container': value, if (instance.audioCodec case final value?) 'AudioCodec': value, if (instance.videoCodec case final value?) 'VideoCodec': value, - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -DisplayPreferencesDto _$DisplayPreferencesDtoFromJson( - Map json) => - DisplayPreferencesDto( +DisplayPreferencesDto _$DisplayPreferencesDtoFromJson(Map json) => DisplayPreferencesDto( id: json['Id'] as String?, viewType: json['ViewType'] as String?, sortBy: json['SortBy'] as String?, @@ -1735,200 +1278,129 @@ DisplayPreferencesDto _$DisplayPreferencesDtoFromJson( $Client: json['Client'] as String?, ); -Map _$DisplayPreferencesDtoToJson( - DisplayPreferencesDto instance) => - { +Map _$DisplayPreferencesDtoToJson(DisplayPreferencesDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.viewType case final value?) 'ViewType': value, if (instance.sortBy case final value?) 'SortBy': value, if (instance.indexBy case final value?) 'IndexBy': value, - if (instance.rememberIndexing case final value?) - 'RememberIndexing': value, - if (instance.primaryImageHeight case final value?) - 'PrimaryImageHeight': value, - if (instance.primaryImageWidth case final value?) - 'PrimaryImageWidth': value, + if (instance.rememberIndexing case final value?) 'RememberIndexing': value, + if (instance.primaryImageHeight case final value?) 'PrimaryImageHeight': value, + if (instance.primaryImageWidth case final value?) 'PrimaryImageWidth': value, if (instance.customPrefs case final value?) 'CustomPrefs': value, - if (scrollDirectionNullableToJson(instance.scrollDirection) - case final value?) - 'ScrollDirection': value, + if (scrollDirectionNullableToJson(instance.scrollDirection) case final value?) 'ScrollDirection': value, if (instance.showBackdrop case final value?) 'ShowBackdrop': value, if (instance.rememberSorting case final value?) 'RememberSorting': value, - if (sortOrderNullableToJson(instance.sortOrder) case final value?) - 'SortOrder': value, + if (sortOrderNullableToJson(instance.sortOrder) case final value?) 'SortOrder': value, if (instance.showSidebar case final value?) 'ShowSidebar': value, if (instance.$Client case final value?) 'Client': value, }; -EncodingOptions _$EncodingOptionsFromJson(Map json) => - EncodingOptions( +EncodingOptions _$EncodingOptionsFromJson(Map json) => EncodingOptions( encodingThreadCount: (json['EncodingThreadCount'] as num?)?.toInt(), transcodingTempPath: json['TranscodingTempPath'] as String?, fallbackFontPath: json['FallbackFontPath'] as String?, enableFallbackFont: json['EnableFallbackFont'] as bool?, enableAudioVbr: json['EnableAudioVbr'] as bool?, downMixAudioBoost: (json['DownMixAudioBoost'] as num?)?.toDouble(), - downMixStereoAlgorithm: downMixStereoAlgorithmsNullableFromJson( - json['DownMixStereoAlgorithm']), + downMixStereoAlgorithm: downMixStereoAlgorithmsNullableFromJson(json['DownMixStereoAlgorithm']), maxMuxingQueueSize: (json['MaxMuxingQueueSize'] as num?)?.toInt(), enableThrottling: json['EnableThrottling'] as bool?, throttleDelaySeconds: (json['ThrottleDelaySeconds'] as num?)?.toInt(), enableSegmentDeletion: json['EnableSegmentDeletion'] as bool?, segmentKeepSeconds: (json['SegmentKeepSeconds'] as num?)?.toInt(), - hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson( - json['HardwareAccelerationType']), + hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson(json['HardwareAccelerationType']), encoderAppPath: json['EncoderAppPath'] as String?, encoderAppPathDisplay: json['EncoderAppPathDisplay'] as String?, vaapiDevice: json['VaapiDevice'] as String?, qsvDevice: json['QsvDevice'] as String?, enableTonemapping: json['EnableTonemapping'] as bool?, enableVppTonemapping: json['EnableVppTonemapping'] as bool?, - enableVideoToolboxTonemapping: - json['EnableVideoToolboxTonemapping'] as bool?, - tonemappingAlgorithm: - tonemappingAlgorithmNullableFromJson(json['TonemappingAlgorithm']), + enableVideoToolboxTonemapping: json['EnableVideoToolboxTonemapping'] as bool?, + tonemappingAlgorithm: tonemappingAlgorithmNullableFromJson(json['TonemappingAlgorithm']), tonemappingMode: tonemappingModeNullableFromJson(json['TonemappingMode']), - tonemappingRange: - tonemappingRangeNullableFromJson(json['TonemappingRange']), + tonemappingRange: tonemappingRangeNullableFromJson(json['TonemappingRange']), tonemappingDesat: (json['TonemappingDesat'] as num?)?.toDouble(), tonemappingPeak: (json['TonemappingPeak'] as num?)?.toDouble(), tonemappingParam: (json['TonemappingParam'] as num?)?.toDouble(), - vppTonemappingBrightness: - (json['VppTonemappingBrightness'] as num?)?.toDouble(), - vppTonemappingContrast: - (json['VppTonemappingContrast'] as num?)?.toDouble(), + vppTonemappingBrightness: (json['VppTonemappingBrightness'] as num?)?.toDouble(), + vppTonemappingContrast: (json['VppTonemappingContrast'] as num?)?.toDouble(), h264Crf: (json['H264Crf'] as num?)?.toInt(), h265Crf: (json['H265Crf'] as num?)?.toInt(), encoderPreset: encoderPresetNullableFromJson(json['EncoderPreset']), deinterlaceDoubleRate: json['DeinterlaceDoubleRate'] as bool?, - deinterlaceMethod: - deinterlaceMethodNullableFromJson(json['DeinterlaceMethod']), - enableDecodingColorDepth10Hevc: - json['EnableDecodingColorDepth10Hevc'] as bool?, - enableDecodingColorDepth10Vp9: - json['EnableDecodingColorDepth10Vp9'] as bool?, - enableDecodingColorDepth10HevcRext: - json['EnableDecodingColorDepth10HevcRext'] as bool?, - enableDecodingColorDepth12HevcRext: - json['EnableDecodingColorDepth12HevcRext'] as bool?, + deinterlaceMethod: deinterlaceMethodNullableFromJson(json['DeinterlaceMethod']), + enableDecodingColorDepth10Hevc: json['EnableDecodingColorDepth10Hevc'] as bool?, + enableDecodingColorDepth10Vp9: json['EnableDecodingColorDepth10Vp9'] as bool?, + enableDecodingColorDepth10HevcRext: json['EnableDecodingColorDepth10HevcRext'] as bool?, + enableDecodingColorDepth12HevcRext: json['EnableDecodingColorDepth12HevcRext'] as bool?, enableEnhancedNvdecDecoder: json['EnableEnhancedNvdecDecoder'] as bool?, preferSystemNativeHwDecoder: json['PreferSystemNativeHwDecoder'] as bool?, - enableIntelLowPowerH264HwEncoder: - json['EnableIntelLowPowerH264HwEncoder'] as bool?, - enableIntelLowPowerHevcHwEncoder: - json['EnableIntelLowPowerHevcHwEncoder'] as bool?, + enableIntelLowPowerH264HwEncoder: json['EnableIntelLowPowerH264HwEncoder'] as bool?, + enableIntelLowPowerHevcHwEncoder: json['EnableIntelLowPowerHevcHwEncoder'] as bool?, enableHardwareEncoding: json['EnableHardwareEncoding'] as bool?, allowHevcEncoding: json['AllowHevcEncoding'] as bool?, allowAv1Encoding: json['AllowAv1Encoding'] as bool?, enableSubtitleExtraction: json['EnableSubtitleExtraction'] as bool?, - hardwareDecodingCodecs: (json['HardwareDecodingCodecs'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + hardwareDecodingCodecs: + (json['HardwareDecodingCodecs'] as List?)?.map((e) => e as String).toList() ?? [], allowOnDemandMetadataBasedKeyframeExtractionForExtensions: - (json['AllowOnDemandMetadataBasedKeyframeExtractionForExtensions'] - as List?) + (json['AllowOnDemandMetadataBasedKeyframeExtractionForExtensions'] as List?) ?.map((e) => e as String) .toList() ?? [], ); -Map _$EncodingOptionsToJson(EncodingOptions instance) => - { - if (instance.encodingThreadCount case final value?) - 'EncodingThreadCount': value, - if (instance.transcodingTempPath case final value?) - 'TranscodingTempPath': value, - if (instance.fallbackFontPath case final value?) - 'FallbackFontPath': value, - if (instance.enableFallbackFont case final value?) - 'EnableFallbackFont': value, +Map _$EncodingOptionsToJson(EncodingOptions instance) => { + if (instance.encodingThreadCount case final value?) 'EncodingThreadCount': value, + if (instance.transcodingTempPath case final value?) 'TranscodingTempPath': value, + if (instance.fallbackFontPath case final value?) 'FallbackFontPath': value, + if (instance.enableFallbackFont case final value?) 'EnableFallbackFont': value, if (instance.enableAudioVbr case final value?) 'EnableAudioVbr': value, - if (instance.downMixAudioBoost case final value?) - 'DownMixAudioBoost': value, - if (downMixStereoAlgorithmsNullableToJson(instance.downMixStereoAlgorithm) - case final value?) + if (instance.downMixAudioBoost case final value?) 'DownMixAudioBoost': value, + if (downMixStereoAlgorithmsNullableToJson(instance.downMixStereoAlgorithm) case final value?) 'DownMixStereoAlgorithm': value, - if (instance.maxMuxingQueueSize case final value?) - 'MaxMuxingQueueSize': value, - if (instance.enableThrottling case final value?) - 'EnableThrottling': value, - if (instance.throttleDelaySeconds case final value?) - 'ThrottleDelaySeconds': value, - if (instance.enableSegmentDeletion case final value?) - 'EnableSegmentDeletion': value, - if (instance.segmentKeepSeconds case final value?) - 'SegmentKeepSeconds': value, - if (hardwareAccelerationTypeNullableToJson( - instance.hardwareAccelerationType) - case final value?) + if (instance.maxMuxingQueueSize case final value?) 'MaxMuxingQueueSize': value, + if (instance.enableThrottling case final value?) 'EnableThrottling': value, + if (instance.throttleDelaySeconds case final value?) 'ThrottleDelaySeconds': value, + if (instance.enableSegmentDeletion case final value?) 'EnableSegmentDeletion': value, + if (instance.segmentKeepSeconds case final value?) 'SegmentKeepSeconds': value, + if (hardwareAccelerationTypeNullableToJson(instance.hardwareAccelerationType) case final value?) 'HardwareAccelerationType': value, if (instance.encoderAppPath case final value?) 'EncoderAppPath': value, - if (instance.encoderAppPathDisplay case final value?) - 'EncoderAppPathDisplay': value, + if (instance.encoderAppPathDisplay case final value?) 'EncoderAppPathDisplay': value, if (instance.vaapiDevice case final value?) 'VaapiDevice': value, if (instance.qsvDevice case final value?) 'QsvDevice': value, - if (instance.enableTonemapping case final value?) - 'EnableTonemapping': value, - if (instance.enableVppTonemapping case final value?) - 'EnableVppTonemapping': value, - if (instance.enableVideoToolboxTonemapping case final value?) - 'EnableVideoToolboxTonemapping': value, - if (tonemappingAlgorithmNullableToJson(instance.tonemappingAlgorithm) - case final value?) + if (instance.enableTonemapping case final value?) 'EnableTonemapping': value, + if (instance.enableVppTonemapping case final value?) 'EnableVppTonemapping': value, + if (instance.enableVideoToolboxTonemapping case final value?) 'EnableVideoToolboxTonemapping': value, + if (tonemappingAlgorithmNullableToJson(instance.tonemappingAlgorithm) case final value?) 'TonemappingAlgorithm': value, - if (tonemappingModeNullableToJson(instance.tonemappingMode) - case final value?) - 'TonemappingMode': value, - if (tonemappingRangeNullableToJson(instance.tonemappingRange) - case final value?) - 'TonemappingRange': value, - if (instance.tonemappingDesat case final value?) - 'TonemappingDesat': value, + if (tonemappingModeNullableToJson(instance.tonemappingMode) case final value?) 'TonemappingMode': value, + if (tonemappingRangeNullableToJson(instance.tonemappingRange) case final value?) 'TonemappingRange': value, + if (instance.tonemappingDesat case final value?) 'TonemappingDesat': value, if (instance.tonemappingPeak case final value?) 'TonemappingPeak': value, - if (instance.tonemappingParam case final value?) - 'TonemappingParam': value, - if (instance.vppTonemappingBrightness case final value?) - 'VppTonemappingBrightness': value, - if (instance.vppTonemappingContrast case final value?) - 'VppTonemappingContrast': value, + if (instance.tonemappingParam case final value?) 'TonemappingParam': value, + if (instance.vppTonemappingBrightness case final value?) 'VppTonemappingBrightness': value, + if (instance.vppTonemappingContrast case final value?) 'VppTonemappingContrast': value, if (instance.h264Crf case final value?) 'H264Crf': value, if (instance.h265Crf case final value?) 'H265Crf': value, - if (encoderPresetNullableToJson(instance.encoderPreset) case final value?) - 'EncoderPreset': value, - if (instance.deinterlaceDoubleRate case final value?) - 'DeinterlaceDoubleRate': value, - if (deinterlaceMethodNullableToJson(instance.deinterlaceMethod) - case final value?) - 'DeinterlaceMethod': value, - if (instance.enableDecodingColorDepth10Hevc case final value?) - 'EnableDecodingColorDepth10Hevc': value, - if (instance.enableDecodingColorDepth10Vp9 case final value?) - 'EnableDecodingColorDepth10Vp9': value, - if (instance.enableDecodingColorDepth10HevcRext case final value?) - 'EnableDecodingColorDepth10HevcRext': value, - if (instance.enableDecodingColorDepth12HevcRext case final value?) - 'EnableDecodingColorDepth12HevcRext': value, - if (instance.enableEnhancedNvdecDecoder case final value?) - 'EnableEnhancedNvdecDecoder': value, - if (instance.preferSystemNativeHwDecoder case final value?) - 'PreferSystemNativeHwDecoder': value, - if (instance.enableIntelLowPowerH264HwEncoder case final value?) - 'EnableIntelLowPowerH264HwEncoder': value, - if (instance.enableIntelLowPowerHevcHwEncoder case final value?) - 'EnableIntelLowPowerHevcHwEncoder': value, - if (instance.enableHardwareEncoding case final value?) - 'EnableHardwareEncoding': value, - if (instance.allowHevcEncoding case final value?) - 'AllowHevcEncoding': value, - if (instance.allowAv1Encoding case final value?) - 'AllowAv1Encoding': value, - if (instance.enableSubtitleExtraction case final value?) - 'EnableSubtitleExtraction': value, - if (instance.hardwareDecodingCodecs case final value?) - 'HardwareDecodingCodecs': value, - if (instance.allowOnDemandMetadataBasedKeyframeExtractionForExtensions - case final value?) + if (encoderPresetNullableToJson(instance.encoderPreset) case final value?) 'EncoderPreset': value, + if (instance.deinterlaceDoubleRate case final value?) 'DeinterlaceDoubleRate': value, + if (deinterlaceMethodNullableToJson(instance.deinterlaceMethod) case final value?) 'DeinterlaceMethod': value, + if (instance.enableDecodingColorDepth10Hevc case final value?) 'EnableDecodingColorDepth10Hevc': value, + if (instance.enableDecodingColorDepth10Vp9 case final value?) 'EnableDecodingColorDepth10Vp9': value, + if (instance.enableDecodingColorDepth10HevcRext case final value?) 'EnableDecodingColorDepth10HevcRext': value, + if (instance.enableDecodingColorDepth12HevcRext case final value?) 'EnableDecodingColorDepth12HevcRext': value, + if (instance.enableEnhancedNvdecDecoder case final value?) 'EnableEnhancedNvdecDecoder': value, + if (instance.preferSystemNativeHwDecoder case final value?) 'PreferSystemNativeHwDecoder': value, + if (instance.enableIntelLowPowerH264HwEncoder case final value?) 'EnableIntelLowPowerH264HwEncoder': value, + if (instance.enableIntelLowPowerHevcHwEncoder case final value?) 'EnableIntelLowPowerHevcHwEncoder': value, + if (instance.enableHardwareEncoding case final value?) 'EnableHardwareEncoding': value, + if (instance.allowHevcEncoding case final value?) 'AllowHevcEncoding': value, + if (instance.allowAv1Encoding case final value?) 'AllowAv1Encoding': value, + if (instance.enableSubtitleExtraction case final value?) 'EnableSubtitleExtraction': value, + if (instance.hardwareDecodingCodecs case final value?) 'HardwareDecodingCodecs': value, + if (instance.allowOnDemandMetadataBasedKeyframeExtractionForExtensions case final value?) 'AllowOnDemandMetadataBasedKeyframeExtractionForExtensions': value, }; @@ -1937,25 +1409,21 @@ EndPointInfo _$EndPointInfoFromJson(Map json) => EndPointInfo( isInNetwork: json['IsInNetwork'] as bool?, ); -Map _$EndPointInfoToJson(EndPointInfo instance) => - { +Map _$EndPointInfoToJson(EndPointInfo instance) => { if (instance.isLocal case final value?) 'IsLocal': value, if (instance.isInNetwork case final value?) 'IsInNetwork': value, }; -ExternalIdInfo _$ExternalIdInfoFromJson(Map json) => - ExternalIdInfo( +ExternalIdInfo _$ExternalIdInfoFromJson(Map json) => ExternalIdInfo( name: json['Name'] as String?, key: json['Key'] as String?, type: externalIdMediaTypeNullableFromJson(json['Type']), ); -Map _$ExternalIdInfoToJson(ExternalIdInfo instance) => - { +Map _$ExternalIdInfoToJson(ExternalIdInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.key case final value?) 'Key': value, - if (externalIdMediaTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (externalIdMediaTypeNullableToJson(instance.type) case final value?) 'Type': value, }; ExternalUrl _$ExternalUrlFromJson(Map json) => ExternalUrl( @@ -1963,30 +1431,24 @@ ExternalUrl _$ExternalUrlFromJson(Map json) => ExternalUrl( url: json['Url'] as String?, ); -Map _$ExternalUrlToJson(ExternalUrl instance) => - { +Map _$ExternalUrlToJson(ExternalUrl instance) => { if (instance.name case final value?) 'Name': value, if (instance.url case final value?) 'Url': value, }; -FileSystemEntryInfo _$FileSystemEntryInfoFromJson(Map json) => - FileSystemEntryInfo( +FileSystemEntryInfo _$FileSystemEntryInfoFromJson(Map json) => FileSystemEntryInfo( name: json['Name'] as String?, path: json['Path'] as String?, type: fileSystemEntryTypeNullableFromJson(json['Type']), ); -Map _$FileSystemEntryInfoToJson( - FileSystemEntryInfo instance) => - { +Map _$FileSystemEntryInfoToJson(FileSystemEntryInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.path case final value?) 'Path': value, - if (fileSystemEntryTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (fileSystemEntryTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -FolderStorageDto _$FolderStorageDtoFromJson(Map json) => - FolderStorageDto( +FolderStorageDto _$FolderStorageDtoFromJson(Map json) => FolderStorageDto( path: json['Path'] as String?, freeSpace: (json['FreeSpace'] as num?)?.toInt(), usedSpace: (json['UsedSpace'] as num?)?.toInt(), @@ -1994,8 +1456,7 @@ FolderStorageDto _$FolderStorageDtoFromJson(Map json) => deviceId: json['DeviceId'] as String?, ); -Map _$FolderStorageDtoToJson(FolderStorageDto instance) => - { +Map _$FolderStorageDtoToJson(FolderStorageDto instance) => { if (instance.path case final value?) 'Path': value, if (instance.freeSpace case final value?) 'FreeSpace': value, if (instance.usedSpace case final value?) 'UsedSpace': value, @@ -2006,144 +1467,90 @@ Map _$FolderStorageDtoToJson(FolderStorageDto instance) => FontFile _$FontFileFromJson(Map json) => FontFile( name: json['Name'] as String?, size: (json['Size'] as num?)?.toInt(), - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateModified: json['DateModified'] == null - ? null - : DateTime.parse(json['DateModified'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateModified: json['DateModified'] == null ? null : DateTime.parse(json['DateModified'] as String), ); Map _$FontFileToJson(FontFile instance) => { if (instance.name case final value?) 'Name': value, if (instance.size case final value?) 'Size': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateModified?.toIso8601String() case final value?) - 'DateModified': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateModified?.toIso8601String() case final value?) 'DateModified': value, }; -ForceKeepAliveMessage _$ForceKeepAliveMessageFromJson( - Map json) => - ForceKeepAliveMessage( +ForceKeepAliveMessage _$ForceKeepAliveMessageFromJson(Map json) => ForceKeepAliveMessage( data: (json['Data'] as num?)?.toInt(), messageId: json['MessageId'] as String?, - messageType: - ForceKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: ForceKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ForceKeepAliveMessageToJson( - ForceKeepAliveMessage instance) => - { +Map _$ForceKeepAliveMessageToJson(ForceKeepAliveMessage instance) => { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ForgotPasswordDto _$ForgotPasswordDtoFromJson(Map json) => - ForgotPasswordDto( +ForgotPasswordDto _$ForgotPasswordDtoFromJson(Map json) => ForgotPasswordDto( enteredUsername: json['EnteredUsername'] as String, ); -Map _$ForgotPasswordDtoToJson(ForgotPasswordDto instance) => - { +Map _$ForgotPasswordDtoToJson(ForgotPasswordDto instance) => { 'EnteredUsername': instance.enteredUsername, }; -ForgotPasswordPinDto _$ForgotPasswordPinDtoFromJson( - Map json) => - ForgotPasswordPinDto( +ForgotPasswordPinDto _$ForgotPasswordPinDtoFromJson(Map json) => ForgotPasswordPinDto( pin: json['Pin'] as String, ); -Map _$ForgotPasswordPinDtoToJson( - ForgotPasswordPinDto instance) => - { +Map _$ForgotPasswordPinDtoToJson(ForgotPasswordPinDto instance) => { 'Pin': instance.pin, }; -ForgotPasswordResult _$ForgotPasswordResultFromJson( - Map json) => - ForgotPasswordResult( +ForgotPasswordResult _$ForgotPasswordResultFromJson(Map json) => ForgotPasswordResult( action: forgotPasswordActionNullableFromJson(json['Action']), pinFile: json['PinFile'] as String?, - pinExpirationDate: json['PinExpirationDate'] == null - ? null - : DateTime.parse(json['PinExpirationDate'] as String), + pinExpirationDate: json['PinExpirationDate'] == null ? null : DateTime.parse(json['PinExpirationDate'] as String), ); -Map _$ForgotPasswordResultToJson( - ForgotPasswordResult instance) => - { - if (forgotPasswordActionNullableToJson(instance.action) case final value?) - 'Action': value, +Map _$ForgotPasswordResultToJson(ForgotPasswordResult instance) => { + if (forgotPasswordActionNullableToJson(instance.action) case final value?) 'Action': value, if (instance.pinFile case final value?) 'PinFile': value, - if (instance.pinExpirationDate?.toIso8601String() case final value?) - 'PinExpirationDate': value, + if (instance.pinExpirationDate?.toIso8601String() case final value?) 'PinExpirationDate': value, }; -GeneralCommand _$GeneralCommandFromJson(Map json) => - GeneralCommand( +GeneralCommand _$GeneralCommandFromJson(Map json) => GeneralCommand( name: generalCommandTypeNullableFromJson(json['Name']), controllingUserId: json['ControllingUserId'] as String?, arguments: json['Arguments'] as Map?, ); -Map _$GeneralCommandToJson(GeneralCommand instance) => - { - if (generalCommandTypeNullableToJson(instance.name) case final value?) - 'Name': value, - if (instance.controllingUserId case final value?) - 'ControllingUserId': value, +Map _$GeneralCommandToJson(GeneralCommand instance) => { + if (generalCommandTypeNullableToJson(instance.name) case final value?) 'Name': value, + if (instance.controllingUserId case final value?) 'ControllingUserId': value, if (instance.arguments case final value?) 'Arguments': value, }; -GeneralCommandMessage _$GeneralCommandMessageFromJson( - Map json) => - GeneralCommandMessage( - data: json['Data'] == null - ? null - : GeneralCommand.fromJson(json['Data'] as Map), +GeneralCommandMessage _$GeneralCommandMessageFromJson(Map json) => GeneralCommandMessage( + data: json['Data'] == null ? null : GeneralCommand.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - GeneralCommandMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: GeneralCommandMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$GeneralCommandMessageToJson( - GeneralCommandMessage instance) => - { +Map _$GeneralCommandMessageToJson(GeneralCommandMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -GetProgramsDto _$GetProgramsDtoFromJson(Map json) => - GetProgramsDto( - channelIds: (json['ChannelIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +GetProgramsDto _$GetProgramsDtoFromJson(Map json) => GetProgramsDto( + channelIds: (json['ChannelIds'] as List?)?.map((e) => e as String).toList() ?? [], userId: json['UserId'] as String?, - minStartDate: json['MinStartDate'] == null - ? null - : DateTime.parse(json['MinStartDate'] as String), + minStartDate: json['MinStartDate'] == null ? null : DateTime.parse(json['MinStartDate'] as String), hasAired: json['HasAired'] as bool?, isAiring: json['IsAiring'] as bool?, - maxStartDate: json['MaxStartDate'] == null - ? null - : DateTime.parse(json['MaxStartDate'] as String), - minEndDate: json['MinEndDate'] == null - ? null - : DateTime.parse(json['MinEndDate'] as String), - maxEndDate: json['MaxEndDate'] == null - ? null - : DateTime.parse(json['MaxEndDate'] as String), + maxStartDate: json['MaxStartDate'] == null ? null : DateTime.parse(json['MaxStartDate'] as String), + minEndDate: json['MinEndDate'] == null ? null : DateTime.parse(json['MinEndDate'] as String), + maxEndDate: json['MaxEndDate'] == null ? null : DateTime.parse(json['MaxEndDate'] as String), isMovie: json['IsMovie'] as bool?, isSeries: json['IsSeries'] as bool?, isNews: json['IsNews'] as bool?, @@ -2153,39 +1560,27 @@ GetProgramsDto _$GetProgramsDtoFromJson(Map json) => limit: (json['Limit'] as num?)?.toInt(), sortBy: itemSortByListFromJson(json['SortBy'] as List?), sortOrder: sortOrderListFromJson(json['SortOrder'] as List?), - genres: (json['Genres'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - genreIds: (json['GenreIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], + genreIds: (json['GenreIds'] as List?)?.map((e) => e as String).toList() ?? [], enableImages: json['EnableImages'] as bool?, enableTotalRecordCount: json['EnableTotalRecordCount'] as bool? ?? true, imageTypeLimit: (json['ImageTypeLimit'] as num?)?.toInt(), - enableImageTypes: - imageTypeListFromJson(json['EnableImageTypes'] as List?), + enableImageTypes: imageTypeListFromJson(json['EnableImageTypes'] as List?), enableUserData: json['EnableUserData'] as bool?, seriesTimerId: json['SeriesTimerId'] as String?, librarySeriesId: json['LibrarySeriesId'] as String?, fields: itemFieldsListFromJson(json['Fields'] as List?), ); -Map _$GetProgramsDtoToJson(GetProgramsDto instance) => - { +Map _$GetProgramsDtoToJson(GetProgramsDto instance) => { if (instance.channelIds case final value?) 'ChannelIds': value, if (instance.userId case final value?) 'UserId': value, - if (instance.minStartDate?.toIso8601String() case final value?) - 'MinStartDate': value, + if (instance.minStartDate?.toIso8601String() case final value?) 'MinStartDate': value, if (instance.hasAired case final value?) 'HasAired': value, if (instance.isAiring case final value?) 'IsAiring': value, - if (instance.maxStartDate?.toIso8601String() case final value?) - 'MaxStartDate': value, - if (instance.minEndDate?.toIso8601String() case final value?) - 'MinEndDate': value, - if (instance.maxEndDate?.toIso8601String() case final value?) - 'MaxEndDate': value, + if (instance.maxStartDate?.toIso8601String() case final value?) 'MaxStartDate': value, + if (instance.minEndDate?.toIso8601String() case final value?) 'MinEndDate': value, + if (instance.maxEndDate?.toIso8601String() case final value?) 'MaxEndDate': value, if (instance.isMovie case final value?) 'IsMovie': value, if (instance.isSeries case final value?) 'IsSeries': value, if (instance.isNews case final value?) 'IsNews': value, @@ -2198,8 +1593,7 @@ Map _$GetProgramsDtoToJson(GetProgramsDto instance) => if (instance.genres case final value?) 'Genres': value, if (instance.genreIds case final value?) 'GenreIds': value, if (instance.enableImages case final value?) 'EnableImages': value, - if (instance.enableTotalRecordCount case final value?) - 'EnableTotalRecordCount': value, + if (instance.enableTotalRecordCount case final value?) 'EnableTotalRecordCount': value, if (instance.imageTypeLimit case final value?) 'ImageTypeLimit': value, 'EnableImageTypes': imageTypeListToJson(instance.enableImageTypes), if (instance.enableUserData case final value?) 'EnableUserData': value, @@ -2212,70 +1606,47 @@ GroupInfoDto _$GroupInfoDtoFromJson(Map json) => GroupInfoDto( groupId: json['GroupId'] as String?, groupName: json['GroupName'] as String?, state: groupStateTypeNullableFromJson(json['State']), - participants: (json['Participants'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - lastUpdatedAt: json['LastUpdatedAt'] == null - ? null - : DateTime.parse(json['LastUpdatedAt'] as String), + participants: (json['Participants'] as List?)?.map((e) => e as String).toList() ?? [], + lastUpdatedAt: json['LastUpdatedAt'] == null ? null : DateTime.parse(json['LastUpdatedAt'] as String), ); -Map _$GroupInfoDtoToJson(GroupInfoDto instance) => - { +Map _$GroupInfoDtoToJson(GroupInfoDto instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.groupName case final value?) 'GroupName': value, - if (groupStateTypeNullableToJson(instance.state) case final value?) - 'State': value, + if (groupStateTypeNullableToJson(instance.state) case final value?) 'State': value, if (instance.participants case final value?) 'Participants': value, - if (instance.lastUpdatedAt?.toIso8601String() case final value?) - 'LastUpdatedAt': value, + if (instance.lastUpdatedAt?.toIso8601String() case final value?) 'LastUpdatedAt': value, }; -GroupStateUpdate _$GroupStateUpdateFromJson(Map json) => - GroupStateUpdate( +GroupStateUpdate _$GroupStateUpdateFromJson(Map json) => GroupStateUpdate( state: groupStateTypeNullableFromJson(json['State']), reason: playbackRequestTypeNullableFromJson(json['Reason']), ); -Map _$GroupStateUpdateToJson(GroupStateUpdate instance) => - { - if (groupStateTypeNullableToJson(instance.state) case final value?) - 'State': value, - if (playbackRequestTypeNullableToJson(instance.reason) case final value?) - 'Reason': value, +Map _$GroupStateUpdateToJson(GroupStateUpdate instance) => { + if (groupStateTypeNullableToJson(instance.state) case final value?) 'State': value, + if (playbackRequestTypeNullableToJson(instance.reason) case final value?) 'Reason': value, }; GroupUpdate _$GroupUpdateFromJson(Map json) => GroupUpdate(); -Map _$GroupUpdateToJson(GroupUpdate instance) => - {}; +Map _$GroupUpdateToJson(GroupUpdate instance) => {}; GuideInfo _$GuideInfoFromJson(Map json) => GuideInfo( - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), ); Map _$GuideInfoToJson(GuideInfo instance) => { - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, }; -IgnoreWaitRequestDto _$IgnoreWaitRequestDtoFromJson( - Map json) => - IgnoreWaitRequestDto( +IgnoreWaitRequestDto _$IgnoreWaitRequestDtoFromJson(Map json) => IgnoreWaitRequestDto( ignoreWait: json['IgnoreWait'] as bool?, ); -Map _$IgnoreWaitRequestDtoToJson( - IgnoreWaitRequestDto instance) => - { +Map _$IgnoreWaitRequestDtoToJson(IgnoreWaitRequestDto instance) => { if (instance.ignoreWait case final value?) 'IgnoreWait': value, }; @@ -2291,8 +1662,7 @@ ImageInfo _$ImageInfoFromJson(Map json) => ImageInfo( ); Map _$ImageInfoToJson(ImageInfo instance) => { - if (imageTypeNullableToJson(instance.imageType) case final value?) - 'ImageType': value, + if (imageTypeNullableToJson(instance.imageType) case final value?) 'ImageType': value, if (instance.imageIndex case final value?) 'ImageIndex': value, if (instance.imageTag case final value?) 'ImageTag': value, if (instance.path case final value?) 'Path': value, @@ -2308,73 +1678,53 @@ ImageOption _$ImageOptionFromJson(Map json) => ImageOption( minWidth: (json['MinWidth'] as num?)?.toInt(), ); -Map _$ImageOptionToJson(ImageOption instance) => - { - if (imageTypeNullableToJson(instance.type) case final value?) - 'Type': value, +Map _$ImageOptionToJson(ImageOption instance) => { + if (imageTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.limit case final value?) 'Limit': value, if (instance.minWidth case final value?) 'MinWidth': value, }; -ImageProviderInfo _$ImageProviderInfoFromJson(Map json) => - ImageProviderInfo( +ImageProviderInfo _$ImageProviderInfoFromJson(Map json) => ImageProviderInfo( name: json['Name'] as String?, supportedImages: imageTypeListFromJson(json['SupportedImages'] as List?), ); -Map _$ImageProviderInfoToJson(ImageProviderInfo instance) => - { +Map _$ImageProviderInfoToJson(ImageProviderInfo instance) => { if (instance.name case final value?) 'Name': value, 'SupportedImages': imageTypeListToJson(instance.supportedImages), }; -InboundKeepAliveMessage _$InboundKeepAliveMessageFromJson( - Map json) => - InboundKeepAliveMessage( - messageType: - InboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), +InboundKeepAliveMessage _$InboundKeepAliveMessageFromJson(Map json) => InboundKeepAliveMessage( + messageType: InboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$InboundKeepAliveMessageToJson( - InboundKeepAliveMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$InboundKeepAliveMessageToJson(InboundKeepAliveMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -InboundWebSocketMessage _$InboundWebSocketMessageFromJson( - Map json) => - InboundWebSocketMessage(); +InboundWebSocketMessage _$InboundWebSocketMessageFromJson(Map json) => InboundWebSocketMessage(); -Map _$InboundWebSocketMessageToJson( - InboundWebSocketMessage instance) => - {}; +Map _$InboundWebSocketMessageToJson(InboundWebSocketMessage instance) => {}; -InstallationInfo _$InstallationInfoFromJson(Map json) => - InstallationInfo( +InstallationInfo _$InstallationInfoFromJson(Map json) => InstallationInfo( guid: json['Guid'] as String?, name: json['Name'] as String?, version: json['Version'] as String?, changelog: json['Changelog'] as String?, sourceUrl: json['SourceUrl'] as String?, checksum: json['Checksum'] as String?, - packageInfo: json['PackageInfo'] == null - ? null - : PackageInfo.fromJson(json['PackageInfo'] as Map), + packageInfo: + json['PackageInfo'] == null ? null : PackageInfo.fromJson(json['PackageInfo'] as Map), ); -Map _$InstallationInfoToJson(InstallationInfo instance) => - { +Map _$InstallationInfoToJson(InstallationInfo instance) => { if (instance.guid case final value?) 'Guid': value, if (instance.name case final value?) 'Name': value, if (instance.version case final value?) 'Version': value, if (instance.changelog case final value?) 'Changelog': value, if (instance.sourceUrl case final value?) 'SourceUrl': value, if (instance.checksum case final value?) 'Checksum': value, - if (instance.packageInfo?.toJson() case final value?) - 'PackageInfo': value, + if (instance.packageInfo?.toJson() case final value?) 'PackageInfo': value, }; IPlugin _$IPluginFromJson(Map json) => IPlugin( @@ -2392,8 +1742,7 @@ Map _$IPluginToJson(IPlugin instance) => { if (instance.description case final value?) 'Description': value, if (instance.id case final value?) 'Id': value, if (instance.version case final value?) 'Version': value, - if (instance.assemblyFilePath case final value?) - 'AssemblyFilePath': value, + if (instance.assemblyFilePath case final value?) 'AssemblyFilePath': value, if (instance.canUninstall case final value?) 'CanUninstall': value, if (instance.dataFolderPath case final value?) 'DataFolderPath': value, }; @@ -2413,8 +1762,7 @@ ItemCounts _$ItemCountsFromJson(Map json) => ItemCounts( itemCount: (json['ItemCount'] as num?)?.toInt(), ); -Map _$ItemCountsToJson(ItemCounts instance) => - { +Map _$ItemCountsToJson(ItemCounts instance) => { if (instance.movieCount case final value?) 'MovieCount': value, if (instance.seriesCount case final value?) 'SeriesCount': value, if (instance.episodeCount case final value?) 'EpisodeCount': value, @@ -2429,304 +1777,180 @@ Map _$ItemCountsToJson(ItemCounts instance) => if (instance.itemCount case final value?) 'ItemCount': value, }; -JoinGroupRequestDto _$JoinGroupRequestDtoFromJson(Map json) => - JoinGroupRequestDto( +JoinGroupRequestDto _$JoinGroupRequestDtoFromJson(Map json) => JoinGroupRequestDto( groupId: json['GroupId'] as String?, ); -Map _$JoinGroupRequestDtoToJson( - JoinGroupRequestDto instance) => - { +Map _$JoinGroupRequestDtoToJson(JoinGroupRequestDto instance) => { if (instance.groupId case final value?) 'GroupId': value, }; -LibraryChangedMessage _$LibraryChangedMessageFromJson( - Map json) => - LibraryChangedMessage( - data: json['Data'] == null - ? null - : LibraryUpdateInfo.fromJson(json['Data'] as Map), +LibraryChangedMessage _$LibraryChangedMessageFromJson(Map json) => LibraryChangedMessage( + data: json['Data'] == null ? null : LibraryUpdateInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - LibraryChangedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: LibraryChangedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$LibraryChangedMessageToJson( - LibraryChangedMessage instance) => - { +Map _$LibraryChangedMessageToJson(LibraryChangedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -LibraryOptionInfoDto _$LibraryOptionInfoDtoFromJson( - Map json) => - LibraryOptionInfoDto( +LibraryOptionInfoDto _$LibraryOptionInfoDtoFromJson(Map json) => LibraryOptionInfoDto( name: json['Name'] as String?, defaultEnabled: json['DefaultEnabled'] as bool?, ); -Map _$LibraryOptionInfoDtoToJson( - LibraryOptionInfoDto instance) => - { +Map _$LibraryOptionInfoDtoToJson(LibraryOptionInfoDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.defaultEnabled case final value?) 'DefaultEnabled': value, }; -LibraryOptions _$LibraryOptionsFromJson(Map json) => - LibraryOptions( +LibraryOptions _$LibraryOptionsFromJson(Map json) => LibraryOptions( enabled: json['Enabled'] as bool?, enablePhotos: json['EnablePhotos'] as bool?, enableRealtimeMonitor: json['EnableRealtimeMonitor'] as bool?, enableLUFSScan: json['EnableLUFSScan'] as bool?, - enableChapterImageExtraction: - json['EnableChapterImageExtraction'] as bool?, - extractChapterImagesDuringLibraryScan: - json['ExtractChapterImagesDuringLibraryScan'] as bool?, - enableTrickplayImageExtraction: - json['EnableTrickplayImageExtraction'] as bool?, - extractTrickplayImagesDuringLibraryScan: - json['ExtractTrickplayImagesDuringLibraryScan'] as bool?, + enableChapterImageExtraction: json['EnableChapterImageExtraction'] as bool?, + extractChapterImagesDuringLibraryScan: json['ExtractChapterImagesDuringLibraryScan'] as bool?, + enableTrickplayImageExtraction: json['EnableTrickplayImageExtraction'] as bool?, + extractTrickplayImagesDuringLibraryScan: json['ExtractTrickplayImagesDuringLibraryScan'] as bool?, pathInfos: (json['PathInfos'] as List?) ?.map((e) => MediaPathInfo.fromJson(e as Map)) .toList() ?? [], saveLocalMetadata: json['SaveLocalMetadata'] as bool?, enableInternetProviders: json['EnableInternetProviders'] as bool?, - enableAutomaticSeriesGrouping: - json['EnableAutomaticSeriesGrouping'] as bool?, + enableAutomaticSeriesGrouping: json['EnableAutomaticSeriesGrouping'] as bool?, enableEmbeddedTitles: json['EnableEmbeddedTitles'] as bool?, enableEmbeddedExtrasTitles: json['EnableEmbeddedExtrasTitles'] as bool?, enableEmbeddedEpisodeInfos: json['EnableEmbeddedEpisodeInfos'] as bool?, - automaticRefreshIntervalDays: - (json['AutomaticRefreshIntervalDays'] as num?)?.toInt(), + automaticRefreshIntervalDays: (json['AutomaticRefreshIntervalDays'] as num?)?.toInt(), preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, seasonZeroDisplayName: json['SeasonZeroDisplayName'] as String?, - metadataSavers: (json['MetadataSavers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + metadataSavers: (json['MetadataSavers'] as List?)?.map((e) => e as String).toList() ?? [], disabledLocalMetadataReaders: - (json['DisabledLocalMetadataReaders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledLocalMetadataReaders'] as List?)?.map((e) => e as String).toList() ?? [], localMetadataReaderOrder: - (json['LocalMetadataReaderOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['LocalMetadataReaderOrder'] as List?)?.map((e) => e as String).toList() ?? [], disabledSubtitleFetchers: - (json['DisabledSubtitleFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - subtitleFetcherOrder: (json['SubtitleFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledSubtitleFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + subtitleFetcherOrder: (json['SubtitleFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], disabledMediaSegmentProviders: - (json['DisabledMediaSegmentProviders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledMediaSegmentProviders'] as List?)?.map((e) => e as String).toList() ?? [], mediaSegmentProviderOrder: - (json['MediaSegmentProviderOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - skipSubtitlesIfEmbeddedSubtitlesPresent: - json['SkipSubtitlesIfEmbeddedSubtitlesPresent'] as bool?, - skipSubtitlesIfAudioTrackMatches: - json['SkipSubtitlesIfAudioTrackMatches'] as bool?, + (json['MediaSegmentProviderOrder'] as List?)?.map((e) => e as String).toList() ?? [], + skipSubtitlesIfEmbeddedSubtitlesPresent: json['SkipSubtitlesIfEmbeddedSubtitlesPresent'] as bool?, + skipSubtitlesIfAudioTrackMatches: json['SkipSubtitlesIfAudioTrackMatches'] as bool?, subtitleDownloadLanguages: - (json['SubtitleDownloadLanguages'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['SubtitleDownloadLanguages'] as List?)?.map((e) => e as String).toList() ?? [], requirePerfectSubtitleMatch: json['RequirePerfectSubtitleMatch'] as bool?, saveSubtitlesWithMedia: json['SaveSubtitlesWithMedia'] as bool?, saveLyricsWithMedia: json['SaveLyricsWithMedia'] as bool? ?? false, saveTrickplayWithMedia: json['SaveTrickplayWithMedia'] as bool? ?? false, - disabledLyricFetchers: (json['DisabledLyricFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - lyricFetcherOrder: (json['LyricFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - preferNonstandardArtistsTag: - json['PreferNonstandardArtistsTag'] as bool? ?? false, + disabledLyricFetchers: (json['DisabledLyricFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + lyricFetcherOrder: (json['LyricFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + preferNonstandardArtistsTag: json['PreferNonstandardArtistsTag'] as bool? ?? false, useCustomTagDelimiters: json['UseCustomTagDelimiters'] as bool? ?? false, - customTagDelimiters: (json['CustomTagDelimiters'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - delimiterWhitelist: (json['DelimiterWhitelist'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - automaticallyAddToCollection: - json['AutomaticallyAddToCollection'] as bool?, - allowEmbeddedSubtitles: embeddedSubtitleOptionsNullableFromJson( - json['AllowEmbeddedSubtitles']), + customTagDelimiters: (json['CustomTagDelimiters'] as List?)?.map((e) => e as String).toList() ?? [], + delimiterWhitelist: (json['DelimiterWhitelist'] as List?)?.map((e) => e as String).toList() ?? [], + automaticallyAddToCollection: json['AutomaticallyAddToCollection'] as bool?, + allowEmbeddedSubtitles: embeddedSubtitleOptionsNullableFromJson(json['AllowEmbeddedSubtitles']), typeOptions: (json['TypeOptions'] as List?) ?.map((e) => TypeOptions.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryOptionsToJson(LibraryOptions instance) => - { +Map _$LibraryOptionsToJson(LibraryOptions instance) => { if (instance.enabled case final value?) 'Enabled': value, if (instance.enablePhotos case final value?) 'EnablePhotos': value, - if (instance.enableRealtimeMonitor case final value?) - 'EnableRealtimeMonitor': value, + if (instance.enableRealtimeMonitor case final value?) 'EnableRealtimeMonitor': value, if (instance.enableLUFSScan case final value?) 'EnableLUFSScan': value, - if (instance.enableChapterImageExtraction case final value?) - 'EnableChapterImageExtraction': value, + if (instance.enableChapterImageExtraction case final value?) 'EnableChapterImageExtraction': value, if (instance.extractChapterImagesDuringLibraryScan case final value?) 'ExtractChapterImagesDuringLibraryScan': value, - if (instance.enableTrickplayImageExtraction case final value?) - 'EnableTrickplayImageExtraction': value, + if (instance.enableTrickplayImageExtraction case final value?) 'EnableTrickplayImageExtraction': value, if (instance.extractTrickplayImagesDuringLibraryScan case final value?) 'ExtractTrickplayImagesDuringLibraryScan': value, - if (instance.pathInfos?.map((e) => e.toJson()).toList() case final value?) - 'PathInfos': value, - if (instance.saveLocalMetadata case final value?) - 'SaveLocalMetadata': value, - if (instance.enableInternetProviders case final value?) - 'EnableInternetProviders': value, - if (instance.enableAutomaticSeriesGrouping case final value?) - 'EnableAutomaticSeriesGrouping': value, - if (instance.enableEmbeddedTitles case final value?) - 'EnableEmbeddedTitles': value, - if (instance.enableEmbeddedExtrasTitles case final value?) - 'EnableEmbeddedExtrasTitles': value, - if (instance.enableEmbeddedEpisodeInfos case final value?) - 'EnableEmbeddedEpisodeInfos': value, - if (instance.automaticRefreshIntervalDays case final value?) - 'AutomaticRefreshIntervalDays': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, - if (instance.seasonZeroDisplayName case final value?) - 'SeasonZeroDisplayName': value, + if (instance.pathInfos?.map((e) => e.toJson()).toList() case final value?) 'PathInfos': value, + if (instance.saveLocalMetadata case final value?) 'SaveLocalMetadata': value, + if (instance.enableInternetProviders case final value?) 'EnableInternetProviders': value, + if (instance.enableAutomaticSeriesGrouping case final value?) 'EnableAutomaticSeriesGrouping': value, + if (instance.enableEmbeddedTitles case final value?) 'EnableEmbeddedTitles': value, + if (instance.enableEmbeddedExtrasTitles case final value?) 'EnableEmbeddedExtrasTitles': value, + if (instance.enableEmbeddedEpisodeInfos case final value?) 'EnableEmbeddedEpisodeInfos': value, + if (instance.automaticRefreshIntervalDays case final value?) 'AutomaticRefreshIntervalDays': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.seasonZeroDisplayName case final value?) 'SeasonZeroDisplayName': value, if (instance.metadataSavers case final value?) 'MetadataSavers': value, - if (instance.disabledLocalMetadataReaders case final value?) - 'DisabledLocalMetadataReaders': value, - if (instance.localMetadataReaderOrder case final value?) - 'LocalMetadataReaderOrder': value, - if (instance.disabledSubtitleFetchers case final value?) - 'DisabledSubtitleFetchers': value, - if (instance.subtitleFetcherOrder case final value?) - 'SubtitleFetcherOrder': value, - if (instance.disabledMediaSegmentProviders case final value?) - 'DisabledMediaSegmentProviders': value, - if (instance.mediaSegmentProviderOrder case final value?) - 'MediaSegmentProviderOrder': value, + if (instance.disabledLocalMetadataReaders case final value?) 'DisabledLocalMetadataReaders': value, + if (instance.localMetadataReaderOrder case final value?) 'LocalMetadataReaderOrder': value, + if (instance.disabledSubtitleFetchers case final value?) 'DisabledSubtitleFetchers': value, + if (instance.subtitleFetcherOrder case final value?) 'SubtitleFetcherOrder': value, + if (instance.disabledMediaSegmentProviders case final value?) 'DisabledMediaSegmentProviders': value, + if (instance.mediaSegmentProviderOrder case final value?) 'MediaSegmentProviderOrder': value, if (instance.skipSubtitlesIfEmbeddedSubtitlesPresent case final value?) 'SkipSubtitlesIfEmbeddedSubtitlesPresent': value, - if (instance.skipSubtitlesIfAudioTrackMatches case final value?) - 'SkipSubtitlesIfAudioTrackMatches': value, - if (instance.subtitleDownloadLanguages case final value?) - 'SubtitleDownloadLanguages': value, - if (instance.requirePerfectSubtitleMatch case final value?) - 'RequirePerfectSubtitleMatch': value, - if (instance.saveSubtitlesWithMedia case final value?) - 'SaveSubtitlesWithMedia': value, - if (instance.saveLyricsWithMedia case final value?) - 'SaveLyricsWithMedia': value, - if (instance.saveTrickplayWithMedia case final value?) - 'SaveTrickplayWithMedia': value, - if (instance.disabledLyricFetchers case final value?) - 'DisabledLyricFetchers': value, - if (instance.lyricFetcherOrder case final value?) - 'LyricFetcherOrder': value, - if (instance.preferNonstandardArtistsTag case final value?) - 'PreferNonstandardArtistsTag': value, - if (instance.useCustomTagDelimiters case final value?) - 'UseCustomTagDelimiters': value, - if (instance.customTagDelimiters case final value?) - 'CustomTagDelimiters': value, - if (instance.delimiterWhitelist case final value?) - 'DelimiterWhitelist': value, - if (instance.automaticallyAddToCollection case final value?) - 'AutomaticallyAddToCollection': value, - if (embeddedSubtitleOptionsNullableToJson(instance.allowEmbeddedSubtitles) - case final value?) + if (instance.skipSubtitlesIfAudioTrackMatches case final value?) 'SkipSubtitlesIfAudioTrackMatches': value, + if (instance.subtitleDownloadLanguages case final value?) 'SubtitleDownloadLanguages': value, + if (instance.requirePerfectSubtitleMatch case final value?) 'RequirePerfectSubtitleMatch': value, + if (instance.saveSubtitlesWithMedia case final value?) 'SaveSubtitlesWithMedia': value, + if (instance.saveLyricsWithMedia case final value?) 'SaveLyricsWithMedia': value, + if (instance.saveTrickplayWithMedia case final value?) 'SaveTrickplayWithMedia': value, + if (instance.disabledLyricFetchers case final value?) 'DisabledLyricFetchers': value, + if (instance.lyricFetcherOrder case final value?) 'LyricFetcherOrder': value, + if (instance.preferNonstandardArtistsTag case final value?) 'PreferNonstandardArtistsTag': value, + if (instance.useCustomTagDelimiters case final value?) 'UseCustomTagDelimiters': value, + if (instance.customTagDelimiters case final value?) 'CustomTagDelimiters': value, + if (instance.delimiterWhitelist case final value?) 'DelimiterWhitelist': value, + if (instance.automaticallyAddToCollection case final value?) 'AutomaticallyAddToCollection': value, + if (embeddedSubtitleOptionsNullableToJson(instance.allowEmbeddedSubtitles) case final value?) 'AllowEmbeddedSubtitles': value, - if (instance.typeOptions?.map((e) => e.toJson()).toList() - case final value?) - 'TypeOptions': value, + if (instance.typeOptions?.map((e) => e.toJson()).toList() case final value?) 'TypeOptions': value, }; -LibraryOptionsResultDto _$LibraryOptionsResultDtoFromJson( - Map json) => - LibraryOptionsResultDto( +LibraryOptionsResultDto _$LibraryOptionsResultDtoFromJson(Map json) => LibraryOptionsResultDto( metadataSavers: (json['MetadataSavers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], metadataReaders: (json['MetadataReaders'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], subtitleFetchers: (json['SubtitleFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], lyricFetchers: (json['LyricFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], mediaSegmentProviders: (json['MediaSegmentProviders'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], typeOptions: (json['TypeOptions'] as List?) - ?.map((e) => - LibraryTypeOptionsDto.fromJson(e as Map)) + ?.map((e) => LibraryTypeOptionsDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryOptionsResultDtoToJson( - LibraryOptionsResultDto instance) => - { - if (instance.metadataSavers?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataSavers': value, - if (instance.metadataReaders?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataReaders': value, - if (instance.subtitleFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'SubtitleFetchers': value, - if (instance.lyricFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'LyricFetchers': value, - if (instance.mediaSegmentProviders?.map((e) => e.toJson()).toList() - case final value?) +Map _$LibraryOptionsResultDtoToJson(LibraryOptionsResultDto instance) => { + if (instance.metadataSavers?.map((e) => e.toJson()).toList() case final value?) 'MetadataSavers': value, + if (instance.metadataReaders?.map((e) => e.toJson()).toList() case final value?) 'MetadataReaders': value, + if (instance.subtitleFetchers?.map((e) => e.toJson()).toList() case final value?) 'SubtitleFetchers': value, + if (instance.lyricFetchers?.map((e) => e.toJson()).toList() case final value?) 'LyricFetchers': value, + if (instance.mediaSegmentProviders?.map((e) => e.toJson()).toList() case final value?) 'MediaSegmentProviders': value, - if (instance.typeOptions?.map((e) => e.toJson()).toList() - case final value?) - 'TypeOptions': value, + if (instance.typeOptions?.map((e) => e.toJson()).toList() case final value?) 'TypeOptions': value, }; -LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => - LibraryStorageDto( +LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => LibraryStorageDto( id: json['Id'] as String?, name: json['Name'] as String?, folders: (json['Folders'] as List?) @@ -2735,97 +1959,58 @@ LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => [], ); -Map _$LibraryStorageDtoToJson(LibraryStorageDto instance) => - { +Map _$LibraryStorageDtoToJson(LibraryStorageDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, - if (instance.folders?.map((e) => e.toJson()).toList() case final value?) - 'Folders': value, + if (instance.folders?.map((e) => e.toJson()).toList() case final value?) 'Folders': value, }; -LibraryTypeOptionsDto _$LibraryTypeOptionsDtoFromJson( - Map json) => - LibraryTypeOptionsDto( +LibraryTypeOptionsDto _$LibraryTypeOptionsDtoFromJson(Map json) => LibraryTypeOptionsDto( type: json['Type'] as String?, metadataFetchers: (json['MetadataFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], imageFetchers: (json['ImageFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], - supportedImageTypes: - imageTypeListFromJson(json['SupportedImageTypes'] as List?), + supportedImageTypes: imageTypeListFromJson(json['SupportedImageTypes'] as List?), defaultImageOptions: (json['DefaultImageOptions'] as List?) ?.map((e) => ImageOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryTypeOptionsDtoToJson( - LibraryTypeOptionsDto instance) => - { +Map _$LibraryTypeOptionsDtoToJson(LibraryTypeOptionsDto instance) => { if (instance.type case final value?) 'Type': value, - if (instance.metadataFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataFetchers': value, - if (instance.imageFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'ImageFetchers': value, + if (instance.metadataFetchers?.map((e) => e.toJson()).toList() case final value?) 'MetadataFetchers': value, + if (instance.imageFetchers?.map((e) => e.toJson()).toList() case final value?) 'ImageFetchers': value, 'SupportedImageTypes': imageTypeListToJson(instance.supportedImageTypes), - if (instance.defaultImageOptions?.map((e) => e.toJson()).toList() - case final value?) - 'DefaultImageOptions': value, + if (instance.defaultImageOptions?.map((e) => e.toJson()).toList() case final value?) 'DefaultImageOptions': value, }; -LibraryUpdateInfo _$LibraryUpdateInfoFromJson(Map json) => - LibraryUpdateInfo( - foldersAddedTo: (json['FoldersAddedTo'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - foldersRemovedFrom: (json['FoldersRemovedFrom'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - itemsAdded: (json['ItemsAdded'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - itemsRemoved: (json['ItemsRemoved'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - itemsUpdated: (json['ItemsUpdated'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - collectionFolders: (json['CollectionFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +LibraryUpdateInfo _$LibraryUpdateInfoFromJson(Map json) => LibraryUpdateInfo( + foldersAddedTo: (json['FoldersAddedTo'] as List?)?.map((e) => e as String).toList() ?? [], + foldersRemovedFrom: (json['FoldersRemovedFrom'] as List?)?.map((e) => e as String).toList() ?? [], + itemsAdded: (json['ItemsAdded'] as List?)?.map((e) => e as String).toList() ?? [], + itemsRemoved: (json['ItemsRemoved'] as List?)?.map((e) => e as String).toList() ?? [], + itemsUpdated: (json['ItemsUpdated'] as List?)?.map((e) => e as String).toList() ?? [], + collectionFolders: (json['CollectionFolders'] as List?)?.map((e) => e as String).toList() ?? [], isEmpty: json['IsEmpty'] as bool?, ); -Map _$LibraryUpdateInfoToJson(LibraryUpdateInfo instance) => - { +Map _$LibraryUpdateInfoToJson(LibraryUpdateInfo instance) => { if (instance.foldersAddedTo case final value?) 'FoldersAddedTo': value, - if (instance.foldersRemovedFrom case final value?) - 'FoldersRemovedFrom': value, + if (instance.foldersRemovedFrom case final value?) 'FoldersRemovedFrom': value, if (instance.itemsAdded case final value?) 'ItemsAdded': value, if (instance.itemsRemoved case final value?) 'ItemsRemoved': value, if (instance.itemsUpdated case final value?) 'ItemsUpdated': value, - if (instance.collectionFolders case final value?) - 'CollectionFolders': value, + if (instance.collectionFolders case final value?) 'CollectionFolders': value, if (instance.isEmpty case final value?) 'IsEmpty': value, }; -ListingsProviderInfo _$ListingsProviderInfoFromJson( - Map json) => - ListingsProviderInfo( +ListingsProviderInfo _$ListingsProviderInfoFromJson(Map json) => ListingsProviderInfo( id: json['Id'] as String?, type: json['Type'] as String?, username: json['Username'] as String?, @@ -2834,27 +2019,12 @@ ListingsProviderInfo _$ListingsProviderInfoFromJson( zipCode: json['ZipCode'] as String?, country: json['Country'] as String?, path: json['Path'] as String?, - enabledTuners: (json['EnabledTuners'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledTuners: (json['EnabledTuners'] as List?)?.map((e) => e as String).toList() ?? [], enableAllTuners: json['EnableAllTuners'] as bool?, - newsCategories: (json['NewsCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - sportsCategories: (json['SportsCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - kidsCategories: (json['KidsCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - movieCategories: (json['MovieCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + newsCategories: (json['NewsCategories'] as List?)?.map((e) => e as String).toList() ?? [], + sportsCategories: (json['SportsCategories'] as List?)?.map((e) => e as String).toList() ?? [], + kidsCategories: (json['KidsCategories'] as List?)?.map((e) => e as String).toList() ?? [], + movieCategories: (json['MovieCategories'] as List?)?.map((e) => e as String).toList() ?? [], channelMappings: (json['ChannelMappings'] as List?) ?.map((e) => NameValuePair.fromJson(e as Map)) .toList() ?? @@ -2864,9 +2034,7 @@ ListingsProviderInfo _$ListingsProviderInfoFromJson( userAgent: json['UserAgent'] as String?, ); -Map _$ListingsProviderInfoToJson( - ListingsProviderInfo instance) => - { +Map _$ListingsProviderInfoToJson(ListingsProviderInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.username case final value?) 'Username': value, @@ -2878,121 +2046,83 @@ Map _$ListingsProviderInfoToJson( if (instance.enabledTuners case final value?) 'EnabledTuners': value, if (instance.enableAllTuners case final value?) 'EnableAllTuners': value, if (instance.newsCategories case final value?) 'NewsCategories': value, - if (instance.sportsCategories case final value?) - 'SportsCategories': value, + if (instance.sportsCategories case final value?) 'SportsCategories': value, if (instance.kidsCategories case final value?) 'KidsCategories': value, if (instance.movieCategories case final value?) 'MovieCategories': value, - if (instance.channelMappings?.map((e) => e.toJson()).toList() - case final value?) - 'ChannelMappings': value, + if (instance.channelMappings?.map((e) => e.toJson()).toList() case final value?) 'ChannelMappings': value, if (instance.moviePrefix case final value?) 'MoviePrefix': value, - if (instance.preferredLanguage case final value?) - 'PreferredLanguage': value, + if (instance.preferredLanguage case final value?) 'PreferredLanguage': value, if (instance.userAgent case final value?) 'UserAgent': value, }; -LiveStreamResponse _$LiveStreamResponseFromJson(Map json) => - LiveStreamResponse( - mediaSource: json['MediaSource'] == null - ? null - : MediaSourceInfo.fromJson( - json['MediaSource'] as Map), +LiveStreamResponse _$LiveStreamResponseFromJson(Map json) => LiveStreamResponse( + mediaSource: + json['MediaSource'] == null ? null : MediaSourceInfo.fromJson(json['MediaSource'] as Map), ); -Map _$LiveStreamResponseToJson(LiveStreamResponse instance) => - { - if (instance.mediaSource?.toJson() case final value?) - 'MediaSource': value, +Map _$LiveStreamResponseToJson(LiveStreamResponse instance) => { + if (instance.mediaSource?.toJson() case final value?) 'MediaSource': value, }; LiveTvInfo _$LiveTvInfoFromJson(Map json) => LiveTvInfo( services: (json['Services'] as List?) - ?.map( - (e) => LiveTvServiceInfo.fromJson(e as Map)) + ?.map((e) => LiveTvServiceInfo.fromJson(e as Map)) .toList() ?? [], isEnabled: json['IsEnabled'] as bool?, - enabledUsers: (json['EnabledUsers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledUsers: (json['EnabledUsers'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$LiveTvInfoToJson(LiveTvInfo instance) => - { - if (instance.services?.map((e) => e.toJson()).toList() case final value?) - 'Services': value, +Map _$LiveTvInfoToJson(LiveTvInfo instance) => { + if (instance.services?.map((e) => e.toJson()).toList() case final value?) 'Services': value, if (instance.isEnabled case final value?) 'IsEnabled': value, if (instance.enabledUsers case final value?) 'EnabledUsers': value, }; -LiveTvOptions _$LiveTvOptionsFromJson(Map json) => - LiveTvOptions( +LiveTvOptions _$LiveTvOptionsFromJson(Map json) => LiveTvOptions( guideDays: (json['GuideDays'] as num?)?.toInt(), recordingPath: json['RecordingPath'] as String?, movieRecordingPath: json['MovieRecordingPath'] as String?, seriesRecordingPath: json['SeriesRecordingPath'] as String?, enableRecordingSubfolders: json['EnableRecordingSubfolders'] as bool?, - enableOriginalAudioWithEncodedRecordings: - json['EnableOriginalAudioWithEncodedRecordings'] as bool?, + enableOriginalAudioWithEncodedRecordings: json['EnableOriginalAudioWithEncodedRecordings'] as bool?, tunerHosts: (json['TunerHosts'] as List?) ?.map((e) => TunerHostInfo.fromJson(e as Map)) .toList() ?? [], listingProviders: (json['ListingProviders'] as List?) - ?.map((e) => - ListingsProviderInfo.fromJson(e as Map)) + ?.map((e) => ListingsProviderInfo.fromJson(e as Map)) .toList() ?? [], prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), postPaddingSeconds: (json['PostPaddingSeconds'] as num?)?.toInt(), - mediaLocationsCreated: (json['MediaLocationsCreated'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + mediaLocationsCreated: (json['MediaLocationsCreated'] as List?)?.map((e) => e as String).toList() ?? [], recordingPostProcessor: json['RecordingPostProcessor'] as String?, - recordingPostProcessorArguments: - json['RecordingPostProcessorArguments'] as String?, + recordingPostProcessorArguments: json['RecordingPostProcessorArguments'] as String?, saveRecordingNFO: json['SaveRecordingNFO'] as bool?, saveRecordingImages: json['SaveRecordingImages'] as bool?, ); -Map _$LiveTvOptionsToJson(LiveTvOptions instance) => - { +Map _$LiveTvOptionsToJson(LiveTvOptions instance) => { if (instance.guideDays case final value?) 'GuideDays': value, if (instance.recordingPath case final value?) 'RecordingPath': value, - if (instance.movieRecordingPath case final value?) - 'MovieRecordingPath': value, - if (instance.seriesRecordingPath case final value?) - 'SeriesRecordingPath': value, - if (instance.enableRecordingSubfolders case final value?) - 'EnableRecordingSubfolders': value, + if (instance.movieRecordingPath case final value?) 'MovieRecordingPath': value, + if (instance.seriesRecordingPath case final value?) 'SeriesRecordingPath': value, + if (instance.enableRecordingSubfolders case final value?) 'EnableRecordingSubfolders': value, if (instance.enableOriginalAudioWithEncodedRecordings case final value?) 'EnableOriginalAudioWithEncodedRecordings': value, - if (instance.tunerHosts?.map((e) => e.toJson()).toList() - case final value?) - 'TunerHosts': value, - if (instance.listingProviders?.map((e) => e.toJson()).toList() - case final value?) - 'ListingProviders': value, - if (instance.prePaddingSeconds case final value?) - 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) - 'PostPaddingSeconds': value, - if (instance.mediaLocationsCreated case final value?) - 'MediaLocationsCreated': value, - if (instance.recordingPostProcessor case final value?) - 'RecordingPostProcessor': value, - if (instance.recordingPostProcessorArguments case final value?) - 'RecordingPostProcessorArguments': value, - if (instance.saveRecordingNFO case final value?) - 'SaveRecordingNFO': value, - if (instance.saveRecordingImages case final value?) - 'SaveRecordingImages': value, - }; - -LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => - LiveTvServiceInfo( + if (instance.tunerHosts?.map((e) => e.toJson()).toList() case final value?) 'TunerHosts': value, + if (instance.listingProviders?.map((e) => e.toJson()).toList() case final value?) 'ListingProviders': value, + if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, + if (instance.mediaLocationsCreated case final value?) 'MediaLocationsCreated': value, + if (instance.recordingPostProcessor case final value?) 'RecordingPostProcessor': value, + if (instance.recordingPostProcessorArguments case final value?) 'RecordingPostProcessorArguments': value, + if (instance.saveRecordingNFO case final value?) 'SaveRecordingNFO': value, + if (instance.saveRecordingImages case final value?) 'SaveRecordingImages': value, + }; + +LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => LiveTvServiceInfo( name: json['Name'] as String?, homePageUrl: json['HomePageUrl'] as String?, status: liveTvServiceStatusNullableFromJson(json['Status']), @@ -3000,100 +2130,76 @@ LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => version: json['Version'] as String?, hasUpdateAvailable: json['HasUpdateAvailable'] as bool?, isVisible: json['IsVisible'] as bool?, - tuners: (json['Tuners'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + tuners: (json['Tuners'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$LiveTvServiceInfoToJson(LiveTvServiceInfo instance) => - { +Map _$LiveTvServiceInfoToJson(LiveTvServiceInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.homePageUrl case final value?) 'HomePageUrl': value, - if (liveTvServiceStatusNullableToJson(instance.status) case final value?) - 'Status': value, + if (liveTvServiceStatusNullableToJson(instance.status) case final value?) 'Status': value, if (instance.statusMessage case final value?) 'StatusMessage': value, if (instance.version case final value?) 'Version': value, - if (instance.hasUpdateAvailable case final value?) - 'HasUpdateAvailable': value, + if (instance.hasUpdateAvailable case final value?) 'HasUpdateAvailable': value, if (instance.isVisible case final value?) 'IsVisible': value, if (instance.tuners case final value?) 'Tuners': value, }; -LocalizationOption _$LocalizationOptionFromJson(Map json) => - LocalizationOption( +LocalizationOption _$LocalizationOptionFromJson(Map json) => LocalizationOption( name: json['Name'] as String?, $Value: json['Value'] as String?, ); -Map _$LocalizationOptionToJson(LocalizationOption instance) => - { +Map _$LocalizationOptionToJson(LocalizationOption instance) => { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, }; LogFile _$LogFileFromJson(Map json) => LogFile( - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateModified: json['DateModified'] == null - ? null - : DateTime.parse(json['DateModified'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateModified: json['DateModified'] == null ? null : DateTime.parse(json['DateModified'] as String), size: (json['Size'] as num?)?.toInt(), name: json['Name'] as String?, ); Map _$LogFileToJson(LogFile instance) => { - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateModified?.toIso8601String() case final value?) - 'DateModified': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateModified?.toIso8601String() case final value?) 'DateModified': value, if (instance.size case final value?) 'Size': value, if (instance.name case final value?) 'Name': value, }; -LoginInfoInput _$LoginInfoInputFromJson(Map json) => - LoginInfoInput( +LoginInfoInput _$LoginInfoInputFromJson(Map json) => LoginInfoInput( username: json['Username'] as String, password: json['Password'] as String, ); -Map _$LoginInfoInputToJson(LoginInfoInput instance) => - { +Map _$LoginInfoInputToJson(LoginInfoInput instance) => { 'Username': instance.username, 'Password': instance.password, }; LyricDto _$LyricDtoFromJson(Map json) => LyricDto( - metadata: json['Metadata'] == null - ? null - : LyricMetadata.fromJson(json['Metadata'] as Map), - lyrics: (json['Lyrics'] as List?) - ?.map((e) => LyricLine.fromJson(e as Map)) - .toList() ?? - [], + metadata: json['Metadata'] == null ? null : LyricMetadata.fromJson(json['Metadata'] as Map), + lyrics: + (json['Lyrics'] as List?)?.map((e) => LyricLine.fromJson(e as Map)).toList() ?? [], ); Map _$LyricDtoToJson(LyricDto instance) => { if (instance.metadata?.toJson() case final value?) 'Metadata': value, - if (instance.lyrics?.map((e) => e.toJson()).toList() case final value?) - 'Lyrics': value, + if (instance.lyrics?.map((e) => e.toJson()).toList() case final value?) 'Lyrics': value, }; LyricLine _$LyricLineFromJson(Map json) => LyricLine( text: json['Text'] as String?, start: (json['Start'] as num?)?.toInt(), - cues: (json['Cues'] as List?) - ?.map((e) => LyricLineCue.fromJson(e as Map)) - .toList() ?? - [], + cues: + (json['Cues'] as List?)?.map((e) => LyricLineCue.fromJson(e as Map)).toList() ?? [], ); Map _$LyricLineToJson(LyricLine instance) => { if (instance.text case final value?) 'Text': value, if (instance.start case final value?) 'Start': value, - if (instance.cues?.map((e) => e.toJson()).toList() case final value?) - 'Cues': value, + if (instance.cues?.map((e) => e.toJson()).toList() case final value?) 'Cues': value, }; LyricLineCue _$LyricLineCueFromJson(Map json) => LyricLineCue( @@ -3103,16 +2209,14 @@ LyricLineCue _$LyricLineCueFromJson(Map json) => LyricLineCue( end: (json['End'] as num?)?.toInt(), ); -Map _$LyricLineCueToJson(LyricLineCue instance) => - { +Map _$LyricLineCueToJson(LyricLineCue instance) => { if (instance.position case final value?) 'Position': value, if (instance.endPosition case final value?) 'EndPosition': value, if (instance.start case final value?) 'Start': value, if (instance.end case final value?) 'End': value, }; -LyricMetadata _$LyricMetadataFromJson(Map json) => - LyricMetadata( +LyricMetadata _$LyricMetadataFromJson(Map json) => LyricMetadata( artist: json['Artist'] as String?, album: json['Album'] as String?, title: json['Title'] as String?, @@ -3125,8 +2229,7 @@ LyricMetadata _$LyricMetadataFromJson(Map json) => isSynced: json['IsSynced'] as bool?, ); -Map _$LyricMetadataToJson(LyricMetadata instance) => - { +Map _$LyricMetadataToJson(LyricMetadata instance) => { if (instance.artist case final value?) 'Artist': value, if (instance.album case final value?) 'Album': value, if (instance.title case final value?) 'Title': value, @@ -3139,8 +2242,7 @@ Map _$LyricMetadataToJson(LyricMetadata instance) => if (instance.isSynced case final value?) 'IsSynced': value, }; -MediaAttachment _$MediaAttachmentFromJson(Map json) => - MediaAttachment( +MediaAttachment _$MediaAttachmentFromJson(Map json) => MediaAttachment( codec: json['Codec'] as String?, codecTag: json['CodecTag'] as String?, comment: json['Comment'] as String?, @@ -3150,8 +2252,7 @@ MediaAttachment _$MediaAttachmentFromJson(Map json) => deliveryUrl: json['DeliveryUrl'] as String?, ); -Map _$MediaAttachmentToJson(MediaAttachment instance) => - { +Map _$MediaAttachmentToJson(MediaAttachment instance) => { if (instance.codec case final value?) 'Codec': value, if (instance.codecTag case final value?) 'CodecTag': value, if (instance.comment case final value?) 'Comment': value, @@ -3164,30 +2265,24 @@ Map _$MediaAttachmentToJson(MediaAttachment instance) => MediaPathDto _$MediaPathDtoFromJson(Map json) => MediaPathDto( name: json['Name'] as String, path: json['Path'] as String?, - pathInfo: json['PathInfo'] == null - ? null - : MediaPathInfo.fromJson(json['PathInfo'] as Map), + pathInfo: json['PathInfo'] == null ? null : MediaPathInfo.fromJson(json['PathInfo'] as Map), ); -Map _$MediaPathDtoToJson(MediaPathDto instance) => - { +Map _$MediaPathDtoToJson(MediaPathDto instance) => { 'Name': instance.name, if (instance.path case final value?) 'Path': value, if (instance.pathInfo?.toJson() case final value?) 'PathInfo': value, }; -MediaPathInfo _$MediaPathInfoFromJson(Map json) => - MediaPathInfo( +MediaPathInfo _$MediaPathInfoFromJson(Map json) => MediaPathInfo( path: json['Path'] as String?, ); -Map _$MediaPathInfoToJson(MediaPathInfo instance) => - { +Map _$MediaPathInfoToJson(MediaPathInfo instance) => { if (instance.path case final value?) 'Path': value, }; -MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => - MediaSegmentDto( +MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => MediaSegmentDto( id: json['Id'] as String?, itemId: json['ItemId'] as String?, type: MediaSegmentDto.mediaSegmentTypeTypeNullableFromJson(json['Type']), @@ -3195,39 +2290,30 @@ MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => endTicks: (json['EndTicks'] as num?)?.toInt(), ); -Map _$MediaSegmentDtoToJson(MediaSegmentDto instance) => - { +Map _$MediaSegmentDtoToJson(MediaSegmentDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.itemId case final value?) 'ItemId': value, - if (mediaSegmentTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (mediaSegmentTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.startTicks case final value?) 'StartTicks': value, if (instance.endTicks case final value?) 'EndTicks': value, }; -MediaSegmentDtoQueryResult _$MediaSegmentDtoQueryResultFromJson( - Map json) => +MediaSegmentDtoQueryResult _$MediaSegmentDtoQueryResultFromJson(Map json) => MediaSegmentDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => MediaSegmentDto.fromJson(e as Map)) - .toList() ?? - [], + items: + (json['Items'] as List?)?.map((e) => MediaSegmentDto.fromJson(e as Map)).toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$MediaSegmentDtoQueryResultToJson( - MediaSegmentDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$MediaSegmentDtoQueryResultToJson(MediaSegmentDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => - MediaSourceInfo( +MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => MediaSourceInfo( protocol: mediaProtocolNullableFromJson(json['Protocol']), id: json['Id'] as String?, path: json['Path'] as String?, @@ -3248,8 +2334,7 @@ MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => supportsDirectStream: json['SupportsDirectStream'] as bool?, supportsDirectPlay: json['SupportsDirectPlay'] as bool?, isInfiniteStream: json['IsInfiniteStream'] as bool?, - useMostCompatibleTranscodingProfile: - json['UseMostCompatibleTranscodingProfile'] as bool? ?? false, + useMostCompatibleTranscodingProfile: json['UseMostCompatibleTranscodingProfile'] as bool? ?? false, requiresOpening: json['RequiresOpening'] as bool?, openToken: json['OpenToken'] as String?, requiresClosing: json['RequiresClosing'] as bool?, @@ -3268,60 +2353,42 @@ MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => ?.map((e) => MediaAttachment.fromJson(e as Map)) .toList() ?? [], - formats: (json['Formats'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + formats: (json['Formats'] as List?)?.map((e) => e as String).toList() ?? [], bitrate: (json['Bitrate'] as num?)?.toInt(), - fallbackMaxStreamingBitrate: - (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), + fallbackMaxStreamingBitrate: (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), timestamp: transportStreamTimestampNullableFromJson(json['Timestamp']), requiredHttpHeaders: json['RequiredHttpHeaders'] as Map?, transcodingUrl: json['TranscodingUrl'] as String?, - transcodingSubProtocol: - mediaStreamProtocolNullableFromJson(json['TranscodingSubProtocol']), + transcodingSubProtocol: mediaStreamProtocolNullableFromJson(json['TranscodingSubProtocol']), transcodingContainer: json['TranscodingContainer'] as String?, analyzeDurationMs: (json['AnalyzeDurationMs'] as num?)?.toInt(), - defaultAudioStreamIndex: - (json['DefaultAudioStreamIndex'] as num?)?.toInt(), - defaultSubtitleStreamIndex: - (json['DefaultSubtitleStreamIndex'] as num?)?.toInt(), + defaultAudioStreamIndex: (json['DefaultAudioStreamIndex'] as num?)?.toInt(), + defaultSubtitleStreamIndex: (json['DefaultSubtitleStreamIndex'] as num?)?.toInt(), hasSegments: json['HasSegments'] as bool?, ); -Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => - { - if (mediaProtocolNullableToJson(instance.protocol) case final value?) - 'Protocol': value, +Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => { + if (mediaProtocolNullableToJson(instance.protocol) case final value?) 'Protocol': value, if (instance.id case final value?) 'Id': value, if (instance.path case final value?) 'Path': value, if (instance.encoderPath case final value?) 'EncoderPath': value, - if (mediaProtocolNullableToJson(instance.encoderProtocol) - case final value?) - 'EncoderProtocol': value, - if (mediaSourceTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (mediaProtocolNullableToJson(instance.encoderProtocol) case final value?) 'EncoderProtocol': value, + if (mediaSourceTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.container case final value?) 'Container': value, if (instance.size case final value?) 'Size': value, if (instance.name case final value?) 'Name': value, if (instance.isRemote case final value?) 'IsRemote': value, if (instance.eTag case final value?) 'ETag': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (instance.readAtNativeFramerate case final value?) - 'ReadAtNativeFramerate': value, + if (instance.readAtNativeFramerate case final value?) 'ReadAtNativeFramerate': value, if (instance.ignoreDts case final value?) 'IgnoreDts': value, if (instance.ignoreIndex case final value?) 'IgnoreIndex': value, if (instance.genPtsInput case final value?) 'GenPtsInput': value, - if (instance.supportsTranscoding case final value?) - 'SupportsTranscoding': value, - if (instance.supportsDirectStream case final value?) - 'SupportsDirectStream': value, - if (instance.supportsDirectPlay case final value?) - 'SupportsDirectPlay': value, - if (instance.isInfiniteStream case final value?) - 'IsInfiniteStream': value, - if (instance.useMostCompatibleTranscodingProfile case final value?) - 'UseMostCompatibleTranscodingProfile': value, + if (instance.supportsTranscoding case final value?) 'SupportsTranscoding': value, + if (instance.supportsDirectStream case final value?) 'SupportsDirectStream': value, + if (instance.supportsDirectPlay case final value?) 'SupportsDirectPlay': value, + if (instance.isInfiniteStream case final value?) 'IsInfiniteStream': value, + if (instance.useMostCompatibleTranscodingProfile case final value?) 'UseMostCompatibleTranscodingProfile': value, if (instance.requiresOpening case final value?) 'RequiresOpening': value, if (instance.openToken case final value?) 'OpenToken': value, if (instance.requiresClosing case final value?) 'RequiresClosing': value, @@ -3329,39 +2396,23 @@ Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => if (instance.bufferMs case final value?) 'BufferMs': value, if (instance.requiresLooping case final value?) 'RequiresLooping': value, if (instance.supportsProbing case final value?) 'SupportsProbing': value, - if (videoTypeNullableToJson(instance.videoType) case final value?) - 'VideoType': value, - if (isoTypeNullableToJson(instance.isoType) case final value?) - 'IsoType': value, - if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) - 'Video3DFormat': value, - if (instance.mediaStreams?.map((e) => e.toJson()).toList() - case final value?) - 'MediaStreams': value, - if (instance.mediaAttachments?.map((e) => e.toJson()).toList() - case final value?) - 'MediaAttachments': value, + if (videoTypeNullableToJson(instance.videoType) case final value?) 'VideoType': value, + if (isoTypeNullableToJson(instance.isoType) case final value?) 'IsoType': value, + if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) 'Video3DFormat': value, + if (instance.mediaStreams?.map((e) => e.toJson()).toList() case final value?) 'MediaStreams': value, + if (instance.mediaAttachments?.map((e) => e.toJson()).toList() case final value?) 'MediaAttachments': value, if (instance.formats case final value?) 'Formats': value, if (instance.bitrate case final value?) 'Bitrate': value, - if (instance.fallbackMaxStreamingBitrate case final value?) - 'FallbackMaxStreamingBitrate': value, - if (transportStreamTimestampNullableToJson(instance.timestamp) - case final value?) - 'Timestamp': value, - if (instance.requiredHttpHeaders case final value?) - 'RequiredHttpHeaders': value, + if (instance.fallbackMaxStreamingBitrate case final value?) 'FallbackMaxStreamingBitrate': value, + if (transportStreamTimestampNullableToJson(instance.timestamp) case final value?) 'Timestamp': value, + if (instance.requiredHttpHeaders case final value?) 'RequiredHttpHeaders': value, if (instance.transcodingUrl case final value?) 'TranscodingUrl': value, - if (mediaStreamProtocolNullableToJson(instance.transcodingSubProtocol) - case final value?) + if (mediaStreamProtocolNullableToJson(instance.transcodingSubProtocol) case final value?) 'TranscodingSubProtocol': value, - if (instance.transcodingContainer case final value?) - 'TranscodingContainer': value, - if (instance.analyzeDurationMs case final value?) - 'AnalyzeDurationMs': value, - if (instance.defaultAudioStreamIndex case final value?) - 'DefaultAudioStreamIndex': value, - if (instance.defaultSubtitleStreamIndex case final value?) - 'DefaultSubtitleStreamIndex': value, + if (instance.transcodingContainer case final value?) 'TranscodingContainer': value, + if (instance.analyzeDurationMs case final value?) 'AnalyzeDurationMs': value, + if (instance.defaultAudioStreamIndex case final value?) 'DefaultAudioStreamIndex': value, + if (instance.defaultSubtitleStreamIndex case final value?) 'DefaultSubtitleStreamIndex': value, if (instance.hasSegments case final value?) 'HasSegments': value, }; @@ -3380,22 +2431,17 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( rpuPresentFlag: (json['RpuPresentFlag'] as num?)?.toInt(), elPresentFlag: (json['ElPresentFlag'] as num?)?.toInt(), blPresentFlag: (json['BlPresentFlag'] as num?)?.toInt(), - dvBlSignalCompatibilityId: - (json['DvBlSignalCompatibilityId'] as num?)?.toInt(), + dvBlSignalCompatibilityId: (json['DvBlSignalCompatibilityId'] as num?)?.toInt(), rotation: (json['Rotation'] as num?)?.toInt(), comment: json['Comment'] as String?, timeBase: json['TimeBase'] as String?, codecTimeBase: json['CodecTimeBase'] as String?, title: json['Title'] as String?, hdr10PlusPresentFlag: json['Hdr10PlusPresentFlag'] as bool?, - videoRange: - MediaStream.videoRangeVideoRangeNullableFromJson(json['VideoRange']), - videoRangeType: MediaStream.videoRangeTypeVideoRangeTypeNullableFromJson( - json['VideoRangeType']), + videoRange: MediaStream.videoRangeVideoRangeNullableFromJson(json['VideoRange']), + videoRangeType: MediaStream.videoRangeTypeVideoRangeTypeNullableFromJson(json['VideoRangeType']), videoDoViTitle: json['VideoDoViTitle'] as String?, - audioSpatialFormat: - MediaStream.audioSpatialFormatAudioSpatialFormatNullableFromJson( - json['AudioSpatialFormat']), + audioSpatialFormat: MediaStream.audioSpatialFormatAudioSpatialFormatNullableFromJson(json['AudioSpatialFormat']), localizedUndefined: json['LocalizedUndefined'] as String?, localizedDefault: json['LocalizedDefault'] as String?, localizedForced: json['LocalizedForced'] as String?, @@ -3426,8 +2472,7 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( index: (json['Index'] as num?)?.toInt(), score: (json['Score'] as num?)?.toInt(), isExternal: json['IsExternal'] as bool?, - deliveryMethod: - subtitleDeliveryMethodNullableFromJson(json['DeliveryMethod']), + deliveryMethod: subtitleDeliveryMethodNullableFromJson(json['DeliveryMethod']), deliveryUrl: json['DeliveryUrl'] as String?, isExternalUrl: json['IsExternalUrl'] as bool?, isTextSubtitleStream: json['IsTextSubtitleStream'] as bool?, @@ -3438,8 +2483,7 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( isAnamorphic: json['IsAnamorphic'] as bool?, ); -Map _$MediaStreamToJson(MediaStream instance) => - { +Map _$MediaStreamToJson(MediaStream instance) => { if (instance.codec case final value?) 'Codec': value, if (instance.codecTag case final value?) 'CodecTag': value, if (instance.language case final value?) 'Language': value, @@ -3454,33 +2498,22 @@ Map _$MediaStreamToJson(MediaStream instance) => if (instance.rpuPresentFlag case final value?) 'RpuPresentFlag': value, if (instance.elPresentFlag case final value?) 'ElPresentFlag': value, if (instance.blPresentFlag case final value?) 'BlPresentFlag': value, - if (instance.dvBlSignalCompatibilityId case final value?) - 'DvBlSignalCompatibilityId': value, + if (instance.dvBlSignalCompatibilityId case final value?) 'DvBlSignalCompatibilityId': value, if (instance.rotation case final value?) 'Rotation': value, if (instance.comment case final value?) 'Comment': value, if (instance.timeBase case final value?) 'TimeBase': value, if (instance.codecTimeBase case final value?) 'CodecTimeBase': value, if (instance.title case final value?) 'Title': value, - if (instance.hdr10PlusPresentFlag case final value?) - 'Hdr10PlusPresentFlag': value, - if (videoRangeNullableToJson(instance.videoRange) case final value?) - 'VideoRange': value, - if (videoRangeTypeNullableToJson(instance.videoRangeType) - case final value?) - 'VideoRangeType': value, + if (instance.hdr10PlusPresentFlag case final value?) 'Hdr10PlusPresentFlag': value, + if (videoRangeNullableToJson(instance.videoRange) case final value?) 'VideoRange': value, + if (videoRangeTypeNullableToJson(instance.videoRangeType) case final value?) 'VideoRangeType': value, if (instance.videoDoViTitle case final value?) 'VideoDoViTitle': value, - if (audioSpatialFormatNullableToJson(instance.audioSpatialFormat) - case final value?) - 'AudioSpatialFormat': value, - if (instance.localizedUndefined case final value?) - 'LocalizedUndefined': value, - if (instance.localizedDefault case final value?) - 'LocalizedDefault': value, + if (audioSpatialFormatNullableToJson(instance.audioSpatialFormat) case final value?) 'AudioSpatialFormat': value, + if (instance.localizedUndefined case final value?) 'LocalizedUndefined': value, + if (instance.localizedDefault case final value?) 'LocalizedDefault': value, if (instance.localizedForced case final value?) 'LocalizedForced': value, - if (instance.localizedExternal case final value?) - 'LocalizedExternal': value, - if (instance.localizedHearingImpaired case final value?) - 'LocalizedHearingImpaired': value, + if (instance.localizedExternal case final value?) 'LocalizedExternal': value, + if (instance.localizedHearingImpaired case final value?) 'LocalizedHearingImpaired': value, if (instance.displayTitle case final value?) 'DisplayTitle': value, if (instance.nalLengthSize case final value?) 'NalLengthSize': value, if (instance.isInterlaced case final value?) 'IsInterlaced': value, @@ -3494,62 +2527,46 @@ Map _$MediaStreamToJson(MediaStream instance) => if (instance.sampleRate case final value?) 'SampleRate': value, if (instance.isDefault case final value?) 'IsDefault': value, if (instance.isForced case final value?) 'IsForced': value, - if (instance.isHearingImpaired case final value?) - 'IsHearingImpaired': value, + if (instance.isHearingImpaired case final value?) 'IsHearingImpaired': value, if (instance.height case final value?) 'Height': value, if (instance.width case final value?) 'Width': value, - if (instance.averageFrameRate case final value?) - 'AverageFrameRate': value, + if (instance.averageFrameRate case final value?) 'AverageFrameRate': value, if (instance.realFrameRate case final value?) 'RealFrameRate': value, - if (instance.referenceFrameRate case final value?) - 'ReferenceFrameRate': value, + if (instance.referenceFrameRate case final value?) 'ReferenceFrameRate': value, if (instance.profile case final value?) 'Profile': value, - if (mediaStreamTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (mediaStreamTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, if (instance.index case final value?) 'Index': value, if (instance.score case final value?) 'Score': value, if (instance.isExternal case final value?) 'IsExternal': value, - if (subtitleDeliveryMethodNullableToJson(instance.deliveryMethod) - case final value?) - 'DeliveryMethod': value, + if (subtitleDeliveryMethodNullableToJson(instance.deliveryMethod) case final value?) 'DeliveryMethod': value, if (instance.deliveryUrl case final value?) 'DeliveryUrl': value, if (instance.isExternalUrl case final value?) 'IsExternalUrl': value, - if (instance.isTextSubtitleStream case final value?) - 'IsTextSubtitleStream': value, - if (instance.supportsExternalStream case final value?) - 'SupportsExternalStream': value, + if (instance.isTextSubtitleStream case final value?) 'IsTextSubtitleStream': value, + if (instance.supportsExternalStream case final value?) 'SupportsExternalStream': value, if (instance.path case final value?) 'Path': value, if (instance.pixelFormat case final value?) 'PixelFormat': value, if (instance.level case final value?) 'Level': value, if (instance.isAnamorphic case final value?) 'IsAnamorphic': value, }; -MediaUpdateInfoDto _$MediaUpdateInfoDtoFromJson(Map json) => - MediaUpdateInfoDto( +MediaUpdateInfoDto _$MediaUpdateInfoDtoFromJson(Map json) => MediaUpdateInfoDto( updates: (json['Updates'] as List?) - ?.map((e) => - MediaUpdateInfoPathDto.fromJson(e as Map)) + ?.map((e) => MediaUpdateInfoPathDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$MediaUpdateInfoDtoToJson(MediaUpdateInfoDto instance) => - { - if (instance.updates?.map((e) => e.toJson()).toList() case final value?) - 'Updates': value, +Map _$MediaUpdateInfoDtoToJson(MediaUpdateInfoDto instance) => { + if (instance.updates?.map((e) => e.toJson()).toList() case final value?) 'Updates': value, }; -MediaUpdateInfoPathDto _$MediaUpdateInfoPathDtoFromJson( - Map json) => - MediaUpdateInfoPathDto( +MediaUpdateInfoPathDto _$MediaUpdateInfoPathDtoFromJson(Map json) => MediaUpdateInfoPathDto( path: json['Path'] as String?, updateType: json['UpdateType'] as String?, ); -Map _$MediaUpdateInfoPathDtoToJson( - MediaUpdateInfoPathDto instance) => - { +Map _$MediaUpdateInfoPathDtoToJson(MediaUpdateInfoPathDto instance) => { if (instance.path case final value?) 'Path': value, if (instance.updateType case final value?) 'UpdateType': value, }; @@ -3564,48 +2581,37 @@ Map _$MediaUrlToJson(MediaUrl instance) => { if (instance.name case final value?) 'Name': value, }; -MessageCommand _$MessageCommandFromJson(Map json) => - MessageCommand( +MessageCommand _$MessageCommandFromJson(Map json) => MessageCommand( header: json['Header'] as String?, text: json['Text'] as String, timeoutMs: (json['TimeoutMs'] as num?)?.toInt(), ); -Map _$MessageCommandToJson(MessageCommand instance) => - { +Map _$MessageCommandToJson(MessageCommand instance) => { if (instance.header case final value?) 'Header': value, 'Text': instance.text, if (instance.timeoutMs case final value?) 'TimeoutMs': value, }; -MetadataConfiguration _$MetadataConfigurationFromJson( - Map json) => - MetadataConfiguration( - useFileCreationTimeForDateAdded: - json['UseFileCreationTimeForDateAdded'] as bool?, +MetadataConfiguration _$MetadataConfigurationFromJson(Map json) => MetadataConfiguration( + useFileCreationTimeForDateAdded: json['UseFileCreationTimeForDateAdded'] as bool?, ); -Map _$MetadataConfigurationToJson( - MetadataConfiguration instance) => - { - if (instance.useFileCreationTimeForDateAdded case final value?) - 'UseFileCreationTimeForDateAdded': value, +Map _$MetadataConfigurationToJson(MetadataConfiguration instance) => { + if (instance.useFileCreationTimeForDateAdded case final value?) 'UseFileCreationTimeForDateAdded': value, }; -MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => - MetadataEditorInfo( +MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => MetadataEditorInfo( parentalRatingOptions: (json['ParentalRatingOptions'] as List?) ?.map((e) => ParentalRating.fromJson(e as Map)) .toList() ?? [], - countries: (json['Countries'] as List?) - ?.map((e) => CountryInfo.fromJson(e as Map)) - .toList() ?? - [], - cultures: (json['Cultures'] as List?) - ?.map((e) => CultureDto.fromJson(e as Map)) - .toList() ?? - [], + countries: + (json['Countries'] as List?)?.map((e) => CountryInfo.fromJson(e as Map)).toList() ?? + [], + cultures: + (json['Cultures'] as List?)?.map((e) => CultureDto.fromJson(e as Map)).toList() ?? + [], externalIdInfos: (json['ExternalIdInfos'] as List?) ?.map((e) => ExternalIdInfo.fromJson(e as Map)) .toList() ?? @@ -3617,83 +2623,46 @@ MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => [], ); -Map _$MetadataEditorInfoToJson(MetadataEditorInfo instance) => - { - if (instance.parentalRatingOptions?.map((e) => e.toJson()).toList() - case final value?) +Map _$MetadataEditorInfoToJson(MetadataEditorInfo instance) => { + if (instance.parentalRatingOptions?.map((e) => e.toJson()).toList() case final value?) 'ParentalRatingOptions': value, - if (instance.countries?.map((e) => e.toJson()).toList() case final value?) - 'Countries': value, - if (instance.cultures?.map((e) => e.toJson()).toList() case final value?) - 'Cultures': value, - if (instance.externalIdInfos?.map((e) => e.toJson()).toList() - case final value?) - 'ExternalIdInfos': value, - if (collectionTypeNullableToJson(instance.contentType) case final value?) - 'ContentType': value, - if (instance.contentTypeOptions?.map((e) => e.toJson()).toList() - case final value?) - 'ContentTypeOptions': value, - }; - -MetadataOptions _$MetadataOptionsFromJson(Map json) => - MetadataOptions( + if (instance.countries?.map((e) => e.toJson()).toList() case final value?) 'Countries': value, + if (instance.cultures?.map((e) => e.toJson()).toList() case final value?) 'Cultures': value, + if (instance.externalIdInfos?.map((e) => e.toJson()).toList() case final value?) 'ExternalIdInfos': value, + if (collectionTypeNullableToJson(instance.contentType) case final value?) 'ContentType': value, + if (instance.contentTypeOptions?.map((e) => e.toJson()).toList() case final value?) 'ContentTypeOptions': value, + }; + +MetadataOptions _$MetadataOptionsFromJson(Map json) => MetadataOptions( itemType: json['ItemType'] as String?, - disabledMetadataSavers: (json['DisabledMetadataSavers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + disabledMetadataSavers: + (json['DisabledMetadataSavers'] as List?)?.map((e) => e as String).toList() ?? [], localMetadataReaderOrder: - (json['LocalMetadataReaderOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['LocalMetadataReaderOrder'] as List?)?.map((e) => e as String).toList() ?? [], disabledMetadataFetchers: - (json['DisabledMetadataFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - disabledImageFetchers: (json['DisabledImageFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - imageFetcherOrder: (json['ImageFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledMetadataFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + disabledImageFetchers: (json['DisabledImageFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + imageFetcherOrder: (json['ImageFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$MetadataOptionsToJson(MetadataOptions instance) => - { +Map _$MetadataOptionsToJson(MetadataOptions instance) => { if (instance.itemType case final value?) 'ItemType': value, - if (instance.disabledMetadataSavers case final value?) - 'DisabledMetadataSavers': value, - if (instance.localMetadataReaderOrder case final value?) - 'LocalMetadataReaderOrder': value, - if (instance.disabledMetadataFetchers case final value?) - 'DisabledMetadataFetchers': value, - if (instance.metadataFetcherOrder case final value?) - 'MetadataFetcherOrder': value, - if (instance.disabledImageFetchers case final value?) - 'DisabledImageFetchers': value, - if (instance.imageFetcherOrder case final value?) - 'ImageFetcherOrder': value, - }; - -MovePlaylistItemRequestDto _$MovePlaylistItemRequestDtoFromJson( - Map json) => + if (instance.disabledMetadataSavers case final value?) 'DisabledMetadataSavers': value, + if (instance.localMetadataReaderOrder case final value?) 'LocalMetadataReaderOrder': value, + if (instance.disabledMetadataFetchers case final value?) 'DisabledMetadataFetchers': value, + if (instance.metadataFetcherOrder case final value?) 'MetadataFetcherOrder': value, + if (instance.disabledImageFetchers case final value?) 'DisabledImageFetchers': value, + if (instance.imageFetcherOrder case final value?) 'ImageFetcherOrder': value, + }; + +MovePlaylistItemRequestDto _$MovePlaylistItemRequestDtoFromJson(Map json) => MovePlaylistItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, newIndex: (json['NewIndex'] as num?)?.toInt(), ); -Map _$MovePlaylistItemRequestDtoToJson( - MovePlaylistItemRequestDto instance) => - { +Map _$MovePlaylistItemRequestDtoToJson(MovePlaylistItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.newIndex case final value?) 'NewIndex': value, }; @@ -3708,9 +2677,7 @@ MovieInfo _$MovieInfoFromJson(Map json) => MovieInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); @@ -3718,44 +2685,32 @@ Map _$MovieInfoToJson(MovieInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -MovieInfoRemoteSearchQuery _$MovieInfoRemoteSearchQueryFromJson( - Map json) => +MovieInfoRemoteSearchQuery _$MovieInfoRemoteSearchQueryFromJson(Map json) => MovieInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : MovieInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : MovieInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$MovieInfoRemoteSearchQueryToJson( - MovieInfoRemoteSearchQuery instance) => - { +Map _$MovieInfoRemoteSearchQueryToJson(MovieInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => - MusicVideoInfo( +MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => MusicVideoInfo( name: json['Name'] as String?, originalTitle: json['OriginalTitle'] as String?, path: json['Path'] as String?, @@ -3765,56 +2720,41 @@ MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$MusicVideoInfoToJson(MusicVideoInfo instance) => - { +Map _$MusicVideoInfoToJson(MusicVideoInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.artists case final value?) 'Artists': value, }; -MusicVideoInfoRemoteSearchQuery _$MusicVideoInfoRemoteSearchQueryFromJson( - Map json) => +MusicVideoInfoRemoteSearchQuery _$MusicVideoInfoRemoteSearchQueryFromJson(Map json) => MusicVideoInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : MusicVideoInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: + json['SearchInfo'] == null ? null : MusicVideoInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$MusicVideoInfoRemoteSearchQueryToJson( - MusicVideoInfoRemoteSearchQuery instance) => +Map _$MusicVideoInfoRemoteSearchQueryToJson(MusicVideoInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; NameGuidPair _$NameGuidPairFromJson(Map json) => NameGuidPair( @@ -3822,8 +2762,7 @@ NameGuidPair _$NameGuidPairFromJson(Map json) => NameGuidPair( id: json['Id'] as String?, ); -Map _$NameGuidPairToJson(NameGuidPair instance) => - { +Map _$NameGuidPairToJson(NameGuidPair instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; @@ -3833,27 +2772,22 @@ NameIdPair _$NameIdPairFromJson(Map json) => NameIdPair( id: json['Id'] as String?, ); -Map _$NameIdPairToJson(NameIdPair instance) => - { +Map _$NameIdPairToJson(NameIdPair instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; -NameValuePair _$NameValuePairFromJson(Map json) => - NameValuePair( +NameValuePair _$NameValuePairFromJson(Map json) => NameValuePair( name: json['Name'] as String?, $Value: json['Value'] as String?, ); -Map _$NameValuePairToJson(NameValuePair instance) => - { +Map _$NameValuePairToJson(NameValuePair instance) => { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, }; -NetworkConfiguration _$NetworkConfigurationFromJson( - Map json) => - NetworkConfiguration( +NetworkConfiguration _$NetworkConfigurationFromJson(Map json) => NetworkConfiguration( baseUrl: json['BaseUrl'] as String?, enableHttps: json['EnableHttps'] as bool?, requireHttps: json['RequireHttps'] as bool?, @@ -3868,98 +2802,61 @@ NetworkConfiguration _$NetworkConfigurationFromJson( enableIPv4: json['EnableIPv4'] as bool?, enableIPv6: json['EnableIPv6'] as bool?, enableRemoteAccess: json['EnableRemoteAccess'] as bool?, - localNetworkSubnets: (json['LocalNetworkSubnets'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - localNetworkAddresses: (json['LocalNetworkAddresses'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - knownProxies: (json['KnownProxies'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + localNetworkSubnets: (json['LocalNetworkSubnets'] as List?)?.map((e) => e as String).toList() ?? [], + localNetworkAddresses: (json['LocalNetworkAddresses'] as List?)?.map((e) => e as String).toList() ?? [], + knownProxies: (json['KnownProxies'] as List?)?.map((e) => e as String).toList() ?? [], ignoreVirtualInterfaces: json['IgnoreVirtualInterfaces'] as bool?, - virtualInterfaceNames: (json['VirtualInterfaceNames'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - enablePublishedServerUriByRequest: - json['EnablePublishedServerUriByRequest'] as bool?, + virtualInterfaceNames: (json['VirtualInterfaceNames'] as List?)?.map((e) => e as String).toList() ?? [], + enablePublishedServerUriByRequest: json['EnablePublishedServerUriByRequest'] as bool?, publishedServerUriBySubnet: - (json['PublishedServerUriBySubnet'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - remoteIPFilter: (json['RemoteIPFilter'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['PublishedServerUriBySubnet'] as List?)?.map((e) => e as String).toList() ?? [], + remoteIPFilter: (json['RemoteIPFilter'] as List?)?.map((e) => e as String).toList() ?? [], isRemoteIPFilterBlacklist: json['IsRemoteIPFilterBlacklist'] as bool?, ); -Map _$NetworkConfigurationToJson( - NetworkConfiguration instance) => - { +Map _$NetworkConfigurationToJson(NetworkConfiguration instance) => { if (instance.baseUrl case final value?) 'BaseUrl': value, if (instance.enableHttps case final value?) 'EnableHttps': value, if (instance.requireHttps case final value?) 'RequireHttps': value, if (instance.certificatePath case final value?) 'CertificatePath': value, - if (instance.certificatePassword case final value?) - 'CertificatePassword': value, - if (instance.internalHttpPort case final value?) - 'InternalHttpPort': value, - if (instance.internalHttpsPort case final value?) - 'InternalHttpsPort': value, + if (instance.certificatePassword case final value?) 'CertificatePassword': value, + if (instance.internalHttpPort case final value?) 'InternalHttpPort': value, + if (instance.internalHttpsPort case final value?) 'InternalHttpsPort': value, if (instance.publicHttpPort case final value?) 'PublicHttpPort': value, if (instance.publicHttpsPort case final value?) 'PublicHttpsPort': value, if (instance.autoDiscovery case final value?) 'AutoDiscovery': value, if (instance.enableUPnP case final value?) 'EnableUPnP': value, if (instance.enableIPv4 case final value?) 'EnableIPv4': value, if (instance.enableIPv6 case final value?) 'EnableIPv6': value, - if (instance.enableRemoteAccess case final value?) - 'EnableRemoteAccess': value, - if (instance.localNetworkSubnets case final value?) - 'LocalNetworkSubnets': value, - if (instance.localNetworkAddresses case final value?) - 'LocalNetworkAddresses': value, + if (instance.enableRemoteAccess case final value?) 'EnableRemoteAccess': value, + if (instance.localNetworkSubnets case final value?) 'LocalNetworkSubnets': value, + if (instance.localNetworkAddresses case final value?) 'LocalNetworkAddresses': value, if (instance.knownProxies case final value?) 'KnownProxies': value, - if (instance.ignoreVirtualInterfaces case final value?) - 'IgnoreVirtualInterfaces': value, - if (instance.virtualInterfaceNames case final value?) - 'VirtualInterfaceNames': value, - if (instance.enablePublishedServerUriByRequest case final value?) - 'EnablePublishedServerUriByRequest': value, - if (instance.publishedServerUriBySubnet case final value?) - 'PublishedServerUriBySubnet': value, + if (instance.ignoreVirtualInterfaces case final value?) 'IgnoreVirtualInterfaces': value, + if (instance.virtualInterfaceNames case final value?) 'VirtualInterfaceNames': value, + if (instance.enablePublishedServerUriByRequest case final value?) 'EnablePublishedServerUriByRequest': value, + if (instance.publishedServerUriBySubnet case final value?) 'PublishedServerUriBySubnet': value, if (instance.remoteIPFilter case final value?) 'RemoteIPFilter': value, - if (instance.isRemoteIPFilterBlacklist case final value?) - 'IsRemoteIPFilterBlacklist': value, + if (instance.isRemoteIPFilterBlacklist case final value?) 'IsRemoteIPFilterBlacklist': value, }; -NewGroupRequestDto _$NewGroupRequestDtoFromJson(Map json) => - NewGroupRequestDto( +NewGroupRequestDto _$NewGroupRequestDtoFromJson(Map json) => NewGroupRequestDto( groupName: json['GroupName'] as String?, ); -Map _$NewGroupRequestDtoToJson(NewGroupRequestDto instance) => - { +Map _$NewGroupRequestDtoToJson(NewGroupRequestDto instance) => { if (instance.groupName case final value?) 'GroupName': value, }; -NextItemRequestDto _$NextItemRequestDtoFromJson(Map json) => - NextItemRequestDto( +NextItemRequestDto _$NextItemRequestDtoFromJson(Map json) => NextItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$NextItemRequestDtoToJson(NextItemRequestDto instance) => - { +Map _$NextItemRequestDtoToJson(NextItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => - OpenLiveStreamDto( +OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => OpenLiveStreamDto( openToken: json['OpenToken'] as String?, userId: json['UserId'] as String?, playSessionId: json['PlaySessionId'] as String?, @@ -3971,67 +2868,42 @@ OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => itemId: json['ItemId'] as String?, enableDirectPlay: json['EnableDirectPlay'] as bool?, enableDirectStream: json['EnableDirectStream'] as bool?, - alwaysBurnInSubtitleWhenTranscoding: - json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, - deviceProfile: json['DeviceProfile'] == null - ? null - : DeviceProfile.fromJson( - json['DeviceProfile'] as Map), - directPlayProtocols: - mediaProtocolListFromJson(json['DirectPlayProtocols'] as List?), + alwaysBurnInSubtitleWhenTranscoding: json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, + deviceProfile: + json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), + directPlayProtocols: mediaProtocolListFromJson(json['DirectPlayProtocols'] as List?), ); -Map _$OpenLiveStreamDtoToJson(OpenLiveStreamDto instance) => - { +Map _$OpenLiveStreamDtoToJson(OpenLiveStreamDto instance) => { if (instance.openToken case final value?) 'OpenToken': value, if (instance.userId case final value?) 'UserId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (instance.maxStreamingBitrate case final value?) - 'MaxStreamingBitrate': value, + if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, if (instance.startTimeTicks case final value?) 'StartTimeTicks': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, - if (instance.maxAudioChannels case final value?) - 'MaxAudioChannels': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.enableDirectPlay case final value?) - 'EnableDirectPlay': value, - if (instance.enableDirectStream case final value?) - 'EnableDirectStream': value, - if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) - 'AlwaysBurnInSubtitleWhenTranscoding': value, - if (instance.deviceProfile?.toJson() case final value?) - 'DeviceProfile': value, - 'DirectPlayProtocols': - mediaProtocolListToJson(instance.directPlayProtocols), - }; - -OutboundKeepAliveMessage _$OutboundKeepAliveMessageFromJson( - Map json) => - OutboundKeepAliveMessage( + if (instance.enableDirectPlay case final value?) 'EnableDirectPlay': value, + if (instance.enableDirectStream case final value?) 'EnableDirectStream': value, + if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) 'AlwaysBurnInSubtitleWhenTranscoding': value, + if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, + 'DirectPlayProtocols': mediaProtocolListToJson(instance.directPlayProtocols), + }; + +OutboundKeepAliveMessage _$OutboundKeepAliveMessageFromJson(Map json) => OutboundKeepAliveMessage( messageId: json['MessageId'] as String?, - messageType: OutboundKeepAliveMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: OutboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$OutboundKeepAliveMessageToJson( - OutboundKeepAliveMessage instance) => - { +Map _$OutboundKeepAliveMessageToJson(OutboundKeepAliveMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -OutboundWebSocketMessage _$OutboundWebSocketMessageFromJson( - Map json) => - OutboundWebSocketMessage(); +OutboundWebSocketMessage _$OutboundWebSocketMessageFromJson(Map json) => OutboundWebSocketMessage(); -Map _$OutboundWebSocketMessageToJson( - OutboundWebSocketMessage instance) => - {}; +Map _$OutboundWebSocketMessageToJson(OutboundWebSocketMessage instance) => {}; PackageInfo _$PackageInfoFromJson(Map json) => PackageInfo( name: json['name'] as String?, @@ -4040,71 +2912,58 @@ PackageInfo _$PackageInfoFromJson(Map json) => PackageInfo( owner: json['owner'] as String?, category: json['category'] as String?, guid: json['guid'] as String?, - versions: (json['versions'] as List?) - ?.map((e) => VersionInfo.fromJson(e as Map)) - .toList() ?? - [], + versions: + (json['versions'] as List?)?.map((e) => VersionInfo.fromJson(e as Map)).toList() ?? + [], imageUrl: json['imageUrl'] as String?, ); -Map _$PackageInfoToJson(PackageInfo instance) => - { +Map _$PackageInfoToJson(PackageInfo instance) => { if (instance.name case final value?) 'name': value, if (instance.description case final value?) 'description': value, if (instance.overview case final value?) 'overview': value, if (instance.owner case final value?) 'owner': value, if (instance.category case final value?) 'category': value, if (instance.guid case final value?) 'guid': value, - if (instance.versions?.map((e) => e.toJson()).toList() case final value?) - 'versions': value, + if (instance.versions?.map((e) => e.toJson()).toList() case final value?) 'versions': value, if (instance.imageUrl case final value?) 'imageUrl': value, }; -ParentalRating _$ParentalRatingFromJson(Map json) => - ParentalRating( +ParentalRating _$ParentalRatingFromJson(Map json) => ParentalRating( name: json['Name'] as String?, $Value: (json['Value'] as num?)?.toInt(), ratingScore: json['RatingScore'] == null ? null - : ParentalRatingScore.fromJson( - json['RatingScore'] as Map), + : ParentalRatingScore.fromJson(json['RatingScore'] as Map), ); -Map _$ParentalRatingToJson(ParentalRating instance) => - { +Map _$ParentalRatingToJson(ParentalRating instance) => { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, - if (instance.ratingScore?.toJson() case final value?) - 'RatingScore': value, + if (instance.ratingScore?.toJson() case final value?) 'RatingScore': value, }; -ParentalRatingScore _$ParentalRatingScoreFromJson(Map json) => - ParentalRatingScore( +ParentalRatingScore _$ParentalRatingScoreFromJson(Map json) => ParentalRatingScore( score: (json['score'] as num?)?.toInt(), subScore: (json['subScore'] as num?)?.toInt(), ); -Map _$ParentalRatingScoreToJson( - ParentalRatingScore instance) => - { +Map _$ParentalRatingScoreToJson(ParentalRatingScore instance) => { if (instance.score case final value?) 'score': value, if (instance.subScore case final value?) 'subScore': value, }; -PathSubstitution _$PathSubstitutionFromJson(Map json) => - PathSubstitution( +PathSubstitution _$PathSubstitutionFromJson(Map json) => PathSubstitution( from: json['From'] as String?, to: json['To'] as String?, ); -Map _$PathSubstitutionToJson(PathSubstitution instance) => - { +Map _$PathSubstitutionToJson(PathSubstitution instance) => { if (instance.from case final value?) 'From': value, if (instance.to case final value?) 'To': value, }; -PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => - PersonLookupInfo( +PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => PersonLookupInfo( name: json['Name'] as String?, originalTitle: json['OriginalTitle'] as String?, path: json['Path'] as String?, @@ -4114,81 +2973,60 @@ PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$PersonLookupInfoToJson(PersonLookupInfo instance) => - { +Map _$PersonLookupInfoToJson(PersonLookupInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -PersonLookupInfoRemoteSearchQuery _$PersonLookupInfoRemoteSearchQueryFromJson( - Map json) => +PersonLookupInfoRemoteSearchQuery _$PersonLookupInfoRemoteSearchQueryFromJson(Map json) => PersonLookupInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : PersonLookupInfo.fromJson( - json['SearchInfo'] as Map), + searchInfo: + json['SearchInfo'] == null ? null : PersonLookupInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$PersonLookupInfoRemoteSearchQueryToJson( - PersonLookupInfoRemoteSearchQuery instance) => +Map _$PersonLookupInfoRemoteSearchQueryToJson(PersonLookupInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -PingRequestDto _$PingRequestDtoFromJson(Map json) => - PingRequestDto( +PingRequestDto _$PingRequestDtoFromJson(Map json) => PingRequestDto( ping: (json['Ping'] as num?)?.toInt(), ); -Map _$PingRequestDtoToJson(PingRequestDto instance) => - { +Map _$PingRequestDtoToJson(PingRequestDto instance) => { if (instance.ping case final value?) 'Ping': value, }; -PinRedeemResult _$PinRedeemResultFromJson(Map json) => - PinRedeemResult( +PinRedeemResult _$PinRedeemResultFromJson(Map json) => PinRedeemResult( success: json['Success'] as bool?, - usersReset: (json['UsersReset'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + usersReset: (json['UsersReset'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$PinRedeemResultToJson(PinRedeemResult instance) => - { +Map _$PinRedeemResultToJson(PinRedeemResult instance) => { if (instance.success case final value?) 'Success': value, if (instance.usersReset case final value?) 'UsersReset': value, }; -PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => - PlaybackInfoDto( +PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => PlaybackInfoDto( userId: json['UserId'] as String?, maxStreamingBitrate: (json['MaxStreamingBitrate'] as num?)?.toInt(), startTimeTicks: (json['StartTimeTicks'] as num?)?.toInt(), @@ -4197,55 +3035,37 @@ PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => maxAudioChannels: (json['MaxAudioChannels'] as num?)?.toInt(), mediaSourceId: json['MediaSourceId'] as String?, liveStreamId: json['LiveStreamId'] as String?, - deviceProfile: json['DeviceProfile'] == null - ? null - : DeviceProfile.fromJson( - json['DeviceProfile'] as Map), + deviceProfile: + json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), enableDirectPlay: json['EnableDirectPlay'] as bool?, enableDirectStream: json['EnableDirectStream'] as bool?, enableTranscoding: json['EnableTranscoding'] as bool?, allowVideoStreamCopy: json['AllowVideoStreamCopy'] as bool?, allowAudioStreamCopy: json['AllowAudioStreamCopy'] as bool?, autoOpenLiveStream: json['AutoOpenLiveStream'] as bool?, - alwaysBurnInSubtitleWhenTranscoding: - json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, + alwaysBurnInSubtitleWhenTranscoding: json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, ); -Map _$PlaybackInfoDtoToJson(PlaybackInfoDto instance) => - { +Map _$PlaybackInfoDtoToJson(PlaybackInfoDto instance) => { if (instance.userId case final value?) 'UserId': value, - if (instance.maxStreamingBitrate case final value?) - 'MaxStreamingBitrate': value, + if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, if (instance.startTimeTicks case final value?) 'StartTimeTicks': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, - if (instance.maxAudioChannels case final value?) - 'MaxAudioChannels': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, - if (instance.deviceProfile?.toJson() case final value?) - 'DeviceProfile': value, - if (instance.enableDirectPlay case final value?) - 'EnableDirectPlay': value, - if (instance.enableDirectStream case final value?) - 'EnableDirectStream': value, - if (instance.enableTranscoding case final value?) - 'EnableTranscoding': value, - if (instance.allowVideoStreamCopy case final value?) - 'AllowVideoStreamCopy': value, - if (instance.allowAudioStreamCopy case final value?) - 'AllowAudioStreamCopy': value, - if (instance.autoOpenLiveStream case final value?) - 'AutoOpenLiveStream': value, - if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) - 'AlwaysBurnInSubtitleWhenTranscoding': value, - }; - -PlaybackInfoResponse _$PlaybackInfoResponseFromJson( - Map json) => - PlaybackInfoResponse( + if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, + if (instance.enableDirectPlay case final value?) 'EnableDirectPlay': value, + if (instance.enableDirectStream case final value?) 'EnableDirectStream': value, + if (instance.enableTranscoding case final value?) 'EnableTranscoding': value, + if (instance.allowVideoStreamCopy case final value?) 'AllowVideoStreamCopy': value, + if (instance.allowAudioStreamCopy case final value?) 'AllowAudioStreamCopy': value, + if (instance.autoOpenLiveStream case final value?) 'AutoOpenLiveStream': value, + if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) 'AlwaysBurnInSubtitleWhenTranscoding': value, + }; + +PlaybackInfoResponse _$PlaybackInfoResponseFromJson(Map json) => PlaybackInfoResponse( mediaSources: (json['MediaSources'] as List?) ?.map((e) => MediaSourceInfo.fromJson(e as Map)) .toList() ?? @@ -4254,24 +3074,15 @@ PlaybackInfoResponse _$PlaybackInfoResponseFromJson( errorCode: playbackErrorCodeNullableFromJson(json['ErrorCode']), ); -Map _$PlaybackInfoResponseToJson( - PlaybackInfoResponse instance) => - { - if (instance.mediaSources?.map((e) => e.toJson()).toList() - case final value?) - 'MediaSources': value, +Map _$PlaybackInfoResponseToJson(PlaybackInfoResponse instance) => { + if (instance.mediaSources?.map((e) => e.toJson()).toList() case final value?) 'MediaSources': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (playbackErrorCodeNullableToJson(instance.errorCode) case final value?) - 'ErrorCode': value, + if (playbackErrorCodeNullableToJson(instance.errorCode) case final value?) 'ErrorCode': value, }; -PlaybackProgressInfo _$PlaybackProgressInfoFromJson( - Map json) => - PlaybackProgressInfo( +PlaybackProgressInfo _$PlaybackProgressInfoFromJson(Map json) => PlaybackProgressInfo( canSeek: json['CanSeek'] as bool?, - item: json['Item'] == null - ? null - : BaseItemDto.fromJson(json['Item'] as Map), + item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -4296,46 +3107,33 @@ PlaybackProgressInfo _$PlaybackProgressInfoFromJson( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PlaybackProgressInfoToJson( - PlaybackProgressInfo instance) => - { +Map _$PlaybackProgressInfoToJson(PlaybackProgressInfo instance) => { if (instance.canSeek case final value?) 'CanSeek': value, if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (instance.playbackStartTimeTicks case final value?) - 'PlaybackStartTimeTicks': value, + if (instance.playbackStartTimeTicks case final value?) 'PlaybackStartTimeTicks': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, if (instance.brightness case final value?) 'Brightness': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) - 'PlayMethod': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) - 'PlaybackOrder': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => - PlaybackStartInfo( +PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => PlaybackStartInfo( canSeek: json['CanSeek'] as bool?, - item: json['Item'] == null - ? null - : BaseItemDto.fromJson(json['Item'] as Map), + item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -4360,44 +3158,32 @@ PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PlaybackStartInfoToJson(PlaybackStartInfo instance) => - { +Map _$PlaybackStartInfoToJson(PlaybackStartInfo instance) => { if (instance.canSeek case final value?) 'CanSeek': value, if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (instance.playbackStartTimeTicks case final value?) - 'PlaybackStartTimeTicks': value, + if (instance.playbackStartTimeTicks case final value?) 'PlaybackStartTimeTicks': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, if (instance.brightness case final value?) 'Brightness': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) - 'PlayMethod': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) - 'PlaybackOrder': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => - PlaybackStopInfo( - item: json['Item'] == null - ? null - : BaseItemDto.fromJson(json['Item'] as Map), +PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => PlaybackStopInfo( + item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -4413,8 +3199,7 @@ PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => [], ); -Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => - { +Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => { if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, @@ -4425,13 +3210,10 @@ Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => if (instance.failed case final value?) 'Failed': value, if (instance.nextMediaType case final value?) 'NextMediaType': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, }; -PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => - PlayerStateInfo( +PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => PlayerStateInfo( positionTicks: (json['PositionTicks'] as num?)?.toInt(), canSeek: json['CanSeek'] as bool?, isPaused: json['IsPaused'] as bool?, @@ -4446,101 +3228,71 @@ PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => liveStreamId: json['LiveStreamId'] as String?, ); -Map _$PlayerStateInfoToJson(PlayerStateInfo instance) => - { +Map _$PlayerStateInfoToJson(PlayerStateInfo instance) => { if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.canSeek case final value?) 'CanSeek': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) - 'PlayMethod': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) - 'PlaybackOrder': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, }; -PlaylistCreationResult _$PlaylistCreationResultFromJson( - Map json) => - PlaylistCreationResult( +PlaylistCreationResult _$PlaylistCreationResultFromJson(Map json) => PlaylistCreationResult( id: json['Id'] as String?, ); -Map _$PlaylistCreationResultToJson( - PlaylistCreationResult instance) => - { +Map _$PlaylistCreationResultToJson(PlaylistCreationResult instance) => { if (instance.id case final value?) 'Id': value, }; PlaylistDto _$PlaylistDtoFromJson(Map json) => PlaylistDto( openAccess: json['OpenAccess'] as bool?, shares: (json['Shares'] as List?) - ?.map((e) => - PlaylistUserPermissions.fromJson(e as Map)) - .toList() ?? - [], - itemIds: (json['ItemIds'] as List?) - ?.map((e) => e as String) + ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], + itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$PlaylistDtoToJson(PlaylistDto instance) => - { +Map _$PlaylistDtoToJson(PlaylistDto instance) => { if (instance.openAccess case final value?) 'OpenAccess': value, - if (instance.shares?.map((e) => e.toJson()).toList() case final value?) - 'Shares': value, + if (instance.shares?.map((e) => e.toJson()).toList() case final value?) 'Shares': value, if (instance.itemIds case final value?) 'ItemIds': value, }; -PlaylistUserPermissions _$PlaylistUserPermissionsFromJson( - Map json) => - PlaylistUserPermissions( +PlaylistUserPermissions _$PlaylistUserPermissionsFromJson(Map json) => PlaylistUserPermissions( userId: json['UserId'] as String?, canEdit: json['CanEdit'] as bool?, ); -Map _$PlaylistUserPermissionsToJson( - PlaylistUserPermissions instance) => - { +Map _$PlaylistUserPermissionsToJson(PlaylistUserPermissions instance) => { if (instance.userId case final value?) 'UserId': value, if (instance.canEdit case final value?) 'CanEdit': value, }; PlayMessage _$PlayMessageFromJson(Map json) => PlayMessage( - data: json['Data'] == null - ? null - : PlayRequest.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : PlayRequest.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PlayMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: PlayMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PlayMessageToJson(PlayMessage instance) => - { +Map _$PlayMessageToJson(PlayMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => - PlayQueueUpdate( +PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => PlayQueueUpdate( reason: playQueueUpdateReasonNullableFromJson(json['Reason']), - lastUpdate: json['LastUpdate'] == null - ? null - : DateTime.parse(json['LastUpdate'] as String), + lastUpdate: json['LastUpdate'] == null ? null : DateTime.parse(json['LastUpdate'] as String), playlist: (json['Playlist'] as List?) - ?.map( - (e) => SyncPlayQueueItem.fromJson(e as Map)) + ?.map((e) => SyncPlayQueueItem.fromJson(e as Map)) .toList() ?? [], playingItemIndex: (json['PlayingItemIndex'] as num?)?.toInt(), @@ -4550,32 +3302,19 @@ PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => repeatMode: groupRepeatModeNullableFromJson(json['RepeatMode']), ); -Map _$PlayQueueUpdateToJson(PlayQueueUpdate instance) => - { - if (playQueueUpdateReasonNullableToJson(instance.reason) - case final value?) - 'Reason': value, - if (instance.lastUpdate?.toIso8601String() case final value?) - 'LastUpdate': value, - if (instance.playlist?.map((e) => e.toJson()).toList() case final value?) - 'Playlist': value, - if (instance.playingItemIndex case final value?) - 'PlayingItemIndex': value, - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, +Map _$PlayQueueUpdateToJson(PlayQueueUpdate instance) => { + if (playQueueUpdateReasonNullableToJson(instance.reason) case final value?) 'Reason': value, + if (instance.lastUpdate?.toIso8601String() case final value?) 'LastUpdate': value, + if (instance.playlist?.map((e) => e.toJson()).toList() case final value?) 'Playlist': value, + if (instance.playingItemIndex case final value?) 'PlayingItemIndex': value, + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, - if (groupShuffleModeNullableToJson(instance.shuffleMode) - case final value?) - 'ShuffleMode': value, - if (groupRepeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, + if (groupShuffleModeNullableToJson(instance.shuffleMode) case final value?) 'ShuffleMode': value, + if (groupRepeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, }; PlayRequest _$PlayRequestFromJson(Map json) => PlayRequest( - itemIds: (json['ItemIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), playCommand: playCommandNullableFromJson(json['PlayCommand']), controllingUserId: json['ControllingUserId'] as String?, @@ -4585,77 +3324,51 @@ PlayRequest _$PlayRequestFromJson(Map json) => PlayRequest( startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$PlayRequestToJson(PlayRequest instance) => - { +Map _$PlayRequestToJson(PlayRequest instance) => { if (instance.itemIds case final value?) 'ItemIds': value, - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, - if (playCommandNullableToJson(instance.playCommand) case final value?) - 'PlayCommand': value, - if (instance.controllingUserId case final value?) - 'ControllingUserId': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, + if (playCommandNullableToJson(instance.playCommand) case final value?) 'PlayCommand': value, + if (instance.controllingUserId case final value?) 'ControllingUserId': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -PlayRequestDto _$PlayRequestDtoFromJson(Map json) => - PlayRequestDto( - playingQueue: (json['PlayingQueue'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +PlayRequestDto _$PlayRequestDtoFromJson(Map json) => PlayRequestDto( + playingQueue: (json['PlayingQueue'] as List?)?.map((e) => e as String).toList() ?? [], playingItemPosition: (json['PlayingItemPosition'] as num?)?.toInt(), startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), ); -Map _$PlayRequestDtoToJson(PlayRequestDto instance) => - { +Map _$PlayRequestDtoToJson(PlayRequestDto instance) => { if (instance.playingQueue case final value?) 'PlayingQueue': value, - if (instance.playingItemPosition case final value?) - 'PlayingItemPosition': value, - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, + if (instance.playingItemPosition case final value?) 'PlayingItemPosition': value, + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, }; -PlaystateMessage _$PlaystateMessageFromJson(Map json) => - PlaystateMessage( - data: json['Data'] == null - ? null - : PlaystateRequest.fromJson(json['Data'] as Map), +PlaystateMessage _$PlaystateMessageFromJson(Map json) => PlaystateMessage( + data: json['Data'] == null ? null : PlaystateRequest.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - PlaystateMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: PlaystateMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PlaystateMessageToJson(PlaystateMessage instance) => - { +Map _$PlaystateMessageToJson(PlaystateMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PlaystateRequest _$PlaystateRequestFromJson(Map json) => - PlaystateRequest( +PlaystateRequest _$PlaystateRequestFromJson(Map json) => PlaystateRequest( command: playstateCommandNullableFromJson(json['Command']), seekPositionTicks: (json['SeekPositionTicks'] as num?)?.toInt(), controllingUserId: json['ControllingUserId'] as String?, ); -Map _$PlaystateRequestToJson(PlaystateRequest instance) => - { - if (playstateCommandNullableToJson(instance.command) case final value?) - 'Command': value, - if (instance.seekPositionTicks case final value?) - 'SeekPositionTicks': value, - if (instance.controllingUserId case final value?) - 'ControllingUserId': value, +Map _$PlaystateRequestToJson(PlaystateRequest instance) => { + if (playstateCommandNullableToJson(instance.command) case final value?) 'Command': value, + if (instance.seekPositionTicks case final value?) 'SeekPositionTicks': value, + if (instance.controllingUserId case final value?) 'ControllingUserId': value, }; PluginInfo _$PluginInfoFromJson(Map json) => PluginInfo( @@ -4669,140 +3382,94 @@ PluginInfo _$PluginInfoFromJson(Map json) => PluginInfo( status: pluginStatusNullableFromJson(json['Status']), ); -Map _$PluginInfoToJson(PluginInfo instance) => - { +Map _$PluginInfoToJson(PluginInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.version case final value?) 'Version': value, - if (instance.configurationFileName case final value?) - 'ConfigurationFileName': value, + if (instance.configurationFileName case final value?) 'ConfigurationFileName': value, if (instance.description case final value?) 'Description': value, if (instance.id case final value?) 'Id': value, if (instance.canUninstall case final value?) 'CanUninstall': value, if (instance.hasImage case final value?) 'HasImage': value, - if (pluginStatusNullableToJson(instance.status) case final value?) - 'Status': value, + if (pluginStatusNullableToJson(instance.status) case final value?) 'Status': value, }; -PluginInstallationCancelledMessage _$PluginInstallationCancelledMessageFromJson( - Map json) => +PluginInstallationCancelledMessage _$PluginInstallationCancelledMessageFromJson(Map json) => PluginInstallationCancelledMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallationCancelledMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + PluginInstallationCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationCancelledMessageToJson( - PluginInstallationCancelledMessage instance) => +Map _$PluginInstallationCancelledMessageToJson(PluginInstallationCancelledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginInstallationCompletedMessage _$PluginInstallationCompletedMessageFromJson( - Map json) => +PluginInstallationCompletedMessage _$PluginInstallationCompletedMessageFromJson(Map json) => PluginInstallationCompletedMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallationCompletedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + PluginInstallationCompletedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationCompletedMessageToJson( - PluginInstallationCompletedMessage instance) => +Map _$PluginInstallationCompletedMessageToJson(PluginInstallationCompletedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginInstallationFailedMessage _$PluginInstallationFailedMessageFromJson( - Map json) => +PluginInstallationFailedMessage _$PluginInstallationFailedMessageFromJson(Map json) => PluginInstallationFailedMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallationFailedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginInstallationFailedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationFailedMessageToJson( - PluginInstallationFailedMessage instance) => +Map _$PluginInstallationFailedMessageToJson(PluginInstallationFailedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginInstallingMessage _$PluginInstallingMessageFromJson( - Map json) => - PluginInstallingMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), +PluginInstallingMessage _$PluginInstallingMessageFromJson(Map json) => PluginInstallingMessage( + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - PluginInstallingMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: PluginInstallingMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallingMessageToJson( - PluginInstallingMessage instance) => - { +Map _$PluginInstallingMessageToJson(PluginInstallingMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginUninstalledMessage _$PluginUninstalledMessageFromJson( - Map json) => - PluginUninstalledMessage( - data: json['Data'] == null - ? null - : PluginInfo.fromJson(json['Data'] as Map), +PluginUninstalledMessage _$PluginUninstalledMessageFromJson(Map json) => PluginUninstalledMessage( + data: json['Data'] == null ? null : PluginInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginUninstalledMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginUninstalledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginUninstalledMessageToJson( - PluginUninstalledMessage instance) => - { +Map _$PluginUninstalledMessageToJson(PluginUninstalledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PreviousItemRequestDto _$PreviousItemRequestDtoFromJson( - Map json) => - PreviousItemRequestDto( +PreviousItemRequestDto _$PreviousItemRequestDtoFromJson(Map json) => PreviousItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PreviousItemRequestDtoToJson( - PreviousItemRequestDto instance) => - { +Map _$PreviousItemRequestDtoToJson(PreviousItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -ProblemDetails _$ProblemDetailsFromJson(Map json) => - ProblemDetails( +ProblemDetails _$ProblemDetailsFromJson(Map json) => ProblemDetails( type: json['type'] as String?, title: json['title'] as String?, status: (json['status'] as num?)?.toInt(), @@ -4810,8 +3477,7 @@ ProblemDetails _$ProblemDetailsFromJson(Map json) => instance: json['instance'] as String?, ); -Map _$ProblemDetailsToJson(ProblemDetails instance) => - { +Map _$ProblemDetailsToJson(ProblemDetails instance) => { if (instance.type case final value?) 'type': value, if (instance.title case final value?) 'title': value, if (instance.status case final value?) 'status': value, @@ -4819,28 +3485,21 @@ Map _$ProblemDetailsToJson(ProblemDetails instance) => if (instance.instance case final value?) 'instance': value, }; -ProfileCondition _$ProfileConditionFromJson(Map json) => - ProfileCondition( +ProfileCondition _$ProfileConditionFromJson(Map json) => ProfileCondition( condition: profileConditionTypeNullableFromJson(json['Condition']), property: profileConditionValueNullableFromJson(json['Property']), $Value: json['Value'] as String?, isRequired: json['IsRequired'] as bool?, ); -Map _$ProfileConditionToJson(ProfileCondition instance) => - { - if (profileConditionTypeNullableToJson(instance.condition) - case final value?) - 'Condition': value, - if (profileConditionValueNullableToJson(instance.property) - case final value?) - 'Property': value, +Map _$ProfileConditionToJson(ProfileCondition instance) => { + if (profileConditionTypeNullableToJson(instance.condition) case final value?) 'Condition': value, + if (profileConditionValueNullableToJson(instance.property) case final value?) 'Property': value, if (instance.$Value case final value?) 'Value': value, if (instance.isRequired case final value?) 'IsRequired': value, }; -PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => - PublicSystemInfo( +PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => PublicSystemInfo( localAddress: json['LocalAddress'] as String?, serverName: json['ServerName'] as String?, version: json['Version'] as String?, @@ -4850,56 +3509,36 @@ PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => startupWizardCompleted: json['StartupWizardCompleted'] as bool?, ); -Map _$PublicSystemInfoToJson(PublicSystemInfo instance) => - { +Map _$PublicSystemInfoToJson(PublicSystemInfo instance) => { if (instance.localAddress case final value?) 'LocalAddress': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.version case final value?) 'Version': value, if (instance.productName case final value?) 'ProductName': value, if (instance.operatingSystem case final value?) 'OperatingSystem': value, if (instance.id case final value?) 'Id': value, - if (instance.startupWizardCompleted case final value?) - 'StartupWizardCompleted': value, + if (instance.startupWizardCompleted case final value?) 'StartupWizardCompleted': value, }; QueryFilters _$QueryFiltersFromJson(Map json) => QueryFilters( - genres: (json['Genres'] as List?) - ?.map((e) => NameGuidPair.fromJson(e as Map)) - .toList() ?? - [], - tags: - (json['Tags'] as List?)?.map((e) => e as String).toList() ?? + genres: + (json['Genres'] as List?)?.map((e) => NameGuidPair.fromJson(e as Map)).toList() ?? [], + tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$QueryFiltersToJson(QueryFilters instance) => - { - if (instance.genres?.map((e) => e.toJson()).toList() case final value?) - 'Genres': value, +Map _$QueryFiltersToJson(QueryFilters instance) => { + if (instance.genres?.map((e) => e.toJson()).toList() case final value?) 'Genres': value, if (instance.tags case final value?) 'Tags': value, - }; - -QueryFiltersLegacy _$QueryFiltersLegacyFromJson(Map json) => - QueryFiltersLegacy( - genres: (json['Genres'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - tags: - (json['Tags'] as List?)?.map((e) => e as String).toList() ?? - [], - officialRatings: (json['OfficialRatings'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - years: (json['Years'] as List?) - ?.map((e) => (e as num).toInt()) - .toList() ?? - [], + }; + +QueryFiltersLegacy _$QueryFiltersLegacyFromJson(Map json) => QueryFiltersLegacy( + genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], + tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], + officialRatings: (json['OfficialRatings'] as List?)?.map((e) => e as String).toList() ?? [], + years: (json['Years'] as List?)?.map((e) => (e as num).toInt()).toList() ?? [], ); -Map _$QueryFiltersLegacyToJson(QueryFiltersLegacy instance) => - { +Map _$QueryFiltersLegacyToJson(QueryFiltersLegacy instance) => { if (instance.genres case final value?) 'Genres': value, if (instance.tags case final value?) 'Tags': value, if (instance.officialRatings case final value?) 'OfficialRatings': value, @@ -4916,34 +3555,25 @@ Map _$QueueItemToJson(QueueItem instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -QueueRequestDto _$QueueRequestDtoFromJson(Map json) => - QueueRequestDto( - itemIds: (json['ItemIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +QueueRequestDto _$QueueRequestDtoFromJson(Map json) => QueueRequestDto( + itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], mode: groupQueueModeNullableFromJson(json['Mode']), ); -Map _$QueueRequestDtoToJson(QueueRequestDto instance) => - { +Map _$QueueRequestDtoToJson(QueueRequestDto instance) => { if (instance.itemIds case final value?) 'ItemIds': value, - if (groupQueueModeNullableToJson(instance.mode) case final value?) - 'Mode': value, + if (groupQueueModeNullableToJson(instance.mode) case final value?) 'Mode': value, }; -QuickConnectDto _$QuickConnectDtoFromJson(Map json) => - QuickConnectDto( +QuickConnectDto _$QuickConnectDtoFromJson(Map json) => QuickConnectDto( secret: json['Secret'] as String, ); -Map _$QuickConnectDtoToJson(QuickConnectDto instance) => - { +Map _$QuickConnectDtoToJson(QuickConnectDto instance) => { 'Secret': instance.secret, }; -QuickConnectResult _$QuickConnectResultFromJson(Map json) => - QuickConnectResult( +QuickConnectResult _$QuickConnectResultFromJson(Map json) => QuickConnectResult( authenticated: json['Authenticated'] as bool?, secret: json['Secret'] as String?, code: json['Code'] as String?, @@ -4951,13 +3581,10 @@ QuickConnectResult _$QuickConnectResultFromJson(Map json) => deviceName: json['DeviceName'] as String?, appName: json['AppName'] as String?, appVersion: json['AppVersion'] as String?, - dateAdded: json['DateAdded'] == null - ? null - : DateTime.parse(json['DateAdded'] as String), + dateAdded: json['DateAdded'] == null ? null : DateTime.parse(json['DateAdded'] as String), ); -Map _$QuickConnectResultToJson(QuickConnectResult instance) => - { +Map _$QuickConnectResultToJson(QuickConnectResult instance) => { if (instance.authenticated case final value?) 'Authenticated': value, if (instance.secret case final value?) 'Secret': value, if (instance.code case final value?) 'Code': value, @@ -4965,73 +3592,51 @@ Map _$QuickConnectResultToJson(QuickConnectResult instance) => if (instance.deviceName case final value?) 'DeviceName': value, if (instance.appName case final value?) 'AppName': value, if (instance.appVersion case final value?) 'AppVersion': value, - if (instance.dateAdded?.toIso8601String() case final value?) - 'DateAdded': value, + if (instance.dateAdded?.toIso8601String() case final value?) 'DateAdded': value, }; -ReadyRequestDto _$ReadyRequestDtoFromJson(Map json) => - ReadyRequestDto( - when: - json['When'] == null ? null : DateTime.parse(json['When'] as String), +ReadyRequestDto _$ReadyRequestDtoFromJson(Map json) => ReadyRequestDto( + when: json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), isPlaying: json['IsPlaying'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$ReadyRequestDtoToJson(ReadyRequestDto instance) => - { +Map _$ReadyRequestDtoToJson(ReadyRequestDto instance) => { if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -RecommendationDto _$RecommendationDtoFromJson(Map json) => - RecommendationDto( - items: (json['Items'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], - recommendationType: - recommendationTypeNullableFromJson(json['RecommendationType']), +RecommendationDto _$RecommendationDtoFromJson(Map json) => RecommendationDto( + items: + (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], + recommendationType: recommendationTypeNullableFromJson(json['RecommendationType']), baselineItemName: json['BaselineItemName'] as String?, categoryId: json['CategoryId'] as String?, ); -Map _$RecommendationDtoToJson(RecommendationDto instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (recommendationTypeNullableToJson(instance.recommendationType) - case final value?) - 'RecommendationType': value, - if (instance.baselineItemName case final value?) - 'BaselineItemName': value, +Map _$RecommendationDtoToJson(RecommendationDto instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (recommendationTypeNullableToJson(instance.recommendationType) case final value?) 'RecommendationType': value, + if (instance.baselineItemName case final value?) 'BaselineItemName': value, if (instance.categoryId case final value?) 'CategoryId': value, }; -RefreshProgressMessage _$RefreshProgressMessageFromJson( - Map json) => - RefreshProgressMessage( +RefreshProgressMessage _$RefreshProgressMessageFromJson(Map json) => RefreshProgressMessage( data: json['Data'] as Map?, messageId: json['MessageId'] as String?, - messageType: - RefreshProgressMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: RefreshProgressMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$RefreshProgressMessageToJson( - RefreshProgressMessage instance) => - { +Map _$RefreshProgressMessageToJson(RefreshProgressMessage instance) => { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => - RemoteImageInfo( +RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => RemoteImageInfo( providerName: json['ProviderName'] as String?, url: json['Url'] as String?, thumbnailUrl: json['ThumbnailUrl'] as String?, @@ -5044,8 +3649,7 @@ RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => ratingType: ratingTypeNullableFromJson(json['RatingType']), ); -Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => - { +Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => { if (instance.providerName case final value?) 'ProviderName': value, if (instance.url case final value?) 'Url': value, if (instance.thumbnailUrl case final value?) 'ThumbnailUrl': value, @@ -5054,98 +3658,72 @@ Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => if (instance.communityRating case final value?) 'CommunityRating': value, if (instance.voteCount case final value?) 'VoteCount': value, if (instance.language case final value?) 'Language': value, - if (imageTypeNullableToJson(instance.type) case final value?) - 'Type': value, - if (ratingTypeNullableToJson(instance.ratingType) case final value?) - 'RatingType': value, + if (imageTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (ratingTypeNullableToJson(instance.ratingType) case final value?) 'RatingType': value, }; -RemoteImageResult _$RemoteImageResultFromJson(Map json) => - RemoteImageResult( +RemoteImageResult _$RemoteImageResultFromJson(Map json) => RemoteImageResult( images: (json['Images'] as List?) ?.map((e) => RemoteImageInfo.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), - providers: (json['Providers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + providers: (json['Providers'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$RemoteImageResultToJson(RemoteImageResult instance) => - { - if (instance.images?.map((e) => e.toJson()).toList() case final value?) - 'Images': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$RemoteImageResultToJson(RemoteImageResult instance) => { + if (instance.images?.map((e) => e.toJson()).toList() case final value?) 'Images': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.providers case final value?) 'Providers': value, }; -RemoteLyricInfoDto _$RemoteLyricInfoDtoFromJson(Map json) => - RemoteLyricInfoDto( +RemoteLyricInfoDto _$RemoteLyricInfoDtoFromJson(Map json) => RemoteLyricInfoDto( id: json['Id'] as String?, providerName: json['ProviderName'] as String?, - lyrics: json['Lyrics'] == null - ? null - : LyricDto.fromJson(json['Lyrics'] as Map), + lyrics: json['Lyrics'] == null ? null : LyricDto.fromJson(json['Lyrics'] as Map), ); -Map _$RemoteLyricInfoDtoToJson(RemoteLyricInfoDto instance) => - { +Map _$RemoteLyricInfoDtoToJson(RemoteLyricInfoDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.providerName case final value?) 'ProviderName': value, if (instance.lyrics?.toJson() case final value?) 'Lyrics': value, }; -RemoteSearchResult _$RemoteSearchResultFromJson(Map json) => - RemoteSearchResult( +RemoteSearchResult _$RemoteSearchResultFromJson(Map json) => RemoteSearchResult( name: json['Name'] as String?, providerIds: json['ProviderIds'] as Map?, productionYear: (json['ProductionYear'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), indexNumberEnd: (json['IndexNumberEnd'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), imageUrl: json['ImageUrl'] as String?, searchProviderName: json['SearchProviderName'] as String?, overview: json['Overview'] as String?, - albumArtist: json['AlbumArtist'] == null - ? null - : RemoteSearchResult.fromJson( - json['AlbumArtist'] as Map), + albumArtist: + json['AlbumArtist'] == null ? null : RemoteSearchResult.fromJson(json['AlbumArtist'] as Map), artists: (json['Artists'] as List?) - ?.map( - (e) => RemoteSearchResult.fromJson(e as Map)) + ?.map((e) => RemoteSearchResult.fromJson(e as Map)) .toList() ?? [], ); -Map _$RemoteSearchResultToJson(RemoteSearchResult instance) => - { +Map _$RemoteSearchResultToJson(RemoteSearchResult instance) => { if (instance.name case final value?) 'Name': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.productionYear case final value?) 'ProductionYear': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.indexNumberEnd case final value?) 'IndexNumberEnd': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.imageUrl case final value?) 'ImageUrl': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, if (instance.overview case final value?) 'Overview': value, - if (instance.albumArtist?.toJson() case final value?) - 'AlbumArtist': value, - if (instance.artists?.map((e) => e.toJson()).toList() case final value?) - 'Artists': value, + if (instance.albumArtist?.toJson() case final value?) 'AlbumArtist': value, + if (instance.artists?.map((e) => e.toJson()).toList() case final value?) 'Artists': value, }; -RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => - RemoteSubtitleInfo( +RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => RemoteSubtitleInfo( threeLetterISOLanguageName: json['ThreeLetterISOLanguageName'] as String?, id: json['Id'] as String?, providerName: json['ProviderName'] as String?, @@ -5153,9 +3731,7 @@ RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => format: json['Format'] as String?, author: json['Author'] as String?, comment: json['Comment'] as String?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), communityRating: (json['CommunityRating'] as num?)?.toDouble(), frameRate: (json['FrameRate'] as num?)?.toDouble(), downloadCount: (json['DownloadCount'] as num?)?.toInt(), @@ -5166,171 +3742,115 @@ RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => hearingImpaired: json['HearingImpaired'] as bool?, ); -Map _$RemoteSubtitleInfoToJson(RemoteSubtitleInfo instance) => - { - if (instance.threeLetterISOLanguageName case final value?) - 'ThreeLetterISOLanguageName': value, +Map _$RemoteSubtitleInfoToJson(RemoteSubtitleInfo instance) => { + if (instance.threeLetterISOLanguageName case final value?) 'ThreeLetterISOLanguageName': value, if (instance.id case final value?) 'Id': value, if (instance.providerName case final value?) 'ProviderName': value, if (instance.name case final value?) 'Name': value, if (instance.format case final value?) 'Format': value, if (instance.author case final value?) 'Author': value, if (instance.comment case final value?) 'Comment': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, if (instance.communityRating case final value?) 'CommunityRating': value, if (instance.frameRate case final value?) 'FrameRate': value, if (instance.downloadCount case final value?) 'DownloadCount': value, if (instance.isHashMatch case final value?) 'IsHashMatch': value, if (instance.aiTranslated case final value?) 'AiTranslated': value, - if (instance.machineTranslated case final value?) - 'MachineTranslated': value, + if (instance.machineTranslated case final value?) 'MachineTranslated': value, if (instance.forced case final value?) 'Forced': value, if (instance.hearingImpaired case final value?) 'HearingImpaired': value, }; -RemoveFromPlaylistRequestDto _$RemoveFromPlaylistRequestDtoFromJson( - Map json) => +RemoveFromPlaylistRequestDto _$RemoveFromPlaylistRequestDtoFromJson(Map json) => RemoveFromPlaylistRequestDto( - playlistItemIds: (json['PlaylistItemIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + playlistItemIds: (json['PlaylistItemIds'] as List?)?.map((e) => e as String).toList() ?? [], clearPlaylist: json['ClearPlaylist'] as bool?, clearPlayingItem: json['ClearPlayingItem'] as bool?, ); -Map _$RemoveFromPlaylistRequestDtoToJson( - RemoveFromPlaylistRequestDto instance) => - { +Map _$RemoveFromPlaylistRequestDtoToJson(RemoveFromPlaylistRequestDto instance) => { if (instance.playlistItemIds case final value?) 'PlaylistItemIds': value, if (instance.clearPlaylist case final value?) 'ClearPlaylist': value, - if (instance.clearPlayingItem case final value?) - 'ClearPlayingItem': value, + if (instance.clearPlayingItem case final value?) 'ClearPlayingItem': value, }; -ReportPlaybackOptions _$ReportPlaybackOptionsFromJson( - Map json) => - ReportPlaybackOptions( +ReportPlaybackOptions _$ReportPlaybackOptionsFromJson(Map json) => ReportPlaybackOptions( maxDataAge: (json['MaxDataAge'] as num?)?.toInt(), backupPath: json['BackupPath'] as String?, maxBackupFiles: (json['MaxBackupFiles'] as num?)?.toInt(), ); -Map _$ReportPlaybackOptionsToJson( - ReportPlaybackOptions instance) => - { +Map _$ReportPlaybackOptionsToJson(ReportPlaybackOptions instance) => { if (instance.maxDataAge case final value?) 'MaxDataAge': value, if (instance.backupPath case final value?) 'BackupPath': value, if (instance.maxBackupFiles case final value?) 'MaxBackupFiles': value, }; -RepositoryInfo _$RepositoryInfoFromJson(Map json) => - RepositoryInfo( +RepositoryInfo _$RepositoryInfoFromJson(Map json) => RepositoryInfo( name: json['Name'] as String?, url: json['Url'] as String?, enabled: json['Enabled'] as bool?, ); -Map _$RepositoryInfoToJson(RepositoryInfo instance) => - { +Map _$RepositoryInfoToJson(RepositoryInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.url case final value?) 'Url': value, if (instance.enabled case final value?) 'Enabled': value, }; -RestartRequiredMessage _$RestartRequiredMessageFromJson( - Map json) => - RestartRequiredMessage( +RestartRequiredMessage _$RestartRequiredMessageFromJson(Map json) => RestartRequiredMessage( messageId: json['MessageId'] as String?, - messageType: - RestartRequiredMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: RestartRequiredMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$RestartRequiredMessageToJson( - RestartRequiredMessage instance) => - { +Map _$RestartRequiredMessageToJson(RestartRequiredMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTaskEndedMessage _$ScheduledTaskEndedMessageFromJson( - Map json) => - ScheduledTaskEndedMessage( - data: json['Data'] == null - ? null - : TaskResult.fromJson(json['Data'] as Map), +ScheduledTaskEndedMessage _$ScheduledTaskEndedMessageFromJson(Map json) => ScheduledTaskEndedMessage( + data: json['Data'] == null ? null : TaskResult.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: ScheduledTaskEndedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTaskEndedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTaskEndedMessageToJson( - ScheduledTaskEndedMessage instance) => - { +Map _$ScheduledTaskEndedMessageToJson(ScheduledTaskEndedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTasksInfoMessage _$ScheduledTasksInfoMessageFromJson( - Map json) => - ScheduledTasksInfoMessage( - data: (json['Data'] as List?) - ?.map((e) => TaskInfo.fromJson(e as Map)) - .toList() ?? - [], +ScheduledTasksInfoMessage _$ScheduledTasksInfoMessageFromJson(Map json) => ScheduledTasksInfoMessage( + data: (json['Data'] as List?)?.map((e) => TaskInfo.fromJson(e as Map)).toList() ?? [], messageId: json['MessageId'] as String?, - messageType: ScheduledTasksInfoMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoMessageToJson( - ScheduledTasksInfoMessage instance) => - { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) - 'Data': value, +Map _$ScheduledTasksInfoMessageToJson(ScheduledTasksInfoMessage instance) => { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTasksInfoStartMessage _$ScheduledTasksInfoStartMessageFromJson( - Map json) => +ScheduledTasksInfoStartMessage _$ScheduledTasksInfoStartMessageFromJson(Map json) => ScheduledTasksInfoStartMessage( data: json['Data'] as String?, - messageType: ScheduledTasksInfoStartMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoStartMessageToJson( - ScheduledTasksInfoStartMessage instance) => +Map _$ScheduledTasksInfoStartMessageToJson(ScheduledTasksInfoStartMessage instance) => { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTasksInfoStopMessage _$ScheduledTasksInfoStopMessageFromJson( - Map json) => +ScheduledTasksInfoStopMessage _$ScheduledTasksInfoStopMessageFromJson(Map json) => ScheduledTasksInfoStopMessage( - messageType: ScheduledTasksInfoStopMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoStopMessageToJson( - ScheduledTasksInfoStopMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$ScheduledTasksInfoStopMessageToJson(ScheduledTasksInfoStopMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; SearchHint _$SearchHintFromJson(Map json) => SearchHint( @@ -5349,59 +3869,41 @@ SearchHint _$SearchHintFromJson(Map json) => SearchHint( type: baseItemKindNullableFromJson(json['Type']), isFolder: json['IsFolder'] as bool?, runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), - mediaType: - SearchHint.mediaTypeMediaTypeNullableFromJson(json['MediaType']), - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + mediaType: SearchHint.mediaTypeMediaTypeNullableFromJson(json['MediaType']), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), series: json['Series'] as String?, status: json['Status'] as String?, album: json['Album'] as String?, albumId: json['AlbumId'] as String?, albumArtist: json['AlbumArtist'] as String?, - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], songCount: (json['SongCount'] as num?)?.toInt(), episodeCount: (json['EpisodeCount'] as num?)?.toInt(), channelId: json['ChannelId'] as String?, channelName: json['ChannelName'] as String?, - primaryImageAspectRatio: - (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), ); -Map _$SearchHintToJson(SearchHint instance) => - { +Map _$SearchHintToJson(SearchHint instance) => { if (instance.itemId case final value?) 'ItemId': value, if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.matchedTerm case final value?) 'MatchedTerm': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.productionYear case final value?) 'ProductionYear': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, if (instance.thumbImageTag case final value?) 'ThumbImageTag': value, - if (instance.thumbImageItemId case final value?) - 'ThumbImageItemId': value, - if (instance.backdropImageTag case final value?) - 'BackdropImageTag': value, - if (instance.backdropImageItemId case final value?) - 'BackdropImageItemId': value, - if (baseItemKindNullableToJson(instance.type) case final value?) - 'Type': value, + if (instance.thumbImageItemId case final value?) 'ThumbImageItemId': value, + if (instance.backdropImageTag case final value?) 'BackdropImageTag': value, + if (instance.backdropImageItemId case final value?) 'BackdropImageItemId': value, + if (baseItemKindNullableToJson(instance.type) case final value?) 'Type': value, if (instance.isFolder case final value?) 'IsFolder': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) - 'MediaType': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, if (instance.series case final value?) 'Series': value, if (instance.status case final value?) 'Status': value, if (instance.album case final value?) 'Album': value, @@ -5412,12 +3914,10 @@ Map _$SearchHintToJson(SearchHint instance) => if (instance.episodeCount case final value?) 'EpisodeCount': value, if (instance.channelId case final value?) 'ChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.primaryImageAspectRatio case final value?) - 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, }; -SearchHintResult _$SearchHintResultFromJson(Map json) => - SearchHintResult( +SearchHintResult _$SearchHintResultFromJson(Map json) => SearchHintResult( searchHints: (json['SearchHints'] as List?) ?.map((e) => SearchHint.fromJson(e as Map)) .toList() ?? @@ -5425,47 +3925,35 @@ SearchHintResult _$SearchHintResultFromJson(Map json) => totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), ); -Map _$SearchHintResultToJson(SearchHintResult instance) => - { - if (instance.searchHints?.map((e) => e.toJson()).toList() - case final value?) - 'SearchHints': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$SearchHintResultToJson(SearchHintResult instance) => { + if (instance.searchHints?.map((e) => e.toJson()).toList() case final value?) 'SearchHints': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, }; -SeekRequestDto _$SeekRequestDtoFromJson(Map json) => - SeekRequestDto( +SeekRequestDto _$SeekRequestDtoFromJson(Map json) => SeekRequestDto( positionTicks: (json['PositionTicks'] as num?)?.toInt(), ); -Map _$SeekRequestDtoToJson(SeekRequestDto instance) => - { +Map _$SeekRequestDtoToJson(SeekRequestDto instance) => { if (instance.positionTicks case final value?) 'PositionTicks': value, }; SendCommand _$SendCommandFromJson(Map json) => SendCommand( groupId: json['GroupId'] as String?, playlistItemId: json['PlaylistItemId'] as String?, - when: - json['When'] == null ? null : DateTime.parse(json['When'] as String), + when: json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), command: sendCommandTypeNullableFromJson(json['Command']), - emittedAt: json['EmittedAt'] == null - ? null - : DateTime.parse(json['EmittedAt'] as String), + emittedAt: json['EmittedAt'] == null ? null : DateTime.parse(json['EmittedAt'] as String), ); -Map _$SendCommandToJson(SendCommand instance) => - { +Map _$SendCommandToJson(SendCommand instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (sendCommandTypeNullableToJson(instance.command) case final value?) - 'Command': value, - if (instance.emittedAt?.toIso8601String() case final value?) - 'EmittedAt': value, + if (sendCommandTypeNullableToJson(instance.command) case final value?) 'Command': value, + if (instance.emittedAt?.toIso8601String() case final value?) 'EmittedAt': value, }; SeriesInfo _$SeriesInfoFromJson(Map json) => SeriesInfo( @@ -5478,97 +3966,65 @@ SeriesInfo _$SeriesInfoFromJson(Map json) => SeriesInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$SeriesInfoToJson(SeriesInfo instance) => - { +Map _$SeriesInfoToJson(SeriesInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -SeriesInfoRemoteSearchQuery _$SeriesInfoRemoteSearchQueryFromJson( - Map json) => +SeriesInfoRemoteSearchQuery _$SeriesInfoRemoteSearchQueryFromJson(Map json) => SeriesInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : SeriesInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : SeriesInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$SeriesInfoRemoteSearchQueryToJson( - SeriesInfoRemoteSearchQuery instance) => - { +Map _$SeriesInfoRemoteSearchQueryToJson(SeriesInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -SeriesTimerCancelledMessage _$SeriesTimerCancelledMessageFromJson( - Map json) => +SeriesTimerCancelledMessage _$SeriesTimerCancelledMessageFromJson(Map json) => SeriesTimerCancelledMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SeriesTimerCancelledMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SeriesTimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SeriesTimerCancelledMessageToJson( - SeriesTimerCancelledMessage instance) => - { +Map _$SeriesTimerCancelledMessageToJson(SeriesTimerCancelledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SeriesTimerCreatedMessage _$SeriesTimerCreatedMessageFromJson( - Map json) => - SeriesTimerCreatedMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), +SeriesTimerCreatedMessage _$SeriesTimerCreatedMessageFromJson(Map json) => SeriesTimerCreatedMessage( + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SeriesTimerCreatedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SeriesTimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SeriesTimerCreatedMessageToJson( - SeriesTimerCreatedMessage instance) => - { +Map _$SeriesTimerCreatedMessageToJson(SeriesTimerCreatedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => - SeriesTimerInfoDto( +SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => SeriesTimerInfoDto( id: json['Id'] as String?, type: json['Type'] as String?, serverId: json['ServerId'] as String?, @@ -5581,12 +4037,8 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => externalProgramId: json['ExternalProgramId'] as String?, name: json['Name'] as String?, overview: json['Overview'] as String?, - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), serviceName: json['ServiceName'] as String?, priority: (json['Priority'] as num?)?.toInt(), prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), @@ -5594,10 +4046,7 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => isPrePaddingRequired: json['IsPrePaddingRequired'] as bool?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], isPostPaddingRequired: json['IsPostPaddingRequired'] as bool?, keepUntil: keepUntilNullableFromJson(json['KeepUntil']), recordAnyTime: json['RecordAnyTime'] as bool?, @@ -5614,135 +4063,93 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => parentPrimaryImageTag: json['ParentPrimaryImageTag'] as String?, ); -Map _$SeriesTimerInfoDtoToJson(SeriesTimerInfoDto instance) => - { +Map _$SeriesTimerInfoDtoToJson(SeriesTimerInfoDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.serverId case final value?) 'ServerId': value, if (instance.externalId case final value?) 'ExternalId': value, if (instance.channelId case final value?) 'ChannelId': value, - if (instance.externalChannelId case final value?) - 'ExternalChannelId': value, + if (instance.externalChannelId case final value?) 'ExternalChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.channelPrimaryImageTag case final value?) - 'ChannelPrimaryImageTag': value, + if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.externalProgramId case final value?) - 'ExternalProgramId': value, + if (instance.externalProgramId case final value?) 'ExternalProgramId': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, if (instance.serviceName case final value?) 'ServiceName': value, if (instance.priority case final value?) 'Priority': value, - if (instance.prePaddingSeconds case final value?) - 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) - 'PostPaddingSeconds': value, - if (instance.isPrePaddingRequired case final value?) - 'IsPrePaddingRequired': value, - if (instance.parentBackdropItemId case final value?) - 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) - 'ParentBackdropImageTags': value, - if (instance.isPostPaddingRequired case final value?) - 'IsPostPaddingRequired': value, - if (keepUntilNullableToJson(instance.keepUntil) case final value?) - 'KeepUntil': value, + if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, + if (instance.isPrePaddingRequired case final value?) 'IsPrePaddingRequired': value, + if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, + if (instance.isPostPaddingRequired case final value?) 'IsPostPaddingRequired': value, + if (keepUntilNullableToJson(instance.keepUntil) case final value?) 'KeepUntil': value, if (instance.recordAnyTime case final value?) 'RecordAnyTime': value, - if (instance.skipEpisodesInLibrary case final value?) - 'SkipEpisodesInLibrary': value, - if (instance.recordAnyChannel case final value?) - 'RecordAnyChannel': value, + if (instance.skipEpisodesInLibrary case final value?) 'SkipEpisodesInLibrary': value, + if (instance.recordAnyChannel case final value?) 'RecordAnyChannel': value, if (instance.keepUpTo case final value?) 'KeepUpTo': value, if (instance.recordNewOnly case final value?) 'RecordNewOnly': value, 'Days': dayOfWeekListToJson(instance.days), - if (dayPatternNullableToJson(instance.dayPattern) case final value?) - 'DayPattern': value, + if (dayPatternNullableToJson(instance.dayPattern) case final value?) 'DayPattern': value, if (instance.imageTags case final value?) 'ImageTags': value, - if (instance.parentThumbItemId case final value?) - 'ParentThumbItemId': value, - if (instance.parentThumbImageTag case final value?) - 'ParentThumbImageTag': value, - if (instance.parentPrimaryImageItemId case final value?) - 'ParentPrimaryImageItemId': value, - if (instance.parentPrimaryImageTag case final value?) - 'ParentPrimaryImageTag': value, - }; - -SeriesTimerInfoDtoQueryResult _$SeriesTimerInfoDtoQueryResultFromJson( - Map json) => + if (instance.parentThumbItemId case final value?) 'ParentThumbItemId': value, + if (instance.parentThumbImageTag case final value?) 'ParentThumbImageTag': value, + if (instance.parentPrimaryImageItemId case final value?) 'ParentPrimaryImageItemId': value, + if (instance.parentPrimaryImageTag case final value?) 'ParentPrimaryImageTag': value, + }; + +SeriesTimerInfoDtoQueryResult _$SeriesTimerInfoDtoQueryResultFromJson(Map json) => SeriesTimerInfoDtoQueryResult( items: (json['Items'] as List?) - ?.map( - (e) => SeriesTimerInfoDto.fromJson(e as Map)) + ?.map((e) => SeriesTimerInfoDto.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$SeriesTimerInfoDtoQueryResultToJson( - SeriesTimerInfoDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$SeriesTimerInfoDtoQueryResultToJson(SeriesTimerInfoDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -ServerConfiguration _$ServerConfigurationFromJson(Map json) => - ServerConfiguration( +ServerConfiguration _$ServerConfigurationFromJson(Map json) => ServerConfiguration( logFileRetentionDays: (json['LogFileRetentionDays'] as num?)?.toInt(), isStartupWizardCompleted: json['IsStartupWizardCompleted'] as bool?, cachePath: json['CachePath'] as String?, previousVersion: json['PreviousVersion'] as String?, previousVersionStr: json['PreviousVersionStr'] as String?, enableMetrics: json['EnableMetrics'] as bool?, - enableNormalizedItemByNameIds: - json['EnableNormalizedItemByNameIds'] as bool?, + enableNormalizedItemByNameIds: json['EnableNormalizedItemByNameIds'] as bool?, isPortAuthorized: json['IsPortAuthorized'] as bool?, quickConnectAvailable: json['QuickConnectAvailable'] as bool?, enableCaseSensitiveItemIds: json['EnableCaseSensitiveItemIds'] as bool?, - disableLiveTvChannelUserDataName: - json['DisableLiveTvChannelUserDataName'] as bool?, + disableLiveTvChannelUserDataName: json['DisableLiveTvChannelUserDataName'] as bool?, metadataPath: json['MetadataPath'] as String?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, - sortReplaceCharacters: (json['SortReplaceCharacters'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - sortRemoveCharacters: (json['SortRemoveCharacters'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - sortRemoveWords: (json['SortRemoveWords'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + sortReplaceCharacters: (json['SortReplaceCharacters'] as List?)?.map((e) => e as String).toList() ?? [], + sortRemoveCharacters: (json['SortRemoveCharacters'] as List?)?.map((e) => e as String).toList() ?? [], + sortRemoveWords: (json['SortRemoveWords'] as List?)?.map((e) => e as String).toList() ?? [], minResumePct: (json['MinResumePct'] as num?)?.toInt(), maxResumePct: (json['MaxResumePct'] as num?)?.toInt(), - minResumeDurationSeconds: - (json['MinResumeDurationSeconds'] as num?)?.toInt(), + minResumeDurationSeconds: (json['MinResumeDurationSeconds'] as num?)?.toInt(), minAudiobookResume: (json['MinAudiobookResume'] as num?)?.toInt(), maxAudiobookResume: (json['MaxAudiobookResume'] as num?)?.toInt(), - inactiveSessionThreshold: - (json['InactiveSessionThreshold'] as num?)?.toInt(), + inactiveSessionThreshold: (json['InactiveSessionThreshold'] as num?)?.toInt(), libraryMonitorDelay: (json['LibraryMonitorDelay'] as num?)?.toInt(), libraryUpdateDuration: (json['LibraryUpdateDuration'] as num?)?.toInt(), cacheSize: (json['CacheSize'] as num?)?.toInt(), - imageSavingConvention: - imageSavingConventionNullableFromJson(json['ImageSavingConvention']), + imageSavingConvention: imageSavingConventionNullableFromJson(json['ImageSavingConvention']), metadataOptions: (json['MetadataOptions'] as List?) ?.map((e) => MetadataOptions.fromJson(e as Map)) .toList() ?? [], - skipDeserializationForBasicTypes: - json['SkipDeserializationForBasicTypes'] as bool?, + skipDeserializationForBasicTypes: json['SkipDeserializationForBasicTypes'] as bool?, serverName: json['ServerName'] as String?, uICulture: json['UICulture'] as String?, saveMetadataHidden: json['SaveMetadataHidden'] as bool?, @@ -5750,272 +4157,168 @@ ServerConfiguration _$ServerConfigurationFromJson(Map json) => ?.map((e) => NameValuePair.fromJson(e as Map)) .toList() ?? [], - remoteClientBitrateLimit: - (json['RemoteClientBitrateLimit'] as num?)?.toInt(), + remoteClientBitrateLimit: (json['RemoteClientBitrateLimit'] as num?)?.toInt(), enableFolderView: json['EnableFolderView'] as bool?, - enableGroupingMoviesIntoCollections: - json['EnableGroupingMoviesIntoCollections'] as bool?, - enableGroupingShowsIntoCollections: - json['EnableGroupingShowsIntoCollections'] as bool?, - displaySpecialsWithinSeasons: - json['DisplaySpecialsWithinSeasons'] as bool?, - codecsUsed: (json['CodecsUsed'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enableGroupingMoviesIntoCollections: json['EnableGroupingMoviesIntoCollections'] as bool?, + enableGroupingShowsIntoCollections: json['EnableGroupingShowsIntoCollections'] as bool?, + displaySpecialsWithinSeasons: json['DisplaySpecialsWithinSeasons'] as bool?, + codecsUsed: (json['CodecsUsed'] as List?)?.map((e) => e as String).toList() ?? [], pluginRepositories: (json['PluginRepositories'] as List?) ?.map((e) => RepositoryInfo.fromJson(e as Map)) .toList() ?? [], - enableExternalContentInSuggestions: - json['EnableExternalContentInSuggestions'] as bool?, - imageExtractionTimeoutMs: - (json['ImageExtractionTimeoutMs'] as num?)?.toInt(), + enableExternalContentInSuggestions: json['EnableExternalContentInSuggestions'] as bool?, + imageExtractionTimeoutMs: (json['ImageExtractionTimeoutMs'] as num?)?.toInt(), pathSubstitutions: (json['PathSubstitutions'] as List?) ?.map((e) => PathSubstitution.fromJson(e as Map)) .toList() ?? [], enableSlowResponseWarning: json['EnableSlowResponseWarning'] as bool?, - slowResponseThresholdMs: - (json['SlowResponseThresholdMs'] as num?)?.toInt(), - corsHosts: (json['CorsHosts'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - activityLogRetentionDays: - (json['ActivityLogRetentionDays'] as num?)?.toInt(), - libraryScanFanoutConcurrency: - (json['LibraryScanFanoutConcurrency'] as num?)?.toInt(), - libraryMetadataRefreshConcurrency: - (json['LibraryMetadataRefreshConcurrency'] as num?)?.toInt(), + slowResponseThresholdMs: (json['SlowResponseThresholdMs'] as num?)?.toInt(), + corsHosts: (json['CorsHosts'] as List?)?.map((e) => e as String).toList() ?? [], + activityLogRetentionDays: (json['ActivityLogRetentionDays'] as num?)?.toInt(), + libraryScanFanoutConcurrency: (json['LibraryScanFanoutConcurrency'] as num?)?.toInt(), + libraryMetadataRefreshConcurrency: (json['LibraryMetadataRefreshConcurrency'] as num?)?.toInt(), allowClientLogUpload: json['AllowClientLogUpload'] as bool?, dummyChapterDuration: (json['DummyChapterDuration'] as num?)?.toInt(), - chapterImageResolution: - imageResolutionNullableFromJson(json['ChapterImageResolution']), - parallelImageEncodingLimit: - (json['ParallelImageEncodingLimit'] as num?)?.toInt(), - castReceiverApplications: (json['CastReceiverApplications'] - as List?) - ?.map((e) => - CastReceiverApplication.fromJson(e as Map)) + chapterImageResolution: imageResolutionNullableFromJson(json['ChapterImageResolution']), + parallelImageEncodingLimit: (json['ParallelImageEncodingLimit'] as num?)?.toInt(), + castReceiverApplications: (json['CastReceiverApplications'] as List?) + ?.map((e) => CastReceiverApplication.fromJson(e as Map)) .toList() ?? [], trickplayOptions: json['TrickplayOptions'] == null ? null - : TrickplayOptions.fromJson( - json['TrickplayOptions'] as Map), + : TrickplayOptions.fromJson(json['TrickplayOptions'] as Map), enableLegacyAuthorization: json['EnableLegacyAuthorization'] as bool?, ); -Map _$ServerConfigurationToJson( - ServerConfiguration instance) => - { - if (instance.logFileRetentionDays case final value?) - 'LogFileRetentionDays': value, - if (instance.isStartupWizardCompleted case final value?) - 'IsStartupWizardCompleted': value, +Map _$ServerConfigurationToJson(ServerConfiguration instance) => { + if (instance.logFileRetentionDays case final value?) 'LogFileRetentionDays': value, + if (instance.isStartupWizardCompleted case final value?) 'IsStartupWizardCompleted': value, if (instance.cachePath case final value?) 'CachePath': value, if (instance.previousVersion case final value?) 'PreviousVersion': value, - if (instance.previousVersionStr case final value?) - 'PreviousVersionStr': value, + if (instance.previousVersionStr case final value?) 'PreviousVersionStr': value, if (instance.enableMetrics case final value?) 'EnableMetrics': value, - if (instance.enableNormalizedItemByNameIds case final value?) - 'EnableNormalizedItemByNameIds': value, - if (instance.isPortAuthorized case final value?) - 'IsPortAuthorized': value, - if (instance.quickConnectAvailable case final value?) - 'QuickConnectAvailable': value, - if (instance.enableCaseSensitiveItemIds case final value?) - 'EnableCaseSensitiveItemIds': value, - if (instance.disableLiveTvChannelUserDataName case final value?) - 'DisableLiveTvChannelUserDataName': value, + if (instance.enableNormalizedItemByNameIds case final value?) 'EnableNormalizedItemByNameIds': value, + if (instance.isPortAuthorized case final value?) 'IsPortAuthorized': value, + if (instance.quickConnectAvailable case final value?) 'QuickConnectAvailable': value, + if (instance.enableCaseSensitiveItemIds case final value?) 'EnableCaseSensitiveItemIds': value, + if (instance.disableLiveTvChannelUserDataName case final value?) 'DisableLiveTvChannelUserDataName': value, if (instance.metadataPath case final value?) 'MetadataPath': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, - if (instance.sortReplaceCharacters case final value?) - 'SortReplaceCharacters': value, - if (instance.sortRemoveCharacters case final value?) - 'SortRemoveCharacters': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.sortReplaceCharacters case final value?) 'SortReplaceCharacters': value, + if (instance.sortRemoveCharacters case final value?) 'SortRemoveCharacters': value, if (instance.sortRemoveWords case final value?) 'SortRemoveWords': value, if (instance.minResumePct case final value?) 'MinResumePct': value, if (instance.maxResumePct case final value?) 'MaxResumePct': value, - if (instance.minResumeDurationSeconds case final value?) - 'MinResumeDurationSeconds': value, - if (instance.minAudiobookResume case final value?) - 'MinAudiobookResume': value, - if (instance.maxAudiobookResume case final value?) - 'MaxAudiobookResume': value, - if (instance.inactiveSessionThreshold case final value?) - 'InactiveSessionThreshold': value, - if (instance.libraryMonitorDelay case final value?) - 'LibraryMonitorDelay': value, - if (instance.libraryUpdateDuration case final value?) - 'LibraryUpdateDuration': value, + if (instance.minResumeDurationSeconds case final value?) 'MinResumeDurationSeconds': value, + if (instance.minAudiobookResume case final value?) 'MinAudiobookResume': value, + if (instance.maxAudiobookResume case final value?) 'MaxAudiobookResume': value, + if (instance.inactiveSessionThreshold case final value?) 'InactiveSessionThreshold': value, + if (instance.libraryMonitorDelay case final value?) 'LibraryMonitorDelay': value, + if (instance.libraryUpdateDuration case final value?) 'LibraryUpdateDuration': value, if (instance.cacheSize case final value?) 'CacheSize': value, - if (imageSavingConventionNullableToJson(instance.imageSavingConvention) - case final value?) + if (imageSavingConventionNullableToJson(instance.imageSavingConvention) case final value?) 'ImageSavingConvention': value, - if (instance.metadataOptions?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataOptions': value, - if (instance.skipDeserializationForBasicTypes case final value?) - 'SkipDeserializationForBasicTypes': value, + if (instance.metadataOptions?.map((e) => e.toJson()).toList() case final value?) 'MetadataOptions': value, + if (instance.skipDeserializationForBasicTypes case final value?) 'SkipDeserializationForBasicTypes': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.uICulture case final value?) 'UICulture': value, - if (instance.saveMetadataHidden case final value?) - 'SaveMetadataHidden': value, - if (instance.contentTypes?.map((e) => e.toJson()).toList() - case final value?) - 'ContentTypes': value, - if (instance.remoteClientBitrateLimit case final value?) - 'RemoteClientBitrateLimit': value, - if (instance.enableFolderView case final value?) - 'EnableFolderView': value, - if (instance.enableGroupingMoviesIntoCollections case final value?) - 'EnableGroupingMoviesIntoCollections': value, - if (instance.enableGroupingShowsIntoCollections case final value?) - 'EnableGroupingShowsIntoCollections': value, - if (instance.displaySpecialsWithinSeasons case final value?) - 'DisplaySpecialsWithinSeasons': value, + if (instance.saveMetadataHidden case final value?) 'SaveMetadataHidden': value, + if (instance.contentTypes?.map((e) => e.toJson()).toList() case final value?) 'ContentTypes': value, + if (instance.remoteClientBitrateLimit case final value?) 'RemoteClientBitrateLimit': value, + if (instance.enableFolderView case final value?) 'EnableFolderView': value, + if (instance.enableGroupingMoviesIntoCollections case final value?) 'EnableGroupingMoviesIntoCollections': value, + if (instance.enableGroupingShowsIntoCollections case final value?) 'EnableGroupingShowsIntoCollections': value, + if (instance.displaySpecialsWithinSeasons case final value?) 'DisplaySpecialsWithinSeasons': value, if (instance.codecsUsed case final value?) 'CodecsUsed': value, - if (instance.pluginRepositories?.map((e) => e.toJson()).toList() - case final value?) - 'PluginRepositories': value, - if (instance.enableExternalContentInSuggestions case final value?) - 'EnableExternalContentInSuggestions': value, - if (instance.imageExtractionTimeoutMs case final value?) - 'ImageExtractionTimeoutMs': value, - if (instance.pathSubstitutions?.map((e) => e.toJson()).toList() - case final value?) - 'PathSubstitutions': value, - if (instance.enableSlowResponseWarning case final value?) - 'EnableSlowResponseWarning': value, - if (instance.slowResponseThresholdMs case final value?) - 'SlowResponseThresholdMs': value, + if (instance.pluginRepositories?.map((e) => e.toJson()).toList() case final value?) 'PluginRepositories': value, + if (instance.enableExternalContentInSuggestions case final value?) 'EnableExternalContentInSuggestions': value, + if (instance.imageExtractionTimeoutMs case final value?) 'ImageExtractionTimeoutMs': value, + if (instance.pathSubstitutions?.map((e) => e.toJson()).toList() case final value?) 'PathSubstitutions': value, + if (instance.enableSlowResponseWarning case final value?) 'EnableSlowResponseWarning': value, + if (instance.slowResponseThresholdMs case final value?) 'SlowResponseThresholdMs': value, if (instance.corsHosts case final value?) 'CorsHosts': value, - if (instance.activityLogRetentionDays case final value?) - 'ActivityLogRetentionDays': value, - if (instance.libraryScanFanoutConcurrency case final value?) - 'LibraryScanFanoutConcurrency': value, - if (instance.libraryMetadataRefreshConcurrency case final value?) - 'LibraryMetadataRefreshConcurrency': value, - if (instance.allowClientLogUpload case final value?) - 'AllowClientLogUpload': value, - if (instance.dummyChapterDuration case final value?) - 'DummyChapterDuration': value, - if (imageResolutionNullableToJson(instance.chapterImageResolution) - case final value?) + if (instance.activityLogRetentionDays case final value?) 'ActivityLogRetentionDays': value, + if (instance.libraryScanFanoutConcurrency case final value?) 'LibraryScanFanoutConcurrency': value, + if (instance.libraryMetadataRefreshConcurrency case final value?) 'LibraryMetadataRefreshConcurrency': value, + if (instance.allowClientLogUpload case final value?) 'AllowClientLogUpload': value, + if (instance.dummyChapterDuration case final value?) 'DummyChapterDuration': value, + if (imageResolutionNullableToJson(instance.chapterImageResolution) case final value?) 'ChapterImageResolution': value, - if (instance.parallelImageEncodingLimit case final value?) - 'ParallelImageEncodingLimit': value, - if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() - case final value?) + if (instance.parallelImageEncodingLimit case final value?) 'ParallelImageEncodingLimit': value, + if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() case final value?) 'CastReceiverApplications': value, - if (instance.trickplayOptions?.toJson() case final value?) - 'TrickplayOptions': value, - if (instance.enableLegacyAuthorization case final value?) - 'EnableLegacyAuthorization': value, + if (instance.trickplayOptions?.toJson() case final value?) 'TrickplayOptions': value, + if (instance.enableLegacyAuthorization case final value?) 'EnableLegacyAuthorization': value, }; -ServerDiscoveryInfo _$ServerDiscoveryInfoFromJson(Map json) => - ServerDiscoveryInfo( +ServerDiscoveryInfo _$ServerDiscoveryInfoFromJson(Map json) => ServerDiscoveryInfo( address: json['Address'] as String?, id: json['Id'] as String?, name: json['Name'] as String?, endpointAddress: json['EndpointAddress'] as String?, ); -Map _$ServerDiscoveryInfoToJson( - ServerDiscoveryInfo instance) => - { +Map _$ServerDiscoveryInfoToJson(ServerDiscoveryInfo instance) => { if (instance.address case final value?) 'Address': value, if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.endpointAddress case final value?) 'EndpointAddress': value, }; -ServerRestartingMessage _$ServerRestartingMessageFromJson( - Map json) => - ServerRestartingMessage( +ServerRestartingMessage _$ServerRestartingMessageFromJson(Map json) => ServerRestartingMessage( messageId: json['MessageId'] as String?, - messageType: - ServerRestartingMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: ServerRestartingMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ServerRestartingMessageToJson( - ServerRestartingMessage instance) => - { +Map _$ServerRestartingMessageToJson(ServerRestartingMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ServerShuttingDownMessage _$ServerShuttingDownMessageFromJson( - Map json) => - ServerShuttingDownMessage( +ServerShuttingDownMessage _$ServerShuttingDownMessageFromJson(Map json) => ServerShuttingDownMessage( messageId: json['MessageId'] as String?, - messageType: ServerShuttingDownMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ServerShuttingDownMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ServerShuttingDownMessageToJson( - ServerShuttingDownMessage instance) => - { +Map _$ServerShuttingDownMessageToJson(ServerShuttingDownMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionInfoDto _$SessionInfoDtoFromJson(Map json) => - SessionInfoDto( - playState: json['PlayState'] == null - ? null - : PlayerStateInfo.fromJson(json['PlayState'] as Map), +SessionInfoDto _$SessionInfoDtoFromJson(Map json) => SessionInfoDto( + playState: json['PlayState'] == null ? null : PlayerStateInfo.fromJson(json['PlayState'] as Map), additionalUsers: (json['AdditionalUsers'] as List?) ?.map((e) => SessionUserInfo.fromJson(e as Map)) .toList() ?? [], capabilities: json['Capabilities'] == null ? null - : ClientCapabilitiesDto.fromJson( - json['Capabilities'] as Map), + : ClientCapabilitiesDto.fromJson(json['Capabilities'] as Map), remoteEndPoint: json['RemoteEndPoint'] as String?, - playableMediaTypes: - mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), + playableMediaTypes: mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), id: json['Id'] as String?, userId: json['UserId'] as String?, userName: json['UserName'] as String?, $Client: json['Client'] as String?, - lastActivityDate: json['LastActivityDate'] == null - ? null - : DateTime.parse(json['LastActivityDate'] as String), - lastPlaybackCheckIn: json['LastPlaybackCheckIn'] == null - ? null - : DateTime.parse(json['LastPlaybackCheckIn'] as String), - lastPausedDate: json['LastPausedDate'] == null - ? null - : DateTime.parse(json['LastPausedDate'] as String), + lastActivityDate: json['LastActivityDate'] == null ? null : DateTime.parse(json['LastActivityDate'] as String), + lastPlaybackCheckIn: + json['LastPlaybackCheckIn'] == null ? null : DateTime.parse(json['LastPlaybackCheckIn'] as String), + lastPausedDate: json['LastPausedDate'] == null ? null : DateTime.parse(json['LastPausedDate'] as String), deviceName: json['DeviceName'] as String?, deviceType: json['DeviceType'] as String?, - nowPlayingItem: json['NowPlayingItem'] == null - ? null - : BaseItemDto.fromJson( - json['NowPlayingItem'] as Map), - nowViewingItem: json['NowViewingItem'] == null - ? null - : BaseItemDto.fromJson( - json['NowViewingItem'] as Map), + nowPlayingItem: + json['NowPlayingItem'] == null ? null : BaseItemDto.fromJson(json['NowPlayingItem'] as Map), + nowViewingItem: + json['NowViewingItem'] == null ? null : BaseItemDto.fromJson(json['NowViewingItem'] as Map), deviceId: json['DeviceId'] as String?, applicationVersion: json['ApplicationVersion'] as String?, transcodingInfo: json['TranscodingInfo'] == null ? null - : TranscodingInfo.fromJson( - json['TranscodingInfo'] as Map), + : TranscodingInfo.fromJson(json['TranscodingInfo'] as Map), isActive: json['IsActive'] as bool?, supportsMediaControl: json['SupportsMediaControl'] as bool?, supportsRemoteControl: json['SupportsRemoteControl'] as bool?, @@ -6023,190 +4326,125 @@ SessionInfoDto _$SessionInfoDtoFromJson(Map json) => ?.map((e) => QueueItem.fromJson(e as Map)) .toList() ?? [], - nowPlayingQueueFullItems: - (json['NowPlayingQueueFullItems'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], + nowPlayingQueueFullItems: (json['NowPlayingQueueFullItems'] as List?) + ?.map((e) => BaseItemDto.fromJson(e as Map)) + .toList() ?? + [], hasCustomDeviceName: json['HasCustomDeviceName'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, serverId: json['ServerId'] as String?, userPrimaryImageTag: json['UserPrimaryImageTag'] as String?, - supportedCommands: - generalCommandTypeListFromJson(json['SupportedCommands'] as List?), + supportedCommands: generalCommandTypeListFromJson(json['SupportedCommands'] as List?), ); -Map _$SessionInfoDtoToJson(SessionInfoDto instance) => - { +Map _$SessionInfoDtoToJson(SessionInfoDto instance) => { if (instance.playState?.toJson() case final value?) 'PlayState': value, - if (instance.additionalUsers?.map((e) => e.toJson()).toList() - case final value?) - 'AdditionalUsers': value, - if (instance.capabilities?.toJson() case final value?) - 'Capabilities': value, + if (instance.additionalUsers?.map((e) => e.toJson()).toList() case final value?) 'AdditionalUsers': value, + if (instance.capabilities?.toJson() case final value?) 'Capabilities': value, if (instance.remoteEndPoint case final value?) 'RemoteEndPoint': value, 'PlayableMediaTypes': mediaTypeListToJson(instance.playableMediaTypes), if (instance.id case final value?) 'Id': value, if (instance.userId case final value?) 'UserId': value, if (instance.userName case final value?) 'UserName': value, if (instance.$Client case final value?) 'Client': value, - if (instance.lastActivityDate?.toIso8601String() case final value?) - 'LastActivityDate': value, - if (instance.lastPlaybackCheckIn?.toIso8601String() case final value?) - 'LastPlaybackCheckIn': value, - if (instance.lastPausedDate?.toIso8601String() case final value?) - 'LastPausedDate': value, + if (instance.lastActivityDate?.toIso8601String() case final value?) 'LastActivityDate': value, + if (instance.lastPlaybackCheckIn?.toIso8601String() case final value?) 'LastPlaybackCheckIn': value, + if (instance.lastPausedDate?.toIso8601String() case final value?) 'LastPausedDate': value, if (instance.deviceName case final value?) 'DeviceName': value, if (instance.deviceType case final value?) 'DeviceType': value, - if (instance.nowPlayingItem?.toJson() case final value?) - 'NowPlayingItem': value, - if (instance.nowViewingItem?.toJson() case final value?) - 'NowViewingItem': value, + if (instance.nowPlayingItem?.toJson() case final value?) 'NowPlayingItem': value, + if (instance.nowViewingItem?.toJson() case final value?) 'NowViewingItem': value, if (instance.deviceId case final value?) 'DeviceId': value, - if (instance.applicationVersion case final value?) - 'ApplicationVersion': value, - if (instance.transcodingInfo?.toJson() case final value?) - 'TranscodingInfo': value, + if (instance.applicationVersion case final value?) 'ApplicationVersion': value, + if (instance.transcodingInfo?.toJson() case final value?) 'TranscodingInfo': value, if (instance.isActive case final value?) 'IsActive': value, - if (instance.supportsMediaControl case final value?) - 'SupportsMediaControl': value, - if (instance.supportsRemoteControl case final value?) - 'SupportsRemoteControl': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, - if (instance.nowPlayingQueueFullItems?.map((e) => e.toJson()).toList() - case final value?) + if (instance.supportsMediaControl case final value?) 'SupportsMediaControl': value, + if (instance.supportsRemoteControl case final value?) 'SupportsRemoteControl': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, + if (instance.nowPlayingQueueFullItems?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueueFullItems': value, - if (instance.hasCustomDeviceName case final value?) - 'HasCustomDeviceName': value, + if (instance.hasCustomDeviceName case final value?) 'HasCustomDeviceName': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.serverId case final value?) 'ServerId': value, - if (instance.userPrimaryImageTag case final value?) - 'UserPrimaryImageTag': value, - 'SupportedCommands': - generalCommandTypeListToJson(instance.supportedCommands), + if (instance.userPrimaryImageTag case final value?) 'UserPrimaryImageTag': value, + 'SupportedCommands': generalCommandTypeListToJson(instance.supportedCommands), }; -SessionsMessage _$SessionsMessageFromJson(Map json) => - SessionsMessage( - data: (json['Data'] as List?) - ?.map((e) => SessionInfoDto.fromJson(e as Map)) - .toList() ?? +SessionsMessage _$SessionsMessageFromJson(Map json) => SessionsMessage( + data: (json['Data'] as List?)?.map((e) => SessionInfoDto.fromJson(e as Map)).toList() ?? [], messageId: json['MessageId'] as String?, - messageType: - SessionsMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: SessionsMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SessionsMessageToJson(SessionsMessage instance) => - { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) - 'Data': value, +Map _$SessionsMessageToJson(SessionsMessage instance) => { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionsStartMessage _$SessionsStartMessageFromJson( - Map json) => - SessionsStartMessage( +SessionsStartMessage _$SessionsStartMessageFromJson(Map json) => SessionsStartMessage( data: json['Data'] as String?, - messageType: - SessionsStartMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: SessionsStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SessionsStartMessageToJson( - SessionsStartMessage instance) => - { +Map _$SessionsStartMessageToJson(SessionsStartMessage instance) => { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionsStopMessage _$SessionsStopMessageFromJson(Map json) => - SessionsStopMessage( - messageType: - SessionsStopMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), +SessionsStopMessage _$SessionsStopMessageFromJson(Map json) => SessionsStopMessage( + messageType: SessionsStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SessionsStopMessageToJson( - SessionsStopMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$SessionsStopMessageToJson(SessionsStopMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionUserInfo _$SessionUserInfoFromJson(Map json) => - SessionUserInfo( +SessionUserInfo _$SessionUserInfoFromJson(Map json) => SessionUserInfo( userId: json['UserId'] as String?, userName: json['UserName'] as String?, ); -Map _$SessionUserInfoToJson(SessionUserInfo instance) => - { +Map _$SessionUserInfoToJson(SessionUserInfo instance) => { if (instance.userId case final value?) 'UserId': value, if (instance.userName case final value?) 'UserName': value, }; -SetChannelMappingDto _$SetChannelMappingDtoFromJson( - Map json) => - SetChannelMappingDto( +SetChannelMappingDto _$SetChannelMappingDtoFromJson(Map json) => SetChannelMappingDto( providerId: json['ProviderId'] as String, tunerChannelId: json['TunerChannelId'] as String, providerChannelId: json['ProviderChannelId'] as String, ); -Map _$SetChannelMappingDtoToJson( - SetChannelMappingDto instance) => - { +Map _$SetChannelMappingDtoToJson(SetChannelMappingDto instance) => { 'ProviderId': instance.providerId, 'TunerChannelId': instance.tunerChannelId, 'ProviderChannelId': instance.providerChannelId, }; -SetPlaylistItemRequestDto _$SetPlaylistItemRequestDtoFromJson( - Map json) => - SetPlaylistItemRequestDto( +SetPlaylistItemRequestDto _$SetPlaylistItemRequestDtoFromJson(Map json) => SetPlaylistItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$SetPlaylistItemRequestDtoToJson( - SetPlaylistItemRequestDto instance) => - { +Map _$SetPlaylistItemRequestDtoToJson(SetPlaylistItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -SetRepeatModeRequestDto _$SetRepeatModeRequestDtoFromJson( - Map json) => - SetRepeatModeRequestDto( +SetRepeatModeRequestDto _$SetRepeatModeRequestDtoFromJson(Map json) => SetRepeatModeRequestDto( mode: groupRepeatModeNullableFromJson(json['Mode']), ); -Map _$SetRepeatModeRequestDtoToJson( - SetRepeatModeRequestDto instance) => - { - if (groupRepeatModeNullableToJson(instance.mode) case final value?) - 'Mode': value, +Map _$SetRepeatModeRequestDtoToJson(SetRepeatModeRequestDto instance) => { + if (groupRepeatModeNullableToJson(instance.mode) case final value?) 'Mode': value, }; -SetShuffleModeRequestDto _$SetShuffleModeRequestDtoFromJson( - Map json) => - SetShuffleModeRequestDto( +SetShuffleModeRequestDto _$SetShuffleModeRequestDtoFromJson(Map json) => SetShuffleModeRequestDto( mode: groupShuffleModeNullableFromJson(json['Mode']), ); -Map _$SetShuffleModeRequestDtoToJson( - SetShuffleModeRequestDto instance) => - { - if (groupShuffleModeNullableToJson(instance.mode) case final value?) - 'Mode': value, +Map _$SetShuffleModeRequestDtoToJson(SetShuffleModeRequestDto instance) => { + if (groupShuffleModeNullableToJson(instance.mode) case final value?) 'Mode': value, }; SongInfo _$SongInfoFromJson(Map json) => SongInfo( @@ -6219,111 +4457,78 @@ SongInfo _$SongInfoFromJson(Map json) => SongInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - albumArtists: (json['AlbumArtists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + albumArtists: (json['AlbumArtists'] as List?)?.map((e) => e as String).toList() ?? [], album: json['Album'] as String?, - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], ); Map _$SongInfoToJson(SongInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.albumArtists case final value?) 'AlbumArtists': value, if (instance.album case final value?) 'Album': value, if (instance.artists case final value?) 'Artists': value, }; -SpecialViewOptionDto _$SpecialViewOptionDtoFromJson( - Map json) => - SpecialViewOptionDto( +SpecialViewOptionDto _$SpecialViewOptionDtoFromJson(Map json) => SpecialViewOptionDto( name: json['Name'] as String?, id: json['Id'] as String?, ); -Map _$SpecialViewOptionDtoToJson( - SpecialViewOptionDto instance) => - { +Map _$SpecialViewOptionDtoToJson(SpecialViewOptionDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; -StartupConfigurationDto _$StartupConfigurationDtoFromJson( - Map json) => - StartupConfigurationDto( +StartupConfigurationDto _$StartupConfigurationDtoFromJson(Map json) => StartupConfigurationDto( serverName: json['ServerName'] as String?, uICulture: json['UICulture'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, ); -Map _$StartupConfigurationDtoToJson( - StartupConfigurationDto instance) => - { +Map _$StartupConfigurationDtoToJson(StartupConfigurationDto instance) => { if (instance.serverName case final value?) 'ServerName': value, if (instance.uICulture case final value?) 'UICulture': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, }; -StartupRemoteAccessDto _$StartupRemoteAccessDtoFromJson( - Map json) => - StartupRemoteAccessDto( +StartupRemoteAccessDto _$StartupRemoteAccessDtoFromJson(Map json) => StartupRemoteAccessDto( enableRemoteAccess: json['EnableRemoteAccess'] as bool, enableAutomaticPortMapping: json['EnableAutomaticPortMapping'] as bool, ); -Map _$StartupRemoteAccessDtoToJson( - StartupRemoteAccessDto instance) => - { +Map _$StartupRemoteAccessDtoToJson(StartupRemoteAccessDto instance) => { 'EnableRemoteAccess': instance.enableRemoteAccess, 'EnableAutomaticPortMapping': instance.enableAutomaticPortMapping, }; -StartupUserDto _$StartupUserDtoFromJson(Map json) => - StartupUserDto( +StartupUserDto _$StartupUserDtoFromJson(Map json) => StartupUserDto( name: json['Name'] as String?, password: json['Password'] as String?, ); -Map _$StartupUserDtoToJson(StartupUserDto instance) => - { +Map _$StartupUserDtoToJson(StartupUserDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.password case final value?) 'Password': value, }; -SubtitleOptions _$SubtitleOptionsFromJson(Map json) => - SubtitleOptions( - skipIfEmbeddedSubtitlesPresent: - json['SkipIfEmbeddedSubtitlesPresent'] as bool?, +SubtitleOptions _$SubtitleOptionsFromJson(Map json) => SubtitleOptions( + skipIfEmbeddedSubtitlesPresent: json['SkipIfEmbeddedSubtitlesPresent'] as bool?, skipIfAudioTrackMatches: json['SkipIfAudioTrackMatches'] as bool?, - downloadLanguages: (json['DownloadLanguages'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + downloadLanguages: (json['DownloadLanguages'] as List?)?.map((e) => e as String).toList() ?? [], downloadMovieSubtitles: json['DownloadMovieSubtitles'] as bool?, downloadEpisodeSubtitles: json['DownloadEpisodeSubtitles'] as bool?, openSubtitlesUsername: json['OpenSubtitlesUsername'] as String?, @@ -6332,30 +4537,19 @@ SubtitleOptions _$SubtitleOptionsFromJson(Map json) => requirePerfectMatch: json['RequirePerfectMatch'] as bool?, ); -Map _$SubtitleOptionsToJson(SubtitleOptions instance) => - { - if (instance.skipIfEmbeddedSubtitlesPresent case final value?) - 'SkipIfEmbeddedSubtitlesPresent': value, - if (instance.skipIfAudioTrackMatches case final value?) - 'SkipIfAudioTrackMatches': value, - if (instance.downloadLanguages case final value?) - 'DownloadLanguages': value, - if (instance.downloadMovieSubtitles case final value?) - 'DownloadMovieSubtitles': value, - if (instance.downloadEpisodeSubtitles case final value?) - 'DownloadEpisodeSubtitles': value, - if (instance.openSubtitlesUsername case final value?) - 'OpenSubtitlesUsername': value, - if (instance.openSubtitlesPasswordHash case final value?) - 'OpenSubtitlesPasswordHash': value, - if (instance.isOpenSubtitleVipAccount case final value?) - 'IsOpenSubtitleVipAccount': value, - if (instance.requirePerfectMatch case final value?) - 'RequirePerfectMatch': value, - }; - -SubtitleProfile _$SubtitleProfileFromJson(Map json) => - SubtitleProfile( +Map _$SubtitleOptionsToJson(SubtitleOptions instance) => { + if (instance.skipIfEmbeddedSubtitlesPresent case final value?) 'SkipIfEmbeddedSubtitlesPresent': value, + if (instance.skipIfAudioTrackMatches case final value?) 'SkipIfAudioTrackMatches': value, + if (instance.downloadLanguages case final value?) 'DownloadLanguages': value, + if (instance.downloadMovieSubtitles case final value?) 'DownloadMovieSubtitles': value, + if (instance.downloadEpisodeSubtitles case final value?) 'DownloadEpisodeSubtitles': value, + if (instance.openSubtitlesUsername case final value?) 'OpenSubtitlesUsername': value, + if (instance.openSubtitlesPasswordHash case final value?) 'OpenSubtitlesPasswordHash': value, + if (instance.isOpenSubtitleVipAccount case final value?) 'IsOpenSubtitleVipAccount': value, + if (instance.requirePerfectMatch case final value?) 'RequirePerfectMatch': value, + }; + +SubtitleProfile _$SubtitleProfileFromJson(Map json) => SubtitleProfile( format: json['Format'] as String?, method: subtitleDeliveryMethodNullableFromJson(json['Method']), didlMode: json['DidlMode'] as String?, @@ -6363,238 +4557,159 @@ SubtitleProfile _$SubtitleProfileFromJson(Map json) => container: json['Container'] as String?, ); -Map _$SubtitleProfileToJson(SubtitleProfile instance) => - { +Map _$SubtitleProfileToJson(SubtitleProfile instance) => { if (instance.format case final value?) 'Format': value, - if (subtitleDeliveryMethodNullableToJson(instance.method) - case final value?) - 'Method': value, + if (subtitleDeliveryMethodNullableToJson(instance.method) case final value?) 'Method': value, if (instance.didlMode case final value?) 'DidlMode': value, if (instance.language case final value?) 'Language': value, if (instance.container case final value?) 'Container': value, }; -SyncPlayCommandMessage _$SyncPlayCommandMessageFromJson( - Map json) => - SyncPlayCommandMessage( - data: json['Data'] == null - ? null - : SendCommand.fromJson(json['Data'] as Map), +SyncPlayCommandMessage _$SyncPlayCommandMessageFromJson(Map json) => SyncPlayCommandMessage( + data: json['Data'] == null ? null : SendCommand.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - SyncPlayCommandMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: SyncPlayCommandMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SyncPlayCommandMessageToJson( - SyncPlayCommandMessage instance) => - { +Map _$SyncPlayCommandMessageToJson(SyncPlayCommandMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SyncPlayGroupDoesNotExistUpdate _$SyncPlayGroupDoesNotExistUpdateFromJson( - Map json) => +SyncPlayGroupDoesNotExistUpdate _$SyncPlayGroupDoesNotExistUpdateFromJson(Map json) => SyncPlayGroupDoesNotExistUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayGroupDoesNotExistUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayGroupDoesNotExistUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayGroupDoesNotExistUpdateToJson( - SyncPlayGroupDoesNotExistUpdate instance) => +Map _$SyncPlayGroupDoesNotExistUpdateToJson(SyncPlayGroupDoesNotExistUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayGroupJoinedUpdate _$SyncPlayGroupJoinedUpdateFromJson( - Map json) => - SyncPlayGroupJoinedUpdate( +SyncPlayGroupJoinedUpdate _$SyncPlayGroupJoinedUpdateFromJson(Map json) => SyncPlayGroupJoinedUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null - ? null - : GroupInfoDto.fromJson(json['Data'] as Map), - type: SyncPlayGroupJoinedUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + data: json['Data'] == null ? null : GroupInfoDto.fromJson(json['Data'] as Map), + type: SyncPlayGroupJoinedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayGroupJoinedUpdateToJson( - SyncPlayGroupJoinedUpdate instance) => - { +Map _$SyncPlayGroupJoinedUpdateToJson(SyncPlayGroupJoinedUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayGroupLeftUpdate _$SyncPlayGroupLeftUpdateFromJson( - Map json) => - SyncPlayGroupLeftUpdate( +SyncPlayGroupLeftUpdate _$SyncPlayGroupLeftUpdateFromJson(Map json) => SyncPlayGroupLeftUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayGroupLeftUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayGroupLeftUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayGroupLeftUpdateToJson( - SyncPlayGroupLeftUpdate instance) => - { +Map _$SyncPlayGroupLeftUpdateToJson(SyncPlayGroupLeftUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayGroupUpdateMessage _$SyncPlayGroupUpdateMessageFromJson( - Map json) => +SyncPlayGroupUpdateMessage _$SyncPlayGroupUpdateMessageFromJson(Map json) => SyncPlayGroupUpdateMessage( - data: json['Data'] == null - ? null - : GroupUpdate.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : GroupUpdate.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SyncPlayGroupUpdateMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SyncPlayGroupUpdateMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SyncPlayGroupUpdateMessageToJson( - SyncPlayGroupUpdateMessage instance) => - { +Map _$SyncPlayGroupUpdateMessageToJson(SyncPlayGroupUpdateMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SyncPlayLibraryAccessDeniedUpdate _$SyncPlayLibraryAccessDeniedUpdateFromJson( - Map json) => +SyncPlayLibraryAccessDeniedUpdate _$SyncPlayLibraryAccessDeniedUpdateFromJson(Map json) => SyncPlayLibraryAccessDeniedUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: - SyncPlayLibraryAccessDeniedUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayLibraryAccessDeniedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayLibraryAccessDeniedUpdateToJson( - SyncPlayLibraryAccessDeniedUpdate instance) => +Map _$SyncPlayLibraryAccessDeniedUpdateToJson(SyncPlayLibraryAccessDeniedUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayNotInGroupUpdate _$SyncPlayNotInGroupUpdateFromJson( - Map json) => - SyncPlayNotInGroupUpdate( +SyncPlayNotInGroupUpdate _$SyncPlayNotInGroupUpdateFromJson(Map json) => SyncPlayNotInGroupUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayNotInGroupUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayNotInGroupUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayNotInGroupUpdateToJson( - SyncPlayNotInGroupUpdate instance) => - { +Map _$SyncPlayNotInGroupUpdateToJson(SyncPlayNotInGroupUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayPlayQueueUpdate _$SyncPlayPlayQueueUpdateFromJson( - Map json) => - SyncPlayPlayQueueUpdate( +SyncPlayPlayQueueUpdate _$SyncPlayPlayQueueUpdateFromJson(Map json) => SyncPlayPlayQueueUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null - ? null - : PlayQueueUpdate.fromJson(json['Data'] as Map), - type: SyncPlayPlayQueueUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + data: json['Data'] == null ? null : PlayQueueUpdate.fromJson(json['Data'] as Map), + type: SyncPlayPlayQueueUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayPlayQueueUpdateToJson( - SyncPlayPlayQueueUpdate instance) => - { +Map _$SyncPlayPlayQueueUpdateToJson(SyncPlayPlayQueueUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayQueueItem _$SyncPlayQueueItemFromJson(Map json) => - SyncPlayQueueItem( +SyncPlayQueueItem _$SyncPlayQueueItemFromJson(Map json) => SyncPlayQueueItem( itemId: json['ItemId'] as String?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$SyncPlayQueueItemToJson(SyncPlayQueueItem instance) => - { +Map _$SyncPlayQueueItemToJson(SyncPlayQueueItem instance) => { if (instance.itemId case final value?) 'ItemId': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -SyncPlayStateUpdate _$SyncPlayStateUpdateFromJson(Map json) => - SyncPlayStateUpdate( +SyncPlayStateUpdate _$SyncPlayStateUpdateFromJson(Map json) => SyncPlayStateUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null - ? null - : GroupStateUpdate.fromJson(json['Data'] as Map), - type: - SyncPlayStateUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + data: json['Data'] == null ? null : GroupStateUpdate.fromJson(json['Data'] as Map), + type: SyncPlayStateUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayStateUpdateToJson( - SyncPlayStateUpdate instance) => - { +Map _$SyncPlayStateUpdateToJson(SyncPlayStateUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayUserJoinedUpdate _$SyncPlayUserJoinedUpdateFromJson( - Map json) => - SyncPlayUserJoinedUpdate( +SyncPlayUserJoinedUpdate _$SyncPlayUserJoinedUpdateFromJson(Map json) => SyncPlayUserJoinedUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayUserJoinedUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayUserJoinedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayUserJoinedUpdateToJson( - SyncPlayUserJoinedUpdate instance) => - { +Map _$SyncPlayUserJoinedUpdateToJson(SyncPlayUserJoinedUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayUserLeftUpdate _$SyncPlayUserLeftUpdateFromJson( - Map json) => - SyncPlayUserLeftUpdate( +SyncPlayUserLeftUpdate _$SyncPlayUserLeftUpdateFromJson(Map json) => SyncPlayUserLeftUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayUserLeftUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayUserLeftUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayUserLeftUpdateToJson( - SyncPlayUserLeftUpdate instance) => - { +Map _$SyncPlayUserLeftUpdateToJson(SyncPlayUserLeftUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( @@ -6624,10 +4739,8 @@ SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( logPath: json['LogPath'] as String?, internalMetadataPath: json['InternalMetadataPath'] as String?, transcodingTempPath: json['TranscodingTempPath'] as String?, - castReceiverApplications: (json['CastReceiverApplications'] - as List?) - ?.map((e) => - CastReceiverApplication.fromJson(e as Map)) + castReceiverApplications: (json['CastReceiverApplications'] as List?) + ?.map((e) => CastReceiverApplication.fromJson(e as Map)) .toList() ?? [], hasUpdateAvailable: json['HasUpdateAvailable'] as bool? ?? false, @@ -6635,116 +4748,82 @@ SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( systemArchitecture: json['SystemArchitecture'] as String?, ); -Map _$SystemInfoToJson(SystemInfo instance) => - { +Map _$SystemInfoToJson(SystemInfo instance) => { if (instance.localAddress case final value?) 'LocalAddress': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.version case final value?) 'Version': value, if (instance.productName case final value?) 'ProductName': value, if (instance.operatingSystem case final value?) 'OperatingSystem': value, if (instance.id case final value?) 'Id': value, - if (instance.startupWizardCompleted case final value?) - 'StartupWizardCompleted': value, - if (instance.operatingSystemDisplayName case final value?) - 'OperatingSystemDisplayName': value, + if (instance.startupWizardCompleted case final value?) 'StartupWizardCompleted': value, + if (instance.operatingSystemDisplayName case final value?) 'OperatingSystemDisplayName': value, if (instance.packageName case final value?) 'PackageName': value, - if (instance.hasPendingRestart case final value?) - 'HasPendingRestart': value, + if (instance.hasPendingRestart case final value?) 'HasPendingRestart': value, if (instance.isShuttingDown case final value?) 'IsShuttingDown': value, - if (instance.supportsLibraryMonitor case final value?) - 'SupportsLibraryMonitor': value, - if (instance.webSocketPortNumber case final value?) - 'WebSocketPortNumber': value, - if (instance.completedInstallations?.map((e) => e.toJson()).toList() - case final value?) + if (instance.supportsLibraryMonitor case final value?) 'SupportsLibraryMonitor': value, + if (instance.webSocketPortNumber case final value?) 'WebSocketPortNumber': value, + if (instance.completedInstallations?.map((e) => e.toJson()).toList() case final value?) 'CompletedInstallations': value, if (instance.canSelfRestart case final value?) 'CanSelfRestart': value, - if (instance.canLaunchWebBrowser case final value?) - 'CanLaunchWebBrowser': value, + if (instance.canLaunchWebBrowser case final value?) 'CanLaunchWebBrowser': value, if (instance.programDataPath case final value?) 'ProgramDataPath': value, if (instance.webPath case final value?) 'WebPath': value, if (instance.itemsByNamePath case final value?) 'ItemsByNamePath': value, if (instance.cachePath case final value?) 'CachePath': value, if (instance.logPath case final value?) 'LogPath': value, - if (instance.internalMetadataPath case final value?) - 'InternalMetadataPath': value, - if (instance.transcodingTempPath case final value?) - 'TranscodingTempPath': value, - if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() - case final value?) + if (instance.internalMetadataPath case final value?) 'InternalMetadataPath': value, + if (instance.transcodingTempPath case final value?) 'TranscodingTempPath': value, + if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() case final value?) 'CastReceiverApplications': value, - if (instance.hasUpdateAvailable case final value?) - 'HasUpdateAvailable': value, + if (instance.hasUpdateAvailable case final value?) 'HasUpdateAvailable': value, if (instance.encoderLocation case final value?) 'EncoderLocation': value, - if (instance.systemArchitecture case final value?) - 'SystemArchitecture': value, + if (instance.systemArchitecture case final value?) 'SystemArchitecture': value, }; -SystemStorageDto _$SystemStorageDtoFromJson(Map json) => - SystemStorageDto( +SystemStorageDto _$SystemStorageDtoFromJson(Map json) => SystemStorageDto( programDataFolder: json['ProgramDataFolder'] == null ? null - : FolderStorageDto.fromJson( - json['ProgramDataFolder'] as Map), - webFolder: json['WebFolder'] == null - ? null - : FolderStorageDto.fromJson( - json['WebFolder'] as Map), + : FolderStorageDto.fromJson(json['ProgramDataFolder'] as Map), + webFolder: + json['WebFolder'] == null ? null : FolderStorageDto.fromJson(json['WebFolder'] as Map), imageCacheFolder: json['ImageCacheFolder'] == null ? null - : FolderStorageDto.fromJson( - json['ImageCacheFolder'] as Map), - cacheFolder: json['CacheFolder'] == null - ? null - : FolderStorageDto.fromJson( - json['CacheFolder'] as Map), - logFolder: json['LogFolder'] == null - ? null - : FolderStorageDto.fromJson( - json['LogFolder'] as Map), + : FolderStorageDto.fromJson(json['ImageCacheFolder'] as Map), + cacheFolder: + json['CacheFolder'] == null ? null : FolderStorageDto.fromJson(json['CacheFolder'] as Map), + logFolder: + json['LogFolder'] == null ? null : FolderStorageDto.fromJson(json['LogFolder'] as Map), internalMetadataFolder: json['InternalMetadataFolder'] == null ? null - : FolderStorageDto.fromJson( - json['InternalMetadataFolder'] as Map), + : FolderStorageDto.fromJson(json['InternalMetadataFolder'] as Map), transcodingTempFolder: json['TranscodingTempFolder'] == null ? null - : FolderStorageDto.fromJson( - json['TranscodingTempFolder'] as Map), + : FolderStorageDto.fromJson(json['TranscodingTempFolder'] as Map), libraries: (json['Libraries'] as List?) - ?.map( - (e) => LibraryStorageDto.fromJson(e as Map)) + ?.map((e) => LibraryStorageDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$SystemStorageDtoToJson(SystemStorageDto instance) => - { - if (instance.programDataFolder?.toJson() case final value?) - 'ProgramDataFolder': value, +Map _$SystemStorageDtoToJson(SystemStorageDto instance) => { + if (instance.programDataFolder?.toJson() case final value?) 'ProgramDataFolder': value, if (instance.webFolder?.toJson() case final value?) 'WebFolder': value, - if (instance.imageCacheFolder?.toJson() case final value?) - 'ImageCacheFolder': value, - if (instance.cacheFolder?.toJson() case final value?) - 'CacheFolder': value, + if (instance.imageCacheFolder?.toJson() case final value?) 'ImageCacheFolder': value, + if (instance.cacheFolder?.toJson() case final value?) 'CacheFolder': value, if (instance.logFolder?.toJson() case final value?) 'LogFolder': value, - if (instance.internalMetadataFolder?.toJson() case final value?) - 'InternalMetadataFolder': value, - if (instance.transcodingTempFolder?.toJson() case final value?) - 'TranscodingTempFolder': value, - if (instance.libraries?.map((e) => e.toJson()).toList() case final value?) - 'Libraries': value, + if (instance.internalMetadataFolder?.toJson() case final value?) 'InternalMetadataFolder': value, + if (instance.transcodingTempFolder?.toJson() case final value?) 'TranscodingTempFolder': value, + if (instance.libraries?.map((e) => e.toJson()).toList() case final value?) 'Libraries': value, }; TaskInfo _$TaskInfoFromJson(Map json) => TaskInfo( name: json['Name'] as String?, state: taskStateNullableFromJson(json['State']), - currentProgressPercentage: - (json['CurrentProgressPercentage'] as num?)?.toDouble(), + currentProgressPercentage: (json['CurrentProgressPercentage'] as num?)?.toDouble(), id: json['Id'] as String?, lastExecutionResult: json['LastExecutionResult'] == null ? null - : TaskResult.fromJson( - json['LastExecutionResult'] as Map), + : TaskResult.fromJson(json['LastExecutionResult'] as Map), triggers: (json['Triggers'] as List?) ?.map((e) => TaskTriggerInfo.fromJson(e as Map)) .toList() ?? @@ -6757,15 +4836,11 @@ TaskInfo _$TaskInfoFromJson(Map json) => TaskInfo( Map _$TaskInfoToJson(TaskInfo instance) => { if (instance.name case final value?) 'Name': value, - if (taskStateNullableToJson(instance.state) case final value?) - 'State': value, - if (instance.currentProgressPercentage case final value?) - 'CurrentProgressPercentage': value, + if (taskStateNullableToJson(instance.state) case final value?) 'State': value, + if (instance.currentProgressPercentage case final value?) 'CurrentProgressPercentage': value, if (instance.id case final value?) 'Id': value, - if (instance.lastExecutionResult?.toJson() case final value?) - 'LastExecutionResult': value, - if (instance.triggers?.map((e) => e.toJson()).toList() case final value?) - 'Triggers': value, + if (instance.lastExecutionResult?.toJson() case final value?) 'LastExecutionResult': value, + if (instance.triggers?.map((e) => e.toJson()).toList() case final value?) 'Triggers': value, if (instance.description case final value?) 'Description': value, if (instance.category case final value?) 'Category': value, if (instance.isHidden case final value?) 'IsHidden': value, @@ -6773,12 +4848,8 @@ Map _$TaskInfoToJson(TaskInfo instance) => { }; TaskResult _$TaskResultFromJson(Map json) => TaskResult( - startTimeUtc: json['StartTimeUtc'] == null - ? null - : DateTime.parse(json['StartTimeUtc'] as String), - endTimeUtc: json['EndTimeUtc'] == null - ? null - : DateTime.parse(json['EndTimeUtc'] as String), + startTimeUtc: json['StartTimeUtc'] == null ? null : DateTime.parse(json['StartTimeUtc'] as String), + endTimeUtc: json['EndTimeUtc'] == null ? null : DateTime.parse(json['EndTimeUtc'] as String), status: taskCompletionStatusNullableFromJson(json['Status']), name: json['Name'] as String?, key: json['Key'] as String?, @@ -6787,24 +4858,18 @@ TaskResult _$TaskResultFromJson(Map json) => TaskResult( longErrorMessage: json['LongErrorMessage'] as String?, ); -Map _$TaskResultToJson(TaskResult instance) => - { - if (instance.startTimeUtc?.toIso8601String() case final value?) - 'StartTimeUtc': value, - if (instance.endTimeUtc?.toIso8601String() case final value?) - 'EndTimeUtc': value, - if (taskCompletionStatusNullableToJson(instance.status) case final value?) - 'Status': value, +Map _$TaskResultToJson(TaskResult instance) => { + if (instance.startTimeUtc?.toIso8601String() case final value?) 'StartTimeUtc': value, + if (instance.endTimeUtc?.toIso8601String() case final value?) 'EndTimeUtc': value, + if (taskCompletionStatusNullableToJson(instance.status) case final value?) 'Status': value, if (instance.name case final value?) 'Name': value, if (instance.key case final value?) 'Key': value, if (instance.id case final value?) 'Id': value, if (instance.errorMessage case final value?) 'ErrorMessage': value, - if (instance.longErrorMessage case final value?) - 'LongErrorMessage': value, + if (instance.longErrorMessage case final value?) 'LongErrorMessage': value, }; -TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => - TaskTriggerInfo( +TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => TaskTriggerInfo( type: taskTriggerInfoTypeNullableFromJson(json['Type']), timeOfDayTicks: (json['TimeOfDayTicks'] as num?)?.toInt(), intervalTicks: (json['IntervalTicks'] as num?)?.toInt(), @@ -6812,89 +4877,59 @@ TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => maxRuntimeTicks: (json['MaxRuntimeTicks'] as num?)?.toInt(), ); -Map _$TaskTriggerInfoToJson(TaskTriggerInfo instance) => - { - if (taskTriggerInfoTypeNullableToJson(instance.type) case final value?) - 'Type': value, +Map _$TaskTriggerInfoToJson(TaskTriggerInfo instance) => { + if (taskTriggerInfoTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.timeOfDayTicks case final value?) 'TimeOfDayTicks': value, if (instance.intervalTicks case final value?) 'IntervalTicks': value, - if (dayOfWeekNullableToJson(instance.dayOfWeek) case final value?) - 'DayOfWeek': value, + if (dayOfWeekNullableToJson(instance.dayOfWeek) case final value?) 'DayOfWeek': value, if (instance.maxRuntimeTicks case final value?) 'MaxRuntimeTicks': value, }; -ThemeMediaResult _$ThemeMediaResultFromJson(Map json) => - ThemeMediaResult( - items: (json['Items'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], +ThemeMediaResult _$ThemeMediaResultFromJson(Map json) => ThemeMediaResult( + items: + (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ownerId: json['OwnerId'] as String?, ); -Map _$ThemeMediaResultToJson(ThemeMediaResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$ThemeMediaResultToJson(ThemeMediaResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, if (instance.ownerId case final value?) 'OwnerId': value, }; -TimerCancelledMessage _$TimerCancelledMessageFromJson( - Map json) => - TimerCancelledMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), +TimerCancelledMessage _$TimerCancelledMessageFromJson(Map json) => TimerCancelledMessage( + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - TimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: TimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$TimerCancelledMessageToJson( - TimerCancelledMessage instance) => - { +Map _$TimerCancelledMessageToJson(TimerCancelledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -TimerCreatedMessage _$TimerCreatedMessageFromJson(Map json) => - TimerCreatedMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), +TimerCreatedMessage _$TimerCreatedMessageFromJson(Map json) => TimerCreatedMessage( + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - TimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: TimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$TimerCreatedMessageToJson( - TimerCreatedMessage instance) => - { +Map _$TimerCreatedMessageToJson(TimerCreatedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -TimerEventInfo _$TimerEventInfoFromJson(Map json) => - TimerEventInfo( +TimerEventInfo _$TimerEventInfoFromJson(Map json) => TimerEventInfo( id: json['Id'] as String?, programId: json['ProgramId'] as String?, ); -Map _$TimerEventInfoToJson(TimerEventInfo instance) => - { +Map _$TimerEventInfoToJson(TimerEventInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.programId case final value?) 'ProgramId': value, }; @@ -6912,12 +4947,8 @@ TimerInfoDto _$TimerInfoDtoFromJson(Map json) => TimerInfoDto( externalProgramId: json['ExternalProgramId'] as String?, name: json['Name'] as String?, overview: json['Overview'] as String?, - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), serviceName: json['ServiceName'] as String?, priority: (json['Priority'] as num?)?.toInt(), prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), @@ -6925,86 +4956,58 @@ TimerInfoDto _$TimerInfoDtoFromJson(Map json) => TimerInfoDto( isPrePaddingRequired: json['IsPrePaddingRequired'] as bool?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], isPostPaddingRequired: json['IsPostPaddingRequired'] as bool?, keepUntil: keepUntilNullableFromJson(json['KeepUntil']), status: recordingStatusNullableFromJson(json['Status']), seriesTimerId: json['SeriesTimerId'] as String?, externalSeriesTimerId: json['ExternalSeriesTimerId'] as String?, runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), - programInfo: json['ProgramInfo'] == null - ? null - : BaseItemDto.fromJson(json['ProgramInfo'] as Map), + programInfo: + json['ProgramInfo'] == null ? null : BaseItemDto.fromJson(json['ProgramInfo'] as Map), ); -Map _$TimerInfoDtoToJson(TimerInfoDto instance) => - { +Map _$TimerInfoDtoToJson(TimerInfoDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.serverId case final value?) 'ServerId': value, if (instance.externalId case final value?) 'ExternalId': value, if (instance.channelId case final value?) 'ChannelId': value, - if (instance.externalChannelId case final value?) - 'ExternalChannelId': value, + if (instance.externalChannelId case final value?) 'ExternalChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.channelPrimaryImageTag case final value?) - 'ChannelPrimaryImageTag': value, + if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.externalProgramId case final value?) - 'ExternalProgramId': value, + if (instance.externalProgramId case final value?) 'ExternalProgramId': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, if (instance.serviceName case final value?) 'ServiceName': value, if (instance.priority case final value?) 'Priority': value, - if (instance.prePaddingSeconds case final value?) - 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) - 'PostPaddingSeconds': value, - if (instance.isPrePaddingRequired case final value?) - 'IsPrePaddingRequired': value, - if (instance.parentBackdropItemId case final value?) - 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) - 'ParentBackdropImageTags': value, - if (instance.isPostPaddingRequired case final value?) - 'IsPostPaddingRequired': value, - if (keepUntilNullableToJson(instance.keepUntil) case final value?) - 'KeepUntil': value, - if (recordingStatusNullableToJson(instance.status) case final value?) - 'Status': value, + if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, + if (instance.isPrePaddingRequired case final value?) 'IsPrePaddingRequired': value, + if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, + if (instance.isPostPaddingRequired case final value?) 'IsPostPaddingRequired': value, + if (keepUntilNullableToJson(instance.keepUntil) case final value?) 'KeepUntil': value, + if (recordingStatusNullableToJson(instance.status) case final value?) 'Status': value, if (instance.seriesTimerId case final value?) 'SeriesTimerId': value, - if (instance.externalSeriesTimerId case final value?) - 'ExternalSeriesTimerId': value, + if (instance.externalSeriesTimerId case final value?) 'ExternalSeriesTimerId': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (instance.programInfo?.toJson() case final value?) - 'ProgramInfo': value, + if (instance.programInfo?.toJson() case final value?) 'ProgramInfo': value, }; -TimerInfoDtoQueryResult _$TimerInfoDtoQueryResultFromJson( - Map json) => - TimerInfoDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => TimerInfoDto.fromJson(e as Map)) - .toList() ?? +TimerInfoDtoQueryResult _$TimerInfoDtoQueryResultFromJson(Map json) => TimerInfoDtoQueryResult( + items: (json['Items'] as List?)?.map((e) => TimerInfoDto.fromJson(e as Map)).toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$TimerInfoDtoQueryResultToJson( - TimerInfoDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$TimerInfoDtoQueryResultToJson(TimerInfoDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; @@ -7018,55 +5021,40 @@ TrailerInfo _$TrailerInfoFromJson(Map json) => TrailerInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$TrailerInfoToJson(TrailerInfo instance) => - { +Map _$TrailerInfoToJson(TrailerInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -TrailerInfoRemoteSearchQuery _$TrailerInfoRemoteSearchQueryFromJson( - Map json) => +TrailerInfoRemoteSearchQuery _$TrailerInfoRemoteSearchQueryFromJson(Map json) => TrailerInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : TrailerInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : TrailerInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$TrailerInfoRemoteSearchQueryToJson( - TrailerInfoRemoteSearchQuery instance) => - { +Map _$TrailerInfoRemoteSearchQueryToJson(TrailerInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -TranscodingInfo _$TranscodingInfoFromJson(Map json) => - TranscodingInfo( +TranscodingInfo _$TranscodingInfoFromJson(Map json) => TranscodingInfo( audioCodec: json['AudioCodec'] as String?, videoCodec: json['VideoCodec'] as String?, container: json['Container'] as String?, @@ -7078,14 +5066,11 @@ TranscodingInfo _$TranscodingInfoFromJson(Map json) => width: (json['Width'] as num?)?.toInt(), height: (json['Height'] as num?)?.toInt(), audioChannels: (json['AudioChannels'] as num?)?.toInt(), - hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson( - json['HardwareAccelerationType']), - transcodeReasons: - transcodeReasonListFromJson(json['TranscodeReasons'] as List?), + hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson(json['HardwareAccelerationType']), + transcodeReasons: transcodeReasonListFromJson(json['TranscodeReasons'] as List?), ); -Map _$TranscodingInfoToJson(TranscodingInfo instance) => - { +Map _$TranscodingInfoToJson(TranscodingInfo instance) => { if (instance.audioCodec case final value?) 'AudioCodec': value, if (instance.videoCodec case final value?) 'VideoCodec': value, if (instance.container case final value?) 'Container': value, @@ -7093,20 +5078,16 @@ Map _$TranscodingInfoToJson(TranscodingInfo instance) => if (instance.isAudioDirect case final value?) 'IsAudioDirect': value, if (instance.bitrate case final value?) 'Bitrate': value, if (instance.framerate case final value?) 'Framerate': value, - if (instance.completionPercentage case final value?) - 'CompletionPercentage': value, + if (instance.completionPercentage case final value?) 'CompletionPercentage': value, if (instance.width case final value?) 'Width': value, if (instance.height case final value?) 'Height': value, if (instance.audioChannels case final value?) 'AudioChannels': value, - if (hardwareAccelerationTypeNullableToJson( - instance.hardwareAccelerationType) - case final value?) + if (hardwareAccelerationTypeNullableToJson(instance.hardwareAccelerationType) case final value?) 'HardwareAccelerationType': value, 'TranscodeReasons': transcodeReasonListToJson(instance.transcodeReasons), }; -TranscodingProfile _$TranscodingProfileFromJson(Map json) => - TranscodingProfile( +TranscodingProfile _$TranscodingProfileFromJson(Map json) => TranscodingProfile( container: json['Container'] as String?, type: dlnaProfileTypeNullableFromJson(json['Type']), videoCodec: json['VideoCodec'] as String?, @@ -7115,13 +5096,10 @@ TranscodingProfile _$TranscodingProfileFromJson(Map json) => estimateContentLength: json['EstimateContentLength'] as bool? ?? false, enableMpegtsM2TsMode: json['EnableMpegtsM2TsMode'] as bool? ?? false, transcodeSeekInfo: - TranscodingProfile.transcodeSeekInfoTranscodeSeekInfoNullableFromJson( - json['TranscodeSeekInfo']), + TranscodingProfile.transcodeSeekInfoTranscodeSeekInfoNullableFromJson(json['TranscodeSeekInfo']), copyTimestamps: json['CopyTimestamps'] as bool? ?? false, - context: TranscodingProfile.encodingContextContextNullableFromJson( - json['Context']), - enableSubtitlesInManifest: - json['EnableSubtitlesInManifest'] as bool? ?? false, + context: TranscodingProfile.encodingContextContextNullableFromJson(json['Context']), + enableSubtitlesInManifest: json['EnableSubtitlesInManifest'] as bool? ?? false, maxAudioChannels: json['MaxAudioChannels'] as String?, minSegments: (json['MinSegments'] as num?)?.toInt(), segmentLength: (json['SegmentLength'] as num?)?.toInt(), @@ -7133,43 +5111,27 @@ TranscodingProfile _$TranscodingProfileFromJson(Map json) => enableAudioVbrEncoding: json['EnableAudioVbrEncoding'] as bool? ?? true, ); -Map _$TranscodingProfileToJson(TranscodingProfile instance) => - { +Map _$TranscodingProfileToJson(TranscodingProfile instance) => { if (instance.container case final value?) 'Container': value, - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.videoCodec case final value?) 'VideoCodec': value, if (instance.audioCodec case final value?) 'AudioCodec': value, - if (mediaStreamProtocolNullableToJson(instance.protocol) - case final value?) - 'Protocol': value, - if (instance.estimateContentLength case final value?) - 'EstimateContentLength': value, - if (instance.enableMpegtsM2TsMode case final value?) - 'EnableMpegtsM2TsMode': value, - if (transcodeSeekInfoNullableToJson(instance.transcodeSeekInfo) - case final value?) - 'TranscodeSeekInfo': value, + if (mediaStreamProtocolNullableToJson(instance.protocol) case final value?) 'Protocol': value, + if (instance.estimateContentLength case final value?) 'EstimateContentLength': value, + if (instance.enableMpegtsM2TsMode case final value?) 'EnableMpegtsM2TsMode': value, + if (transcodeSeekInfoNullableToJson(instance.transcodeSeekInfo) case final value?) 'TranscodeSeekInfo': value, if (instance.copyTimestamps case final value?) 'CopyTimestamps': value, - if (encodingContextNullableToJson(instance.context) case final value?) - 'Context': value, - if (instance.enableSubtitlesInManifest case final value?) - 'EnableSubtitlesInManifest': value, - if (instance.maxAudioChannels case final value?) - 'MaxAudioChannels': value, + if (encodingContextNullableToJson(instance.context) case final value?) 'Context': value, + if (instance.enableSubtitlesInManifest case final value?) 'EnableSubtitlesInManifest': value, + if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, if (instance.minSegments case final value?) 'MinSegments': value, if (instance.segmentLength case final value?) 'SegmentLength': value, - if (instance.breakOnNonKeyFrames case final value?) - 'BreakOnNonKeyFrames': value, - if (instance.conditions?.map((e) => e.toJson()).toList() - case final value?) - 'Conditions': value, - if (instance.enableAudioVbrEncoding case final value?) - 'EnableAudioVbrEncoding': value, + if (instance.breakOnNonKeyFrames case final value?) 'BreakOnNonKeyFrames': value, + if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, + if (instance.enableAudioVbrEncoding case final value?) 'EnableAudioVbrEncoding': value, }; -TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => - TrickplayInfoDto( +TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => TrickplayInfoDto( width: (json['Width'] as num?)?.toInt(), height: (json['Height'] as num?)?.toInt(), tileWidth: (json['TileWidth'] as num?)?.toInt(), @@ -7179,8 +5141,7 @@ TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => bandwidth: (json['Bandwidth'] as num?)?.toInt(), ); -Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => - { +Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => { if (instance.width case final value?) 'Width': value, if (instance.height case final value?) 'Height': value, if (instance.tileWidth case final value?) 'TileWidth': value, @@ -7190,20 +5151,14 @@ Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => if (instance.bandwidth case final value?) 'Bandwidth': value, }; -TrickplayOptions _$TrickplayOptionsFromJson(Map json) => - TrickplayOptions( +TrickplayOptions _$TrickplayOptionsFromJson(Map json) => TrickplayOptions( enableHwAcceleration: json['EnableHwAcceleration'] as bool?, enableHwEncoding: json['EnableHwEncoding'] as bool?, - enableKeyFrameOnlyExtraction: - json['EnableKeyFrameOnlyExtraction'] as bool?, + enableKeyFrameOnlyExtraction: json['EnableKeyFrameOnlyExtraction'] as bool?, scanBehavior: trickplayScanBehaviorNullableFromJson(json['ScanBehavior']), - processPriority: - processPriorityClassNullableFromJson(json['ProcessPriority']), + processPriority: processPriorityClassNullableFromJson(json['ProcessPriority']), interval: (json['Interval'] as num?)?.toInt(), - widthResolutions: (json['WidthResolutions'] as List?) - ?.map((e) => (e as num).toInt()) - .toList() ?? - [], + widthResolutions: (json['WidthResolutions'] as List?)?.map((e) => (e as num).toInt()).toList() ?? [], tileWidth: (json['TileWidth'] as num?)?.toInt(), tileHeight: (json['TileHeight'] as num?)?.toInt(), qscale: (json['Qscale'] as num?)?.toInt(), @@ -7211,23 +5166,14 @@ TrickplayOptions _$TrickplayOptionsFromJson(Map json) => processThreads: (json['ProcessThreads'] as num?)?.toInt(), ); -Map _$TrickplayOptionsToJson(TrickplayOptions instance) => - { - if (instance.enableHwAcceleration case final value?) - 'EnableHwAcceleration': value, - if (instance.enableHwEncoding case final value?) - 'EnableHwEncoding': value, - if (instance.enableKeyFrameOnlyExtraction case final value?) - 'EnableKeyFrameOnlyExtraction': value, - if (trickplayScanBehaviorNullableToJson(instance.scanBehavior) - case final value?) - 'ScanBehavior': value, - if (processPriorityClassNullableToJson(instance.processPriority) - case final value?) - 'ProcessPriority': value, +Map _$TrickplayOptionsToJson(TrickplayOptions instance) => { + if (instance.enableHwAcceleration case final value?) 'EnableHwAcceleration': value, + if (instance.enableHwEncoding case final value?) 'EnableHwEncoding': value, + if (instance.enableKeyFrameOnlyExtraction case final value?) 'EnableKeyFrameOnlyExtraction': value, + if (trickplayScanBehaviorNullableToJson(instance.scanBehavior) case final value?) 'ScanBehavior': value, + if (processPriorityClassNullableToJson(instance.processPriority) case final value?) 'ProcessPriority': value, if (instance.interval case final value?) 'Interval': value, - if (instance.widthResolutions case final value?) - 'WidthResolutions': value, + if (instance.widthResolutions case final value?) 'WidthResolutions': value, if (instance.tileWidth case final value?) 'TileWidth': value, if (instance.tileHeight case final value?) 'TileHeight': value, if (instance.qscale case final value?) 'Qscale': value, @@ -7235,27 +5181,21 @@ Map _$TrickplayOptionsToJson(TrickplayOptions instance) => if (instance.processThreads case final value?) 'ProcessThreads': value, }; -TunerChannelMapping _$TunerChannelMappingFromJson(Map json) => - TunerChannelMapping( +TunerChannelMapping _$TunerChannelMappingFromJson(Map json) => TunerChannelMapping( name: json['Name'] as String?, providerChannelName: json['ProviderChannelName'] as String?, providerChannelId: json['ProviderChannelId'] as String?, id: json['Id'] as String?, ); -Map _$TunerChannelMappingToJson( - TunerChannelMapping instance) => - { +Map _$TunerChannelMappingToJson(TunerChannelMapping instance) => { if (instance.name case final value?) 'Name': value, - if (instance.providerChannelName case final value?) - 'ProviderChannelName': value, - if (instance.providerChannelId case final value?) - 'ProviderChannelId': value, + if (instance.providerChannelName case final value?) 'ProviderChannelName': value, + if (instance.providerChannelId case final value?) 'ProviderChannelId': value, if (instance.id case final value?) 'Id': value, }; -TunerHostInfo _$TunerHostInfoFromJson(Map json) => - TunerHostInfo( +TunerHostInfo _$TunerHostInfoFromJson(Map json) => TunerHostInfo( id: json['Id'] as String?, url: json['Url'] as String?, type: json['Type'] as String?, @@ -7263,11 +5203,9 @@ TunerHostInfo _$TunerHostInfoFromJson(Map json) => friendlyName: json['FriendlyName'] as String?, importFavoritesOnly: json['ImportFavoritesOnly'] as bool?, allowHWTranscoding: json['AllowHWTranscoding'] as bool?, - allowFmp4TranscodingContainer: - json['AllowFmp4TranscodingContainer'] as bool?, + allowFmp4TranscodingContainer: json['AllowFmp4TranscodingContainer'] as bool?, allowStreamSharing: json['AllowStreamSharing'] as bool?, - fallbackMaxStreamingBitrate: - (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), + fallbackMaxStreamingBitrate: (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), enableStreamLooping: json['EnableStreamLooping'] as bool?, source: json['Source'] as String?, tunerCount: (json['TunerCount'] as num?)?.toInt(), @@ -7276,142 +5214,94 @@ TunerHostInfo _$TunerHostInfoFromJson(Map json) => readAtNativeFramerate: json['ReadAtNativeFramerate'] as bool?, ); -Map _$TunerHostInfoToJson(TunerHostInfo instance) => - { +Map _$TunerHostInfoToJson(TunerHostInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.url case final value?) 'Url': value, if (instance.type case final value?) 'Type': value, if (instance.deviceId case final value?) 'DeviceId': value, if (instance.friendlyName case final value?) 'FriendlyName': value, - if (instance.importFavoritesOnly case final value?) - 'ImportFavoritesOnly': value, - if (instance.allowHWTranscoding case final value?) - 'AllowHWTranscoding': value, - if (instance.allowFmp4TranscodingContainer case final value?) - 'AllowFmp4TranscodingContainer': value, - if (instance.allowStreamSharing case final value?) - 'AllowStreamSharing': value, - if (instance.fallbackMaxStreamingBitrate case final value?) - 'FallbackMaxStreamingBitrate': value, - if (instance.enableStreamLooping case final value?) - 'EnableStreamLooping': value, + if (instance.importFavoritesOnly case final value?) 'ImportFavoritesOnly': value, + if (instance.allowHWTranscoding case final value?) 'AllowHWTranscoding': value, + if (instance.allowFmp4TranscodingContainer case final value?) 'AllowFmp4TranscodingContainer': value, + if (instance.allowStreamSharing case final value?) 'AllowStreamSharing': value, + if (instance.fallbackMaxStreamingBitrate case final value?) 'FallbackMaxStreamingBitrate': value, + if (instance.enableStreamLooping case final value?) 'EnableStreamLooping': value, if (instance.source case final value?) 'Source': value, if (instance.tunerCount case final value?) 'TunerCount': value, if (instance.userAgent case final value?) 'UserAgent': value, if (instance.ignoreDts case final value?) 'IgnoreDts': value, - if (instance.readAtNativeFramerate case final value?) - 'ReadAtNativeFramerate': value, + if (instance.readAtNativeFramerate case final value?) 'ReadAtNativeFramerate': value, }; TypeOptions _$TypeOptionsFromJson(Map json) => TypeOptions( type: json['Type'] as String?, - metadataFetchers: (json['MetadataFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - imageFetchers: (json['ImageFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - imageFetcherOrder: (json['ImageFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + metadataFetchers: (json['MetadataFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + imageFetchers: (json['ImageFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + imageFetcherOrder: (json['ImageFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], imageOptions: (json['ImageOptions'] as List?) ?.map((e) => ImageOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$TypeOptionsToJson(TypeOptions instance) => - { +Map _$TypeOptionsToJson(TypeOptions instance) => { if (instance.type case final value?) 'Type': value, - if (instance.metadataFetchers case final value?) - 'MetadataFetchers': value, - if (instance.metadataFetcherOrder case final value?) - 'MetadataFetcherOrder': value, + if (instance.metadataFetchers case final value?) 'MetadataFetchers': value, + if (instance.metadataFetcherOrder case final value?) 'MetadataFetcherOrder': value, if (instance.imageFetchers case final value?) 'ImageFetchers': value, - if (instance.imageFetcherOrder case final value?) - 'ImageFetcherOrder': value, - if (instance.imageOptions?.map((e) => e.toJson()).toList() - case final value?) - 'ImageOptions': value, + if (instance.imageFetcherOrder case final value?) 'ImageFetcherOrder': value, + if (instance.imageOptions?.map((e) => e.toJson()).toList() case final value?) 'ImageOptions': value, }; -UpdateLibraryOptionsDto _$UpdateLibraryOptionsDtoFromJson( - Map json) => - UpdateLibraryOptionsDto( +UpdateLibraryOptionsDto _$UpdateLibraryOptionsDtoFromJson(Map json) => UpdateLibraryOptionsDto( id: json['Id'] as String?, libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson( - json['LibraryOptions'] as Map), + : LibraryOptions.fromJson(json['LibraryOptions'] as Map), ); -Map _$UpdateLibraryOptionsDtoToJson( - UpdateLibraryOptionsDto instance) => - { +Map _$UpdateLibraryOptionsDtoToJson(UpdateLibraryOptionsDto instance) => { if (instance.id case final value?) 'Id': value, - if (instance.libraryOptions?.toJson() case final value?) - 'LibraryOptions': value, + if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, }; -UpdateMediaPathRequestDto _$UpdateMediaPathRequestDtoFromJson( - Map json) => - UpdateMediaPathRequestDto( +UpdateMediaPathRequestDto _$UpdateMediaPathRequestDtoFromJson(Map json) => UpdateMediaPathRequestDto( name: json['Name'] as String, - pathInfo: - MediaPathInfo.fromJson(json['PathInfo'] as Map), + pathInfo: MediaPathInfo.fromJson(json['PathInfo'] as Map), ); -Map _$UpdateMediaPathRequestDtoToJson( - UpdateMediaPathRequestDto instance) => - { +Map _$UpdateMediaPathRequestDtoToJson(UpdateMediaPathRequestDto instance) => { 'Name': instance.name, 'PathInfo': instance.pathInfo.toJson(), }; -UpdatePlaylistDto _$UpdatePlaylistDtoFromJson(Map json) => - UpdatePlaylistDto( +UpdatePlaylistDto _$UpdatePlaylistDtoFromJson(Map json) => UpdatePlaylistDto( name: json['Name'] as String?, - ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? - [], + ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? [], users: (json['Users'] as List?) - ?.map((e) => - PlaylistUserPermissions.fromJson(e as Map)) + ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], isPublic: json['IsPublic'] as bool?, ); -Map _$UpdatePlaylistDtoToJson(UpdatePlaylistDto instance) => - { +Map _$UpdatePlaylistDtoToJson(UpdatePlaylistDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.ids case final value?) 'Ids': value, - if (instance.users?.map((e) => e.toJson()).toList() case final value?) - 'Users': value, + if (instance.users?.map((e) => e.toJson()).toList() case final value?) 'Users': value, if (instance.isPublic case final value?) 'IsPublic': value, }; -UpdatePlaylistUserDto _$UpdatePlaylistUserDtoFromJson( - Map json) => - UpdatePlaylistUserDto( +UpdatePlaylistUserDto _$UpdatePlaylistUserDtoFromJson(Map json) => UpdatePlaylistUserDto( canEdit: json['CanEdit'] as bool?, ); -Map _$UpdatePlaylistUserDtoToJson( - UpdatePlaylistUserDto instance) => - { +Map _$UpdatePlaylistUserDtoToJson(UpdatePlaylistUserDto instance) => { if (instance.canEdit case final value?) 'CanEdit': value, }; -UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson( - Map json) => - UpdateUserItemDataDto( +UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson(Map json) => UpdateUserItemDataDto( rating: (json['Rating'] as num?)?.toDouble(), playedPercentage: (json['PlayedPercentage'] as num?)?.toDouble(), unplayedItemCount: (json['UnplayedItemCount'] as num?)?.toInt(), @@ -7419,52 +5309,41 @@ UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson( playCount: (json['PlayCount'] as num?)?.toInt(), isFavorite: json['IsFavorite'] as bool?, likes: json['Likes'] as bool?, - lastPlayedDate: json['LastPlayedDate'] == null - ? null - : DateTime.parse(json['LastPlayedDate'] as String), + lastPlayedDate: json['LastPlayedDate'] == null ? null : DateTime.parse(json['LastPlayedDate'] as String), played: json['Played'] as bool?, key: json['Key'] as String?, itemId: json['ItemId'] as String?, ); -Map _$UpdateUserItemDataDtoToJson( - UpdateUserItemDataDto instance) => - { +Map _$UpdateUserItemDataDtoToJson(UpdateUserItemDataDto instance) => { if (instance.rating case final value?) 'Rating': value, - if (instance.playedPercentage case final value?) - 'PlayedPercentage': value, - if (instance.unplayedItemCount case final value?) - 'UnplayedItemCount': value, - if (instance.playbackPositionTicks case final value?) - 'PlaybackPositionTicks': value, + if (instance.playedPercentage case final value?) 'PlayedPercentage': value, + if (instance.unplayedItemCount case final value?) 'UnplayedItemCount': value, + if (instance.playbackPositionTicks case final value?) 'PlaybackPositionTicks': value, if (instance.playCount case final value?) 'PlayCount': value, if (instance.isFavorite case final value?) 'IsFavorite': value, if (instance.likes case final value?) 'Likes': value, - if (instance.lastPlayedDate?.toIso8601String() case final value?) - 'LastPlayedDate': value, + if (instance.lastPlayedDate?.toIso8601String() case final value?) 'LastPlayedDate': value, if (instance.played case final value?) 'Played': value, if (instance.key case final value?) 'Key': value, if (instance.itemId case final value?) 'ItemId': value, }; -UpdateUserPassword _$UpdateUserPasswordFromJson(Map json) => - UpdateUserPassword( +UpdateUserPassword _$UpdateUserPasswordFromJson(Map json) => UpdateUserPassword( currentPassword: json['CurrentPassword'] as String?, currentPw: json['CurrentPw'] as String?, newPw: json['NewPw'] as String?, resetPassword: json['ResetPassword'] as bool?, ); -Map _$UpdateUserPasswordToJson(UpdateUserPassword instance) => - { +Map _$UpdateUserPasswordToJson(UpdateUserPassword instance) => { if (instance.currentPassword case final value?) 'CurrentPassword': value, if (instance.currentPw case final value?) 'CurrentPw': value, if (instance.newPw case final value?) 'NewPw': value, if (instance.resetPassword case final value?) 'ResetPassword': value, }; -UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => - UploadSubtitleDto( +UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => UploadSubtitleDto( language: json['Language'] as String, format: json['Format'] as String, isForced: json['IsForced'] as bool, @@ -7472,8 +5351,7 @@ UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => data: json['Data'] as String, ); -Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => - { +Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => { 'Language': instance.language, 'Format': instance.format, 'IsForced': instance.isForced, @@ -7481,31 +5359,18 @@ Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => 'Data': instance.data, }; -UserConfiguration _$UserConfigurationFromJson(Map json) => - UserConfiguration( +UserConfiguration _$UserConfigurationFromJson(Map json) => UserConfiguration( audioLanguagePreference: json['AudioLanguagePreference'] as String?, playDefaultAudioTrack: json['PlayDefaultAudioTrack'] as bool?, subtitleLanguagePreference: json['SubtitleLanguagePreference'] as String?, displayMissingEpisodes: json['DisplayMissingEpisodes'] as bool?, - groupedFolders: (json['GroupedFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + groupedFolders: (json['GroupedFolders'] as List?)?.map((e) => e as String).toList() ?? [], subtitleMode: subtitlePlaybackModeNullableFromJson(json['SubtitleMode']), displayCollectionsView: json['DisplayCollectionsView'] as bool?, enableLocalPassword: json['EnableLocalPassword'] as bool?, - orderedViews: (json['OrderedViews'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - latestItemsExcludes: (json['LatestItemsExcludes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - myMediaExcludes: (json['MyMediaExcludes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + orderedViews: (json['OrderedViews'] as List?)?.map((e) => e as String).toList() ?? [], + latestItemsExcludes: (json['LatestItemsExcludes'] as List?)?.map((e) => e as String).toList() ?? [], + myMediaExcludes: (json['MyMediaExcludes'] as List?)?.map((e) => e as String).toList() ?? [], hidePlayedInLatest: json['HidePlayedInLatest'] as bool?, rememberAudioSelections: json['RememberAudioSelections'] as bool?, rememberSubtitleSelections: json['RememberSubtitleSelections'] as bool?, @@ -7513,63 +5378,38 @@ UserConfiguration _$UserConfigurationFromJson(Map json) => castReceiverId: json['CastReceiverId'] as String?, ); -Map _$UserConfigurationToJson(UserConfiguration instance) => - { - if (instance.audioLanguagePreference case final value?) - 'AudioLanguagePreference': value, - if (instance.playDefaultAudioTrack case final value?) - 'PlayDefaultAudioTrack': value, - if (instance.subtitleLanguagePreference case final value?) - 'SubtitleLanguagePreference': value, - if (instance.displayMissingEpisodes case final value?) - 'DisplayMissingEpisodes': value, +Map _$UserConfigurationToJson(UserConfiguration instance) => { + if (instance.audioLanguagePreference case final value?) 'AudioLanguagePreference': value, + if (instance.playDefaultAudioTrack case final value?) 'PlayDefaultAudioTrack': value, + if (instance.subtitleLanguagePreference case final value?) 'SubtitleLanguagePreference': value, + if (instance.displayMissingEpisodes case final value?) 'DisplayMissingEpisodes': value, if (instance.groupedFolders case final value?) 'GroupedFolders': value, - if (subtitlePlaybackModeNullableToJson(instance.subtitleMode) - case final value?) - 'SubtitleMode': value, - if (instance.displayCollectionsView case final value?) - 'DisplayCollectionsView': value, - if (instance.enableLocalPassword case final value?) - 'EnableLocalPassword': value, + if (subtitlePlaybackModeNullableToJson(instance.subtitleMode) case final value?) 'SubtitleMode': value, + if (instance.displayCollectionsView case final value?) 'DisplayCollectionsView': value, + if (instance.enableLocalPassword case final value?) 'EnableLocalPassword': value, if (instance.orderedViews case final value?) 'OrderedViews': value, - if (instance.latestItemsExcludes case final value?) - 'LatestItemsExcludes': value, + if (instance.latestItemsExcludes case final value?) 'LatestItemsExcludes': value, if (instance.myMediaExcludes case final value?) 'MyMediaExcludes': value, - if (instance.hidePlayedInLatest case final value?) - 'HidePlayedInLatest': value, - if (instance.rememberAudioSelections case final value?) - 'RememberAudioSelections': value, - if (instance.rememberSubtitleSelections case final value?) - 'RememberSubtitleSelections': value, - if (instance.enableNextEpisodeAutoPlay case final value?) - 'EnableNextEpisodeAutoPlay': value, + if (instance.hidePlayedInLatest case final value?) 'HidePlayedInLatest': value, + if (instance.rememberAudioSelections case final value?) 'RememberAudioSelections': value, + if (instance.rememberSubtitleSelections case final value?) 'RememberSubtitleSelections': value, + if (instance.enableNextEpisodeAutoPlay case final value?) 'EnableNextEpisodeAutoPlay': value, if (instance.castReceiverId case final value?) 'CastReceiverId': value, }; -UserDataChangedMessage _$UserDataChangedMessageFromJson( - Map json) => - UserDataChangedMessage( - data: json['Data'] == null - ? null - : UserDataChangeInfo.fromJson(json['Data'] as Map), +UserDataChangedMessage _$UserDataChangedMessageFromJson(Map json) => UserDataChangedMessage( + data: json['Data'] == null ? null : UserDataChangeInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - UserDataChangedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: UserDataChangedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$UserDataChangedMessageToJson( - UserDataChangedMessage instance) => - { +Map _$UserDataChangedMessageToJson(UserDataChangedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => - UserDataChangeInfo( +UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => UserDataChangeInfo( userId: json['UserId'] as String?, userDataList: (json['UserDataList'] as List?) ?.map((e) => UserItemDataDto.fromJson(e as Map)) @@ -7577,30 +5417,21 @@ UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => [], ); -Map _$UserDataChangeInfoToJson(UserDataChangeInfo instance) => - { +Map _$UserDataChangeInfoToJson(UserDataChangeInfo instance) => { if (instance.userId case final value?) 'UserId': value, - if (instance.userDataList?.map((e) => e.toJson()).toList() - case final value?) - 'UserDataList': value, + if (instance.userDataList?.map((e) => e.toJson()).toList() case final value?) 'UserDataList': value, }; -UserDeletedMessage _$UserDeletedMessageFromJson(Map json) => - UserDeletedMessage( +UserDeletedMessage _$UserDeletedMessageFromJson(Map json) => UserDeletedMessage( data: json['Data'] as String?, messageId: json['MessageId'] as String?, - messageType: - UserDeletedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: UserDeletedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$UserDeletedMessageToJson(UserDeletedMessage instance) => - { +Map _$UserDeletedMessageToJson(UserDeletedMessage instance) => { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; UserDto _$UserDtoFromJson(Map json) => UserDto( @@ -7613,21 +5444,13 @@ UserDto _$UserDtoFromJson(Map json) => UserDto( hasConfiguredPassword: json['HasConfiguredPassword'] as bool?, hasConfiguredEasyPassword: json['HasConfiguredEasyPassword'] as bool?, enableAutoLogin: json['EnableAutoLogin'] as bool?, - lastLoginDate: json['LastLoginDate'] == null - ? null - : DateTime.parse(json['LastLoginDate'] as String), - lastActivityDate: json['LastActivityDate'] == null - ? null - : DateTime.parse(json['LastActivityDate'] as String), + lastLoginDate: json['LastLoginDate'] == null ? null : DateTime.parse(json['LastLoginDate'] as String), + lastActivityDate: json['LastActivityDate'] == null ? null : DateTime.parse(json['LastActivityDate'] as String), configuration: json['Configuration'] == null ? null - : UserConfiguration.fromJson( - json['Configuration'] as Map), - policy: json['Policy'] == null - ? null - : UserPolicy.fromJson(json['Policy'] as Map), - primaryImageAspectRatio: - (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + : UserConfiguration.fromJson(json['Configuration'] as Map), + policy: json['Policy'] == null ? null : UserPolicy.fromJson(json['Policy'] as Map), + primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), ); Map _$UserDtoToJson(UserDto instance) => { @@ -7637,24 +5460,17 @@ Map _$UserDtoToJson(UserDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, if (instance.hasPassword case final value?) 'HasPassword': value, - if (instance.hasConfiguredPassword case final value?) - 'HasConfiguredPassword': value, - if (instance.hasConfiguredEasyPassword case final value?) - 'HasConfiguredEasyPassword': value, + if (instance.hasConfiguredPassword case final value?) 'HasConfiguredPassword': value, + if (instance.hasConfiguredEasyPassword case final value?) 'HasConfiguredEasyPassword': value, if (instance.enableAutoLogin case final value?) 'EnableAutoLogin': value, - if (instance.lastLoginDate?.toIso8601String() case final value?) - 'LastLoginDate': value, - if (instance.lastActivityDate?.toIso8601String() case final value?) - 'LastActivityDate': value, - if (instance.configuration?.toJson() case final value?) - 'Configuration': value, + if (instance.lastLoginDate?.toIso8601String() case final value?) 'LastLoginDate': value, + if (instance.lastActivityDate?.toIso8601String() case final value?) 'LastActivityDate': value, + if (instance.configuration?.toJson() case final value?) 'Configuration': value, if (instance.policy?.toJson() case final value?) 'Policy': value, - if (instance.primaryImageAspectRatio case final value?) - 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, }; -UserItemDataDto _$UserItemDataDtoFromJson(Map json) => - UserItemDataDto( +UserItemDataDto _$UserItemDataDtoFromJson(Map json) => UserItemDataDto( rating: (json['Rating'] as num?)?.toDouble(), playedPercentage: (json['PlayedPercentage'] as num?)?.toDouble(), unplayedItemCount: (json['UnplayedItemCount'] as num?)?.toInt(), @@ -7662,28 +5478,21 @@ UserItemDataDto _$UserItemDataDtoFromJson(Map json) => playCount: (json['PlayCount'] as num?)?.toInt(), isFavorite: json['IsFavorite'] as bool?, likes: json['Likes'] as bool?, - lastPlayedDate: json['LastPlayedDate'] == null - ? null - : DateTime.parse(json['LastPlayedDate'] as String), + lastPlayedDate: json['LastPlayedDate'] == null ? null : DateTime.parse(json['LastPlayedDate'] as String), played: json['Played'] as bool?, key: json['Key'] as String?, itemId: json['ItemId'] as String?, ); -Map _$UserItemDataDtoToJson(UserItemDataDto instance) => - { +Map _$UserItemDataDtoToJson(UserItemDataDto instance) => { if (instance.rating case final value?) 'Rating': value, - if (instance.playedPercentage case final value?) - 'PlayedPercentage': value, - if (instance.unplayedItemCount case final value?) - 'UnplayedItemCount': value, - if (instance.playbackPositionTicks case final value?) - 'PlaybackPositionTicks': value, + if (instance.playedPercentage case final value?) 'PlayedPercentage': value, + if (instance.unplayedItemCount case final value?) 'UnplayedItemCount': value, + if (instance.playbackPositionTicks case final value?) 'PlaybackPositionTicks': value, if (instance.playCount case final value?) 'PlayCount': value, if (instance.isFavorite case final value?) 'IsFavorite': value, if (instance.likes case final value?) 'Likes': value, - if (instance.lastPlayedDate?.toIso8601String() case final value?) - 'LastPlayedDate': value, + if (instance.lastPlayedDate?.toIso8601String() case final value?) 'LastPlayedDate': value, if (instance.played case final value?) 'Played': value, if (instance.key case final value?) 'Key': value, if (instance.itemId case final value?) 'ItemId': value, @@ -7692,221 +5501,133 @@ Map _$UserItemDataDtoToJson(UserItemDataDto instance) => UserPolicy _$UserPolicyFromJson(Map json) => UserPolicy( isAdministrator: json['IsAdministrator'] as bool?, isHidden: json['IsHidden'] as bool?, - enableCollectionManagement: - json['EnableCollectionManagement'] as bool? ?? false, - enableSubtitleManagement: - json['EnableSubtitleManagement'] as bool? ?? false, + enableCollectionManagement: json['EnableCollectionManagement'] as bool? ?? false, + enableSubtitleManagement: json['EnableSubtitleManagement'] as bool? ?? false, enableLyricManagement: json['EnableLyricManagement'] as bool? ?? false, isDisabled: json['IsDisabled'] as bool?, maxParentalRating: (json['MaxParentalRating'] as num?)?.toInt(), maxParentalSubRating: (json['MaxParentalSubRating'] as num?)?.toInt(), - blockedTags: (json['BlockedTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - allowedTags: (json['AllowedTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + blockedTags: (json['BlockedTags'] as List?)?.map((e) => e as String).toList() ?? [], + allowedTags: (json['AllowedTags'] as List?)?.map((e) => e as String).toList() ?? [], enableUserPreferenceAccess: json['EnableUserPreferenceAccess'] as bool?, accessSchedules: (json['AccessSchedules'] as List?) ?.map((e) => AccessSchedule.fromJson(e as Map)) .toList() ?? [], - blockUnratedItems: - unratedItemListFromJson(json['BlockUnratedItems'] as List?), - enableRemoteControlOfOtherUsers: - json['EnableRemoteControlOfOtherUsers'] as bool?, + blockUnratedItems: unratedItemListFromJson(json['BlockUnratedItems'] as List?), + enableRemoteControlOfOtherUsers: json['EnableRemoteControlOfOtherUsers'] as bool?, enableSharedDeviceControl: json['EnableSharedDeviceControl'] as bool?, enableRemoteAccess: json['EnableRemoteAccess'] as bool?, enableLiveTvManagement: json['EnableLiveTvManagement'] as bool?, enableLiveTvAccess: json['EnableLiveTvAccess'] as bool?, enableMediaPlayback: json['EnableMediaPlayback'] as bool?, - enableAudioPlaybackTranscoding: - json['EnableAudioPlaybackTranscoding'] as bool?, - enableVideoPlaybackTranscoding: - json['EnableVideoPlaybackTranscoding'] as bool?, + enableAudioPlaybackTranscoding: json['EnableAudioPlaybackTranscoding'] as bool?, + enableVideoPlaybackTranscoding: json['EnableVideoPlaybackTranscoding'] as bool?, enablePlaybackRemuxing: json['EnablePlaybackRemuxing'] as bool?, - forceRemoteSourceTranscoding: - json['ForceRemoteSourceTranscoding'] as bool?, + forceRemoteSourceTranscoding: json['ForceRemoteSourceTranscoding'] as bool?, enableContentDeletion: json['EnableContentDeletion'] as bool?, enableContentDeletionFromFolders: - (json['EnableContentDeletionFromFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['EnableContentDeletionFromFolders'] as List?)?.map((e) => e as String).toList() ?? [], enableContentDownloading: json['EnableContentDownloading'] as bool?, enableSyncTranscoding: json['EnableSyncTranscoding'] as bool?, enableMediaConversion: json['EnableMediaConversion'] as bool?, - enabledDevices: (json['EnabledDevices'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledDevices: (json['EnabledDevices'] as List?)?.map((e) => e as String).toList() ?? [], enableAllDevices: json['EnableAllDevices'] as bool?, - enabledChannels: (json['EnabledChannels'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledChannels: (json['EnabledChannels'] as List?)?.map((e) => e as String).toList() ?? [], enableAllChannels: json['EnableAllChannels'] as bool?, - enabledFolders: (json['EnabledFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledFolders: (json['EnabledFolders'] as List?)?.map((e) => e as String).toList() ?? [], enableAllFolders: json['EnableAllFolders'] as bool?, - invalidLoginAttemptCount: - (json['InvalidLoginAttemptCount'] as num?)?.toInt(), - loginAttemptsBeforeLockout: - (json['LoginAttemptsBeforeLockout'] as num?)?.toInt(), + invalidLoginAttemptCount: (json['InvalidLoginAttemptCount'] as num?)?.toInt(), + loginAttemptsBeforeLockout: (json['LoginAttemptsBeforeLockout'] as num?)?.toInt(), maxActiveSessions: (json['MaxActiveSessions'] as num?)?.toInt(), enablePublicSharing: json['EnablePublicSharing'] as bool?, - blockedMediaFolders: (json['BlockedMediaFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - blockedChannels: (json['BlockedChannels'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - remoteClientBitrateLimit: - (json['RemoteClientBitrateLimit'] as num?)?.toInt(), + blockedMediaFolders: (json['BlockedMediaFolders'] as List?)?.map((e) => e as String).toList() ?? [], + blockedChannels: (json['BlockedChannels'] as List?)?.map((e) => e as String).toList() ?? [], + remoteClientBitrateLimit: (json['RemoteClientBitrateLimit'] as num?)?.toInt(), authenticationProviderId: json['AuthenticationProviderId'] as String, passwordResetProviderId: json['PasswordResetProviderId'] as String, - syncPlayAccess: - syncPlayUserAccessTypeNullableFromJson(json['SyncPlayAccess']), + syncPlayAccess: syncPlayUserAccessTypeNullableFromJson(json['SyncPlayAccess']), ); -Map _$UserPolicyToJson(UserPolicy instance) => - { +Map _$UserPolicyToJson(UserPolicy instance) => { if (instance.isAdministrator case final value?) 'IsAdministrator': value, if (instance.isHidden case final value?) 'IsHidden': value, - if (instance.enableCollectionManagement case final value?) - 'EnableCollectionManagement': value, - if (instance.enableSubtitleManagement case final value?) - 'EnableSubtitleManagement': value, - if (instance.enableLyricManagement case final value?) - 'EnableLyricManagement': value, + if (instance.enableCollectionManagement case final value?) 'EnableCollectionManagement': value, + if (instance.enableSubtitleManagement case final value?) 'EnableSubtitleManagement': value, + if (instance.enableLyricManagement case final value?) 'EnableLyricManagement': value, if (instance.isDisabled case final value?) 'IsDisabled': value, - if (instance.maxParentalRating case final value?) - 'MaxParentalRating': value, - if (instance.maxParentalSubRating case final value?) - 'MaxParentalSubRating': value, + if (instance.maxParentalRating case final value?) 'MaxParentalRating': value, + if (instance.maxParentalSubRating case final value?) 'MaxParentalSubRating': value, if (instance.blockedTags case final value?) 'BlockedTags': value, if (instance.allowedTags case final value?) 'AllowedTags': value, - if (instance.enableUserPreferenceAccess case final value?) - 'EnableUserPreferenceAccess': value, - if (instance.accessSchedules?.map((e) => e.toJson()).toList() - case final value?) - 'AccessSchedules': value, + if (instance.enableUserPreferenceAccess case final value?) 'EnableUserPreferenceAccess': value, + if (instance.accessSchedules?.map((e) => e.toJson()).toList() case final value?) 'AccessSchedules': value, 'BlockUnratedItems': unratedItemListToJson(instance.blockUnratedItems), - if (instance.enableRemoteControlOfOtherUsers case final value?) - 'EnableRemoteControlOfOtherUsers': value, - if (instance.enableSharedDeviceControl case final value?) - 'EnableSharedDeviceControl': value, - if (instance.enableRemoteAccess case final value?) - 'EnableRemoteAccess': value, - if (instance.enableLiveTvManagement case final value?) - 'EnableLiveTvManagement': value, - if (instance.enableLiveTvAccess case final value?) - 'EnableLiveTvAccess': value, - if (instance.enableMediaPlayback case final value?) - 'EnableMediaPlayback': value, - if (instance.enableAudioPlaybackTranscoding case final value?) - 'EnableAudioPlaybackTranscoding': value, - if (instance.enableVideoPlaybackTranscoding case final value?) - 'EnableVideoPlaybackTranscoding': value, - if (instance.enablePlaybackRemuxing case final value?) - 'EnablePlaybackRemuxing': value, - if (instance.forceRemoteSourceTranscoding case final value?) - 'ForceRemoteSourceTranscoding': value, - if (instance.enableContentDeletion case final value?) - 'EnableContentDeletion': value, - if (instance.enableContentDeletionFromFolders case final value?) - 'EnableContentDeletionFromFolders': value, - if (instance.enableContentDownloading case final value?) - 'EnableContentDownloading': value, - if (instance.enableSyncTranscoding case final value?) - 'EnableSyncTranscoding': value, - if (instance.enableMediaConversion case final value?) - 'EnableMediaConversion': value, + if (instance.enableRemoteControlOfOtherUsers case final value?) 'EnableRemoteControlOfOtherUsers': value, + if (instance.enableSharedDeviceControl case final value?) 'EnableSharedDeviceControl': value, + if (instance.enableRemoteAccess case final value?) 'EnableRemoteAccess': value, + if (instance.enableLiveTvManagement case final value?) 'EnableLiveTvManagement': value, + if (instance.enableLiveTvAccess case final value?) 'EnableLiveTvAccess': value, + if (instance.enableMediaPlayback case final value?) 'EnableMediaPlayback': value, + if (instance.enableAudioPlaybackTranscoding case final value?) 'EnableAudioPlaybackTranscoding': value, + if (instance.enableVideoPlaybackTranscoding case final value?) 'EnableVideoPlaybackTranscoding': value, + if (instance.enablePlaybackRemuxing case final value?) 'EnablePlaybackRemuxing': value, + if (instance.forceRemoteSourceTranscoding case final value?) 'ForceRemoteSourceTranscoding': value, + if (instance.enableContentDeletion case final value?) 'EnableContentDeletion': value, + if (instance.enableContentDeletionFromFolders case final value?) 'EnableContentDeletionFromFolders': value, + if (instance.enableContentDownloading case final value?) 'EnableContentDownloading': value, + if (instance.enableSyncTranscoding case final value?) 'EnableSyncTranscoding': value, + if (instance.enableMediaConversion case final value?) 'EnableMediaConversion': value, if (instance.enabledDevices case final value?) 'EnabledDevices': value, - if (instance.enableAllDevices case final value?) - 'EnableAllDevices': value, + if (instance.enableAllDevices case final value?) 'EnableAllDevices': value, if (instance.enabledChannels case final value?) 'EnabledChannels': value, - if (instance.enableAllChannels case final value?) - 'EnableAllChannels': value, + if (instance.enableAllChannels case final value?) 'EnableAllChannels': value, if (instance.enabledFolders case final value?) 'EnabledFolders': value, - if (instance.enableAllFolders case final value?) - 'EnableAllFolders': value, - if (instance.invalidLoginAttemptCount case final value?) - 'InvalidLoginAttemptCount': value, - if (instance.loginAttemptsBeforeLockout case final value?) - 'LoginAttemptsBeforeLockout': value, - if (instance.maxActiveSessions case final value?) - 'MaxActiveSessions': value, - if (instance.enablePublicSharing case final value?) - 'EnablePublicSharing': value, - if (instance.blockedMediaFolders case final value?) - 'BlockedMediaFolders': value, + if (instance.enableAllFolders case final value?) 'EnableAllFolders': value, + if (instance.invalidLoginAttemptCount case final value?) 'InvalidLoginAttemptCount': value, + if (instance.loginAttemptsBeforeLockout case final value?) 'LoginAttemptsBeforeLockout': value, + if (instance.maxActiveSessions case final value?) 'MaxActiveSessions': value, + if (instance.enablePublicSharing case final value?) 'EnablePublicSharing': value, + if (instance.blockedMediaFolders case final value?) 'BlockedMediaFolders': value, if (instance.blockedChannels case final value?) 'BlockedChannels': value, - if (instance.remoteClientBitrateLimit case final value?) - 'RemoteClientBitrateLimit': value, + if (instance.remoteClientBitrateLimit case final value?) 'RemoteClientBitrateLimit': value, 'AuthenticationProviderId': instance.authenticationProviderId, 'PasswordResetProviderId': instance.passwordResetProviderId, - if (syncPlayUserAccessTypeNullableToJson(instance.syncPlayAccess) - case final value?) - 'SyncPlayAccess': value, + if (syncPlayUserAccessTypeNullableToJson(instance.syncPlayAccess) case final value?) 'SyncPlayAccess': value, }; -UserUpdatedMessage _$UserUpdatedMessageFromJson(Map json) => - UserUpdatedMessage( - data: json['Data'] == null - ? null - : UserDto.fromJson(json['Data'] as Map), +UserUpdatedMessage _$UserUpdatedMessageFromJson(Map json) => UserUpdatedMessage( + data: json['Data'] == null ? null : UserDto.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - UserUpdatedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: UserUpdatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$UserUpdatedMessageToJson(UserUpdatedMessage instance) => - { +Map _$UserUpdatedMessageToJson(UserUpdatedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -UtcTimeResponse _$UtcTimeResponseFromJson(Map json) => - UtcTimeResponse( - requestReceptionTime: json['RequestReceptionTime'] == null - ? null - : DateTime.parse(json['RequestReceptionTime'] as String), - responseTransmissionTime: json['ResponseTransmissionTime'] == null - ? null - : DateTime.parse(json['ResponseTransmissionTime'] as String), +UtcTimeResponse _$UtcTimeResponseFromJson(Map json) => UtcTimeResponse( + requestReceptionTime: + json['RequestReceptionTime'] == null ? null : DateTime.parse(json['RequestReceptionTime'] as String), + responseTransmissionTime: + json['ResponseTransmissionTime'] == null ? null : DateTime.parse(json['ResponseTransmissionTime'] as String), ); -Map _$UtcTimeResponseToJson(UtcTimeResponse instance) => - { - if (instance.requestReceptionTime?.toIso8601String() case final value?) - 'RequestReceptionTime': value, - if (instance.responseTransmissionTime?.toIso8601String() - case final value?) - 'ResponseTransmissionTime': value, +Map _$UtcTimeResponseToJson(UtcTimeResponse instance) => { + if (instance.requestReceptionTime?.toIso8601String() case final value?) 'RequestReceptionTime': value, + if (instance.responseTransmissionTime?.toIso8601String() case final value?) 'ResponseTransmissionTime': value, }; -ValidatePathDto _$ValidatePathDtoFromJson(Map json) => - ValidatePathDto( +ValidatePathDto _$ValidatePathDtoFromJson(Map json) => ValidatePathDto( validateWritable: json['ValidateWritable'] as bool?, path: json['Path'] as String?, isFile: json['IsFile'] as bool?, ); -Map _$ValidatePathDtoToJson(ValidatePathDto instance) => - { - if (instance.validateWritable case final value?) - 'ValidateWritable': value, +Map _$ValidatePathDtoToJson(ValidatePathDto instance) => { + if (instance.validateWritable case final value?) 'ValidateWritable': value, if (instance.path case final value?) 'Path': value, if (instance.isFile case final value?) 'IsFile': value, }; @@ -7923,8 +5644,7 @@ VersionInfo _$VersionInfoFromJson(Map json) => VersionInfo( repositoryUrl: json['repositoryUrl'] as String?, ); -Map _$VersionInfoToJson(VersionInfo instance) => - { +Map _$VersionInfoToJson(VersionInfo instance) => { if (instance.version case final value?) 'version': value, if (instance.versionNumber case final value?) 'VersionNumber': value, if (instance.changelog case final value?) 'changelog': value, @@ -7936,73 +5656,51 @@ Map _$VersionInfoToJson(VersionInfo instance) => if (instance.repositoryUrl case final value?) 'repositoryUrl': value, }; -VirtualFolderInfo _$VirtualFolderInfoFromJson(Map json) => - VirtualFolderInfo( +VirtualFolderInfo _$VirtualFolderInfoFromJson(Map json) => VirtualFolderInfo( name: json['Name'] as String?, - locations: (json['Locations'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - collectionType: - collectionTypeOptionsNullableFromJson(json['CollectionType']), + locations: (json['Locations'] as List?)?.map((e) => e as String).toList() ?? [], + collectionType: collectionTypeOptionsNullableFromJson(json['CollectionType']), libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson( - json['LibraryOptions'] as Map), + : LibraryOptions.fromJson(json['LibraryOptions'] as Map), itemId: json['ItemId'] as String?, primaryImageItemId: json['PrimaryImageItemId'] as String?, refreshProgress: (json['RefreshProgress'] as num?)?.toDouble(), refreshStatus: json['RefreshStatus'] as String?, ); -Map _$VirtualFolderInfoToJson(VirtualFolderInfo instance) => - { +Map _$VirtualFolderInfoToJson(VirtualFolderInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.locations case final value?) 'Locations': value, - if (collectionTypeOptionsNullableToJson(instance.collectionType) - case final value?) - 'CollectionType': value, - if (instance.libraryOptions?.toJson() case final value?) - 'LibraryOptions': value, + if (collectionTypeOptionsNullableToJson(instance.collectionType) case final value?) 'CollectionType': value, + if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.primaryImageItemId case final value?) - 'PrimaryImageItemId': value, + if (instance.primaryImageItemId case final value?) 'PrimaryImageItemId': value, if (instance.refreshProgress case final value?) 'RefreshProgress': value, if (instance.refreshStatus case final value?) 'RefreshStatus': value, }; -WebSocketMessage _$WebSocketMessageFromJson(Map json) => - WebSocketMessage(); +WebSocketMessage _$WebSocketMessageFromJson(Map json) => WebSocketMessage(); -Map _$WebSocketMessageToJson(WebSocketMessage instance) => - {}; +Map _$WebSocketMessageToJson(WebSocketMessage instance) => {}; -XbmcMetadataOptions _$XbmcMetadataOptionsFromJson(Map json) => - XbmcMetadataOptions( +XbmcMetadataOptions _$XbmcMetadataOptionsFromJson(Map json) => XbmcMetadataOptions( userId: json['UserId'] as String?, releaseDateFormat: json['ReleaseDateFormat'] as String?, saveImagePathsInNfo: json['SaveImagePathsInNfo'] as bool?, enablePathSubstitution: json['EnablePathSubstitution'] as bool?, - enableExtraThumbsDuplication: - json['EnableExtraThumbsDuplication'] as bool?, + enableExtraThumbsDuplication: json['EnableExtraThumbsDuplication'] as bool?, ); -Map _$XbmcMetadataOptionsToJson( - XbmcMetadataOptions instance) => - { +Map _$XbmcMetadataOptionsToJson(XbmcMetadataOptions instance) => { if (instance.userId case final value?) 'UserId': value, - if (instance.releaseDateFormat case final value?) - 'ReleaseDateFormat': value, - if (instance.saveImagePathsInNfo case final value?) - 'SaveImagePathsInNfo': value, - if (instance.enablePathSubstitution case final value?) - 'EnablePathSubstitution': value, - if (instance.enableExtraThumbsDuplication case final value?) - 'EnableExtraThumbsDuplication': value, - }; - -BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson( - Map json) => + if (instance.releaseDateFormat case final value?) 'ReleaseDateFormat': value, + if (instance.saveImagePathsInNfo case final value?) 'SaveImagePathsInNfo': value, + if (instance.enablePathSubstitution case final value?) 'EnablePathSubstitution': value, + if (instance.enableExtraThumbsDuplication case final value?) 'EnableExtraThumbsDuplication': value, + }; + +BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson(Map json) => BaseItemDto$ImageBlurHashes( primary: json['Primary'] as Map?, art: json['Art'] as Map?, @@ -8019,9 +5717,7 @@ BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson( profile: json['Profile'] as Map?, ); -Map _$BaseItemDto$ImageBlurHashesToJson( - BaseItemDto$ImageBlurHashes instance) => - { +Map _$BaseItemDto$ImageBlurHashesToJson(BaseItemDto$ImageBlurHashes instance) => { if (instance.primary case final value?) 'Primary': value, if (instance.art case final value?) 'Art': value, if (instance.backdrop case final value?) 'Backdrop': value, @@ -8037,8 +5733,7 @@ Map _$BaseItemDto$ImageBlurHashesToJson( if (instance.profile case final value?) 'Profile': value, }; -BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson( - Map json) => +BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson(Map json) => BaseItemPerson$ImageBlurHashes( primary: json['Primary'] as Map?, art: json['Art'] as Map?, @@ -8055,8 +5750,7 @@ BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson( profile: json['Profile'] as Map?, ); -Map _$BaseItemPerson$ImageBlurHashesToJson( - BaseItemPerson$ImageBlurHashes instance) => +Map _$BaseItemPerson$ImageBlurHashesToJson(BaseItemPerson$ImageBlurHashes instance) => { if (instance.primary case final value?) 'Primary': value, if (instance.art case final value?) 'Art': value, diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 45cfba3c0..428b1b34a 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1009,6 +1009,112 @@ "@switchUser": {}, "sync": "Sync", "@sync": {}, + "syncPlay": "SyncPlay", + "@syncPlay": { + "description": "SyncPlay - synchronized playback feature" + }, + "syncPlayCreateGroup": "Create SyncPlay Group", + "@syncPlayCreateGroup": {}, + "syncPlayGroupName": "Group Name", + "@syncPlayGroupName": {}, + "syncPlayGroupNameHint": "Movie Night", + "@syncPlayGroupNameHint": {}, + "syncPlayCreatedGroup": "Created group \"{groupName}\"", + "@syncPlayCreatedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToCreateGroup": "Failed to create group", + "@syncPlayFailedToCreateGroup": {}, + "syncPlayJoinedGroup": "Joined \"{groupName}\"", + "@syncPlayJoinedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToJoinGroup": "Failed to join group", + "@syncPlayFailedToJoinGroup": {}, + "syncPlayLeftGroup": "Left SyncPlay group", + "@syncPlayLeftGroup": {}, + "syncPlayFailedToLoadGroups": "Failed to load groups", + "@syncPlayFailedToLoadGroups": {}, + "syncPlayNoActiveGroups": "No active groups", + "@syncPlayNoActiveGroups": {}, + "syncPlayCreateGroupHint": "Create a group to watch together", + "@syncPlayCreateGroupHint": {}, + "syncPlayCreateGroupButton": "Create Group", + "@syncPlayCreateGroupButton": {}, + "syncPlayGroupFallback": "SyncPlay Group", + "@syncPlayGroupFallback": {}, + "syncPlayParticipants": "{count, plural, =1{1 participant} other{{count} participants}}", + "@syncPlayParticipants": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "syncPlayInstructions": "Browse your library and start playing something to sync with the group.", + "@syncPlayInstructions": {}, + "syncPlayUnnamedGroup": "Unnamed Group", + "@syncPlayUnnamedGroup": {}, + "syncPlayStateIdle": "Idle", + "@syncPlayStateIdle": {}, + "syncPlayStateWaiting": "Waiting for others...", + "@syncPlayStateWaiting": {}, + "syncPlayStatePaused": "Paused", + "@syncPlayStatePaused": {}, + "syncPlayStatePlaying": "Playing", + "@syncPlayStatePlaying": {}, + "syncPlaySyncingPause": "Syncing pause...", + "@syncPlaySyncingPause": {}, + "syncPlaySyncingPlay": "Syncing play...", + "@syncPlaySyncingPlay": {}, + "syncPlaySyncingSeek": "Syncing seek...", + "@syncPlaySyncingSeek": {}, + "syncPlayStopping": "Stopping...", + "@syncPlayStopping": {}, + "syncPlaySyncing": "Syncing...", + "@syncPlaySyncing": {}, + "syncPlayCommandPausing": "Pausing", + "@syncPlayCommandPausing": {}, + "syncPlayCommandPlaying": "Playing", + "@syncPlayCommandPlaying": {}, + "syncPlayCommandSeeking": "Seeking", + "@syncPlayCommandSeeking": {}, + "syncPlayCommandStopping": "Stopping", + "@syncPlayCommandStopping": {}, + "syncPlayCommandSyncing": "Syncing", + "@syncPlayCommandSyncing": {}, + "syncPlaySyncingWithGroup": "Syncing with group...", + "@syncPlaySyncingWithGroup": {}, + "syncPlayUserJoined": "{userName} joined the group", + "@syncPlayUserJoined": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, + "syncPlayUserLeft": "{userName} left the group", + "@syncPlayUserLeft": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, + "syncPlayResumePlayback": "Resume group playback", + "@syncPlayResumePlayback": {}, + "syncPlayKickedFromGroup": "You were removed from the SyncPlay group", + "@syncPlayKickedFromGroup": {}, + "syncPlayGroupNoLongerExists": "The SyncPlay group is no longer available", + "@syncPlayGroupNoLongerExists": {}, "syncDeleteItemDesc": "Delete all synced data for {item}?", "@syncDeleteItemDesc": { "description": "Sync delete item pop-up window", @@ -1422,6 +1528,8 @@ "hasLikedDirector": "Has liked director", "hasLikedActor": "Has liked actor", "latest": "Latest", + "leave": "Leave", + "@leave": {}, "recommended": "Recommended", "playbackType": "Playback type", "playbackTypeDirect": "Direct", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index cc9f299dc..8d39c0f7f 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -567,6 +567,113 @@ "subtitles": "Sous-titres", "switchUser": "Changer d'utilisateur", "sync": "Synchroniser", + "@sync": {}, + "syncPlay": "SyncPlay", + "@syncPlay": { + "description": "SyncPlay - fonctionnalité de lecture synchronisée" + }, + "syncPlayCreateGroup": "Créer un groupe SyncPlay", + "@syncPlayCreateGroup": {}, + "syncPlayGroupName": "Nom du groupe", + "@syncPlayGroupName": {}, + "syncPlayGroupNameHint": "Soirée cinéma", + "@syncPlayGroupNameHint": {}, + "syncPlayCreatedGroup": "Groupe \"{groupName}\" créé", + "@syncPlayCreatedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToCreateGroup": "Échec de la création du groupe", + "@syncPlayFailedToCreateGroup": {}, + "syncPlayJoinedGroup": "Rejoint \"{groupName}\"", + "@syncPlayJoinedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToJoinGroup": "Échec de la connexion au groupe", + "@syncPlayFailedToJoinGroup": {}, + "syncPlayLeftGroup": "Groupe SyncPlay quitté", + "@syncPlayLeftGroup": {}, + "syncPlayFailedToLoadGroups": "Échec du chargement des groupes", + "@syncPlayFailedToLoadGroups": {}, + "syncPlayNoActiveGroups": "Aucun groupe actif", + "@syncPlayNoActiveGroups": {}, + "syncPlayCreateGroupHint": "Créez un groupe pour regarder ensemble", + "@syncPlayCreateGroupHint": {}, + "syncPlayCreateGroupButton": "Créer un groupe", + "@syncPlayCreateGroupButton": {}, + "syncPlayGroupFallback": "Groupe SyncPlay", + "@syncPlayGroupFallback": {}, + "syncPlayParticipants": "{count, plural, =1{1 participant} other{{count} participants}}", + "@syncPlayParticipants": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "syncPlayInstructions": "Parcourez votre bibliothèque et lancez une lecture pour synchroniser avec le groupe.", + "@syncPlayInstructions": {}, + "syncPlayUnnamedGroup": "Groupe sans nom", + "@syncPlayUnnamedGroup": {}, + "syncPlayStateIdle": "Inactif", + "@syncPlayStateIdle": {}, + "syncPlayStateWaiting": "En attente des autres...", + "@syncPlayStateWaiting": {}, + "syncPlayStatePaused": "En pause", + "@syncPlayStatePaused": {}, + "syncPlayStatePlaying": "Lecture en cours", + "@syncPlayStatePlaying": {}, + "syncPlaySyncingPause": "Synchronisation pause...", + "@syncPlaySyncingPause": {}, + "syncPlaySyncingPlay": "Synchronisation lecture...", + "@syncPlaySyncingPlay": {}, + "syncPlaySyncingSeek": "Synchronisation position...", + "@syncPlaySyncingSeek": {}, + "syncPlayStopping": "Arrêt...", + "@syncPlayStopping": {}, + "syncPlaySyncing": "Synchronisation...", + "@syncPlaySyncing": {}, + "syncPlayCommandPausing": "Mise en pause", + "@syncPlayCommandPausing": {}, + "syncPlayCommandPlaying": "Lecture", + "@syncPlayCommandPlaying": {}, + "syncPlayCommandSeeking": "Recherche", + "@syncPlayCommandSeeking": {}, + "syncPlayCommandStopping": "Arrêt", + "@syncPlayCommandStopping": {}, + "syncPlayCommandSyncing": "Synchronisation", + "@syncPlayCommandSyncing": {}, + "syncPlaySyncingWithGroup": "Synchronisation avec le groupe...", + "@syncPlaySyncingWithGroup": {}, + "syncPlayUserJoined": "{userName} a rejoint le groupe", + "@syncPlayUserJoined": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, + "syncPlayUserLeft": "{userName} a quitté le groupe", + "@syncPlayUserLeft": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, + "syncPlayResumePlayback": "Reprendre la lecture du groupe", + "@syncPlayResumePlayback": {}, + "syncPlayKickedFromGroup": "Vous avez été retiré du groupe SyncPlay", + "@syncPlayKickedFromGroup": {}, + "syncPlayGroupNoLongerExists": "Le groupe SyncPlay n'est plus disponible", + "@syncPlayGroupNoLongerExists": {}, "syncDeleteItemDesc": "Supprimer toutes les données synchronisées pour {item} ?", "@syncDeleteItemDesc": { "description": "Fenêtre contextuelle de suppression d'élément synchronisé", diff --git a/lib/models/account_model.freezed.dart b/lib/models/account_model.freezed.dart index dd38a09ea..c382cb61f 100644 --- a/lib/models/account_model.freezed.dart +++ b/lib/models/account_model.freezed.dart @@ -48,8 +48,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $AccountModelCopyWith get copyWith => - _$AccountModelCopyWithImpl( - this as AccountModel, _$identity); + _$AccountModelCopyWithImpl(this as AccountModel, _$identity); /// Serializes this AccountModel to a JSON map. Map toJson(); @@ -71,8 +70,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('searchQueryHistory', searchQueryHistory)) ..add(DiagnosticsProperty('quickConnectState', quickConnectState)) ..add(DiagnosticsProperty('libraryFilters', libraryFilters)) - ..add(DiagnosticsProperty( - 'updateNotificationsEnabled', updateNotificationsEnabled)) + ..add(DiagnosticsProperty('updateNotificationsEnabled', updateNotificationsEnabled)) ..add(DiagnosticsProperty('seerrRequestsEnabled', seerrRequestsEnabled)) ..add(DiagnosticsProperty('includeHiddenViews', includeHiddenViews)) ..add(DiagnosticsProperty('policy', policy)) @@ -91,9 +89,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $AccountModelCopyWith<$Res> { - factory $AccountModelCopyWith( - AccountModel value, $Res Function(AccountModel) _then) = - _$AccountModelCopyWithImpl; + factory $AccountModelCopyWith(AccountModel value, $Res Function(AccountModel) _then) = _$AccountModelCopyWithImpl; @useResult $Res call( {String name, @@ -113,13 +109,10 @@ abstract mixin class $AccountModelCopyWith<$Res> { bool seerrRequestsEnabled, bool includeHiddenViews, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings}); $CredentialsModelCopyWith<$Res> get credentials; @@ -273,8 +266,7 @@ class _$AccountModelCopyWithImpl<$Res> implements $AccountModelCopyWith<$Res> { return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, - (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -404,16 +396,11 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings)? $default, { required TResult orElse(), @@ -481,16 +468,11 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings) $default, ) { @@ -556,16 +538,11 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings)? $default, ) { @@ -622,20 +599,16 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { this.seerrRequestsEnabled = false, this.includeHiddenViews = false, @JsonKey(includeFromJson: false, includeToJson: false) this.policy, - @JsonKey(includeFromJson: false, includeToJson: false) - this.serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - this.userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) this.serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) this.userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) this.hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - this.hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) this.hasConfiguredPassword, this.userSettings}) : _latestItemsExcludes = latestItemsExcludes, _searchQueryHistory = searchQueryHistory, _libraryFilters = libraryFilters, super._(); - factory _AccountModel.fromJson(Map json) => - _$AccountModelFromJson(json); + factory _AccountModel.fromJson(Map json) => _$AccountModelFromJson(json); @override final String name; @@ -663,8 +636,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get latestItemsExcludes { - if (_latestItemsExcludes is EqualUnmodifiableListView) - return _latestItemsExcludes; + if (_latestItemsExcludes is EqualUnmodifiableListView) return _latestItemsExcludes; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_latestItemsExcludes); } @@ -673,8 +645,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get searchQueryHistory { - if (_searchQueryHistory is EqualUnmodifiableListView) - return _searchQueryHistory; + if (_searchQueryHistory is EqualUnmodifiableListView) return _searchQueryHistory; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_searchQueryHistory); } @@ -724,8 +695,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$AccountModelCopyWith<_AccountModel> get copyWith => - __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); + _$AccountModelCopyWith<_AccountModel> get copyWith => __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); @override Map toJson() { @@ -751,8 +721,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { ..add(DiagnosticsProperty('searchQueryHistory', searchQueryHistory)) ..add(DiagnosticsProperty('quickConnectState', quickConnectState)) ..add(DiagnosticsProperty('libraryFilters', libraryFilters)) - ..add(DiagnosticsProperty( - 'updateNotificationsEnabled', updateNotificationsEnabled)) + ..add(DiagnosticsProperty('updateNotificationsEnabled', updateNotificationsEnabled)) ..add(DiagnosticsProperty('seerrRequestsEnabled', seerrRequestsEnabled)) ..add(DiagnosticsProperty('includeHiddenViews', includeHiddenViews)) ..add(DiagnosticsProperty('policy', policy)) @@ -770,11 +739,8 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { } /// @nodoc -abstract mixin class _$AccountModelCopyWith<$Res> - implements $AccountModelCopyWith<$Res> { - factory _$AccountModelCopyWith( - _AccountModel value, $Res Function(_AccountModel) _then) = - __$AccountModelCopyWithImpl; +abstract mixin class _$AccountModelCopyWith<$Res> implements $AccountModelCopyWith<$Res> { + factory _$AccountModelCopyWith(_AccountModel value, $Res Function(_AccountModel) _then) = __$AccountModelCopyWithImpl; @override @useResult $Res call( @@ -795,13 +761,10 @@ abstract mixin class _$AccountModelCopyWith<$Res> bool seerrRequestsEnabled, bool includeHiddenViews, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings}); @override @@ -813,8 +776,7 @@ abstract mixin class _$AccountModelCopyWith<$Res> } /// @nodoc -class __$AccountModelCopyWithImpl<$Res> - implements _$AccountModelCopyWith<$Res> { +class __$AccountModelCopyWithImpl<$Res> implements _$AccountModelCopyWith<$Res> { __$AccountModelCopyWithImpl(this._self, this._then); final _AccountModel _self; @@ -959,8 +921,7 @@ class __$AccountModelCopyWithImpl<$Res> return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, - (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -990,8 +951,7 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $UserSettingsCopyWith get copyWith => - _$UserSettingsCopyWithImpl( - this as UserSettings, _$identity); + _$UserSettingsCopyWithImpl(this as UserSettings, _$identity); /// Serializes this UserSettings to a JSON map. Map toJson(); @@ -1012,9 +972,7 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $UserSettingsCopyWith<$Res> { - factory $UserSettingsCopyWith( - UserSettings value, $Res Function(UserSettings) _then) = - _$UserSettingsCopyWithImpl; + factory $UserSettingsCopyWith(UserSettings value, $Res Function(UserSettings) _then) = _$UserSettingsCopyWithImpl; @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } @@ -1140,8 +1098,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult maybeWhen( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? - $default, { + TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, { required TResult orElse(), }) { final _that = this; @@ -1168,8 +1125,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult when( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration) - $default, + TResult Function(Duration skipForwardDuration, Duration skipBackDuration) $default, ) { final _that = this; switch (_that) { @@ -1194,8 +1150,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? - $default, + TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, ) { final _that = this; switch (_that) { @@ -1211,10 +1166,8 @@ extension UserSettingsPatterns on UserSettings { @JsonSerializable() class _UserSettings with DiagnosticableTreeMixin implements UserSettings { _UserSettings( - {this.skipForwardDuration = const Duration(seconds: 30), - this.skipBackDuration = const Duration(seconds: 10)}); - factory _UserSettings.fromJson(Map json) => - _$UserSettingsFromJson(json); + {this.skipForwardDuration = const Duration(seconds: 30), this.skipBackDuration = const Duration(seconds: 10)}); + factory _UserSettings.fromJson(Map json) => _$UserSettingsFromJson(json); @override @JsonKey() @@ -1228,8 +1181,7 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$UserSettingsCopyWith<_UserSettings> get copyWith => - __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); + _$UserSettingsCopyWith<_UserSettings> get copyWith => __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); @override Map toJson() { @@ -1253,19 +1205,15 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { } /// @nodoc -abstract mixin class _$UserSettingsCopyWith<$Res> - implements $UserSettingsCopyWith<$Res> { - factory _$UserSettingsCopyWith( - _UserSettings value, $Res Function(_UserSettings) _then) = - __$UserSettingsCopyWithImpl; +abstract mixin class _$UserSettingsCopyWith<$Res> implements $UserSettingsCopyWith<$Res> { + factory _$UserSettingsCopyWith(_UserSettings value, $Res Function(_UserSettings) _then) = __$UserSettingsCopyWithImpl; @override @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } /// @nodoc -class __$UserSettingsCopyWithImpl<$Res> - implements _$UserSettingsCopyWith<$Res> { +class __$UserSettingsCopyWithImpl<$Res> implements _$UserSettingsCopyWith<$Res> { __$UserSettingsCopyWithImpl(this._self, this._then); final _UserSettings _self; diff --git a/lib/models/account_model.g.dart b/lib/models/account_model.g.dart index 502f1044e..9e8113d5c 100644 --- a/lib/models/account_model.g.dart +++ b/lib/models/account_model.g.dart @@ -6,47 +6,34 @@ part of 'account_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_AccountModel _$AccountModelFromJson(Map json) => - _AccountModel( +_AccountModel _$AccountModelFromJson(Map json) => _AccountModel( name: json['name'] as String, id: json['id'] as String, avatar: json['avatar'] as String, lastUsed: DateTime.parse(json['lastUsed'] as String), - authMethod: - $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? - Authentication.autoLogin, + authMethod: $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? Authentication.autoLogin, askForAuthOnLaunch: json['askForAuthOnLaunch'] as bool? ?? false, localPin: json['localPin'] as String? ?? "", credentials: const CredentialsConverter().fromJson(json['credentials']), seerrCredentials: json['seerrCredentials'] == null ? null - : SeerrCredentialsModel.fromJson( - json['seerrCredentials'] as Map), - latestItemsExcludes: (json['latestItemsExcludes'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - searchQueryHistory: (json['searchQueryHistory'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], + : SeerrCredentialsModel.fromJson(json['seerrCredentials'] as Map), + latestItemsExcludes: + (json['latestItemsExcludes'] as List?)?.map((e) => e as String).toList() ?? const [], + searchQueryHistory: (json['searchQueryHistory'] as List?)?.map((e) => e as String).toList() ?? const [], quickConnectState: json['quickConnectState'] as bool? ?? false, libraryFilters: (json['libraryFilters'] as List?) - ?.map((e) => - LibraryFiltersModel.fromJson(e as Map)) + ?.map((e) => LibraryFiltersModel.fromJson(e as Map)) .toList() ?? const [], - updateNotificationsEnabled: - json['updateNotificationsEnabled'] as bool? ?? false, + updateNotificationsEnabled: json['updateNotificationsEnabled'] as bool? ?? false, seerrRequestsEnabled: json['seerrRequestsEnabled'] as bool? ?? false, includeHiddenViews: json['includeHiddenViews'] as bool? ?? false, - userSettings: json['userSettings'] == null - ? null - : UserSettings.fromJson(json['userSettings'] as Map), + userSettings: + json['userSettings'] == null ? null : UserSettings.fromJson(json['userSettings'] as Map), ); -Map _$AccountModelToJson(_AccountModel instance) => - { +Map _$AccountModelToJson(_AccountModel instance) => { 'name': instance.name, 'id': instance.id, 'avatar': instance.avatar, @@ -73,19 +60,16 @@ const _$AuthenticationEnumMap = { Authentication.none: 'none', }; -_UserSettings _$UserSettingsFromJson(Map json) => - _UserSettings( +_UserSettings _$UserSettingsFromJson(Map json) => _UserSettings( skipForwardDuration: json['skipForwardDuration'] == null ? const Duration(seconds: 30) - : Duration( - microseconds: (json['skipForwardDuration'] as num).toInt()), + : Duration(microseconds: (json['skipForwardDuration'] as num).toInt()), skipBackDuration: json['skipBackDuration'] == null ? const Duration(seconds: 10) : Duration(microseconds: (json['skipBackDuration'] as num).toInt()), ); -Map _$UserSettingsToJson(_UserSettings instance) => - { +Map _$UserSettingsToJson(_UserSettings instance) => { 'skipForwardDuration': instance.skipForwardDuration.inMicroseconds, 'skipBackDuration': instance.skipBackDuration.inMicroseconds, }; diff --git a/lib/models/boxset_model.mapper.dart b/lib/models/boxset_model.mapper.dart index 9cc6cfcc5..f14fb8765 100644 --- a/lib/models/boxset_model.mapper.dart +++ b/lib/models/boxset_model.mapper.dart @@ -25,42 +25,31 @@ class BoxSetModelMapper extends SubClassMapperBase { final String id = 'BoxSetModel'; static List _$items(BoxSetModel v) => v.items; - static const Field> _f$items = - Field('items', _$items, opt: true, def: const []); + static const Field> _f$items = Field('items', _$items, opt: true, def: const []); static String _$name(BoxSetModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(BoxSetModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(BoxSetModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(BoxSetModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(BoxSetModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(BoxSetModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(BoxSetModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(BoxSetModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(BoxSetModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(BoxSetModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static bool? _$canDownload(BoxSetModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static BaseItemKind? _$jellyType(BoxSetModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -86,8 +75,7 @@ class BoxSetModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'BoxSetModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static BoxSetModel _instantiate(DecodingData data) { return BoxSetModel( @@ -112,20 +100,16 @@ class BoxSetModelMapper extends SubClassMapperBase { mixin BoxSetModelMappable { BoxSetModelCopyWith get copyWith => - _BoxSetModelCopyWithImpl( - this as BoxSetModel, $identity, $identity); + _BoxSetModelCopyWithImpl(this as BoxSetModel, $identity, $identity); } -extension BoxSetModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, BoxSetModel, $Out> { +extension BoxSetModelValueCopy<$R, $Out> on ObjectCopyWith<$R, BoxSetModel, $Out> { BoxSetModelCopyWith<$R, BoxSetModel, $Out> get $asBoxSetModel => $base.as((v, t, t2) => _BoxSetModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; +abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -148,25 +132,20 @@ abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> BoxSetModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _BoxSetModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, BoxSetModel, $Out> +class _BoxSetModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, BoxSetModel, $Out> implements BoxSetModelCopyWith<$R, BoxSetModel, $Out> { _BoxSetModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - BoxSetModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = BoxSetModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get items => ListCopyWith( - $value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items => + ListCopyWith($value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? items, @@ -214,7 +193,6 @@ class _BoxSetModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - BoxSetModelCopyWith<$R2, BoxSetModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + BoxSetModelCopyWith<$R2, BoxSetModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _BoxSetModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/credentials_model.freezed.dart b/lib/models/credentials_model.freezed.dart index c0950c388..07ec9359d 100644 --- a/lib/models/credentials_model.freezed.dart +++ b/lib/models/credentials_model.freezed.dart @@ -26,8 +26,7 @@ mixin _$CredentialsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $CredentialsModelCopyWith get copyWith => - _$CredentialsModelCopyWithImpl( - this as CredentialsModel, _$identity); + _$CredentialsModelCopyWithImpl(this as CredentialsModel, _$identity); /// Serializes this CredentialsModel to a JSON map. Map toJson(); @@ -52,22 +51,14 @@ mixin _$CredentialsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $CredentialsModelCopyWith<$Res> { - factory $CredentialsModelCopyWith( - CredentialsModel value, $Res Function(CredentialsModel) _then) = + factory $CredentialsModelCopyWith(CredentialsModel value, $Res Function(CredentialsModel) _then) = _$CredentialsModelCopyWithImpl; @useResult - $Res call( - {String token, - String url, - String? localUrl, - String serverName, - String serverId, - String deviceId}); + $Res call({String token, String url, String? localUrl, String serverName, String serverId, String deviceId}); } /// @nodoc -class _$CredentialsModelCopyWithImpl<$Res> - implements $CredentialsModelCopyWith<$Res> { +class _$CredentialsModelCopyWithImpl<$Res> implements $CredentialsModelCopyWith<$Res> { _$CredentialsModelCopyWithImpl(this._self, this._then); final CredentialsModel _self; @@ -207,16 +198,14 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult maybeWhen({ - TResult Function(String token, String url, String? localUrl, - String serverName, String serverId, String deviceId)? + TResult Function(String token, String url, String? localUrl, String serverName, String serverId, String deviceId)? internal, required TResult orElse(), }) { final _that = this; switch (_that) { case _CredentialsModel() when internal != null: - return internal(_that.token, _that.url, _that.localUrl, - _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); case _: return orElse(); } @@ -237,15 +226,14 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult when({ - required TResult Function(String token, String url, String? localUrl, - String serverName, String serverId, String deviceId) + required TResult Function( + String token, String url, String? localUrl, String serverName, String serverId, String deviceId) internal, }) { final _that = this; switch (_that) { case _CredentialsModel(): - return internal(_that.token, _that.url, _that.localUrl, - _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); case _: throw StateError('Unexpected subclass'); } @@ -265,15 +253,13 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(String token, String url, String? localUrl, - String serverName, String serverId, String deviceId)? + TResult? Function(String token, String url, String? localUrl, String serverName, String serverId, String deviceId)? internal, }) { final _that = this; switch (_that) { case _CredentialsModel() when internal != null: - return internal(_that.token, _that.url, _that.localUrl, - _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); case _: return null; } @@ -284,15 +270,9 @@ extension CredentialsModelPatterns on CredentialsModel { @JsonSerializable() class _CredentialsModel extends CredentialsModel with DiagnosticableTreeMixin { _CredentialsModel( - {this.token = "", - this.url = "", - this.localUrl, - this.serverName = "", - this.serverId = "", - this.deviceId = ""}) + {this.token = "", this.url = "", this.localUrl, this.serverName = "", this.serverId = "", this.deviceId = ""}) : super._(); - factory _CredentialsModel.fromJson(Map json) => - _$CredentialsModelFromJson(json); + factory _CredentialsModel.fromJson(Map json) => _$CredentialsModelFromJson(json); @override @JsonKey() @@ -346,25 +326,16 @@ class _CredentialsModel extends CredentialsModel with DiagnosticableTreeMixin { } /// @nodoc -abstract mixin class _$CredentialsModelCopyWith<$Res> - implements $CredentialsModelCopyWith<$Res> { - factory _$CredentialsModelCopyWith( - _CredentialsModel value, $Res Function(_CredentialsModel) _then) = +abstract mixin class _$CredentialsModelCopyWith<$Res> implements $CredentialsModelCopyWith<$Res> { + factory _$CredentialsModelCopyWith(_CredentialsModel value, $Res Function(_CredentialsModel) _then) = __$CredentialsModelCopyWithImpl; @override @useResult - $Res call( - {String token, - String url, - String? localUrl, - String serverName, - String serverId, - String deviceId}); + $Res call({String token, String url, String? localUrl, String serverName, String serverId, String deviceId}); } /// @nodoc -class __$CredentialsModelCopyWithImpl<$Res> - implements _$CredentialsModelCopyWith<$Res> { +class __$CredentialsModelCopyWithImpl<$Res> implements _$CredentialsModelCopyWith<$Res> { __$CredentialsModelCopyWithImpl(this._self, this._then); final _CredentialsModel _self; diff --git a/lib/models/credentials_model.g.dart b/lib/models/credentials_model.g.dart index f4cc23b77..8d60f4c31 100644 --- a/lib/models/credentials_model.g.dart +++ b/lib/models/credentials_model.g.dart @@ -6,8 +6,7 @@ part of 'credentials_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_CredentialsModel _$CredentialsModelFromJson(Map json) => - _CredentialsModel( +_CredentialsModel _$CredentialsModelFromJson(Map json) => _CredentialsModel( token: json['token'] as String? ?? "", url: json['url'] as String? ?? "", localUrl: json['localUrl'] as String?, @@ -16,8 +15,7 @@ _CredentialsModel _$CredentialsModelFromJson(Map json) => deviceId: json['deviceId'] as String? ?? "", ); -Map _$CredentialsModelToJson(_CredentialsModel instance) => - { +Map _$CredentialsModelToJson(_CredentialsModel instance) => { 'token': instance.token, 'url': instance.url, 'localUrl': instance.localUrl, diff --git a/lib/models/item_base_model.mapper.dart b/lib/models/item_base_model.mapper.dart index 98db7f01b..9c3f8fe69 100644 --- a/lib/models/item_base_model.mapper.dart +++ b/lib/models/item_base_model.mapper.dart @@ -27,35 +27,25 @@ class ItemBaseModelMapper extends ClassMapperBase { static String _$id(ItemBaseModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(ItemBaseModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(ItemBaseModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(ItemBaseModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(ItemBaseModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(ItemBaseModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(ItemBaseModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(ItemBaseModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDownload(ItemBaseModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static bool? _$canDelete(ItemBaseModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(ItemBaseModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType); + static const Field _f$jellyType = Field('jellyType', _$jellyType); @override final MappableFields fields = const { @@ -96,19 +86,16 @@ class ItemBaseModelMapper extends ClassMapperBase { } mixin ItemBaseModelMappable { - ItemBaseModelCopyWith - get copyWith => _ItemBaseModelCopyWithImpl( - this as ItemBaseModel, $identity, $identity); + ItemBaseModelCopyWith get copyWith => + _ItemBaseModelCopyWithImpl(this as ItemBaseModel, $identity, $identity); } -extension ItemBaseModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, ItemBaseModel, $Out> { +extension ItemBaseModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemBaseModel, $Out> { ItemBaseModelCopyWith<$R, ItemBaseModel, $Out> get $asItemBaseModel => $base.as((v, t, t2) => _ItemBaseModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> - implements ClassCopyWith<$R, $In, $Out> { +abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> implements ClassCopyWith<$R, $In, $Out> { OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; UserDataCopyWith<$R, UserData, UserData> get userData; $R call( @@ -127,20 +114,17 @@ abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> ItemBaseModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _ItemBaseModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, ItemBaseModel, $Out> +class _ItemBaseModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemBaseModel, $Out> implements ItemBaseModelCopyWith<$R, ItemBaseModel, $Out> { _ItemBaseModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = ItemBaseModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {String? name, @@ -185,7 +169,6 @@ class _ItemBaseModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - ItemBaseModelCopyWith<$R2, ItemBaseModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + ItemBaseModelCopyWith<$R2, ItemBaseModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _ItemBaseModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/channel_program.freezed.dart b/lib/models/items/channel_program.freezed.dart index 73d2c71f2..19e2b267c 100644 --- a/lib/models/items/channel_program.freezed.dart +++ b/lib/models/items/channel_program.freezed.dart @@ -293,8 +293,7 @@ class _ChannelProgram extends ChannelProgram { required this.isSeries, this.overview}) : super._(); - factory _ChannelProgram.fromJson(Map json) => - _$ChannelProgramFromJson(json); + factory _ChannelProgram.fromJson(Map json) => _$ChannelProgramFromJson(json); @override final String id; diff --git a/lib/models/items/channel_program.g.dart b/lib/models/items/channel_program.g.dart index f5fd7d14c..ee4cdd229 100644 --- a/lib/models/items/channel_program.g.dart +++ b/lib/models/items/channel_program.g.dart @@ -6,8 +6,7 @@ part of 'channel_program.dart'; // JsonSerializableGenerator // ************************************************************************** -_ChannelProgram _$ChannelProgramFromJson(Map json) => - _ChannelProgram( +_ChannelProgram _$ChannelProgramFromJson(Map json) => _ChannelProgram( id: json['id'] as String, channelId: json['channelId'] as String, name: json['name'] as String, @@ -18,15 +17,12 @@ _ChannelProgram _$ChannelProgramFromJson(Map json) => episodeTitle: json['episodeTitle'] as String?, startDate: DateTime.parse(json['startDate'] as String), endDate: DateTime.parse(json['endDate'] as String), - images: json['images'] == null - ? null - : ImagesData.fromJson(json['images'] as String), + images: json['images'] == null ? null : ImagesData.fromJson(json['images'] as String), isSeries: json['isSeries'] as bool, overview: json['overview'] as String?, ); -Map _$ChannelProgramToJson(_ChannelProgram instance) => - { +Map _$ChannelProgramToJson(_ChannelProgram instance) => { 'id': instance.id, 'channelId': instance.channelId, 'name': instance.name, diff --git a/lib/models/items/episode_model.mapper.dart b/lib/models/items/episode_model.mapper.dart index b29f04a92..464206dc8 100644 --- a/lib/models/items/episode_model.mapper.dart +++ b/lib/models/items/episode_model.mapper.dart @@ -24,65 +24,47 @@ class EpisodeModelMapper extends SubClassMapperBase { final String id = 'EpisodeModel'; static String? _$seriesName(EpisodeModel v) => v.seriesName; - static const Field _f$seriesName = - Field('seriesName', _$seriesName); + static const Field _f$seriesName = Field('seriesName', _$seriesName); static int _$season(EpisodeModel v) => v.season; static const Field _f$season = Field('season', _$season); static int _$episode(EpisodeModel v) => v.episode; - static const Field _f$episode = - Field('episode', _$episode); + static const Field _f$episode = Field('episode', _$episode); static int? _$episodeEnd(EpisodeModel v) => v.episodeEnd; - static const Field _f$episodeEnd = - Field('episodeEnd', _$episodeEnd); + static const Field _f$episodeEnd = Field('episodeEnd', _$episodeEnd); static List _$chapters(EpisodeModel v) => v.chapters; - static const Field> _f$chapters = - Field('chapters', _$chapters, opt: true, def: const []); + static const Field> _f$chapters = Field('chapters', _$chapters, opt: true, def: const []); static ItemLocation? _$location(EpisodeModel v) => v.location; - static const Field _f$location = - Field('location', _$location, opt: true); + static const Field _f$location = Field('location', _$location, opt: true); static DateTime? _$dateAired(EpisodeModel v) => v.dateAired; - static const Field _f$dateAired = - Field('dateAired', _$dateAired, opt: true); + static const Field _f$dateAired = Field('dateAired', _$dateAired, opt: true); static String _$name(EpisodeModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(EpisodeModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(EpisodeModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(EpisodeModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(EpisodeModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(EpisodeModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(EpisodeModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(EpisodeModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(EpisodeModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static ImagesData? _$parentImages(EpisodeModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(EpisodeModel v) => v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static bool? _$canDelete(EpisodeModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(EpisodeModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(EpisodeModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -116,8 +98,7 @@ class EpisodeModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'EpisodeModel'; @override - late final ClassMapperBase superMapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); static EpisodeModel _instantiate(DecodingData data) { return EpisodeModel( @@ -150,12 +131,10 @@ class EpisodeModelMapper extends SubClassMapperBase { mixin EpisodeModelMappable { EpisodeModelCopyWith get copyWith => - _EpisodeModelCopyWithImpl( - this as EpisodeModel, $identity, $identity); + _EpisodeModelCopyWithImpl(this as EpisodeModel, $identity, $identity); } -extension EpisodeModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, EpisodeModel, $Out> { +extension EpisodeModelValueCopy<$R, $Out> on ObjectCopyWith<$R, EpisodeModel, $Out> { EpisodeModelCopyWith<$R, EpisodeModel, $Out> get $asEpisodeModel => $base.as((v, t, t2) => _EpisodeModelCopyWithImpl<$R, $Out>(v, t, t2)); } @@ -193,24 +172,20 @@ abstract class EpisodeModelCopyWith<$R, $In extends EpisodeModel, $Out> EpisodeModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _EpisodeModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, EpisodeModel, $Out> +class _EpisodeModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, EpisodeModel, $Out> implements EpisodeModelCopyWith<$R, EpisodeModel, $Out> { _EpisodeModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - EpisodeModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = EpisodeModelMapper.ensureInitialized(); @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> - get chapters => ListCopyWith($value.chapters, - (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters => + ListCopyWith($value.chapters, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? seriesName = $none, @@ -282,7 +257,6 @@ class _EpisodeModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - EpisodeModelCopyWith<$R2, EpisodeModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + EpisodeModelCopyWith<$R2, EpisodeModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _EpisodeModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/folder_model.mapper.dart b/lib/models/items/folder_model.mapper.dart index fcdf4cd19..b6850bce5 100644 --- a/lib/models/items/folder_model.mapper.dart +++ b/lib/models/items/folder_model.mapper.dart @@ -25,42 +25,31 @@ class FolderModelMapper extends SubClassMapperBase { final String id = 'FolderModel'; static List _$items(FolderModel v) => v.items; - static const Field> _f$items = - Field('items', _$items); + static const Field> _f$items = Field('items', _$items); static OverviewModel _$overview(FolderModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(FolderModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(FolderModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(FolderModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(FolderModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(FolderModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(FolderModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static String _$name(FolderModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(FolderModel v) => v.id; static const Field _f$id = Field('id', _$id); static bool? _$canDownload(FolderModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(FolderModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static BaseItemKind? _$jellyType(FolderModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -86,8 +75,7 @@ class FolderModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'FolderModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static FolderModel _instantiate(DecodingData data) { return FolderModel( @@ -112,20 +100,16 @@ class FolderModelMapper extends SubClassMapperBase { mixin FolderModelMappable { FolderModelCopyWith get copyWith => - _FolderModelCopyWithImpl( - this as FolderModel, $identity, $identity); + _FolderModelCopyWithImpl(this as FolderModel, $identity, $identity); } -extension FolderModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, FolderModel, $Out> { +extension FolderModelValueCopy<$R, $Out> on ObjectCopyWith<$R, FolderModel, $Out> { FolderModelCopyWith<$R, FolderModel, $Out> get $asFolderModel => $base.as((v, t, t2) => _FolderModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; +abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -148,25 +132,20 @@ abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> FolderModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _FolderModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, FolderModel, $Out> +class _FolderModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FolderModel, $Out> implements FolderModelCopyWith<$R, FolderModel, $Out> { _FolderModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - FolderModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = FolderModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get items => ListCopyWith( - $value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items => + ListCopyWith($value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? items, @@ -214,7 +193,6 @@ class _FolderModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - FolderModelCopyWith<$R2, FolderModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + FolderModelCopyWith<$R2, FolderModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _FolderModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/item_properties_model.freezed.dart b/lib/models/items/item_properties_model.freezed.dart index 2eea58b75..04548b240 100644 --- a/lib/models/items/item_properties_model.freezed.dart +++ b/lib/models/items/item_properties_model.freezed.dart @@ -183,8 +183,7 @@ extension ItemPropertiesModelPatterns on ItemPropertiesModel { /// @nodoc class _ItemPropertiesModel extends ItemPropertiesModel { - _ItemPropertiesModel({required this.canDelete, required this.canDownload}) - : super._(); + _ItemPropertiesModel({required this.canDelete, required this.canDownload}) : super._(); @override final bool canDelete; diff --git a/lib/models/items/item_shared_models.mapper.dart b/lib/models/items/item_shared_models.mapper.dart index 8624ac268..589b4cf24 100644 --- a/lib/models/items/item_shared_models.mapper.dart +++ b/lib/models/items/item_shared_models.mapper.dart @@ -21,27 +21,20 @@ class UserDataMapper extends ClassMapperBase { final String id = 'UserData'; static bool _$isFavourite(UserData v) => v.isFavourite; - static const Field _f$isFavourite = - Field('isFavourite', _$isFavourite, opt: true, def: false); + static const Field _f$isFavourite = Field('isFavourite', _$isFavourite, opt: true, def: false); static int _$playCount(UserData v) => v.playCount; - static const Field _f$playCount = - Field('playCount', _$playCount, opt: true, def: 0); + static const Field _f$playCount = Field('playCount', _$playCount, opt: true, def: 0); static int? _$unPlayedItemCount(UserData v) => v.unPlayedItemCount; - static const Field _f$unPlayedItemCount = - Field('unPlayedItemCount', _$unPlayedItemCount, opt: true); + static const Field _f$unPlayedItemCount = Field('unPlayedItemCount', _$unPlayedItemCount, opt: true); static int _$playbackPositionTicks(UserData v) => v.playbackPositionTicks; - static const Field _f$playbackPositionTicks = Field( - 'playbackPositionTicks', _$playbackPositionTicks, - opt: true, def: 0); + static const Field _f$playbackPositionTicks = + Field('playbackPositionTicks', _$playbackPositionTicks, opt: true, def: 0); static double _$progress(UserData v) => v.progress; - static const Field _f$progress = - Field('progress', _$progress, opt: true, def: 0); + static const Field _f$progress = Field('progress', _$progress, opt: true, def: 0); static DateTime? _$lastPlayed(UserData v) => v.lastPlayed; - static const Field _f$lastPlayed = - Field('lastPlayed', _$lastPlayed, opt: true); + static const Field _f$lastPlayed = Field('lastPlayed', _$lastPlayed, opt: true); static bool _$played(UserData v) => v.played; - static const Field _f$played = - Field('played', _$played, opt: true, def: false); + static const Field _f$played = Field('played', _$played, opt: true, def: false); @override final MappableFields fields = const { @@ -81,18 +74,15 @@ class UserDataMapper extends ClassMapperBase { mixin UserDataMappable { String toJson() { - return UserDataMapper.ensureInitialized() - .encodeJson(this as UserData); + return UserDataMapper.ensureInitialized().encodeJson(this as UserData); } Map toMap() { - return UserDataMapper.ensureInitialized() - .encodeMap(this as UserData); + return UserDataMapper.ensureInitialized().encodeMap(this as UserData); } UserDataCopyWith get copyWith => - _UserDataCopyWithImpl( - this as UserData, $identity, $identity); + _UserDataCopyWithImpl(this as UserData, $identity, $identity); } extension UserDataValueCopy<$R, $Out> on ObjectCopyWith<$R, UserData, $Out> { @@ -100,8 +90,7 @@ extension UserDataValueCopy<$R, $Out> on ObjectCopyWith<$R, UserData, $Out> { $base.as((v, t, t2) => _UserDataCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class UserDataCopyWith<$R, $In extends UserData, $Out> - implements ClassCopyWith<$R, $In, $Out> { +abstract class UserDataCopyWith<$R, $In extends UserData, $Out> implements ClassCopyWith<$R, $In, $Out> { $R call( {bool? isFavourite, int? playCount, @@ -113,14 +102,12 @@ abstract class UserDataCopyWith<$R, $In extends UserData, $Out> UserDataCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _UserDataCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, UserData, $Out> +class _UserDataCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, UserData, $Out> implements UserDataCopyWith<$R, UserData, $Out> { _UserDataCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - UserDataMapper.ensureInitialized(); + late final ClassMapperBase $mapper = UserDataMapper.ensureInitialized(); @override $R call( {bool? isFavourite, @@ -134,8 +121,7 @@ class _UserDataCopyWithImpl<$R, $Out> if (isFavourite != null) #isFavourite: isFavourite, if (playCount != null) #playCount: playCount, if (unPlayedItemCount != $none) #unPlayedItemCount: unPlayedItemCount, - if (playbackPositionTicks != null) - #playbackPositionTicks: playbackPositionTicks, + if (playbackPositionTicks != null) #playbackPositionTicks: playbackPositionTicks, if (progress != null) #progress: progress, if (lastPlayed != $none) #lastPlayed: lastPlayed, if (played != null) #played: played @@ -144,16 +130,13 @@ class _UserDataCopyWithImpl<$R, $Out> UserData $make(CopyWithData data) => UserData( isFavourite: data.get(#isFavourite, or: $value.isFavourite), playCount: data.get(#playCount, or: $value.playCount), - unPlayedItemCount: - data.get(#unPlayedItemCount, or: $value.unPlayedItemCount), - playbackPositionTicks: - data.get(#playbackPositionTicks, or: $value.playbackPositionTicks), + unPlayedItemCount: data.get(#unPlayedItemCount, or: $value.unPlayedItemCount), + playbackPositionTicks: data.get(#playbackPositionTicks, or: $value.playbackPositionTicks), progress: data.get(#progress, or: $value.progress), lastPlayed: data.get(#lastPlayed, or: $value.lastPlayed), played: data.get(#played, or: $value.played)); @override - UserDataCopyWith<$R2, UserData, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + UserDataCopyWith<$R2, UserData, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _UserDataCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/item_stream_model.mapper.dart b/lib/models/items/item_stream_model.mapper.dart index 0c34fab5e..c36560d6d 100644 --- a/lib/models/items/item_stream_model.mapper.dart +++ b/lib/models/items/item_stream_model.mapper.dart @@ -24,45 +24,33 @@ class ItemStreamModelMapper extends SubClassMapperBase { final String id = 'ItemStreamModel'; static ImagesData? _$parentImages(ItemStreamModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(ItemStreamModel v) => v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static String _$name(ItemStreamModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(ItemStreamModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(ItemStreamModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(ItemStreamModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(ItemStreamModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(ItemStreamModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(ItemStreamModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(ItemStreamModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(ItemStreamModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(ItemStreamModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static bool? _$canDownload(ItemStreamModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static dto.BaseItemKind? _$jellyType(ItemStreamModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -89,8 +77,7 @@ class ItemStreamModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'ItemStreamModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static ItemStreamModel _instantiate(DecodingData data) { return ItemStreamModel( @@ -115,14 +102,11 @@ class ItemStreamModelMapper extends SubClassMapperBase { } mixin ItemStreamModelMappable { - ItemStreamModelCopyWith - get copyWith => - _ItemStreamModelCopyWithImpl( - this as ItemStreamModel, $identity, $identity); + ItemStreamModelCopyWith get copyWith => + _ItemStreamModelCopyWithImpl(this as ItemStreamModel, $identity, $identity); } -extension ItemStreamModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, ItemStreamModel, $Out> { +extension ItemStreamModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemStreamModel, $Out> { ItemStreamModelCopyWith<$R, ItemStreamModel, $Out> get $asItemStreamModel => $base.as((v, t, t2) => _ItemStreamModelCopyWithImpl<$R, $Out>(v, t, t2)); } @@ -149,24 +133,20 @@ abstract class ItemStreamModelCopyWith<$R, $In extends ItemStreamModel, $Out> bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - ItemStreamModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t); + ItemStreamModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _ItemStreamModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, ItemStreamModel, $Out> +class _ItemStreamModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemStreamModel, $Out> implements ItemStreamModelCopyWith<$R, ItemStreamModel, $Out> { _ItemStreamModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = ItemStreamModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? parentImages = $none, @@ -217,7 +197,6 @@ class _ItemStreamModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - ItemStreamModelCopyWith<$R2, ItemStreamModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + ItemStreamModelCopyWith<$R2, ItemStreamModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _ItemStreamModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/media_segments_model.freezed.dart b/lib/models/items/media_segments_model.freezed.dart index 4e8bb0337..5efbe5f45 100644 --- a/lib/models/items/media_segments_model.freezed.dart +++ b/lib/models/items/media_segments_model.freezed.dart @@ -188,8 +188,7 @@ class _MediaSegmentsModel extends MediaSegmentsModel { _MediaSegmentsModel({final List segments = const []}) : _segments = segments, super._(); - factory _MediaSegmentsModel.fromJson(Map json) => - _$MediaSegmentsModelFromJson(json); + factory _MediaSegmentsModel.fromJson(Map json) => _$MediaSegmentsModelFromJson(json); final List _segments; @override @@ -321,8 +320,7 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult maybeWhen( - TResult Function(MediaSegmentType type, Duration start, Duration end)? - $default, { + TResult Function(MediaSegmentType type, Duration start, Duration end)? $default, { required TResult orElse(), }) { final _that = this; @@ -349,8 +347,7 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult when( - TResult Function(MediaSegmentType type, Duration start, Duration end) - $default, + TResult Function(MediaSegmentType type, Duration start, Duration end) $default, ) { final _that = this; switch (_that) { @@ -375,8 +372,7 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(MediaSegmentType type, Duration start, Duration end)? - $default, + TResult? Function(MediaSegmentType type, Duration start, Duration end)? $default, ) { final _that = this; switch (_that) { @@ -391,10 +387,8 @@ extension MediaSegmentPatterns on MediaSegment { /// @nodoc @JsonSerializable() class _MediaSegment extends MediaSegment { - _MediaSegment({required this.type, required this.start, required this.end}) - : super._(); - factory _MediaSegment.fromJson(Map json) => - _$MediaSegmentFromJson(json); + _MediaSegment({required this.type, required this.start, required this.end}) : super._(); + factory _MediaSegment.fromJson(Map json) => _$MediaSegmentFromJson(json); @override final MediaSegmentType type; diff --git a/lib/models/items/media_segments_model.g.dart b/lib/models/items/media_segments_model.g.dart index f7a7c653c..bf1598f9f 100644 --- a/lib/models/items/media_segments_model.g.dart +++ b/lib/models/items/media_segments_model.g.dart @@ -6,28 +6,23 @@ part of 'media_segments_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) => - _MediaSegmentsModel( - segments: (json['segments'] as List?) - ?.map((e) => MediaSegment.fromJson(e as Map)) - .toList() ?? - const [], +_MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) => _MediaSegmentsModel( + segments: + (json['segments'] as List?)?.map((e) => MediaSegment.fromJson(e as Map)).toList() ?? + const [], ); -Map _$MediaSegmentsModelToJson(_MediaSegmentsModel instance) => - { +Map _$MediaSegmentsModelToJson(_MediaSegmentsModel instance) => { 'segments': instance.segments, }; -_MediaSegment _$MediaSegmentFromJson(Map json) => - _MediaSegment( +_MediaSegment _$MediaSegmentFromJson(Map json) => _MediaSegment( type: $enumDecode(_$MediaSegmentTypeEnumMap, json['type']), start: Duration(microseconds: (json['start'] as num).toInt()), end: Duration(microseconds: (json['end'] as num).toInt()), ); -Map _$MediaSegmentToJson(_MediaSegment instance) => - { +Map _$MediaSegmentToJson(_MediaSegment instance) => { 'type': _$MediaSegmentTypeEnumMap[instance.type]!, 'start': instance.start.inMicroseconds, 'end': instance.end.inMicroseconds, diff --git a/lib/models/items/movie_model.mapper.dart b/lib/models/items/movie_model.mapper.dart index 06518196e..0c82ce2b1 100644 --- a/lib/models/items/movie_model.mapper.dart +++ b/lib/models/items/movie_model.mapper.dart @@ -26,82 +26,59 @@ class MovieModelMapper extends SubClassMapperBase { final String id = 'MovieModel'; static String _$originalTitle(MovieModel v) => v.originalTitle; - static const Field _f$originalTitle = - Field('originalTitle', _$originalTitle); + static const Field _f$originalTitle = Field('originalTitle', _$originalTitle); static String? _$path(MovieModel v) => v.path; - static const Field _f$path = - Field('path', _$path, opt: true); + static const Field _f$path = Field('path', _$path, opt: true); static List _$chapters(MovieModel v) => v.chapters; - static const Field> _f$chapters = - Field('chapters', _$chapters, opt: true, def: const []); - static List _$specialFeatures(MovieModel v) => - v.specialFeatures; + static const Field> _f$chapters = Field('chapters', _$chapters, opt: true, def: const []); + static List _$specialFeatures(MovieModel v) => v.specialFeatures; static const Field> _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true, def: const []); static DateTime _$premiereDate(MovieModel v) => v.premiereDate; - static const Field _f$premiereDate = - Field('premiereDate', _$premiereDate); + static const Field _f$premiereDate = Field('premiereDate', _$premiereDate); static String _$sortName(MovieModel v) => v.sortName; - static const Field _f$sortName = - Field('sortName', _$sortName); + static const Field _f$sortName = Field('sortName', _$sortName); static String _$status(MovieModel v) => v.status; static const Field _f$status = Field('status', _$status); static List _$related(MovieModel v) => v.related; static const Field> _f$related = Field('related', _$related, opt: true, def: const []); - static List _$seerrRelated(MovieModel v) => - v.seerrRelated; - static const Field> - _f$seerrRelated = + static List _$seerrRelated(MovieModel v) => v.seerrRelated; + static const Field> _f$seerrRelated = Field('seerrRelated', _$seerrRelated, opt: true, def: const []); - static List _$seerrRecommended(MovieModel v) => - v.seerrRecommended; - static const Field> - _f$seerrRecommended = + static List _$seerrRecommended(MovieModel v) => v.seerrRecommended; + static const Field> _f$seerrRecommended = Field('seerrRecommended', _$seerrRecommended, opt: true, def: const []); static Map? _$providerIds(MovieModel v) => v.providerIds; - static const Field> _f$providerIds = - Field('providerIds', _$providerIds, opt: true); + static const Field> _f$providerIds = Field('providerIds', _$providerIds, opt: true); static String _$name(MovieModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(MovieModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(MovieModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(MovieModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(MovieModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(MovieModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(MovieModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(MovieModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(MovieModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static ImagesData? _$parentImages(MovieModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(MovieModel v) => v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static bool? _$canDownload(MovieModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static bool? _$canDelete(MovieModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(MovieModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -139,8 +116,7 @@ class MovieModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'MovieModel'; @override - late final ClassMapperBase superMapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); static MovieModel _instantiate(DecodingData data) { return MovieModel( @@ -177,38 +153,24 @@ class MovieModelMapper extends SubClassMapperBase { mixin MovieModelMappable { MovieModelCopyWith get copyWith => - _MovieModelCopyWithImpl( - this as MovieModel, $identity, $identity); + _MovieModelCopyWithImpl(this as MovieModel, $identity, $identity); } -extension MovieModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, MovieModel, $Out> { +extension MovieModelValueCopy<$R, $Out> on ObjectCopyWith<$R, MovieModel, $Out> { MovieModelCopyWith<$R, MovieModel, $Out> get $asMovieModel => $base.as((v, t, t2) => _MovieModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> - implements ItemStreamModelCopyWith<$R, $In, $Out> { +abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> implements ItemStreamModelCopyWith<$R, $In, $Out> { ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters; - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures; - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended; - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds; + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures; + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -243,64 +205,39 @@ abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> MovieModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _MovieModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, MovieModel, $Out> +class _MovieModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, MovieModel, $Out> implements MovieModelCopyWith<$R, MovieModel, $Out> { _MovieModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - MovieModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = MovieModelMapper.ensureInitialized(); @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> - get chapters => ListCopyWith($value.chapters, - (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters => + ListCopyWith($value.chapters, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); @override - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures => ListCopyWith( - $value.specialFeatures, - (v, t) => v.copyWith.$chain(t), - (v) => call(specialFeatures: v)); + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures => + ListCopyWith($value.specialFeatures, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get related => ListCopyWith($value.related, - (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related => + ListCopyWith($value.related, (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated => ListCopyWith( - $value.seerrRelated, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRelated: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated => + ListCopyWith($value.seerrRelated, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRelated: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended => ListCopyWith( - $value.seerrRecommended, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRecommended: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended => ListCopyWith( + $value.seerrRecommended, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRecommended: v)); @override - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds => $value.providerIds != null - ? MapCopyWith( - $value.providerIds!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(providerIds: v)) - : null; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds => $value.providerIds != null + ? MapCopyWith($value.providerIds!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(providerIds: v)) + : null; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {String? originalTitle, @@ -366,8 +303,7 @@ class _MovieModelCopyWithImpl<$R, $Out> status: data.get(#status, or: $value.status), related: data.get(#related, or: $value.related), seerrRelated: data.get(#seerrRelated, or: $value.seerrRelated), - seerrRecommended: - data.get(#seerrRecommended, or: $value.seerrRecommended), + seerrRecommended: data.get(#seerrRecommended, or: $value.seerrRecommended), providerIds: data.get(#providerIds, or: $value.providerIds), name: data.get(#name, or: $value.name), id: data.get(#id, or: $value.id), @@ -385,7 +321,6 @@ class _MovieModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - MovieModelCopyWith<$R2, MovieModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + MovieModelCopyWith<$R2, MovieModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _MovieModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/overview_model.mapper.dart b/lib/models/items/overview_model.mapper.dart index dc9619d8c..a146ace49 100644 --- a/lib/models/items/overview_model.mapper.dart +++ b/lib/models/items/overview_model.mapper.dart @@ -21,57 +21,42 @@ class OverviewModelMapper extends ClassMapperBase { final String id = 'OverviewModel'; static Duration? _$runTime(OverviewModel v) => v.runTime; - static const Field _f$runTime = - Field('runTime', _$runTime, opt: true); + static const Field _f$runTime = Field('runTime', _$runTime, opt: true); static String _$summary(OverviewModel v) => v.summary; - static const Field _f$summary = - Field('summary', _$summary, opt: true, def: ""); + static const Field _f$summary = Field('summary', _$summary, opt: true, def: ""); static int? _$yearAired(OverviewModel v) => v.yearAired; - static const Field _f$yearAired = - Field('yearAired', _$yearAired, opt: true); + static const Field _f$yearAired = Field('yearAired', _$yearAired, opt: true); static DateTime? _$dateAdded(OverviewModel v) => v.dateAdded; - static const Field _f$dateAdded = - Field('dateAdded', _$dateAdded, opt: true); + static const Field _f$dateAdded = Field('dateAdded', _$dateAdded, opt: true); static String? _$parentalRating(OverviewModel v) => v.parentalRating; - static const Field _f$parentalRating = - Field('parentalRating', _$parentalRating, opt: true); + static const Field _f$parentalRating = Field('parentalRating', _$parentalRating, opt: true); static int? _$productionYear(OverviewModel v) => v.productionYear; - static const Field _f$productionYear = - Field('productionYear', _$productionYear, opt: true); + static const Field _f$productionYear = Field('productionYear', _$productionYear, opt: true); static double? _$criticRating(OverviewModel v) => v.criticRating; - static const Field _f$criticRating = - Field('criticRating', _$criticRating, opt: true); + static const Field _f$criticRating = Field('criticRating', _$criticRating, opt: true); static double? _$communityRating(OverviewModel v) => v.communityRating; - static const Field _f$communityRating = - Field('communityRating', _$communityRating, opt: true); - static Map? _$trickPlayInfo(OverviewModel v) => - v.trickPlayInfo; - static const Field> - _f$trickPlayInfo = Field('trickPlayInfo', _$trickPlayInfo, opt: true); + static const Field _f$communityRating = Field('communityRating', _$communityRating, opt: true); + static Map? _$trickPlayInfo(OverviewModel v) => v.trickPlayInfo; + static const Field> _f$trickPlayInfo = + Field('trickPlayInfo', _$trickPlayInfo, opt: true); static List? _$chapters(OverviewModel v) => v.chapters; - static const Field> _f$chapters = - Field('chapters', _$chapters, opt: true); + static const Field> _f$chapters = Field('chapters', _$chapters, opt: true); static List? _$externalUrls(OverviewModel v) => v.externalUrls; static const Field> _f$externalUrls = Field('externalUrls', _$externalUrls, opt: true); static List _$studios(OverviewModel v) => v.studios; - static const Field> _f$studios = - Field('studios', _$studios, opt: true, def: const []); + static const Field> _f$studios = Field('studios', _$studios, opt: true, def: const []); static List _$genres(OverviewModel v) => v.genres; - static const Field> _f$genres = - Field('genres', _$genres, opt: true, def: const []); + static const Field> _f$genres = Field('genres', _$genres, opt: true, def: const []); static List _$genreItems(OverviewModel v) => v.genreItems; static const Field> _f$genreItems = Field('genreItems', _$genreItems, opt: true, def: const []); static List _$tags(OverviewModel v) => v.tags; - static const Field> _f$tags = - Field('tags', _$tags, opt: true, def: const []); + static const Field> _f$tags = Field('tags', _$tags, opt: true, def: const []); static List _$people(OverviewModel v) => v.people; - static const Field> _f$people = - Field('people', _$people, opt: true, def: const []); + static const Field> _f$people = Field('people', _$people, opt: true, def: const []); static String? _$seerrUrl(OverviewModel v) => v.seerrUrl; - static const Field _f$seerrUrl = - Field('seerrUrl', _$seerrUrl, opt: true); + static const Field _f$seerrUrl = Field('seerrUrl', _$seerrUrl, opt: true); @override final MappableFields fields = const { @@ -122,28 +107,22 @@ class OverviewModelMapper extends ClassMapperBase { } mixin OverviewModelMappable { - OverviewModelCopyWith - get copyWith => _OverviewModelCopyWithImpl( - this as OverviewModel, $identity, $identity); + OverviewModelCopyWith get copyWith => + _OverviewModelCopyWithImpl(this as OverviewModel, $identity, $identity); } -extension OverviewModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, OverviewModel, $Out> { +extension OverviewModelValueCopy<$R, $Out> on ObjectCopyWith<$R, OverviewModel, $Out> { OverviewModelCopyWith<$R, OverviewModel, $Out> get $asOverviewModel => $base.as((v, t, t2) => _OverviewModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> - implements ClassCopyWith<$R, $In, $Out> { - MapCopyWith<$R, String, TrickPlayModel, - ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo; +abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> implements ClassCopyWith<$R, $In, $Out> { + MapCopyWith<$R, String, TrickPlayModel, ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo; ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? get chapters; - ListCopyWith<$R, ExternalUrls, - ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls; + ListCopyWith<$R, ExternalUrls, ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls; ListCopyWith<$R, Studio, ObjectCopyWith<$R, Studio, Studio>> get studios; ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get genres; - ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> - get genreItems; + ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> get genreItems; ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get tags; ListCopyWith<$R, Person, ObjectCopyWith<$R, Person, Person>> get people; $R call( @@ -167,62 +146,41 @@ abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> OverviewModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _OverviewModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, OverviewModel, $Out> +class _OverviewModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, OverviewModel, $Out> implements OverviewModelCopyWith<$R, OverviewModel, $Out> { _OverviewModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - OverviewModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = OverviewModelMapper.ensureInitialized(); @override - MapCopyWith<$R, String, TrickPlayModel, - ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? - get trickPlayInfo => $value.trickPlayInfo != null - ? MapCopyWith( - $value.trickPlayInfo!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(trickPlayInfo: v)) + MapCopyWith<$R, String, TrickPlayModel, ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo => + $value.trickPlayInfo != null + ? MapCopyWith($value.trickPlayInfo!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(trickPlayInfo: v)) : null; @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? - get chapters => $value.chapters != null - ? ListCopyWith( - $value.chapters!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(chapters: v)) - : null; + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? get chapters => $value.chapters != null + ? ListCopyWith($value.chapters!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)) + : null; @override - ListCopyWith<$R, ExternalUrls, - ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? - get externalUrls => $value.externalUrls != null - ? ListCopyWith( - $value.externalUrls!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(externalUrls: v)) + ListCopyWith<$R, ExternalUrls, ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls => + $value.externalUrls != null + ? ListCopyWith($value.externalUrls!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(externalUrls: v)) : null; @override ListCopyWith<$R, Studio, ObjectCopyWith<$R, Studio, Studio>> get studios => - ListCopyWith($value.studios, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(studios: v)); + ListCopyWith($value.studios, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(studios: v)); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get genres => - ListCopyWith($value.genres, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(genres: v)); + ListCopyWith($value.genres, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(genres: v)); @override - ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> - get genreItems => ListCopyWith( - $value.genreItems, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(genreItems: v)); + ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> get genreItems => + ListCopyWith($value.genreItems, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(genreItems: v)); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get tags => - ListCopyWith($value.tags, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(tags: v)); + ListCopyWith($value.tags, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(tags: v)); @override ListCopyWith<$R, Person, ObjectCopyWith<$R, Person, Person>> get people => - ListCopyWith($value.people, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(people: v)); + ListCopyWith($value.people, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(people: v)); @override $R call( {Object? runTime = $none, @@ -282,7 +240,6 @@ class _OverviewModelCopyWithImpl<$R, $Out> seerrUrl: data.get(#seerrUrl, or: $value.seerrUrl)); @override - OverviewModelCopyWith<$R2, OverviewModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + OverviewModelCopyWith<$R2, OverviewModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _OverviewModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/photos_model.mapper.dart b/lib/models/items/photos_model.mapper.dart index b2d2734d9..b70cd25b9 100644 --- a/lib/models/items/photos_model.mapper.dart +++ b/lib/models/items/photos_model.mapper.dart @@ -25,42 +25,31 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { final String id = 'PhotoAlbumModel'; static List _$photos(PhotoAlbumModel v) => v.photos; - static const Field> _f$photos = - Field('photos', _$photos); + static const Field> _f$photos = Field('photos', _$photos); static String _$name(PhotoAlbumModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PhotoAlbumModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PhotoAlbumModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(PhotoAlbumModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(PhotoAlbumModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(PhotoAlbumModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(PhotoAlbumModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(PhotoAlbumModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(PhotoAlbumModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(PhotoAlbumModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(PhotoAlbumModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(PhotoAlbumModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -86,8 +75,7 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PhotoAlbumModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static PhotoAlbumModel _instantiate(DecodingData data) { return PhotoAlbumModel( @@ -111,22 +99,18 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { } mixin PhotoAlbumModelMappable { - PhotoAlbumModelCopyWith - get copyWith => - _PhotoAlbumModelCopyWithImpl( - this as PhotoAlbumModel, $identity, $identity); + PhotoAlbumModelCopyWith get copyWith => + _PhotoAlbumModelCopyWithImpl(this as PhotoAlbumModel, $identity, $identity); } -extension PhotoAlbumModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, PhotoAlbumModel, $Out> { +extension PhotoAlbumModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PhotoAlbumModel, $Out> { PhotoAlbumModelCopyWith<$R, PhotoAlbumModel, $Out> get $asPhotoAlbumModel => $base.as((v, t, t2) => _PhotoAlbumModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class PhotoAlbumModelCopyWith<$R, $In extends PhotoAlbumModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos; + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -146,29 +130,23 @@ abstract class PhotoAlbumModelCopyWith<$R, $In extends PhotoAlbumModel, $Out> bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - PhotoAlbumModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t); + PhotoAlbumModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PhotoAlbumModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, PhotoAlbumModel, $Out> +class _PhotoAlbumModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PhotoAlbumModel, $Out> implements PhotoAlbumModelCopyWith<$R, PhotoAlbumModel, $Out> { _PhotoAlbumModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - PhotoAlbumModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = PhotoAlbumModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get photos => ListCopyWith($value.photos, (v, t) => v.copyWith.$chain(t), - (v) => call(photos: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos => + ListCopyWith($value.photos, (v, t) => v.copyWith.$chain(t), (v) => call(photos: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? photos, @@ -216,8 +194,7 @@ class _PhotoAlbumModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PhotoAlbumModelCopyWith<$R2, PhotoAlbumModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + PhotoAlbumModelCopyWith<$R2, PhotoAlbumModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _PhotoAlbumModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } @@ -239,51 +216,37 @@ class PhotoModelMapper extends SubClassMapperBase { final String id = 'PhotoModel'; static String? _$albumId(PhotoModel v) => v.albumId; - static const Field _f$albumId = - Field('albumId', _$albumId); + static const Field _f$albumId = Field('albumId', _$albumId); static DateTime? _$dateTaken(PhotoModel v) => v.dateTaken; - static const Field _f$dateTaken = - Field('dateTaken', _$dateTaken); + static const Field _f$dateTaken = Field('dateTaken', _$dateTaken); static ImagesData? _$thumbnail(PhotoModel v) => v.thumbnail; - static const Field _f$thumbnail = - Field('thumbnail', _$thumbnail); + static const Field _f$thumbnail = Field('thumbnail', _$thumbnail); static FladderItemType _$internalType(PhotoModel v) => v.internalType; - static const Field _f$internalType = - Field('internalType', _$internalType); + static const Field _f$internalType = Field('internalType', _$internalType); static String _$name(PhotoModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PhotoModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PhotoModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(PhotoModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(PhotoModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(PhotoModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(PhotoModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(PhotoModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(PhotoModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDownload(PhotoModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static bool? _$canDelete(PhotoModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(PhotoModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -312,8 +275,7 @@ class PhotoModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PhotoModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static PhotoModel _instantiate(DecodingData data) { return PhotoModel( @@ -341,18 +303,15 @@ class PhotoModelMapper extends SubClassMapperBase { mixin PhotoModelMappable { PhotoModelCopyWith get copyWith => - _PhotoModelCopyWithImpl( - this as PhotoModel, $identity, $identity); + _PhotoModelCopyWithImpl(this as PhotoModel, $identity, $identity); } -extension PhotoModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, PhotoModel, $Out> { +extension PhotoModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PhotoModel, $Out> { PhotoModelCopyWith<$R, PhotoModel, $Out> get $asPhotoModel => $base.as((v, t, t2) => _PhotoModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { +abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -378,20 +337,17 @@ abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> PhotoModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PhotoModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, PhotoModel, $Out> +class _PhotoModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PhotoModel, $Out> implements PhotoModelCopyWith<$R, PhotoModel, $Out> { _PhotoModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - PhotoModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = PhotoModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? albumId = $none, @@ -448,7 +404,6 @@ class _PhotoModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PhotoModelCopyWith<$R2, PhotoModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + PhotoModelCopyWith<$R2, PhotoModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _PhotoModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/season_model.mapper.dart b/lib/models/items/season_model.mapper.dart index 0aefaf259..b236cabd0 100644 --- a/lib/models/items/season_model.mapper.dart +++ b/lib/models/items/season_model.mapper.dart @@ -26,64 +26,47 @@ class SeasonModelMapper extends SubClassMapperBase { final String id = 'SeasonModel'; static ImagesData? _$parentImages(SeasonModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static String _$seasonName(SeasonModel v) => v.seasonName; - static const Field _f$seasonName = - Field('seasonName', _$seasonName); + static const Field _f$seasonName = Field('seasonName', _$seasonName); static List _$episodes(SeasonModel v) => v.episodes; static const Field> _f$episodes = Field('episodes', _$episodes, opt: true, def: const []); - static List _$specialFeatures(SeasonModel v) => - v.specialFeatures; - static const Field> - _f$specialFeatures = + static List _$specialFeatures(SeasonModel v) => v.specialFeatures; + static const Field> _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true, def: const []); static int _$episodeCount(SeasonModel v) => v.episodeCount; - static const Field _f$episodeCount = - Field('episodeCount', _$episodeCount); + static const Field _f$episodeCount = Field('episodeCount', _$episodeCount); static String _$seriesId(SeasonModel v) => v.seriesId; - static const Field _f$seriesId = - Field('seriesId', _$seriesId); + static const Field _f$seriesId = Field('seriesId', _$seriesId); static int _$season(SeasonModel v) => v.season; static const Field _f$season = Field('season', _$season); static String _$seriesName(SeasonModel v) => v.seriesName; - static const Field _f$seriesName = - Field('seriesName', _$seriesName); + static const Field _f$seriesName = Field('seriesName', _$seriesName); static String _$name(SeasonModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(SeasonModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SeasonModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(SeasonModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(SeasonModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(SeasonModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(SeasonModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(SeasonModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(SeasonModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(SeasonModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static bool? _$canDownload(SeasonModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static dto.BaseItemKind? _$jellyType(SeasonModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -116,8 +99,7 @@ class SeasonModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'SeasonModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static SeasonModel _instantiate(DecodingData data) { return SeasonModel( @@ -149,25 +131,18 @@ class SeasonModelMapper extends SubClassMapperBase { mixin SeasonModelMappable { SeasonModelCopyWith get copyWith => - _SeasonModelCopyWithImpl( - this as SeasonModel, $identity, $identity); + _SeasonModelCopyWithImpl(this as SeasonModel, $identity, $identity); } -extension SeasonModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, SeasonModel, $Out> { +extension SeasonModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SeasonModel, $Out> { SeasonModelCopyWith<$R, SeasonModel, $Out> get $asSeasonModel => $base.as((v, t, t2) => _SeasonModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes; - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures; +abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes; + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -197,34 +172,24 @@ abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> SeasonModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SeasonModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, SeasonModel, $Out> +class _SeasonModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeasonModel, $Out> implements SeasonModelCopyWith<$R, SeasonModel, $Out> { _SeasonModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - SeasonModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = SeasonModelMapper.ensureInitialized(); @override - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> - get episodes => ListCopyWith($value.episodes, - (v, t) => v.copyWith.$chain(t), (v) => call(episodes: v)); + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes => + ListCopyWith($value.episodes, (v, t) => v.copyWith.$chain(t), (v) => call(episodes: v)); @override - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures => ListCopyWith( - $value.specialFeatures, - (v, t) => v.copyWith.$chain(t), - (v) => call(specialFeatures: v)); + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures => + ListCopyWith($value.specialFeatures, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? parentImages = $none, @@ -293,7 +258,6 @@ class _SeasonModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SeasonModelCopyWith<$R2, SeasonModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + SeasonModelCopyWith<$R2, SeasonModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SeasonModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/series_model.mapper.dart b/lib/models/items/series_model.mapper.dart index c608a30bf..846815b8c 100644 --- a/lib/models/items/series_model.mapper.dart +++ b/lib/models/items/series_model.mapper.dart @@ -27,79 +27,58 @@ class SeriesModelMapper extends SubClassMapperBase { @override final String id = 'SeriesModel'; - static List? _$availableEpisodes(SeriesModel v) => - v.availableEpisodes; + static List? _$availableEpisodes(SeriesModel v) => v.availableEpisodes; static const Field> _f$availableEpisodes = Field('availableEpisodes', _$availableEpisodes, opt: true); static List? _$seasons(SeriesModel v) => v.seasons; - static const Field> _f$seasons = - Field('seasons', _$seasons, opt: true); + static const Field> _f$seasons = Field('seasons', _$seasons, opt: true); static EpisodeModel? _$selectedEpisode(SeriesModel v) => v.selectedEpisode; static const Field _f$selectedEpisode = Field('selectedEpisode', _$selectedEpisode, opt: true); - static List? _$specialFeatures(SeriesModel v) => - v.specialFeatures; - static const Field> - _f$specialFeatures = + static List? _$specialFeatures(SeriesModel v) => v.specialFeatures; + static const Field> _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true); static String _$originalTitle(SeriesModel v) => v.originalTitle; - static const Field _f$originalTitle = - Field('originalTitle', _$originalTitle); + static const Field _f$originalTitle = Field('originalTitle', _$originalTitle); static String _$sortName(SeriesModel v) => v.sortName; - static const Field _f$sortName = - Field('sortName', _$sortName); + static const Field _f$sortName = Field('sortName', _$sortName); static String _$status(SeriesModel v) => v.status; static const Field _f$status = Field('status', _$status); static List _$related(SeriesModel v) => v.related; static const Field> _f$related = Field('related', _$related, opt: true, def: const []); - static List _$seerrRelated(SeriesModel v) => - v.seerrRelated; - static const Field> - _f$seerrRelated = + static List _$seerrRelated(SeriesModel v) => v.seerrRelated; + static const Field> _f$seerrRelated = Field('seerrRelated', _$seerrRelated, opt: true, def: const []); - static List _$seerrRecommended(SeriesModel v) => - v.seerrRecommended; - static const Field> - _f$seerrRecommended = + static List _$seerrRecommended(SeriesModel v) => v.seerrRecommended; + static const Field> _f$seerrRecommended = Field('seerrRecommended', _$seerrRecommended, opt: true, def: const []); static Map? _$providerIds(SeriesModel v) => v.providerIds; - static const Field> _f$providerIds = - Field('providerIds', _$providerIds, opt: true); + static const Field> _f$providerIds = Field('providerIds', _$providerIds, opt: true); static String _$name(SeriesModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(SeriesModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SeriesModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(SeriesModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(SeriesModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(SeriesModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(SeriesModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(SeriesModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(SeriesModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDownload(SeriesModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(SeriesModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static dto.BaseItemKind? _$jellyType(SeriesModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -135,8 +114,7 @@ class SeriesModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'SeriesModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static SeriesModel _instantiate(DecodingData data) { return SeriesModel( @@ -171,43 +149,26 @@ class SeriesModelMapper extends SubClassMapperBase { mixin SeriesModelMappable { SeriesModelCopyWith get copyWith => - _SeriesModelCopyWithImpl( - this as SeriesModel, $identity, $identity); + _SeriesModelCopyWithImpl(this as SeriesModel, $identity, $identity); } -extension SeriesModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, SeriesModel, $Out> { +extension SeriesModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SeriesModel, $Out> { SeriesModelCopyWith<$R, SeriesModel, $Out> get $asSeriesModel => $base.as((v, t, t2) => _SeriesModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? - get availableEpisodes; - ListCopyWith<$R, SeasonModel, - SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons; +abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? get availableEpisodes; + ListCopyWith<$R, SeasonModel, SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons; EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>? get selectedEpisode; - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>>? get specialFeatures; - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended; - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds; + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>>? + get specialFeatures; + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -240,78 +201,50 @@ abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> SeriesModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SeriesModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, SeriesModel, $Out> +class _SeriesModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeriesModel, $Out> implements SeriesModelCopyWith<$R, SeriesModel, $Out> { _SeriesModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - SeriesModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = SeriesModelMapper.ensureInitialized(); @override - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? - get availableEpisodes => $value.availableEpisodes != null - ? ListCopyWith($value.availableEpisodes!, - (v, t) => v.copyWith.$chain(t), (v) => call(availableEpisodes: v)) + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? get availableEpisodes => + $value.availableEpisodes != null + ? ListCopyWith($value.availableEpisodes!, (v, t) => v.copyWith.$chain(t), (v) => call(availableEpisodes: v)) : null; @override - ListCopyWith<$R, SeasonModel, - SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? - get seasons => $value.seasons != null - ? ListCopyWith($value.seasons!, (v, t) => v.copyWith.$chain(t), - (v) => call(seasons: v)) + ListCopyWith<$R, SeasonModel, SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons => + $value.seasons != null + ? ListCopyWith($value.seasons!, (v, t) => v.copyWith.$chain(t), (v) => call(seasons: v)) : null; @override EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>? get selectedEpisode => $value.selectedEpisode?.copyWith.$chain((v) => call(selectedEpisode: v)); @override - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>>? get specialFeatures => - $value.specialFeatures != null - ? ListCopyWith($value.specialFeatures!, - (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)) + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>>? + get specialFeatures => $value.specialFeatures != null + ? ListCopyWith($value.specialFeatures!, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)) : null; @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get related => ListCopyWith($value.related, - (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related => + ListCopyWith($value.related, (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated => ListCopyWith( - $value.seerrRelated, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRelated: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated => + ListCopyWith($value.seerrRelated, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRelated: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended => ListCopyWith( - $value.seerrRecommended, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRecommended: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended => ListCopyWith( + $value.seerrRecommended, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRecommended: v)); @override - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds => $value.providerIds != null - ? MapCopyWith( - $value.providerIds!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(providerIds: v)) - : null; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds => $value.providerIds != null + ? MapCopyWith($value.providerIds!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(providerIds: v)) + : null; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? availableEpisodes = $none, @@ -364,8 +297,7 @@ class _SeriesModelCopyWithImpl<$R, $Out> })); @override SeriesModel $make(CopyWithData data) => SeriesModel( - availableEpisodes: - data.get(#availableEpisodes, or: $value.availableEpisodes), + availableEpisodes: data.get(#availableEpisodes, or: $value.availableEpisodes), seasons: data.get(#seasons, or: $value.seasons), selectedEpisode: data.get(#selectedEpisode, or: $value.selectedEpisode), specialFeatures: data.get(#specialFeatures, or: $value.specialFeatures), @@ -374,8 +306,7 @@ class _SeriesModelCopyWithImpl<$R, $Out> status: data.get(#status, or: $value.status), related: data.get(#related, or: $value.related), seerrRelated: data.get(#seerrRelated, or: $value.seerrRelated), - seerrRecommended: - data.get(#seerrRecommended, or: $value.seerrRecommended), + seerrRecommended: data.get(#seerrRecommended, or: $value.seerrRecommended), providerIds: data.get(#providerIds, or: $value.providerIds), name: data.get(#name, or: $value.name), id: data.get(#id, or: $value.id), @@ -391,7 +322,6 @@ class _SeriesModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SeriesModelCopyWith<$R2, SeriesModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + SeriesModelCopyWith<$R2, SeriesModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SeriesModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/special_feature_model.mapper.dart b/lib/models/items/special_feature_model.mapper.dart index 8ca507d75..f4fcad42a 100644 --- a/lib/models/items/special_feature_model.mapper.dart +++ b/lib/models/items/special_feature_model.mapper.dart @@ -6,8 +6,7 @@ part of 'special_feature_model.dart'; -class SpecialFeatureModelMapper - extends SubClassMapperBase { +class SpecialFeatureModelMapper extends SubClassMapperBase { SpecialFeatureModelMapper._(); static SpecialFeatureModelMapper? _instance; @@ -25,50 +24,35 @@ class SpecialFeatureModelMapper final String id = 'SpecialFeatureModel'; static DateTime? _$dateAired(SpecialFeatureModel v) => v.dateAired; - static const Field _f$dateAired = - Field('dateAired', _$dateAired, opt: true); + static const Field _f$dateAired = Field('dateAired', _$dateAired, opt: true); static String _$name(SpecialFeatureModel v) => v.name; - static const Field _f$name = - Field('name', _$name); + static const Field _f$name = Field('name', _$name); static String _$id(SpecialFeatureModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SpecialFeatureModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(SpecialFeatureModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(SpecialFeatureModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(SpecialFeatureModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(SpecialFeatureModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(SpecialFeatureModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(SpecialFeatureModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static ImagesData? _$parentImages(SpecialFeatureModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); - static MediaStreamsModel _$mediaStreams(SpecialFeatureModel v) => - v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$parentImages = Field('parentImages', _$parentImages); + static MediaStreamsModel _$mediaStreams(SpecialFeatureModel v) => v.mediaStreams; + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static bool? _$canDelete(SpecialFeatureModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(SpecialFeatureModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(SpecialFeatureModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -96,8 +80,7 @@ class SpecialFeatureModelMapper @override final dynamic discriminatorValue = 'SpecialFeatureModel'; @override - late final ClassMapperBase superMapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); static SpecialFeatureModel _instantiate(DecodingData data) { return SpecialFeatureModel( @@ -123,21 +106,18 @@ class SpecialFeatureModelMapper } mixin SpecialFeatureModelMappable { - SpecialFeatureModelCopyWith get copyWith => _SpecialFeatureModelCopyWithImpl< - SpecialFeatureModel, SpecialFeatureModel>( - this as SpecialFeatureModel, $identity, $identity); + SpecialFeatureModelCopyWith get copyWith => + _SpecialFeatureModelCopyWithImpl( + this as SpecialFeatureModel, $identity, $identity); } -extension SpecialFeatureModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, SpecialFeatureModel, $Out> { - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> - get $asSpecialFeatureModel => $base.as( - (v, t, t2) => _SpecialFeatureModelCopyWithImpl<$R, $Out>(v, t, t2)); +extension SpecialFeatureModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SpecialFeatureModel, $Out> { + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> get $asSpecialFeatureModel => + $base.as((v, t, t2) => _SpecialFeatureModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, - $Out> implements ItemStreamModelCopyWith<$R, $In, $Out> { +abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, $Out> + implements ItemStreamModelCopyWith<$R, $In, $Out> { @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -159,24 +139,20 @@ abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - SpecialFeatureModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t); + SpecialFeatureModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SpecialFeatureModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, SpecialFeatureModel, $Out> +class _SpecialFeatureModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SpecialFeatureModel, $Out> implements SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> { _SpecialFeatureModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - SpecialFeatureModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = SpecialFeatureModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? dateAired = $none, @@ -230,7 +206,6 @@ class _SpecialFeatureModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SpecialFeatureModelCopyWith<$R2, SpecialFeatureModel, $Out2> - $chain<$R2, $Out2>(Then<$Out2, $R2> t) => - _SpecialFeatureModelCopyWithImpl<$R2, $Out2>($value, $cast, t); + SpecialFeatureModelCopyWith<$R2, SpecialFeatureModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + _SpecialFeatureModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/trick_play_model.freezed.dart b/lib/models/items/trick_play_model.freezed.dart index b63efabbb..378a0c381 100644 --- a/lib/models/items/trick_play_model.freezed.dart +++ b/lib/models/items/trick_play_model.freezed.dart @@ -27,8 +27,7 @@ mixin _$TrickPlayModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TrickPlayModelCopyWith get copyWith => - _$TrickPlayModelCopyWithImpl( - this as TrickPlayModel, _$identity); + _$TrickPlayModelCopyWithImpl(this as TrickPlayModel, _$identity); /// Serializes this TrickPlayModel to a JSON map. Map toJson(); @@ -41,8 +40,7 @@ mixin _$TrickPlayModel { /// @nodoc abstract mixin class $TrickPlayModelCopyWith<$Res> { - factory $TrickPlayModelCopyWith( - TrickPlayModel value, $Res Function(TrickPlayModel) _then) = + factory $TrickPlayModelCopyWith(TrickPlayModel value, $Res Function(TrickPlayModel) _then) = _$TrickPlayModelCopyWithImpl; @useResult $Res call( @@ -56,8 +54,7 @@ abstract mixin class $TrickPlayModelCopyWith<$Res> { } /// @nodoc -class _$TrickPlayModelCopyWithImpl<$Res> - implements $TrickPlayModelCopyWith<$Res> { +class _$TrickPlayModelCopyWithImpl<$Res> implements $TrickPlayModelCopyWith<$Res> { _$TrickPlayModelCopyWithImpl(this._self, this._then); final TrickPlayModel _self; @@ -202,22 +199,16 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(int width, int height, int tileWidth, int tileHeight, - int thumbnailCount, Duration interval, List images)? + TResult Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, + List images)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _TrickPlayModel() when $default != null: - return $default( - _that.width, - _that.height, - _that.tileWidth, - _that.tileHeight, - _that.thumbnailCount, - _that.interval, - _that.images); + return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, + _that.interval, _that.images); case _: return orElse(); } @@ -238,21 +229,15 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult when( - TResult Function(int width, int height, int tileWidth, int tileHeight, - int thumbnailCount, Duration interval, List images) + TResult Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, + List images) $default, ) { final _that = this; switch (_that) { case _TrickPlayModel(): - return $default( - _that.width, - _that.height, - _that.tileWidth, - _that.tileHeight, - _that.thumbnailCount, - _that.interval, - _that.images); + return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, + _that.interval, _that.images); case _: throw StateError('Unexpected subclass'); } @@ -272,21 +257,15 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(int width, int height, int tileWidth, int tileHeight, - int thumbnailCount, Duration interval, List images)? + TResult? Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, + List images)? $default, ) { final _that = this; switch (_that) { case _TrickPlayModel() when $default != null: - return $default( - _that.width, - _that.height, - _that.tileWidth, - _that.tileHeight, - _that.thumbnailCount, - _that.interval, - _that.images); + return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, + _that.interval, _that.images); case _: return null; } @@ -306,8 +285,7 @@ class _TrickPlayModel extends TrickPlayModel { final List images = const []}) : _images = images, super._(); - factory _TrickPlayModel.fromJson(Map json) => - _$TrickPlayModelFromJson(json); + factory _TrickPlayModel.fromJson(Map json) => _$TrickPlayModelFromJson(json); @override final int width; @@ -352,10 +330,8 @@ class _TrickPlayModel extends TrickPlayModel { } /// @nodoc -abstract mixin class _$TrickPlayModelCopyWith<$Res> - implements $TrickPlayModelCopyWith<$Res> { - factory _$TrickPlayModelCopyWith( - _TrickPlayModel value, $Res Function(_TrickPlayModel) _then) = +abstract mixin class _$TrickPlayModelCopyWith<$Res> implements $TrickPlayModelCopyWith<$Res> { + factory _$TrickPlayModelCopyWith(_TrickPlayModel value, $Res Function(_TrickPlayModel) _then) = __$TrickPlayModelCopyWithImpl; @override @useResult @@ -370,8 +346,7 @@ abstract mixin class _$TrickPlayModelCopyWith<$Res> } /// @nodoc -class __$TrickPlayModelCopyWithImpl<$Res> - implements _$TrickPlayModelCopyWith<$Res> { +class __$TrickPlayModelCopyWithImpl<$Res> implements _$TrickPlayModelCopyWith<$Res> { __$TrickPlayModelCopyWithImpl(this._self, this._then); final _TrickPlayModel _self; diff --git a/lib/models/items/trick_play_model.g.dart b/lib/models/items/trick_play_model.g.dart index 8490c17d5..52d33df0a 100644 --- a/lib/models/items/trick_play_model.g.dart +++ b/lib/models/items/trick_play_model.g.dart @@ -6,22 +6,17 @@ part of 'trick_play_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_TrickPlayModel _$TrickPlayModelFromJson(Map json) => - _TrickPlayModel( +_TrickPlayModel _$TrickPlayModelFromJson(Map json) => _TrickPlayModel( width: (json['width'] as num).toInt(), height: (json['height'] as num).toInt(), tileWidth: (json['tileWidth'] as num).toInt(), tileHeight: (json['tileHeight'] as num).toInt(), thumbnailCount: (json['thumbnailCount'] as num).toInt(), interval: Duration(microseconds: (json['interval'] as num).toInt()), - images: (json['images'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], + images: (json['images'] as List?)?.map((e) => e as String).toList() ?? const [], ); -Map _$TrickPlayModelToJson(_TrickPlayModel instance) => - { +Map _$TrickPlayModelToJson(_TrickPlayModel instance) => { 'width': instance.width, 'height': instance.height, 'tileWidth': instance.tileWidth, diff --git a/lib/models/last_seen_notifications_model.freezed.dart b/lib/models/last_seen_notifications_model.freezed.dart index b76771f8c..45361488e 100644 --- a/lib/models/last_seen_notifications_model.freezed.dart +++ b/lib/models/last_seen_notifications_model.freezed.dart @@ -21,10 +21,9 @@ mixin _$LastSeenNotificationsModel { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $LastSeenNotificationsModelCopyWith - get copyWith => - _$LastSeenNotificationsModelCopyWithImpl( - this as LastSeenNotificationsModel, _$identity); + $LastSeenNotificationsModelCopyWith get copyWith => + _$LastSeenNotificationsModelCopyWithImpl( + this as LastSeenNotificationsModel, _$identity); /// Serializes this LastSeenNotificationsModel to a JSON map. Map toJson(); @@ -37,16 +36,15 @@ mixin _$LastSeenNotificationsModel { /// @nodoc abstract mixin class $LastSeenNotificationsModelCopyWith<$Res> { - factory $LastSeenNotificationsModelCopyWith(LastSeenNotificationsModel value, - $Res Function(LastSeenNotificationsModel) _then) = + factory $LastSeenNotificationsModelCopyWith( + LastSeenNotificationsModel value, $Res Function(LastSeenNotificationsModel) _then) = _$LastSeenNotificationsModelCopyWithImpl; @useResult $Res call({List lastSeen, DateTime? updatedAt}); } /// @nodoc -class _$LastSeenNotificationsModelCopyWithImpl<$Res> - implements $LastSeenNotificationsModelCopyWith<$Res> { +class _$LastSeenNotificationsModelCopyWithImpl<$Res> implements $LastSeenNotificationsModelCopyWith<$Res> { _$LastSeenNotificationsModelCopyWithImpl(this._self, this._then); final LastSeenNotificationsModel _self; @@ -166,8 +164,7 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(List lastSeen, DateTime? updatedAt)? - $default, { + TResult Function(List lastSeen, DateTime? updatedAt)? $default, { required TResult orElse(), }) { final _that = this; @@ -194,8 +191,7 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult when( - TResult Function(List lastSeen, DateTime? updatedAt) - $default, + TResult Function(List lastSeen, DateTime? updatedAt) $default, ) { final _that = this; switch (_that) { @@ -220,8 +216,7 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List lastSeen, DateTime? updatedAt)? - $default, + TResult? Function(List lastSeen, DateTime? updatedAt)? $default, ) { final _that = this; switch (_that) { @@ -236,12 +231,10 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { /// @nodoc @JsonSerializable() class _LastSeenNotificationsModel extends LastSeenNotificationsModel { - const _LastSeenNotificationsModel( - {final List lastSeen = const [], this.updatedAt}) + const _LastSeenNotificationsModel({final List lastSeen = const [], this.updatedAt}) : _lastSeen = lastSeen, super._(); - factory _LastSeenNotificationsModel.fromJson(Map json) => - _$LastSeenNotificationsModelFromJson(json); + factory _LastSeenNotificationsModel.fromJson(Map json) => _$LastSeenNotificationsModelFromJson(json); final List _lastSeen; @override @@ -260,9 +253,8 @@ class _LastSeenNotificationsModel extends LastSeenNotificationsModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$LastSeenNotificationsModelCopyWith<_LastSeenNotificationsModel> - get copyWith => __$LastSeenNotificationsModelCopyWithImpl< - _LastSeenNotificationsModel>(this, _$identity); + _$LastSeenNotificationsModelCopyWith<_LastSeenNotificationsModel> get copyWith => + __$LastSeenNotificationsModelCopyWithImpl<_LastSeenNotificationsModel>(this, _$identity); @override Map toJson() { @@ -278,11 +270,9 @@ class _LastSeenNotificationsModel extends LastSeenNotificationsModel { } /// @nodoc -abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> - implements $LastSeenNotificationsModelCopyWith<$Res> { +abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> implements $LastSeenNotificationsModelCopyWith<$Res> { factory _$LastSeenNotificationsModelCopyWith( - _LastSeenNotificationsModel value, - $Res Function(_LastSeenNotificationsModel) _then) = + _LastSeenNotificationsModel value, $Res Function(_LastSeenNotificationsModel) _then) = __$LastSeenNotificationsModelCopyWithImpl; @override @useResult @@ -290,8 +280,7 @@ abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> } /// @nodoc -class __$LastSeenNotificationsModelCopyWithImpl<$Res> - implements _$LastSeenNotificationsModelCopyWith<$Res> { +class __$LastSeenNotificationsModelCopyWithImpl<$Res> implements _$LastSeenNotificationsModelCopyWith<$Res> { __$LastSeenNotificationsModelCopyWithImpl(this._self, this._then); final _LastSeenNotificationsModel _self; @@ -328,8 +317,7 @@ mixin _$LastSeenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LastSeenModelCopyWith get copyWith => - _$LastSeenModelCopyWithImpl( - this as LastSeenModel, _$identity); + _$LastSeenModelCopyWithImpl(this as LastSeenModel, _$identity); /// Serializes this LastSeenModel to a JSON map. Map toJson(); @@ -342,16 +330,13 @@ mixin _$LastSeenModel { /// @nodoc abstract mixin class $LastSeenModelCopyWith<$Res> { - factory $LastSeenModelCopyWith( - LastSeenModel value, $Res Function(LastSeenModel) _then) = - _$LastSeenModelCopyWithImpl; + factory $LastSeenModelCopyWith(LastSeenModel value, $Res Function(LastSeenModel) _then) = _$LastSeenModelCopyWithImpl; @useResult $Res call({String userId, List lastNotifications}); } /// @nodoc -class _$LastSeenModelCopyWithImpl<$Res> - implements $LastSeenModelCopyWith<$Res> { +class _$LastSeenModelCopyWithImpl<$Res> implements $LastSeenModelCopyWith<$Res> { _$LastSeenModelCopyWithImpl(this._self, this._then); final LastSeenModel _self; @@ -471,8 +456,7 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String userId, List lastNotifications)? - $default, { + TResult Function(String userId, List lastNotifications)? $default, { required TResult orElse(), }) { final _that = this; @@ -499,8 +483,7 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult when( - TResult Function(String userId, List lastNotifications) - $default, + TResult Function(String userId, List lastNotifications) $default, ) { final _that = this; switch (_that) { @@ -525,8 +508,7 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String userId, List lastNotifications)? - $default, + TResult? Function(String userId, List lastNotifications)? $default, ) { final _that = this; switch (_that) { @@ -542,13 +524,10 @@ extension LastSeenModelPatterns on LastSeenModel { @JsonSerializable() class _LastSeenModel extends LastSeenModel { const _LastSeenModel( - {required this.userId, - final List lastNotifications = - const []}) + {required this.userId, final List lastNotifications = const []}) : _lastNotifications = lastNotifications, super._(); - factory _LastSeenModel.fromJson(Map json) => - _$LastSeenModelFromJson(json); + factory _LastSeenModel.fromJson(Map json) => _$LastSeenModelFromJson(json); @override final String userId; @@ -556,8 +535,7 @@ class _LastSeenModel extends LastSeenModel { @override @JsonKey() List get lastNotifications { - if (_lastNotifications is EqualUnmodifiableListView) - return _lastNotifications; + if (_lastNotifications is EqualUnmodifiableListView) return _lastNotifications; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_lastNotifications); } @@ -584,10 +562,8 @@ class _LastSeenModel extends LastSeenModel { } /// @nodoc -abstract mixin class _$LastSeenModelCopyWith<$Res> - implements $LastSeenModelCopyWith<$Res> { - factory _$LastSeenModelCopyWith( - _LastSeenModel value, $Res Function(_LastSeenModel) _then) = +abstract mixin class _$LastSeenModelCopyWith<$Res> implements $LastSeenModelCopyWith<$Res> { + factory _$LastSeenModelCopyWith(_LastSeenModel value, $Res Function(_LastSeenModel) _then) = __$LastSeenModelCopyWithImpl; @override @useResult @@ -595,8 +571,7 @@ abstract mixin class _$LastSeenModelCopyWith<$Res> } /// @nodoc -class __$LastSeenModelCopyWithImpl<$Res> - implements _$LastSeenModelCopyWith<$Res> { +class __$LastSeenModelCopyWithImpl<$Res> implements _$LastSeenModelCopyWith<$Res> { __$LastSeenModelCopyWithImpl(this._self, this._then); final _LastSeenModel _self; diff --git a/lib/models/last_seen_notifications_model.g.dart b/lib/models/last_seen_notifications_model.g.dart index f8dba2948..4f595e607 100644 --- a/lib/models/last_seen_notifications_model.g.dart +++ b/lib/models/last_seen_notifications_model.g.dart @@ -6,37 +6,29 @@ part of 'last_seen_notifications_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LastSeenNotificationsModel _$LastSeenNotificationsModelFromJson( - Map json) => +_LastSeenNotificationsModel _$LastSeenNotificationsModelFromJson(Map json) => _LastSeenNotificationsModel( lastSeen: (json['lastSeen'] as List?) ?.map((e) => LastSeenModel.fromJson(e as Map)) .toList() ?? const [], - updatedAt: json['updatedAt'] == null - ? null - : DateTime.parse(json['updatedAt'] as String), + updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), ); -Map _$LastSeenNotificationsModelToJson( - _LastSeenNotificationsModel instance) => - { +Map _$LastSeenNotificationsModelToJson(_LastSeenNotificationsModel instance) => { 'lastSeen': instance.lastSeen, 'updatedAt': instance.updatedAt?.toIso8601String(), }; -_LastSeenModel _$LastSeenModelFromJson(Map json) => - _LastSeenModel( +_LastSeenModel _$LastSeenModelFromJson(Map json) => _LastSeenModel( userId: json['userId'] as String, lastNotifications: (json['lastNotifications'] as List?) - ?.map( - (e) => NotificationModel.fromJson(e as Map)) + ?.map((e) => NotificationModel.fromJson(e as Map)) .toList() ?? const [], ); -Map _$LastSeenModelToJson(_LastSeenModel instance) => - { +Map _$LastSeenModelToJson(_LastSeenModel instance) => { 'userId': instance.userId, 'lastNotifications': instance.lastNotifications, }; diff --git a/lib/models/library_filter_model.freezed.dart b/lib/models/library_filter_model.freezed.dart index 4c6352e07..af42dd7cd 100644 --- a/lib/models/library_filter_model.freezed.dart +++ b/lib/models/library_filter_model.freezed.dart @@ -34,8 +34,7 @@ mixin _$LibraryFilterModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryFilterModelCopyWith get copyWith => - _$LibraryFilterModelCopyWithImpl( - this as LibraryFilterModel, _$identity); + _$LibraryFilterModelCopyWithImpl(this as LibraryFilterModel, _$identity); /// Serializes this LibraryFilterModel to a JSON map. Map toJson(); @@ -67,8 +66,7 @@ mixin _$LibraryFilterModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $LibraryFilterModelCopyWith<$Res> { - factory $LibraryFilterModelCopyWith( - LibraryFilterModel value, $Res Function(LibraryFilterModel) _then) = + factory $LibraryFilterModelCopyWith(LibraryFilterModel value, $Res Function(LibraryFilterModel) _then) = _$LibraryFilterModelCopyWithImpl; @useResult $Res call( @@ -88,8 +86,7 @@ abstract mixin class $LibraryFilterModelCopyWith<$Res> { } /// @nodoc -class _$LibraryFilterModelCopyWithImpl<$Res> - implements $LibraryFilterModelCopyWith<$Res> { +class _$LibraryFilterModelCopyWithImpl<$Res> implements $LibraryFilterModelCopyWith<$Res> { _$LibraryFilterModelCopyWithImpl(this._self, this._then); final LibraryFilterModel _self; @@ -411,8 +408,7 @@ extension LibraryFilterModelPatterns on LibraryFilterModel { /// @nodoc @JsonSerializable() -class _LibraryFilterModel extends LibraryFilterModel - with DiagnosticableTreeMixin { +class _LibraryFilterModel extends LibraryFilterModel with DiagnosticableTreeMixin { const _LibraryFilterModel( {final Map genres = const {}, final Map itemFilters = const { @@ -454,8 +450,7 @@ class _LibraryFilterModel extends LibraryFilterModel _officialRatings = officialRatings, _types = types, super._(); - factory _LibraryFilterModel.fromJson(Map json) => - _$LibraryFilterModelFromJson(json); + factory _LibraryFilterModel.fromJson(Map json) => _$LibraryFilterModelFromJson(json); final Map _genres; @override @@ -581,10 +576,8 @@ class _LibraryFilterModel extends LibraryFilterModel } /// @nodoc -abstract mixin class _$LibraryFilterModelCopyWith<$Res> - implements $LibraryFilterModelCopyWith<$Res> { - factory _$LibraryFilterModelCopyWith( - _LibraryFilterModel value, $Res Function(_LibraryFilterModel) _then) = +abstract mixin class _$LibraryFilterModelCopyWith<$Res> implements $LibraryFilterModelCopyWith<$Res> { + factory _$LibraryFilterModelCopyWith(_LibraryFilterModel value, $Res Function(_LibraryFilterModel) _then) = __$LibraryFilterModelCopyWithImpl; @override @useResult @@ -605,8 +598,7 @@ abstract mixin class _$LibraryFilterModelCopyWith<$Res> } /// @nodoc -class __$LibraryFilterModelCopyWithImpl<$Res> - implements _$LibraryFilterModelCopyWith<$Res> { +class __$LibraryFilterModelCopyWithImpl<$Res> implements _$LibraryFilterModelCopyWith<$Res> { __$LibraryFilterModelCopyWithImpl(this._self, this._then); final _LibraryFilterModel _self; diff --git a/lib/models/library_filter_model.g.dart b/lib/models/library_filter_model.g.dart index e13400c10..def01bbd3 100644 --- a/lib/models/library_filter_model.g.dart +++ b/lib/models/library_filter_model.g.dart @@ -6,8 +6,7 @@ part of 'library_filter_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => - _LibraryFilterModel( +_LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => _LibraryFilterModel( genres: (json['genres'] as Map?)?.map( (k, e) => MapEntry(k, e as bool), ) ?? @@ -15,14 +14,8 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => itemFilters: (json['itemFilters'] as Map?)?.map( (k, e) => MapEntry($enumDecode(_$ItemFilterEnumMap, k), e as bool), ) ?? - const { - ItemFilter.isplayed: false, - ItemFilter.isunplayed: false, - ItemFilter.isresumable: false - }, - studios: json['studios'] == null - ? const {} - : const StudioEncoder().fromJson(json['studios'] as String), + const {ItemFilter.isplayed: false, ItemFilter.isunplayed: false, ItemFilter.isresumable: false}, + studios: json['studios'] == null ? const {} : const StudioEncoder().fromJson(json['studios'] as String), tags: (json['tags'] as Map?)?.map( (k, e) => MapEntry(k, e as bool), ) ?? @@ -36,8 +29,7 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => ) ?? const {}, types: (json['types'] as Map?)?.map( - (k, e) => - MapEntry($enumDecode(_$FladderItemTypeEnumMap, k), e as bool), + (k, e) => MapEntry($enumDecode(_$FladderItemTypeEnumMap, k), e as bool), ) ?? const { FladderItemType.audio: false, @@ -55,30 +47,22 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => FladderItemType.series: false, FladderItemType.video: false }, - sortingOption: - $enumDecodeNullable(_$SortingOptionsEnumMap, json['sortingOption']) ?? - SortingOptions.sortName, - sortOrder: - $enumDecodeNullable(_$SortingOrderEnumMap, json['sortOrder']) ?? - SortingOrder.ascending, + sortingOption: $enumDecodeNullable(_$SortingOptionsEnumMap, json['sortingOption']) ?? SortingOptions.sortName, + sortOrder: $enumDecodeNullable(_$SortingOrderEnumMap, json['sortOrder']) ?? SortingOrder.ascending, favourites: json['favourites'] as bool? ?? false, hideEmptyShows: json['hideEmptyShows'] as bool? ?? true, recursive: json['recursive'] as bool? ?? true, - groupBy: $enumDecodeNullable(_$GroupByEnumMap, json['groupBy']) ?? - GroupBy.none, + groupBy: $enumDecodeNullable(_$GroupByEnumMap, json['groupBy']) ?? GroupBy.none, ); -Map _$LibraryFilterModelToJson(_LibraryFilterModel instance) => - { +Map _$LibraryFilterModelToJson(_LibraryFilterModel instance) => { 'genres': instance.genres, - 'itemFilters': instance.itemFilters - .map((k, e) => MapEntry(_$ItemFilterEnumMap[k], e)), + 'itemFilters': instance.itemFilters.map((k, e) => MapEntry(_$ItemFilterEnumMap[k], e)), 'studios': const StudioEncoder().toJson(instance.studios), 'tags': instance.tags, 'years': instance.years.map((k, e) => MapEntry(k.toString(), e)), 'officialRatings': instance.officialRatings, - 'types': instance.types - .map((k, e) => MapEntry(_$FladderItemTypeEnumMap[k]!, e)), + 'types': instance.types.map((k, e) => MapEntry(_$FladderItemTypeEnumMap[k]!, e)), 'sortingOption': _$SortingOptionsEnumMap[instance.sortingOption]!, 'sortOrder': _$SortingOrderEnumMap[instance.sortOrder]!, 'favourites': instance.favourites, diff --git a/lib/models/library_filters_model.freezed.dart b/lib/models/library_filters_model.freezed.dart index 114a4e41c..570b78d04 100644 --- a/lib/models/library_filters_model.freezed.dart +++ b/lib/models/library_filters_model.freezed.dart @@ -25,8 +25,7 @@ mixin _$LibraryFiltersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryFiltersModelCopyWith get copyWith => - _$LibraryFiltersModelCopyWithImpl( - this as LibraryFiltersModel, _$identity); + _$LibraryFiltersModelCopyWithImpl(this as LibraryFiltersModel, _$identity); /// Serializes this LibraryFiltersModel to a JSON map. Map toJson(); @@ -39,23 +38,16 @@ mixin _$LibraryFiltersModel { /// @nodoc abstract mixin class $LibraryFiltersModelCopyWith<$Res> { - factory $LibraryFiltersModelCopyWith( - LibraryFiltersModel value, $Res Function(LibraryFiltersModel) _then) = + factory $LibraryFiltersModelCopyWith(LibraryFiltersModel value, $Res Function(LibraryFiltersModel) _then) = _$LibraryFiltersModelCopyWithImpl; @useResult - $Res call( - {String id, - String name, - bool isFavourite, - List ids, - LibraryFilterModel filter}); + $Res call({String id, String name, bool isFavourite, List ids, LibraryFilterModel filter}); $LibraryFilterModelCopyWith<$Res> get filter; } /// @nodoc -class _$LibraryFiltersModelCopyWithImpl<$Res> - implements $LibraryFiltersModelCopyWith<$Res> { +class _$LibraryFiltersModelCopyWithImpl<$Res> implements $LibraryFiltersModelCopyWith<$Res> { _$LibraryFiltersModelCopyWithImpl(this._self, this._then); final LibraryFiltersModel _self; @@ -200,16 +192,13 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String id, String name, bool isFavourite, List ids, - LibraryFilterModel filter)? - $default, { + TResult Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LibraryFiltersModel() when $default != null: - return $default( - _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: return orElse(); } @@ -230,15 +219,12 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult when( - TResult Function(String id, String name, bool isFavourite, List ids, - LibraryFilterModel filter) - $default, + TResult Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter) $default, ) { final _that = this; switch (_that) { case _LibraryFiltersModel(): - return $default( - _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: throw StateError('Unexpected subclass'); } @@ -258,15 +244,12 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String id, String name, bool isFavourite, - List ids, LibraryFilterModel filter)? - $default, + TResult? Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter)? $default, ) { final _that = this; switch (_that) { case _LibraryFiltersModel() when $default != null: - return $default( - _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: return null; } @@ -284,8 +267,7 @@ class _LibraryFiltersModel extends LibraryFiltersModel { this.filter = const LibraryFilterModel()}) : _ids = ids, super._(); - factory _LibraryFiltersModel.fromJson(Map json) => - _$LibraryFiltersModelFromJson(json); + factory _LibraryFiltersModel.fromJson(Map json) => _$LibraryFiltersModelFromJson(json); @override final String id; @@ -312,8 +294,7 @@ class _LibraryFiltersModel extends LibraryFiltersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$LibraryFiltersModelCopyWith<_LibraryFiltersModel> get copyWith => - __$LibraryFiltersModelCopyWithImpl<_LibraryFiltersModel>( - this, _$identity); + __$LibraryFiltersModelCopyWithImpl<_LibraryFiltersModel>(this, _$identity); @override Map toJson() { @@ -329,27 +310,19 @@ class _LibraryFiltersModel extends LibraryFiltersModel { } /// @nodoc -abstract mixin class _$LibraryFiltersModelCopyWith<$Res> - implements $LibraryFiltersModelCopyWith<$Res> { - factory _$LibraryFiltersModelCopyWith(_LibraryFiltersModel value, - $Res Function(_LibraryFiltersModel) _then) = +abstract mixin class _$LibraryFiltersModelCopyWith<$Res> implements $LibraryFiltersModelCopyWith<$Res> { + factory _$LibraryFiltersModelCopyWith(_LibraryFiltersModel value, $Res Function(_LibraryFiltersModel) _then) = __$LibraryFiltersModelCopyWithImpl; @override @useResult - $Res call( - {String id, - String name, - bool isFavourite, - List ids, - LibraryFilterModel filter}); + $Res call({String id, String name, bool isFavourite, List ids, LibraryFilterModel filter}); @override $LibraryFilterModelCopyWith<$Res> get filter; } /// @nodoc -class __$LibraryFiltersModelCopyWithImpl<$Res> - implements _$LibraryFiltersModelCopyWith<$Res> { +class __$LibraryFiltersModelCopyWithImpl<$Res> implements _$LibraryFiltersModelCopyWith<$Res> { __$LibraryFiltersModelCopyWithImpl(this._self, this._then); final _LibraryFiltersModel _self; diff --git a/lib/models/library_filters_model.g.dart b/lib/models/library_filters_model.g.dart index 7778bc523..868967944 100644 --- a/lib/models/library_filters_model.g.dart +++ b/lib/models/library_filters_model.g.dart @@ -6,21 +6,17 @@ part of 'library_filters_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) => - _LibraryFiltersModel( +_LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) => _LibraryFiltersModel( id: json['id'] as String, name: json['name'] as String, isFavourite: json['isFavourite'] as bool, - ids: (json['ids'] as List?)?.map((e) => e as String).toList() ?? - const [], + ids: (json['ids'] as List?)?.map((e) => e as String).toList() ?? const [], filter: json['filter'] == null ? const LibraryFilterModel() : LibraryFilterModel.fromJson(json['filter'] as Map), ); -Map _$LibraryFiltersModelToJson( - _LibraryFiltersModel instance) => - { +Map _$LibraryFiltersModelToJson(_LibraryFiltersModel instance) => { 'id': instance.id, 'name': instance.name, 'isFavourite': instance.isFavourite, diff --git a/lib/models/library_search/library_search_model.freezed.dart b/lib/models/library_search/library_search_model.freezed.dart index 0cbd542b1..fdf9b6718 100644 --- a/lib/models/library_search/library_search_model.freezed.dart +++ b/lib/models/library_search/library_search_model.freezed.dart @@ -31,8 +31,7 @@ mixin _$LibrarySearchModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibrarySearchModelCopyWith get copyWith => - _$LibrarySearchModelCopyWithImpl( - this as LibrarySearchModel, _$identity); + _$LibrarySearchModelCopyWithImpl(this as LibrarySearchModel, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -59,8 +58,7 @@ mixin _$LibrarySearchModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $LibrarySearchModelCopyWith<$Res> { - factory $LibrarySearchModelCopyWith( - LibrarySearchModel value, $Res Function(LibrarySearchModel) _then) = + factory $LibrarySearchModelCopyWith(LibrarySearchModel value, $Res Function(LibrarySearchModel) _then) = _$LibrarySearchModelCopyWithImpl; @useResult $Res call( @@ -80,8 +78,7 @@ abstract mixin class $LibrarySearchModelCopyWith<$Res> { } /// @nodoc -class _$LibrarySearchModelCopyWithImpl<$Res> - implements $LibrarySearchModelCopyWith<$Res> { +class _$LibrarySearchModelCopyWithImpl<$Res> implements $LibrarySearchModelCopyWith<$Res> { _$LibrarySearchModelCopyWithImpl(this._self, this._then); final LibrarySearchModel _self; @@ -391,9 +388,7 @@ extension LibrarySearchModelPatterns on LibrarySearchModel { /// @nodoc -class _LibrarySearchModel - with DiagnosticableTreeMixin - implements LibrarySearchModel { +class _LibrarySearchModel with DiagnosticableTreeMixin implements LibrarySearchModel { const _LibrarySearchModel( {this.loading = false, this.selecteMode = false, @@ -474,8 +469,7 @@ class _LibrarySearchModel @override @JsonKey() Map get libraryItemCounts { - if (_libraryItemCounts is EqualUnmodifiableMapView) - return _libraryItemCounts; + if (_libraryItemCounts is EqualUnmodifiableMapView) return _libraryItemCounts; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_libraryItemCounts); } @@ -516,10 +510,8 @@ class _LibrarySearchModel } /// @nodoc -abstract mixin class _$LibrarySearchModelCopyWith<$Res> - implements $LibrarySearchModelCopyWith<$Res> { - factory _$LibrarySearchModelCopyWith( - _LibrarySearchModel value, $Res Function(_LibrarySearchModel) _then) = +abstract mixin class _$LibrarySearchModelCopyWith<$Res> implements $LibrarySearchModelCopyWith<$Res> { + factory _$LibrarySearchModelCopyWith(_LibrarySearchModel value, $Res Function(_LibrarySearchModel) _then) = __$LibrarySearchModelCopyWithImpl; @override @useResult @@ -541,8 +533,7 @@ abstract mixin class _$LibrarySearchModelCopyWith<$Res> } /// @nodoc -class __$LibrarySearchModelCopyWithImpl<$Res> - implements _$LibrarySearchModelCopyWith<$Res> { +class __$LibrarySearchModelCopyWithImpl<$Res> implements _$LibrarySearchModelCopyWith<$Res> { __$LibrarySearchModelCopyWithImpl(this._self, this._then); final _LibrarySearchModel _self; diff --git a/lib/models/live_tv_model.freezed.dart b/lib/models/live_tv_model.freezed.dart index be6b36050..b2a8bd7f4 100644 --- a/lib/models/live_tv_model.freezed.dart +++ b/lib/models/live_tv_model.freezed.dart @@ -35,9 +35,7 @@ mixin _$LiveTvModel { /// @nodoc abstract mixin class $LiveTvModelCopyWith<$Res> { - factory $LiveTvModelCopyWith( - LiveTvModel value, $Res Function(LiveTvModel) _then) = - _$LiveTvModelCopyWithImpl; + factory $LiveTvModelCopyWith(LiveTvModel value, $Res Function(LiveTvModel) _then) = _$LiveTvModelCopyWithImpl; @useResult $Res call( {DateTime startDate, @@ -183,11 +181,7 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - DateTime startDate, - DateTime endDate, - List channels, - Set loadedChannelIds, + TResult Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, Set loadingChannelIds)? $default, { required TResult orElse(), @@ -195,8 +189,8 @@ extension LiveTvModelPatterns on LiveTvModel { final _that = this; switch (_that) { case _LiveTvModel() when $default != null: - return $default(_that.startDate, _that.endDate, _that.channels, - _that.loadedChannelIds, _that.loadingChannelIds); + return $default( + _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); case _: return orElse(); } @@ -217,19 +211,15 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult when( - TResult Function( - DateTime startDate, - DateTime endDate, - List channels, - Set loadedChannelIds, + TResult Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, Set loadingChannelIds) $default, ) { final _that = this; switch (_that) { case _LiveTvModel(): - return $default(_that.startDate, _that.endDate, _that.channels, - _that.loadedChannelIds, _that.loadingChannelIds); + return $default( + _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); case _: throw StateError('Unexpected subclass'); } @@ -249,19 +239,15 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - DateTime startDate, - DateTime endDate, - List channels, - Set loadedChannelIds, + TResult? Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, Set loadingChannelIds)? $default, ) { final _that = this; switch (_that) { case _LiveTvModel() when $default != null: - return $default(_that.startDate, _that.endDate, _that.channels, - _that.loadedChannelIds, _that.loadingChannelIds); + return $default( + _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); case _: return null; } @@ -307,8 +293,7 @@ class _LiveTvModel implements LiveTvModel { @override @JsonKey() Set get loadingChannelIds { - if (_loadingChannelIds is EqualUnmodifiableSetView) - return _loadingChannelIds; + if (_loadingChannelIds is EqualUnmodifiableSetView) return _loadingChannelIds; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(_loadingChannelIds); } @@ -318,8 +303,7 @@ class _LiveTvModel implements LiveTvModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$LiveTvModelCopyWith<_LiveTvModel> get copyWith => - __$LiveTvModelCopyWithImpl<_LiveTvModel>(this, _$identity); + _$LiveTvModelCopyWith<_LiveTvModel> get copyWith => __$LiveTvModelCopyWithImpl<_LiveTvModel>(this, _$identity); @override String toString() { @@ -328,11 +312,8 @@ class _LiveTvModel implements LiveTvModel { } /// @nodoc -abstract mixin class _$LiveTvModelCopyWith<$Res> - implements $LiveTvModelCopyWith<$Res> { - factory _$LiveTvModelCopyWith( - _LiveTvModel value, $Res Function(_LiveTvModel) _then) = - __$LiveTvModelCopyWithImpl; +abstract mixin class _$LiveTvModelCopyWith<$Res> implements $LiveTvModelCopyWith<$Res> { + factory _$LiveTvModelCopyWith(_LiveTvModel value, $Res Function(_LiveTvModel) _then) = __$LiveTvModelCopyWithImpl; @override @useResult $Res call( diff --git a/lib/models/login_screen_model.freezed.dart b/lib/models/login_screen_model.freezed.dart index 93d679b02..a9a6d702e 100644 --- a/lib/models/login_screen_model.freezed.dart +++ b/lib/models/login_screen_model.freezed.dart @@ -28,8 +28,7 @@ mixin _$LoginScreenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LoginScreenModelCopyWith get copyWith => - _$LoginScreenModelCopyWithImpl( - this as LoginScreenModel, _$identity); + _$LoginScreenModelCopyWithImpl(this as LoginScreenModel, _$identity); @override String toString() { @@ -39,8 +38,7 @@ mixin _$LoginScreenModel { /// @nodoc abstract mixin class $LoginScreenModelCopyWith<$Res> { - factory $LoginScreenModelCopyWith( - LoginScreenModel value, $Res Function(LoginScreenModel) _then) = + factory $LoginScreenModelCopyWith(LoginScreenModel value, $Res Function(LoginScreenModel) _then) = _$LoginScreenModelCopyWithImpl; @useResult $Res call( @@ -57,8 +55,7 @@ abstract mixin class $LoginScreenModelCopyWith<$Res> { } /// @nodoc -class _$LoginScreenModelCopyWithImpl<$Res> - implements $LoginScreenModelCopyWith<$Res> { +class _$LoginScreenModelCopyWithImpl<$Res> implements $LoginScreenModelCopyWith<$Res> { _$LoginScreenModelCopyWithImpl(this._self, this._then); final LoginScreenModel _self; @@ -222,30 +219,16 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - List accounts, - LoginScreenType screen, - ServerLoginModel? serverLoginModel, - String? errorMessage, - bool hasBaseUrl, - bool loading, - String? tempSeerrUrl, - String? tempSeerrSessionCookie)? + TResult Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, + String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LoginScreenModel() when $default != null: - return $default( - _that.accounts, - _that.screen, - _that.serverLoginModel, - _that.errorMessage, - _that.hasBaseUrl, - _that.loading, - _that.tempSeerrUrl, - _that.tempSeerrSessionCookie); + return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, + _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); case _: return orElse(); } @@ -266,29 +249,15 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult when( - TResult Function( - List accounts, - LoginScreenType screen, - ServerLoginModel? serverLoginModel, - String? errorMessage, - bool hasBaseUrl, - bool loading, - String? tempSeerrUrl, - String? tempSeerrSessionCookie) + TResult Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, + String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie) $default, ) { final _that = this; switch (_that) { case _LoginScreenModel(): - return $default( - _that.accounts, - _that.screen, - _that.serverLoginModel, - _that.errorMessage, - _that.hasBaseUrl, - _that.loading, - _that.tempSeerrUrl, - _that.tempSeerrSessionCookie); + return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, + _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); case _: throw StateError('Unexpected subclass'); } @@ -308,29 +277,15 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - List accounts, - LoginScreenType screen, - ServerLoginModel? serverLoginModel, - String? errorMessage, - bool hasBaseUrl, - bool loading, - String? tempSeerrUrl, - String? tempSeerrSessionCookie)? + TResult? Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, + String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie)? $default, ) { final _that = this; switch (_that) { case _LoginScreenModel() when $default != null: - return $default( - _that.accounts, - _that.screen, - _that.serverLoginModel, - _that.errorMessage, - _that.hasBaseUrl, - _that.loading, - _that.tempSeerrUrl, - _that.tempSeerrSessionCookie); + return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, + _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); case _: return null; } @@ -393,10 +348,8 @@ class _LoginScreenModel implements LoginScreenModel { } /// @nodoc -abstract mixin class _$LoginScreenModelCopyWith<$Res> - implements $LoginScreenModelCopyWith<$Res> { - factory _$LoginScreenModelCopyWith( - _LoginScreenModel value, $Res Function(_LoginScreenModel) _then) = +abstract mixin class _$LoginScreenModelCopyWith<$Res> implements $LoginScreenModelCopyWith<$Res> { + factory _$LoginScreenModelCopyWith(_LoginScreenModel value, $Res Function(_LoginScreenModel) _then) = __$LoginScreenModelCopyWithImpl; @override @useResult @@ -415,8 +368,7 @@ abstract mixin class _$LoginScreenModelCopyWith<$Res> } /// @nodoc -class __$LoginScreenModelCopyWithImpl<$Res> - implements _$LoginScreenModelCopyWith<$Res> { +class __$LoginScreenModelCopyWithImpl<$Res> implements _$LoginScreenModelCopyWith<$Res> { __$LoginScreenModelCopyWithImpl(this._self, this._then); final _LoginScreenModel _self; @@ -499,8 +451,7 @@ mixin _$ServerLoginModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ServerLoginModelCopyWith get copyWith => - _$ServerLoginModelCopyWithImpl( - this as ServerLoginModel, _$identity); + _$ServerLoginModelCopyWithImpl(this as ServerLoginModel, _$identity); @override String toString() { @@ -510,22 +461,17 @@ mixin _$ServerLoginModel { /// @nodoc abstract mixin class $ServerLoginModelCopyWith<$Res> { - factory $ServerLoginModelCopyWith( - ServerLoginModel value, $Res Function(ServerLoginModel) _then) = + factory $ServerLoginModelCopyWith(ServerLoginModel value, $Res Function(ServerLoginModel) _then) = _$ServerLoginModelCopyWithImpl; @useResult $Res call( - {CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect}); + {CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect}); $CredentialsModelCopyWith<$Res> get tempCredentials; } /// @nodoc -class _$ServerLoginModelCopyWithImpl<$Res> - implements $ServerLoginModelCopyWith<$Res> { +class _$ServerLoginModelCopyWithImpl<$Res> implements $ServerLoginModelCopyWith<$Res> { _$ServerLoginModelCopyWithImpl(this._self, this._then); final ServerLoginModel _self; @@ -666,18 +612,14 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult maybeWhen( TResult Function( - CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect)? + CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ServerLoginModel() when $default != null: - return $default(_that.tempCredentials, _that.accounts, - _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); case _: return orElse(); } @@ -699,17 +641,13 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult when( TResult Function( - CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect) + CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect) $default, ) { final _that = this; switch (_that) { case _ServerLoginModel(): - return $default(_that.tempCredentials, _that.accounts, - _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); case _: throw StateError('Unexpected subclass'); } @@ -730,17 +668,13 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult? whenOrNull( TResult? Function( - CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect)? + CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect)? $default, ) { final _that = this; switch (_that) { case _ServerLoginModel() when $default != null: - return $default(_that.tempCredentials, _that.accounts, - _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); case _: return null; } @@ -789,26 +723,20 @@ class _ServerLoginModel implements ServerLoginModel { } /// @nodoc -abstract mixin class _$ServerLoginModelCopyWith<$Res> - implements $ServerLoginModelCopyWith<$Res> { - factory _$ServerLoginModelCopyWith( - _ServerLoginModel value, $Res Function(_ServerLoginModel) _then) = +abstract mixin class _$ServerLoginModelCopyWith<$Res> implements $ServerLoginModelCopyWith<$Res> { + factory _$ServerLoginModelCopyWith(_ServerLoginModel value, $Res Function(_ServerLoginModel) _then) = __$ServerLoginModelCopyWithImpl; @override @useResult $Res call( - {CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect}); + {CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect}); @override $CredentialsModelCopyWith<$Res> get tempCredentials; } /// @nodoc -class __$ServerLoginModelCopyWithImpl<$Res> - implements _$ServerLoginModelCopyWith<$Res> { +class __$ServerLoginModelCopyWithImpl<$Res> implements _$ServerLoginModelCopyWith<$Res> { __$ServerLoginModelCopyWithImpl(this._self, this._then); final _ServerLoginModel _self; diff --git a/lib/models/notification_model.freezed.dart b/lib/models/notification_model.freezed.dart index 1799f01ee..5e615277a 100644 --- a/lib/models/notification_model.freezed.dart +++ b/lib/models/notification_model.freezed.dart @@ -124,16 +124,15 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String key, String id, int? childCount, String? image, - String title, String? subtitle, String payLoad)? + TResult Function( + String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _NotificationModel() when $default != null: - return $default(_that.key, _that.id, _that.childCount, _that.image, - _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); case _: return orElse(); } @@ -154,15 +153,14 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult when( - TResult Function(String key, String id, int? childCount, String? image, - String title, String? subtitle, String payLoad) + TResult Function( + String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad) $default, ) { final _that = this; switch (_that) { case _NotificationModel(): - return $default(_that.key, _that.id, _that.childCount, _that.image, - _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); case _: throw StateError('Unexpected subclass'); } @@ -182,15 +180,14 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String key, String id, int? childCount, String? image, - String title, String? subtitle, String payLoad)? + TResult? Function( + String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad)? $default, ) { final _that = this; switch (_that) { case _NotificationModel() when $default != null: - return $default(_that.key, _that.id, _that.childCount, _that.image, - _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); case _: return null; } @@ -208,8 +205,7 @@ class _NotificationModel implements NotificationModel { required this.title, this.subtitle, required this.payLoad}); - factory _NotificationModel.fromJson(Map json) => - _$NotificationModelFromJson(json); + factory _NotificationModel.fromJson(Map json) => _$NotificationModelFromJson(json); @override final String key; diff --git a/lib/models/notification_model.g.dart b/lib/models/notification_model.g.dart index 1a57c29a7..2871718d4 100644 --- a/lib/models/notification_model.g.dart +++ b/lib/models/notification_model.g.dart @@ -6,8 +6,7 @@ part of 'notification_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_NotificationModel _$NotificationModelFromJson(Map json) => - _NotificationModel( +_NotificationModel _$NotificationModelFromJson(Map json) => _NotificationModel( key: json['key'] as String, id: json['id'] as String, childCount: (json['childCount'] as num?)?.toInt(), @@ -17,8 +16,7 @@ _NotificationModel _$NotificationModelFromJson(Map json) => payLoad: json['payLoad'] as String, ); -Map _$NotificationModelToJson(_NotificationModel instance) => - { +Map _$NotificationModelToJson(_NotificationModel instance) => { 'key': instance.key, 'id': instance.id, 'childCount': instance.childCount, diff --git a/lib/models/playback/playback_model.dart b/lib/models/playback/playback_model.dart index 32f77e593..c66785c39 100644 --- a/lib/models/playback/playback_model.dart +++ b/lib/models/playback/playback_model.dart @@ -1,12 +1,8 @@ import 'dart:developer'; -import 'package:flutter/material.dart' hide ConnectionState; - import 'package:background_downloader/background_downloader.dart'; import 'package:chopper/chopper.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; - import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/channel_model.dart'; @@ -25,6 +21,7 @@ import 'package:fladder/models/playback/transcode_playback_model.dart'; import 'package:fladder/models/playback/tv_playback_model.dart'; import 'package:fladder/models/settings/video_player_settings.dart'; import 'package:fladder/models/syncing/sync_item.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/models/video_stream_model.dart'; import 'package:fladder/profiles/default_profile.dart'; import 'package:fladder/providers/api_provider.dart'; @@ -32,6 +29,7 @@ import 'package:fladder/providers/connectivity_provider.dart'; import 'package:fladder/providers/service_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; import 'package:fladder/providers/sync_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/util/bitrate_helper.dart'; @@ -40,6 +38,8 @@ import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/util/map_bool_helper.dart'; import 'package:fladder/util/streams_selection.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; +import 'package:flutter/material.dart' hide ConnectionState; +import 'package:flutter_riverpod/flutter_riverpod.dart'; class Media { final String url; @@ -87,14 +87,18 @@ class PlaybackModel { Future updatePlaybackPosition(Duration position, bool isPlaying, Ref ref) => throw UnimplementedError(); + Future playbackStarted(Duration position, Ref ref) => throw UnimplementedError(); + Future playbackStopped(Duration position, Duration? totalDuration, Ref ref) => throw UnimplementedError(); void dispose() {} final MediaStreamsModel? mediaStreams; + List? get subStreams => throw UnimplementedError(); + List? get audioStreams => throw UnimplementedError(); Future? startDuration() async => item.userData.playBackPosition; @@ -102,7 +106,9 @@ class PlaybackModel { PlaybackModel? updateUserData(UserData userData) => throw UnimplementedError(); Future? setSubtitle(SubStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); + Future? setAudio(AudioStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); + Future? setQualityOption(Map map) => throw UnimplementedError(); ItemBaseModel? get nextVideo { @@ -143,7 +149,35 @@ class PlaybackModelHelper { JellyService get api => ref.read(jellyApiProvider); + Future _ensureLocalTrackSwitchAutoplay() async { + for (var attempt = 0; attempt < 8; attempt++) { + final playbackState = ref.read(mediaPlaybackProvider); + if (!playbackState.buffering && !playbackState.playing) { + await ref.read(videoPlayerProvider).play(); + return; + } + if (playbackState.playing) { + return; + } + await Future.delayed(const Duration(milliseconds: 250)); + } + } + Future loadNewVideo(ItemBaseModel newItem) async { + // When SyncPlay is active, route the next/previous episode through + // the group queue so every participant follows. The local player + // will be (re-)started when the server's PlayQueue update is + // received in `_handlePlayQueue` (cf. AGENTS.md SyncPlay rule: + // next episode must follow the same flow as initial play). + if (ref.read(isSyncPlayActiveProvider)) { + await ref.read(syncPlayProvider.notifier).setNewQueue( + itemIds: [newItem.id], + playingItemPosition: 0, + startPositionTicks: 0, + ); + return null; + } + ref.read(videoPlayerProvider).pause(); ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(buffering: true)); final currentModel = ref.read(playBackModel); @@ -493,7 +527,10 @@ class PlaybackModelHelper { return Response(response.base, (response.body?.items?.map((e) => EpisodeModel.fromBaseDto(e, ref)).toList() ?? [])); } - Future shouldReload(PlaybackModel playbackModel) async { + Future shouldReload( + PlaybackModel playbackModel, { + bool isLocalTrackSwitch = false, + }) async { if (playbackModel is OfflinePlaybackModel) { return; } @@ -503,7 +540,33 @@ class PlaybackModelHelper { final userId = ref.read(userProvider)?.id; if (userId?.isEmpty == true) return; - final currentPosition = ref.read(mediaPlaybackProvider.select((value) => value.position)); + // Check if syncplay is active and get position from syncplay if so + final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); + final Duration currentPosition; + + final shouldReportGroupBuffering = (isSyncPlayActive && !isLocalTrackSwitch); + + if (isSyncPlayActive) { + // Set reloading state in the player notifier to prevent premature ready reporting + ref.read(videoPlayerProvider.notifier).setReloading( + true, + reportToSyncPlay: shouldReportGroupBuffering, + ); + + // Get syncplay position FIRST before any state changes + final syncPlayState = ref.read(syncPlayProvider); + final positionTicks = syncPlayState.positionTicks; + // Convert ticks to Duration: 1 tick = 100 nanoseconds, 10000 ticks = 1 millisecond + currentPosition = Duration(milliseconds: ticksToMilliseconds(positionTicks)); + + if (shouldReportGroupBuffering) { + // Report buffering BEFORE stop/reload only when this reload should + // affect group flow. + await ref.read(syncPlayProvider.notifier).reportBuffering(); + } + } else { + currentPosition = ref.read(mediaPlaybackProvider.select((value) => value.position)); + } final audioIndex = selectAudioStream( ref.read(userProvider.select((value) => value?.userConfiguration?.rememberAudioSelections ?? true)), @@ -593,9 +656,30 @@ class PlaybackModelHelper { bitRateOptions: playbackModel.bitRateOptions, ); } - if (newModel == null) return; + if (newModel == null) { + if (isSyncPlayActive) { + ref.read(videoPlayerProvider.notifier).setReloading(false); + } + return; + } if (newModel.runtimeType != playbackModel.runtimeType || newModel is TranscodePlaybackModel) { - ref.read(videoPlayerProvider.notifier).loadPlaybackItem(newModel, currentPosition); + await ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + newModel, + currentPosition, + waitForSyncPlayCommand: shouldReportGroupBuffering, + ); + if (isLocalTrackSwitch) { + await _ensureLocalTrackSwitchAutoplay(); + } + } else if (isSyncPlayActive) { + // If we didn't call loadPlaybackItem, we must reset reloading state + ref.read(videoPlayerProvider.notifier).setReloading( + false, + reportToSyncPlay: false, + ); + if (isLocalTrackSwitch) { + await _ensureLocalTrackSwitchAutoplay(); + } } } } diff --git a/lib/models/seerr_credentials_model.freezed.dart b/lib/models/seerr_credentials_model.freezed.dart index f5b9cbb10..a8017ac5a 100644 --- a/lib/models/seerr_credentials_model.freezed.dart +++ b/lib/models/seerr_credentials_model.freezed.dart @@ -24,8 +24,7 @@ mixin _$SeerrCredentialsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrCredentialsModelCopyWith get copyWith => - _$SeerrCredentialsModelCopyWithImpl( - this as SeerrCredentialsModel, _$identity); + _$SeerrCredentialsModelCopyWithImpl(this as SeerrCredentialsModel, _$identity); /// Serializes this SeerrCredentialsModel to a JSON map. Map toJson(); @@ -38,20 +37,14 @@ mixin _$SeerrCredentialsModel { /// @nodoc abstract mixin class $SeerrCredentialsModelCopyWith<$Res> { - factory $SeerrCredentialsModelCopyWith(SeerrCredentialsModel value, - $Res Function(SeerrCredentialsModel) _then) = + factory $SeerrCredentialsModelCopyWith(SeerrCredentialsModel value, $Res Function(SeerrCredentialsModel) _then) = _$SeerrCredentialsModelCopyWithImpl; @useResult - $Res call( - {String serverUrl, - String apiKey, - String sessionCookie, - Map customHeaders}); + $Res call({String serverUrl, String apiKey, String sessionCookie, Map customHeaders}); } /// @nodoc -class _$SeerrCredentialsModelCopyWithImpl<$Res> - implements $SeerrCredentialsModelCopyWith<$Res> { +class _$SeerrCredentialsModelCopyWithImpl<$Res> implements $SeerrCredentialsModelCopyWith<$Res> { _$SeerrCredentialsModelCopyWithImpl(this._self, this._then); final SeerrCredentialsModel _self; @@ -181,16 +174,14 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String serverUrl, String apiKey, String sessionCookie, - Map customHeaders)? + TResult Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _SeerrCredentialsModel() when $default != null: - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, - _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); case _: return orElse(); } @@ -211,15 +202,12 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult when( - TResult Function(String serverUrl, String apiKey, String sessionCookie, - Map customHeaders) - $default, + TResult Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders) $default, ) { final _that = this; switch (_that) { case _SeerrCredentialsModel(): - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, - _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); case _: throw StateError('Unexpected subclass'); } @@ -239,15 +227,13 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String serverUrl, String apiKey, String sessionCookie, - Map customHeaders)? + TResult? Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders)? $default, ) { final _that = this; switch (_that) { case _SeerrCredentialsModel() when $default != null: - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, - _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); case _: return null; } @@ -264,8 +250,7 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { final Map customHeaders = const {}}) : _customHeaders = customHeaders, super._(); - factory _SeerrCredentialsModel.fromJson(Map json) => - _$SeerrCredentialsModelFromJson(json); + factory _SeerrCredentialsModel.fromJson(Map json) => _$SeerrCredentialsModelFromJson(json); @override @JsonKey() @@ -291,8 +276,7 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SeerrCredentialsModelCopyWith<_SeerrCredentialsModel> get copyWith => - __$SeerrCredentialsModelCopyWithImpl<_SeerrCredentialsModel>( - this, _$identity); + __$SeerrCredentialsModelCopyWithImpl<_SeerrCredentialsModel>(this, _$identity); @override Map toJson() { @@ -308,23 +292,16 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { } /// @nodoc -abstract mixin class _$SeerrCredentialsModelCopyWith<$Res> - implements $SeerrCredentialsModelCopyWith<$Res> { - factory _$SeerrCredentialsModelCopyWith(_SeerrCredentialsModel value, - $Res Function(_SeerrCredentialsModel) _then) = +abstract mixin class _$SeerrCredentialsModelCopyWith<$Res> implements $SeerrCredentialsModelCopyWith<$Res> { + factory _$SeerrCredentialsModelCopyWith(_SeerrCredentialsModel value, $Res Function(_SeerrCredentialsModel) _then) = __$SeerrCredentialsModelCopyWithImpl; @override @useResult - $Res call( - {String serverUrl, - String apiKey, - String sessionCookie, - Map customHeaders}); + $Res call({String serverUrl, String apiKey, String sessionCookie, Map customHeaders}); } /// @nodoc -class __$SeerrCredentialsModelCopyWithImpl<$Res> - implements _$SeerrCredentialsModelCopyWith<$Res> { +class __$SeerrCredentialsModelCopyWithImpl<$Res> implements _$SeerrCredentialsModelCopyWith<$Res> { __$SeerrCredentialsModelCopyWithImpl(this._self, this._then); final _SeerrCredentialsModel _self; diff --git a/lib/models/seerr_credentials_model.g.dart b/lib/models/seerr_credentials_model.g.dart index 3346cdca2..8eaa87a8c 100644 --- a/lib/models/seerr_credentials_model.g.dart +++ b/lib/models/seerr_credentials_model.g.dart @@ -6,9 +6,7 @@ part of 'seerr_credentials_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_SeerrCredentialsModel _$SeerrCredentialsModelFromJson( - Map json) => - _SeerrCredentialsModel( +_SeerrCredentialsModel _$SeerrCredentialsModelFromJson(Map json) => _SeerrCredentialsModel( serverUrl: json['serverUrl'] as String? ?? "", apiKey: json['apiKey'] as String? ?? "", sessionCookie: json['sessionCookie'] as String? ?? "", @@ -18,9 +16,7 @@ _SeerrCredentialsModel _$SeerrCredentialsModelFromJson( const {}, ); -Map _$SeerrCredentialsModelToJson( - _SeerrCredentialsModel instance) => - { +Map _$SeerrCredentialsModelToJson(_SeerrCredentialsModel instance) => { 'serverUrl': instance.serverUrl, 'apiKey': instance.apiKey, 'sessionCookie': instance.sessionCookie, diff --git a/lib/models/settings/client_settings_model.freezed.dart b/lib/models/settings/client_settings_model.freezed.dart index a7af8642f..8e667950f 100644 --- a/lib/models/settings/client_settings_model.freezed.dart +++ b/lib/models/settings/client_settings_model.freezed.dart @@ -53,8 +53,7 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ClientSettingsModelCopyWith get copyWith => - _$ClientSettingsModelCopyWithImpl( - this as ClientSettingsModel, _$identity); + _$ClientSettingsModelCopyWithImpl(this as ClientSettingsModel, _$identity); /// Serializes this ClientSettingsModel to a JSON map. Map toJson(); @@ -64,14 +63,12 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { properties ..add(DiagnosticsProperty('type', 'ClientSettingsModel')) ..add(DiagnosticsProperty('syncPath', syncPath)) - ..add( - DiagnosticsProperty('transcodeDownloadModel', transcodeDownloadModel)) + ..add(DiagnosticsProperty('transcodeDownloadModel', transcodeDownloadModel)) ..add(DiagnosticsProperty('position', position)) ..add(DiagnosticsProperty('size', size)) ..add(DiagnosticsProperty('timeOut', timeOut)) ..add(DiagnosticsProperty('nextUpDateCutoff', nextUpDateCutoff)) - ..add(DiagnosticsProperty( - 'updateNotificationsInterval', updateNotificationsInterval)) + ..add(DiagnosticsProperty('updateNotificationsInterval', updateNotificationsInterval)) ..add(DiagnosticsProperty('themeMode', themeMode)) ..add(DiagnosticsProperty('themeColor', themeColor)) ..add(DiagnosticsProperty('deriveColorsFromItem', deriveColorsFromItem)) @@ -85,10 +82,8 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) ..add(DiagnosticsProperty('expandSideBar', expandSideBar)) - ..add( - DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add( - DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('enableBlurEffects', enableBlurEffects)) @@ -109,8 +104,7 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $ClientSettingsModelCopyWith<$Res> { - factory $ClientSettingsModelCopyWith( - ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = + factory $ClientSettingsModelCopyWith(ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = _$ClientSettingsModelCopyWithImpl; @useResult $Res call( @@ -151,8 +145,7 @@ abstract mixin class $ClientSettingsModelCopyWith<$Res> { } /// @nodoc -class _$ClientSettingsModelCopyWithImpl<$Res> - implements $ClientSettingsModelCopyWith<$Res> { +class _$ClientSettingsModelCopyWithImpl<$Res> implements $ClientSettingsModelCopyWith<$Res> { _$ClientSettingsModelCopyWithImpl(this._self, this._then); final ClientSettingsModel _self; @@ -333,8 +326,7 @@ class _$ClientSettingsModelCopyWithImpl<$Res> @override @pragma('vm:prefer-inline') $TranscodeDownloadModelCopyWith<$Res> get transcodeDownloadModel { - return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel, - (value) { + return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel, (value) { return _then(_self.copyWith(transcodeDownloadModel: value)); }); } @@ -694,8 +686,7 @@ extension ClientSettingsModelPatterns on ClientSettingsModel { /// @nodoc @JsonSerializable() -class _ClientSettingsModel extends ClientSettingsModel - with DiagnosticableTreeMixin { +class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMixin { _ClientSettingsModel( {this.syncPath, required this.transcodeDownloadModel, @@ -731,8 +722,7 @@ class _ClientSettingsModel extends ClientSettingsModel final Map shortcuts = const {}}) : _shortcuts = shortcuts, super._(); - factory _ClientSettingsModel.fromJson(Map json) => - _$ClientSettingsModelFromJson(json); + factory _ClientSettingsModel.fromJson(Map json) => _$ClientSettingsModelFromJson(json); @override final String? syncPath; @@ -836,8 +826,7 @@ class _ClientSettingsModel extends ClientSettingsModel @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ClientSettingsModelCopyWith<_ClientSettingsModel> get copyWith => - __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>( - this, _$identity); + __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>(this, _$identity); @override Map toJson() { @@ -851,14 +840,12 @@ class _ClientSettingsModel extends ClientSettingsModel properties ..add(DiagnosticsProperty('type', 'ClientSettingsModel.internal')) ..add(DiagnosticsProperty('syncPath', syncPath)) - ..add( - DiagnosticsProperty('transcodeDownloadModel', transcodeDownloadModel)) + ..add(DiagnosticsProperty('transcodeDownloadModel', transcodeDownloadModel)) ..add(DiagnosticsProperty('position', position)) ..add(DiagnosticsProperty('size', size)) ..add(DiagnosticsProperty('timeOut', timeOut)) ..add(DiagnosticsProperty('nextUpDateCutoff', nextUpDateCutoff)) - ..add(DiagnosticsProperty( - 'updateNotificationsInterval', updateNotificationsInterval)) + ..add(DiagnosticsProperty('updateNotificationsInterval', updateNotificationsInterval)) ..add(DiagnosticsProperty('themeMode', themeMode)) ..add(DiagnosticsProperty('themeColor', themeColor)) ..add(DiagnosticsProperty('deriveColorsFromItem', deriveColorsFromItem)) @@ -872,10 +859,8 @@ class _ClientSettingsModel extends ClientSettingsModel ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) ..add(DiagnosticsProperty('expandSideBar', expandSideBar)) - ..add( - DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add( - DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('enableBlurEffects', enableBlurEffects)) @@ -895,10 +880,8 @@ class _ClientSettingsModel extends ClientSettingsModel } /// @nodoc -abstract mixin class _$ClientSettingsModelCopyWith<$Res> - implements $ClientSettingsModelCopyWith<$Res> { - factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, - $Res Function(_ClientSettingsModel) _then) = +abstract mixin class _$ClientSettingsModelCopyWith<$Res> implements $ClientSettingsModelCopyWith<$Res> { + factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, $Res Function(_ClientSettingsModel) _then) = __$ClientSettingsModelCopyWithImpl; @override @useResult @@ -941,8 +924,7 @@ abstract mixin class _$ClientSettingsModelCopyWith<$Res> } /// @nodoc -class __$ClientSettingsModelCopyWithImpl<$Res> - implements _$ClientSettingsModelCopyWith<$Res> { +class __$ClientSettingsModelCopyWithImpl<$Res> implements _$ClientSettingsModelCopyWith<$Res> { __$ClientSettingsModelCopyWithImpl(this._self, this._then); final _ClientSettingsModel _self; @@ -1123,8 +1105,7 @@ class __$ClientSettingsModelCopyWithImpl<$Res> @override @pragma('vm:prefer-inline') $TranscodeDownloadModelCopyWith<$Res> get transcodeDownloadModel { - return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel, - (value) { + return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel, (value) { return _then(_self.copyWith(transcodeDownloadModel: value)); }); } diff --git a/lib/models/settings/client_settings_model.g.dart b/lib/models/settings/client_settings_model.g.dart index 613f3c3db..ec5f247d1 100644 --- a/lib/models/settings/client_settings_model.g.dart +++ b/lib/models/settings/client_settings_model.g.dart @@ -6,37 +6,26 @@ part of 'client_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => - _ClientSettingsModel( +_ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => _ClientSettingsModel( syncPath: json['syncPath'] as String?, - transcodeDownloadModel: TranscodeDownloadModel.fromJson( - json['transcodeDownloadModel'] as Map), - position: json['position'] == null - ? const Vector2(x: 0, y: 0) - : Vector2.fromJson(json['position'] as String), - size: json['size'] == null - ? const Vector2(x: 1280, y: 720) - : Vector2.fromJson(json['size'] as String), + transcodeDownloadModel: TranscodeDownloadModel.fromJson(json['transcodeDownloadModel'] as Map), + position: json['position'] == null ? const Vector2(x: 0, y: 0) : Vector2.fromJson(json['position'] as String), + size: json['size'] == null ? const Vector2(x: 1280, y: 720) : Vector2.fromJson(json['size'] as String), timeOut: json['timeOut'] == null ? const Duration(seconds: 30) : Duration(microseconds: (json['timeOut'] as num).toInt()), - nextUpDateCutoff: json['nextUpDateCutoff'] == null - ? null - : Duration(microseconds: (json['nextUpDateCutoff'] as num).toInt()), + nextUpDateCutoff: + json['nextUpDateCutoff'] == null ? null : Duration(microseconds: (json['nextUpDateCutoff'] as num).toInt()), updateNotificationsInterval: json['updateNotificationsInterval'] == null ? const Duration(hours: 1) - : Duration( - microseconds: - (json['updateNotificationsInterval'] as num).toInt()), - themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ?? - ThemeMode.system, + : Duration(microseconds: (json['updateNotificationsInterval'] as num).toInt()), + themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ?? ThemeMode.system, themeColor: $enumDecodeNullable(_$ColorThemesEnumMap, json['themeColor']), deriveColorsFromItem: json['deriveColorsFromItem'] as bool? ?? true, amoledBlack: json['amoledBlack'] as bool? ?? false, blurPlaceHolders: json['blurPlaceHolders'] as bool? ?? true, blurUpcomingEpisodes: json['blurUpcomingEpisodes'] as bool? ?? false, - selectedLocale: - const LocaleConvert().fromJson(json['selectedLocale'] as String?), + selectedLocale: const LocaleConvert().fromJson(json['selectedLocale'] as String?), enableMediaKeys: json['enableMediaKeys'] as bool? ?? true, posterSize: (json['posterSize'] as num?)?.toDouble() ?? 1.0, pinchPosterZoom: json['pinchPosterZoom'] as bool? ?? false, @@ -44,14 +33,10 @@ _ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => requireWifi: json['requireWifi'] as bool? ?? true, expandSideBar: json['expandSideBar'] as bool? ?? false, showAllCollectionTypes: json['showAllCollectionTypes'] as bool? ?? false, - maxConcurrentDownloads: - (json['maxConcurrentDownloads'] as num?)?.toInt() ?? 2, - schemeVariant: $enumDecodeNullable( - _$DynamicSchemeVariantEnumMap, json['schemeVariant']) ?? - DynamicSchemeVariant.rainbow, - backgroundImage: $enumDecodeNullable( - _$BackgroundTypeEnumMap, json['backgroundImage']) ?? - BackgroundType.blurred, + maxConcurrentDownloads: (json['maxConcurrentDownloads'] as num?)?.toInt() ?? 2, + schemeVariant: + $enumDecodeNullable(_$DynamicSchemeVariantEnumMap, json['schemeVariant']) ?? DynamicSchemeVariant.rainbow, + backgroundImage: $enumDecodeNullable(_$BackgroundTypeEnumMap, json['backgroundImage']) ?? BackgroundType.blurred, enableBlurEffects: json['enableBlurEffects'] as bool? ?? false, checkForUpdates: json['checkForUpdates'] as bool? ?? true, usePosterForLibrary: json['usePosterForLibrary'] as bool? ?? false, @@ -60,23 +45,20 @@ _ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => lastViewedUpdate: json['lastViewedUpdate'] as String?, libraryPageSize: (json['libraryPageSize'] as num?)?.toInt(), shortcuts: (json['shortcuts'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$GlobalHotKeysEnumMap, k), - KeyCombination.fromJson(e as Map)), + (k, e) => + MapEntry($enumDecode(_$GlobalHotKeysEnumMap, k), KeyCombination.fromJson(e as Map)), ) ?? const {}, ); -Map _$ClientSettingsModelToJson( - _ClientSettingsModel instance) => - { +Map _$ClientSettingsModelToJson(_ClientSettingsModel instance) => { 'syncPath': instance.syncPath, 'transcodeDownloadModel': instance.transcodeDownloadModel, 'position': instance.position, 'size': instance.size, 'timeOut': instance.timeOut?.inMicroseconds, 'nextUpDateCutoff': instance.nextUpDateCutoff?.inMicroseconds, - 'updateNotificationsInterval': - instance.updateNotificationsInterval.inMicroseconds, + 'updateNotificationsInterval': instance.updateNotificationsInterval.inMicroseconds, 'themeMode': _$ThemeModeEnumMap[instance.themeMode]!, 'themeColor': _$ColorThemesEnumMap[instance.themeColor], 'deriveColorsFromItem': instance.deriveColorsFromItem, @@ -101,8 +83,7 @@ Map _$ClientSettingsModelToJson( 'useTVExpandedLayout': instance.useTVExpandedLayout, 'lastViewedUpdate': instance.lastViewedUpdate, 'libraryPageSize': instance.libraryPageSize, - 'shortcuts': instance.shortcuts - .map((k, e) => MapEntry(_$GlobalHotKeysEnumMap[k]!, e)), + 'shortcuts': instance.shortcuts.map((k, e) => MapEntry(_$GlobalHotKeysEnumMap[k]!, e)), }; const _$ThemeModeEnumMap = { diff --git a/lib/models/settings/home_settings_model.freezed.dart b/lib/models/settings/home_settings_model.freezed.dart index 5e04c5062..b8dc60511 100644 --- a/lib/models/settings/home_settings_model.freezed.dart +++ b/lib/models/settings/home_settings_model.freezed.dart @@ -25,8 +25,7 @@ mixin _$HomeSettingsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $HomeSettingsModelCopyWith get copyWith => - _$HomeSettingsModelCopyWithImpl( - this as HomeSettingsModel, _$identity); + _$HomeSettingsModelCopyWithImpl(this as HomeSettingsModel, _$identity); /// Serializes this HomeSettingsModel to a JSON map. Map toJson(); @@ -39,8 +38,7 @@ mixin _$HomeSettingsModel { /// @nodoc abstract mixin class $HomeSettingsModelCopyWith<$Res> { - factory $HomeSettingsModelCopyWith( - HomeSettingsModel value, $Res Function(HomeSettingsModel) _then) = + factory $HomeSettingsModelCopyWith(HomeSettingsModel value, $Res Function(HomeSettingsModel) _then) = _$HomeSettingsModelCopyWithImpl; @useResult $Res call( @@ -52,8 +50,7 @@ abstract mixin class $HomeSettingsModelCopyWith<$Res> { } /// @nodoc -class _$HomeSettingsModelCopyWithImpl<$Res> - implements $HomeSettingsModelCopyWith<$Res> { +class _$HomeSettingsModelCopyWithImpl<$Res> implements $HomeSettingsModelCopyWith<$Res> { _$HomeSettingsModelCopyWithImpl(this._self, this._then); final HomeSettingsModel _self; @@ -188,20 +185,16 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - Set screenLayouts, - Set layoutStates, - HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, - HomeNextUp nextUp)? + TResult Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, HomeNextUp nextUp)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _HomeSettingsModel() when $default != null: - return $default(_that.screenLayouts, _that.layoutStates, - _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default( + _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: return orElse(); } @@ -222,19 +215,15 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult when( - TResult Function( - Set screenLayouts, - Set layoutStates, - HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, - HomeNextUp nextUp) + TResult Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, HomeNextUp nextUp) $default, ) { final _that = this; switch (_that) { case _HomeSettingsModel(): - return $default(_that.screenLayouts, _that.layoutStates, - _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default( + _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: throw StateError('Unexpected subclass'); } @@ -254,19 +243,15 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - Set screenLayouts, - Set layoutStates, - HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, - HomeNextUp nextUp)? + TResult? Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, HomeNextUp nextUp)? $default, ) { final _that = this; switch (_that) { case _HomeSettingsModel() when $default != null: - return $default(_that.screenLayouts, _that.layoutStates, - _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default( + _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: return null; } @@ -285,8 +270,7 @@ class _HomeSettingsModel extends HomeSettingsModel { : _screenLayouts = screenLayouts, _layoutStates = layoutStates, super._(); - factory _HomeSettingsModel.fromJson(Map json) => - _$HomeSettingsModelFromJson(json); + factory _HomeSettingsModel.fromJson(Map json) => _$HomeSettingsModelFromJson(json); final Set _screenLayouts; @override @@ -338,10 +322,8 @@ class _HomeSettingsModel extends HomeSettingsModel { } /// @nodoc -abstract mixin class _$HomeSettingsModelCopyWith<$Res> - implements $HomeSettingsModelCopyWith<$Res> { - factory _$HomeSettingsModelCopyWith( - _HomeSettingsModel value, $Res Function(_HomeSettingsModel) _then) = +abstract mixin class _$HomeSettingsModelCopyWith<$Res> implements $HomeSettingsModelCopyWith<$Res> { + factory _$HomeSettingsModelCopyWith(_HomeSettingsModel value, $Res Function(_HomeSettingsModel) _then) = __$HomeSettingsModelCopyWithImpl; @override @useResult @@ -354,8 +336,7 @@ abstract mixin class _$HomeSettingsModelCopyWith<$Res> } /// @nodoc -class __$HomeSettingsModelCopyWithImpl<$Res> - implements _$HomeSettingsModelCopyWith<$Res> { +class __$HomeSettingsModelCopyWithImpl<$Res> implements _$HomeSettingsModelCopyWith<$Res> { __$HomeSettingsModelCopyWithImpl(this._self, this._then); final _HomeSettingsModel _self; diff --git a/lib/models/settings/home_settings_model.g.dart b/lib/models/settings/home_settings_model.g.dart index 734ba4f0d..d1b0d43af 100644 --- a/lib/models/settings/home_settings_model.g.dart +++ b/lib/models/settings/home_settings_model.g.dart @@ -6,35 +6,23 @@ part of 'home_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_HomeSettingsModel _$HomeSettingsModelFromJson(Map json) => - _HomeSettingsModel( - screenLayouts: (json['screenLayouts'] as List?) - ?.map((e) => $enumDecode(_$LayoutModeEnumMap, e)) - .toSet() ?? - const {...LayoutMode.values}, - layoutStates: (json['layoutStates'] as List?) - ?.map((e) => $enumDecode(_$ViewSizeEnumMap, e)) - .toSet() ?? +_HomeSettingsModel _$HomeSettingsModelFromJson(Map json) => _HomeSettingsModel( + screenLayouts: + (json['screenLayouts'] as List?)?.map((e) => $enumDecode(_$LayoutModeEnumMap, e)).toSet() ?? + const {...LayoutMode.values}, + layoutStates: (json['layoutStates'] as List?)?.map((e) => $enumDecode(_$ViewSizeEnumMap, e)).toSet() ?? const {...ViewSize.values}, - homeBanner: - $enumDecodeNullable(_$HomeBannerEnumMap, json['homeBanner']) ?? - HomeBanner.carousel, - carouselSettings: $enumDecodeNullable( - _$HomeCarouselSettingsEnumMap, json['carouselSettings']) ?? - HomeCarouselSettings.combined, - nextUp: $enumDecodeNullable(_$HomeNextUpEnumMap, json['nextUp']) ?? - HomeNextUp.separate, + homeBanner: $enumDecodeNullable(_$HomeBannerEnumMap, json['homeBanner']) ?? HomeBanner.carousel, + carouselSettings: + $enumDecodeNullable(_$HomeCarouselSettingsEnumMap, json['carouselSettings']) ?? HomeCarouselSettings.combined, + nextUp: $enumDecodeNullable(_$HomeNextUpEnumMap, json['nextUp']) ?? HomeNextUp.separate, ); -Map _$HomeSettingsModelToJson(_HomeSettingsModel instance) => - { - 'screenLayouts': - instance.screenLayouts.map((e) => _$LayoutModeEnumMap[e]!).toList(), - 'layoutStates': - instance.layoutStates.map((e) => _$ViewSizeEnumMap[e]!).toList(), +Map _$HomeSettingsModelToJson(_HomeSettingsModel instance) => { + 'screenLayouts': instance.screenLayouts.map((e) => _$LayoutModeEnumMap[e]!).toList(), + 'layoutStates': instance.layoutStates.map((e) => _$ViewSizeEnumMap[e]!).toList(), 'homeBanner': _$HomeBannerEnumMap[instance.homeBanner]!, - 'carouselSettings': - _$HomeCarouselSettingsEnumMap[instance.carouselSettings]!, + 'carouselSettings': _$HomeCarouselSettingsEnumMap[instance.carouselSettings]!, 'nextUp': _$HomeNextUpEnumMap[instance.nextUp]!, }; diff --git a/lib/models/settings/key_combinations.freezed.dart b/lib/models/settings/key_combinations.freezed.dart index 48ae91d9b..2af65d658 100644 --- a/lib/models/settings/key_combinations.freezed.dart +++ b/lib/models/settings/key_combinations.freezed.dart @@ -13,7 +13,7 @@ part of 'key_combinations.dart'; T _$identity(T value) => value; /// @nodoc -mixin _$KeyCombination { +mixin _$KeyCombination implements DiagnosticableTreeMixin { @LogicalKeyboardSerializer() LogicalKeyboardKey? get key; @LogicalKeyboardSerializer() @@ -28,22 +28,30 @@ mixin _$KeyCombination { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $KeyCombinationCopyWith get copyWith => - _$KeyCombinationCopyWithImpl( - this as KeyCombination, _$identity); + _$KeyCombinationCopyWithImpl(this as KeyCombination, _$identity); /// Serializes this KeyCombination to a JSON map. Map toJson(); @override - String toString() { + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'KeyCombination')) + ..add(DiagnosticsProperty('key', key)) + ..add(DiagnosticsProperty('modifier', modifier)) + ..add(DiagnosticsProperty('altKey', altKey)) + ..add(DiagnosticsProperty('altModifier', altModifier)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'KeyCombination(key: $key, modifier: $modifier, altKey: $altKey, altModifier: $altModifier)'; } } /// @nodoc abstract mixin class $KeyCombinationCopyWith<$Res> { - factory $KeyCombinationCopyWith( - KeyCombination value, $Res Function(KeyCombination) _then) = + factory $KeyCombinationCopyWith(KeyCombination value, $Res Function(KeyCombination) _then) = _$KeyCombinationCopyWithImpl; @useResult $Res call( @@ -54,8 +62,7 @@ abstract mixin class $KeyCombinationCopyWith<$Res> { } /// @nodoc -class _$KeyCombinationCopyWithImpl<$Res> - implements $KeyCombinationCopyWith<$Res> { +class _$KeyCombinationCopyWithImpl<$Res> implements $KeyCombinationCopyWith<$Res> { _$KeyCombinationCopyWithImpl(this._self, this._then); final KeyCombination _self; @@ -196,8 +203,7 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination() when $default != null: - return $default( - _that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); case _: return orElse(); } @@ -228,8 +234,7 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination(): - return $default( - _that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); case _: throw StateError('Unexpected subclass'); } @@ -259,8 +264,7 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination() when $default != null: - return $default( - _that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); case _: return null; } @@ -269,15 +273,14 @@ extension KeyCombinationPatterns on KeyCombination { /// @nodoc @JsonSerializable() -class _KeyCombination extends KeyCombination { +class _KeyCombination extends KeyCombination with DiagnosticableTreeMixin { _KeyCombination( {@LogicalKeyboardSerializer() this.key, @LogicalKeyboardSerializer() this.modifier, @LogicalKeyboardSerializer() this.altKey, @LogicalKeyboardSerializer() this.altModifier}) : super._(); - factory _KeyCombination.fromJson(Map json) => - _$KeyCombinationFromJson(json); + factory _KeyCombination.fromJson(Map json) => _$KeyCombinationFromJson(json); @override @LogicalKeyboardSerializer() @@ -308,16 +311,24 @@ class _KeyCombination extends KeyCombination { } @override - String toString() { + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'KeyCombination')) + ..add(DiagnosticsProperty('key', key)) + ..add(DiagnosticsProperty('modifier', modifier)) + ..add(DiagnosticsProperty('altKey', altKey)) + ..add(DiagnosticsProperty('altModifier', altModifier)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'KeyCombination(key: $key, modifier: $modifier, altKey: $altKey, altModifier: $altModifier)'; } } /// @nodoc -abstract mixin class _$KeyCombinationCopyWith<$Res> - implements $KeyCombinationCopyWith<$Res> { - factory _$KeyCombinationCopyWith( - _KeyCombination value, $Res Function(_KeyCombination) _then) = +abstract mixin class _$KeyCombinationCopyWith<$Res> implements $KeyCombinationCopyWith<$Res> { + factory _$KeyCombinationCopyWith(_KeyCombination value, $Res Function(_KeyCombination) _then) = __$KeyCombinationCopyWithImpl; @override @useResult @@ -329,8 +340,7 @@ abstract mixin class _$KeyCombinationCopyWith<$Res> } /// @nodoc -class __$KeyCombinationCopyWithImpl<$Res> - implements _$KeyCombinationCopyWith<$Res> { +class __$KeyCombinationCopyWithImpl<$Res> implements _$KeyCombinationCopyWith<$Res> { __$KeyCombinationCopyWithImpl(this._self, this._then); final _KeyCombination _self; diff --git a/lib/models/settings/key_combinations.g.dart b/lib/models/settings/key_combinations.g.dart index 45e5712b1..ec302cc4c 100644 --- a/lib/models/settings/key_combinations.g.dart +++ b/lib/models/settings/key_combinations.g.dart @@ -6,10 +6,8 @@ part of 'key_combinations.dart'; // JsonSerializableGenerator // ************************************************************************** -_KeyCombination _$KeyCombinationFromJson(Map json) => - _KeyCombination( - key: _$JsonConverterFromJson( - json['key'], const LogicalKeyboardSerializer().fromJson), +_KeyCombination _$KeyCombinationFromJson(Map json) => _KeyCombination( + key: _$JsonConverterFromJson(json['key'], const LogicalKeyboardSerializer().fromJson), modifier: _$JsonConverterFromJson( json['modifier'], const LogicalKeyboardSerializer().fromJson), altKey: _$JsonConverterFromJson( @@ -18,14 +16,12 @@ _KeyCombination _$KeyCombinationFromJson(Map json) => json['altModifier'], const LogicalKeyboardSerializer().fromJson), ); -Map _$KeyCombinationToJson(_KeyCombination instance) => - { - 'key': _$JsonConverterToJson( - instance.key, const LogicalKeyboardSerializer().toJson), +Map _$KeyCombinationToJson(_KeyCombination instance) => { + 'key': _$JsonConverterToJson(instance.key, const LogicalKeyboardSerializer().toJson), 'modifier': _$JsonConverterToJson( instance.modifier, const LogicalKeyboardSerializer().toJson), - 'altKey': _$JsonConverterToJson( - instance.altKey, const LogicalKeyboardSerializer().toJson), + 'altKey': + _$JsonConverterToJson(instance.altKey, const LogicalKeyboardSerializer().toJson), 'altModifier': _$JsonConverterToJson( instance.altModifier, const LogicalKeyboardSerializer().toJson), }; diff --git a/lib/models/settings/video_player_settings.freezed.dart b/lib/models/settings/video_player_settings.freezed.dart index 4506f254b..f05f374fd 100644 --- a/lib/models/settings/video_player_settings.freezed.dart +++ b/lib/models/settings/video_player_settings.freezed.dart @@ -43,8 +43,7 @@ mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $VideoPlayerSettingsModelCopyWith get copyWith => - _$VideoPlayerSettingsModelCopyWithImpl( - this as VideoPlayerSettingsModel, _$identity); + _$VideoPlayerSettingsModelCopyWithImpl(this as VideoPlayerSettingsModel, _$identity); /// Serializes this VideoPlayerSettingsModel to a JSON map. Map toJson(); @@ -73,8 +72,7 @@ mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('enableSpeedBoost', enableSpeedBoost)) ..add(DiagnosticsProperty('speedBoostRate', speedBoostRate)) ..add(DiagnosticsProperty('enableDoubleTapSeek', enableDoubleTapSeek)) - ..add(DiagnosticsProperty( - 'enableAdvancedVideoOptions', enableAdvancedVideoOptions)) + ..add(DiagnosticsProperty('enableAdvancedVideoOptions', enableAdvancedVideoOptions)) ..add(DiagnosticsProperty('enableEdgeGestures', enableEdgeGestures)) ..add(DiagnosticsProperty('reverseEdgeGestures', reverseEdgeGestures)); } @@ -87,8 +85,8 @@ mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $VideoPlayerSettingsModelCopyWith<$Res> { - factory $VideoPlayerSettingsModelCopyWith(VideoPlayerSettingsModel value, - $Res Function(VideoPlayerSettingsModel) _then) = + factory $VideoPlayerSettingsModelCopyWith( + VideoPlayerSettingsModel value, $Res Function(VideoPlayerSettingsModel) _then) = _$VideoPlayerSettingsModelCopyWithImpl; @useResult $Res call( @@ -118,8 +116,7 @@ abstract mixin class $VideoPlayerSettingsModelCopyWith<$Res> { } /// @nodoc -class _$VideoPlayerSettingsModelCopyWithImpl<$Res> - implements $VideoPlayerSettingsModelCopyWith<$Res> { +class _$VideoPlayerSettingsModelCopyWithImpl<$Res> implements $VideoPlayerSettingsModelCopyWith<$Res> { _$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); final VideoPlayerSettingsModel _self; @@ -551,8 +548,7 @@ extension VideoPlayerSettingsModelPatterns on VideoPlayerSettingsModel { /// @nodoc @JsonSerializable() -class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel - with DiagnosticableTreeMixin { +class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with DiagnosticableTreeMixin { _VideoPlayerSettingsModel( {this.screenBrightness, this.videoFit = BoxFit.contain, @@ -568,8 +564,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel this.maxHomeBitrate = Bitrate.original, this.maxInternetBitrate = Bitrate.original, this.audioDevice, - final Map segmentSkipSettings = - defaultSegmentSkipValues, + final Map segmentSkipSettings = defaultSegmentSkipValues, final Map hotKeys = const {}, this.screensaver = Screensaver.logo, this.enableSpeedBoost = false, @@ -582,8 +577,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel _segmentSkipSettings = segmentSkipSettings, _hotKeys = hotKeys, super._(); - factory _VideoPlayerSettingsModel.fromJson(Map json) => - _$VideoPlayerSettingsModelFromJson(json); + factory _VideoPlayerSettingsModel.fromJson(Map json) => _$VideoPlayerSettingsModelFromJson(json); @override final double? screenBrightness; @@ -615,8 +609,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel Set? get allowedOrientations { final value = _allowedOrientations; if (value == null) return null; - if (_allowedOrientations is EqualUnmodifiableSetView) - return _allowedOrientations; + if (_allowedOrientations is EqualUnmodifiableSetView) return _allowedOrientations; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(value); } @@ -636,8 +629,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel @override @JsonKey() Map get segmentSkipSettings { - if (_segmentSkipSettings is EqualUnmodifiableMapView) - return _segmentSkipSettings; + if (_segmentSkipSettings is EqualUnmodifiableMapView) return _segmentSkipSettings; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_segmentSkipSettings); } @@ -679,8 +671,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$VideoPlayerSettingsModelCopyWith<_VideoPlayerSettingsModel> get copyWith => - __$VideoPlayerSettingsModelCopyWithImpl<_VideoPlayerSettingsModel>( - this, _$identity); + __$VideoPlayerSettingsModelCopyWithImpl<_VideoPlayerSettingsModel>(this, _$identity); @override Map toJson() { @@ -713,8 +704,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel ..add(DiagnosticsProperty('enableSpeedBoost', enableSpeedBoost)) ..add(DiagnosticsProperty('speedBoostRate', speedBoostRate)) ..add(DiagnosticsProperty('enableDoubleTapSeek', enableDoubleTapSeek)) - ..add(DiagnosticsProperty( - 'enableAdvancedVideoOptions', enableAdvancedVideoOptions)) + ..add(DiagnosticsProperty('enableAdvancedVideoOptions', enableAdvancedVideoOptions)) ..add(DiagnosticsProperty('enableEdgeGestures', enableEdgeGestures)) ..add(DiagnosticsProperty('reverseEdgeGestures', reverseEdgeGestures)); } @@ -726,10 +716,9 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel } /// @nodoc -abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> - implements $VideoPlayerSettingsModelCopyWith<$Res> { - factory _$VideoPlayerSettingsModelCopyWith(_VideoPlayerSettingsModel value, - $Res Function(_VideoPlayerSettingsModel) _then) = +abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> implements $VideoPlayerSettingsModelCopyWith<$Res> { + factory _$VideoPlayerSettingsModelCopyWith( + _VideoPlayerSettingsModel value, $Res Function(_VideoPlayerSettingsModel) _then) = __$VideoPlayerSettingsModelCopyWithImpl; @override @useResult @@ -760,8 +749,7 @@ abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> } /// @nodoc -class __$VideoPlayerSettingsModelCopyWithImpl<$Res> - implements _$VideoPlayerSettingsModelCopyWith<$Res> { +class __$VideoPlayerSettingsModelCopyWithImpl<$Res> implements _$VideoPlayerSettingsModelCopyWith<$Res> { __$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); final _VideoPlayerSettingsModel _self; diff --git a/lib/models/settings/video_player_settings.g.dart b/lib/models/settings/video_player_settings.g.dart index c1b169951..63fd666b6 100644 --- a/lib/models/settings/video_player_settings.g.dart +++ b/lib/models/settings/video_player_settings.g.dart @@ -6,59 +6,42 @@ part of 'video_player_settings.dart'; // JsonSerializableGenerator // ************************************************************************** -_VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson( - Map json) => - _VideoPlayerSettingsModel( +_VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson(Map json) => _VideoPlayerSettingsModel( screenBrightness: (json['screenBrightness'] as num?)?.toDouble(), - videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? - BoxFit.contain, + videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? BoxFit.contain, fillScreen: json['fillScreen'] as bool? ?? false, hardwareAccel: json['hardwareAccel'] as bool? ?? true, useLibass: json['useLibass'] as bool? ?? true, enableTunneling: json['enableTunneling'] as bool? ?? false, bufferSize: (json['bufferSize'] as num?)?.toInt() ?? 32, - playerOptions: - $enumDecodeNullable(_$PlayerOptionsEnumMap, json['playerOptions']), + playerOptions: $enumDecodeNullable(_$PlayerOptionsEnumMap, json['playerOptions']), internalVolume: (json['internalVolume'] as num?)?.toDouble() ?? 100, allowedOrientations: (json['allowedOrientations'] as List?) ?.map((e) => $enumDecode(_$DeviceOrientationEnumMap, e)) .toSet(), - nextVideoType: - $enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ?? - AutoNextType.smart, - maxHomeBitrate: - $enumDecodeNullable(_$BitrateEnumMap, json['maxHomeBitrate']) ?? - Bitrate.original, - maxInternetBitrate: - $enumDecodeNullable(_$BitrateEnumMap, json['maxInternetBitrate']) ?? - Bitrate.original, + nextVideoType: $enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ?? AutoNextType.smart, + maxHomeBitrate: $enumDecodeNullable(_$BitrateEnumMap, json['maxHomeBitrate']) ?? Bitrate.original, + maxInternetBitrate: $enumDecodeNullable(_$BitrateEnumMap, json['maxInternetBitrate']) ?? Bitrate.original, audioDevice: json['audioDevice'] as String?, - segmentSkipSettings: - (json['segmentSkipSettings'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$MediaSegmentTypeEnumMap, k), - $enumDecode(_$SegmentSkipEnumMap, e)), - ) ?? - defaultSegmentSkipValues, + segmentSkipSettings: (json['segmentSkipSettings'] as Map?)?.map( + (k, e) => MapEntry($enumDecode(_$MediaSegmentTypeEnumMap, k), $enumDecode(_$SegmentSkipEnumMap, e)), + ) ?? + defaultSegmentSkipValues, hotKeys: (json['hotKeys'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$VideoHotKeysEnumMap, k), - KeyCombination.fromJson(e as Map)), + (k, e) => + MapEntry($enumDecode(_$VideoHotKeysEnumMap, k), KeyCombination.fromJson(e as Map)), ) ?? const {}, - screensaver: - $enumDecodeNullable(_$ScreensaverEnumMap, json['screensaver']) ?? - Screensaver.logo, + screensaver: $enumDecodeNullable(_$ScreensaverEnumMap, json['screensaver']) ?? Screensaver.logo, enableSpeedBoost: json['enableSpeedBoost'] as bool? ?? false, speedBoostRate: (json['speedBoostRate'] as num?)?.toDouble() ?? 2.0, enableDoubleTapSeek: json['enableDoubleTapSeek'] as bool? ?? true, - enableAdvancedVideoOptions: - json['enableAdvancedVideoOptions'] as bool? ?? false, + enableAdvancedVideoOptions: json['enableAdvancedVideoOptions'] as bool? ?? false, enableEdgeGestures: json['enableEdgeGestures'] as bool? ?? true, reverseEdgeGestures: json['reverseEdgeGestures'] as bool? ?? false, ); -Map _$VideoPlayerSettingsModelToJson( - _VideoPlayerSettingsModel instance) => - { +Map _$VideoPlayerSettingsModelToJson(_VideoPlayerSettingsModel instance) => { 'screenBrightness': instance.screenBrightness, 'videoFit': _$BoxFitEnumMap[instance.videoFit]!, 'fillScreen': instance.fillScreen, @@ -68,17 +51,14 @@ Map _$VideoPlayerSettingsModelToJson( 'bufferSize': instance.bufferSize, 'playerOptions': _$PlayerOptionsEnumMap[instance.playerOptions], 'internalVolume': instance.internalVolume, - 'allowedOrientations': instance.allowedOrientations - ?.map((e) => _$DeviceOrientationEnumMap[e]!) - .toList(), + 'allowedOrientations': instance.allowedOrientations?.map((e) => _$DeviceOrientationEnumMap[e]!).toList(), 'nextVideoType': _$AutoNextTypeEnumMap[instance.nextVideoType]!, 'maxHomeBitrate': _$BitrateEnumMap[instance.maxHomeBitrate]!, 'maxInternetBitrate': _$BitrateEnumMap[instance.maxInternetBitrate]!, 'audioDevice': instance.audioDevice, - 'segmentSkipSettings': instance.segmentSkipSettings.map((k, e) => - MapEntry(_$MediaSegmentTypeEnumMap[k]!, _$SegmentSkipEnumMap[e]!)), - 'hotKeys': instance.hotKeys - .map((k, e) => MapEntry(_$VideoHotKeysEnumMap[k]!, e)), + 'segmentSkipSettings': + instance.segmentSkipSettings.map((k, e) => MapEntry(_$MediaSegmentTypeEnumMap[k]!, _$SegmentSkipEnumMap[e]!)), + 'hotKeys': instance.hotKeys.map((k, e) => MapEntry(_$VideoHotKeysEnumMap[k]!, e)), 'screensaver': _$ScreensaverEnumMap[instance.screensaver]!, 'enableSpeedBoost': instance.enableSpeedBoost, 'speedBoostRate': instance.speedBoostRate, diff --git a/lib/models/syncing/database_item.g.dart b/lib/models/syncing/database_item.g.dart index 8570d7c93..91331fbe5 100644 --- a/lib/models/syncing/database_item.g.dart +++ b/lib/models/syncing/database_item.g.dart @@ -3,114 +3,85 @@ part of 'database_item.dart'; // ignore_for_file: type=lint -class $DatabaseItemsTable extends DatabaseItems - with TableInfo<$DatabaseItemsTable, DatabaseItem> { +class $DatabaseItemsTable extends DatabaseItems with TableInfo<$DatabaseItemsTable, DatabaseItem> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $DatabaseItemsTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _userIdMeta = const VerificationMeta('userId'); @override - late final GeneratedColumn userId = - GeneratedColumn('user_id', aliasedName, false, - additionalChecks: GeneratedColumn.checkTextLength( - minTextLength: 1, - ), - type: DriftSqlType.string, - requiredDuringInsert: true); + late final GeneratedColumn userId = GeneratedColumn('user_id', aliasedName, false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 1, + ), + type: DriftSqlType.string, + requiredDuringInsert: true); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = - GeneratedColumn('id', aliasedName, false, - additionalChecks: GeneratedColumn.checkTextLength( - minTextLength: 1, - ), - type: DriftSqlType.string, - requiredDuringInsert: true); - static const VerificationMeta _syncingMeta = - const VerificationMeta('syncing'); + late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 1, + ), + type: DriftSqlType.string, + requiredDuringInsert: true); + static const VerificationMeta _syncingMeta = const VerificationMeta('syncing'); @override - late final GeneratedColumn syncing = GeneratedColumn( - 'syncing', aliasedName, false, + late final GeneratedColumn syncing = GeneratedColumn('syncing', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('CHECK ("syncing" IN (0, 1))'), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("syncing" IN (0, 1))'), defaultValue: const Constant(false)); - static const VerificationMeta _sortNameMeta = - const VerificationMeta('sortName'); + static const VerificationMeta _sortNameMeta = const VerificationMeta('sortName'); @override - late final GeneratedColumn sortName = GeneratedColumn( - 'sort_name', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _parentIdMeta = - const VerificationMeta('parentId'); + late final GeneratedColumn sortName = + GeneratedColumn('sort_name', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _parentIdMeta = const VerificationMeta('parentId'); @override - late final GeneratedColumn parentId = GeneratedColumn( - 'parent_id', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); + late final GeneratedColumn parentId = + GeneratedColumn('parent_id', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); static const VerificationMeta _pathMeta = const VerificationMeta('path'); @override - late final GeneratedColumn path = GeneratedColumn( - 'path', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _fileSizeMeta = - const VerificationMeta('fileSize'); + late final GeneratedColumn path = + GeneratedColumn('path', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _fileSizeMeta = const VerificationMeta('fileSize'); @override - late final GeneratedColumn fileSize = GeneratedColumn( - 'file_size', aliasedName, true, - type: DriftSqlType.int, requiredDuringInsert: false); - static const VerificationMeta _videoFileNameMeta = - const VerificationMeta('videoFileName'); + late final GeneratedColumn fileSize = + GeneratedColumn('file_size', aliasedName, true, type: DriftSqlType.int, requiredDuringInsert: false); + static const VerificationMeta _videoFileNameMeta = const VerificationMeta('videoFileName'); @override - late final GeneratedColumn videoFileName = GeneratedColumn( - 'video_file_name', aliasedName, true, + late final GeneratedColumn videoFileName = GeneratedColumn('video_file_name', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _trickPlayModelMeta = - const VerificationMeta('trickPlayModel'); + static const VerificationMeta _trickPlayModelMeta = const VerificationMeta('trickPlayModel'); @override - late final GeneratedColumn trickPlayModel = GeneratedColumn( - 'trick_play_model', aliasedName, true, + late final GeneratedColumn trickPlayModel = GeneratedColumn('trick_play_model', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _mediaSegmentsMeta = - const VerificationMeta('mediaSegments'); + static const VerificationMeta _mediaSegmentsMeta = const VerificationMeta('mediaSegments'); @override - late final GeneratedColumn mediaSegments = GeneratedColumn( - 'media_segments', aliasedName, true, + late final GeneratedColumn mediaSegments = GeneratedColumn('media_segments', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); static const VerificationMeta _imagesMeta = const VerificationMeta('images'); @override - late final GeneratedColumn images = GeneratedColumn( - 'images', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _chaptersMeta = - const VerificationMeta('chapters'); + late final GeneratedColumn images = + GeneratedColumn('images', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _chaptersMeta = const VerificationMeta('chapters'); @override - late final GeneratedColumn chapters = GeneratedColumn( - 'chapters', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _subtitlesMeta = - const VerificationMeta('subtitles'); + late final GeneratedColumn chapters = + GeneratedColumn('chapters', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _subtitlesMeta = const VerificationMeta('subtitles'); @override - late final GeneratedColumn subtitles = GeneratedColumn( - 'subtitles', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _unSyncedDataMeta = - const VerificationMeta('unSyncedData'); + late final GeneratedColumn subtitles = + GeneratedColumn('subtitles', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _unSyncedDataMeta = const VerificationMeta('unSyncedData'); @override - late final GeneratedColumn unSyncedData = GeneratedColumn( - 'un_synced_data', aliasedName, false, + late final GeneratedColumn unSyncedData = GeneratedColumn('un_synced_data', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("un_synced_data" IN (0, 1))'), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("un_synced_data" IN (0, 1))'), defaultValue: const Constant(false)); - static const VerificationMeta _userDataMeta = - const VerificationMeta('userData'); + static const VerificationMeta _userDataMeta = const VerificationMeta('userData'); @override - late final GeneratedColumn userData = GeneratedColumn( - 'user_data', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); + late final GeneratedColumn userData = + GeneratedColumn('user_data', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); @override List get $columns => [ userId, @@ -135,13 +106,11 @@ class $DatabaseItemsTable extends DatabaseItems String get actualTableName => $name; static const String $name = 'database_items'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('user_id')) { - context.handle(_userIdMeta, - userId.isAcceptableOrUnknown(data['user_id']!, _userIdMeta)); + context.handle(_userIdMeta, userId.isAcceptableOrUnknown(data['user_id']!, _userIdMeta)); } else if (isInserting) { context.missing(_userIdMeta); } @@ -151,64 +120,46 @@ class $DatabaseItemsTable extends DatabaseItems context.missing(_idMeta); } if (data.containsKey('syncing')) { - context.handle(_syncingMeta, - syncing.isAcceptableOrUnknown(data['syncing']!, _syncingMeta)); + context.handle(_syncingMeta, syncing.isAcceptableOrUnknown(data['syncing']!, _syncingMeta)); } if (data.containsKey('sort_name')) { - context.handle(_sortNameMeta, - sortName.isAcceptableOrUnknown(data['sort_name']!, _sortNameMeta)); + context.handle(_sortNameMeta, sortName.isAcceptableOrUnknown(data['sort_name']!, _sortNameMeta)); } if (data.containsKey('parent_id')) { - context.handle(_parentIdMeta, - parentId.isAcceptableOrUnknown(data['parent_id']!, _parentIdMeta)); + context.handle(_parentIdMeta, parentId.isAcceptableOrUnknown(data['parent_id']!, _parentIdMeta)); } if (data.containsKey('path')) { - context.handle( - _pathMeta, path.isAcceptableOrUnknown(data['path']!, _pathMeta)); + context.handle(_pathMeta, path.isAcceptableOrUnknown(data['path']!, _pathMeta)); } if (data.containsKey('file_size')) { - context.handle(_fileSizeMeta, - fileSize.isAcceptableOrUnknown(data['file_size']!, _fileSizeMeta)); + context.handle(_fileSizeMeta, fileSize.isAcceptableOrUnknown(data['file_size']!, _fileSizeMeta)); } if (data.containsKey('video_file_name')) { context.handle( - _videoFileNameMeta, - videoFileName.isAcceptableOrUnknown( - data['video_file_name']!, _videoFileNameMeta)); + _videoFileNameMeta, videoFileName.isAcceptableOrUnknown(data['video_file_name']!, _videoFileNameMeta)); } if (data.containsKey('trick_play_model')) { context.handle( - _trickPlayModelMeta, - trickPlayModel.isAcceptableOrUnknown( - data['trick_play_model']!, _trickPlayModelMeta)); + _trickPlayModelMeta, trickPlayModel.isAcceptableOrUnknown(data['trick_play_model']!, _trickPlayModelMeta)); } if (data.containsKey('media_segments')) { context.handle( - _mediaSegmentsMeta, - mediaSegments.isAcceptableOrUnknown( - data['media_segments']!, _mediaSegmentsMeta)); + _mediaSegmentsMeta, mediaSegments.isAcceptableOrUnknown(data['media_segments']!, _mediaSegmentsMeta)); } if (data.containsKey('images')) { - context.handle(_imagesMeta, - images.isAcceptableOrUnknown(data['images']!, _imagesMeta)); + context.handle(_imagesMeta, images.isAcceptableOrUnknown(data['images']!, _imagesMeta)); } if (data.containsKey('chapters')) { - context.handle(_chaptersMeta, - chapters.isAcceptableOrUnknown(data['chapters']!, _chaptersMeta)); + context.handle(_chaptersMeta, chapters.isAcceptableOrUnknown(data['chapters']!, _chaptersMeta)); } if (data.containsKey('subtitles')) { - context.handle(_subtitlesMeta, - subtitles.isAcceptableOrUnknown(data['subtitles']!, _subtitlesMeta)); + context.handle(_subtitlesMeta, subtitles.isAcceptableOrUnknown(data['subtitles']!, _subtitlesMeta)); } if (data.containsKey('un_synced_data')) { - context.handle( - _unSyncedDataMeta, - unSyncedData.isAcceptableOrUnknown( - data['un_synced_data']!, _unSyncedDataMeta)); + context.handle(_unSyncedDataMeta, unSyncedData.isAcceptableOrUnknown(data['un_synced_data']!, _unSyncedDataMeta)); } if (data.containsKey('user_data')) { - context.handle(_userDataMeta, - userData.isAcceptableOrUnknown(data['user_data']!, _userDataMeta)); + context.handle(_userDataMeta, userData.isAcceptableOrUnknown(data['user_data']!, _userDataMeta)); } return context; } @@ -219,36 +170,22 @@ class $DatabaseItemsTable extends DatabaseItems DatabaseItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return DatabaseItem( - userId: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}user_id'])!, - id: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}id'])!, - syncing: attachedDatabase.typeMapping - .read(DriftSqlType.bool, data['${effectivePrefix}syncing'])!, - sortName: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}sort_name']), - parentId: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}parent_id']), - path: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}path']), - fileSize: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}file_size']), - videoFileName: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}video_file_name']), - trickPlayModel: attachedDatabase.typeMapping.read( - DriftSqlType.string, data['${effectivePrefix}trick_play_model']), - mediaSegments: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}media_segments']), - images: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}images']), - chapters: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}chapters']), - subtitles: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}subtitles']), - unSyncedData: attachedDatabase.typeMapping - .read(DriftSqlType.bool, data['${effectivePrefix}un_synced_data'])!, - userData: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}user_data']), + userId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}user_id'])!, + id: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}id'])!, + syncing: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}syncing'])!, + sortName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}sort_name']), + parentId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}parent_id']), + path: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}path']), + fileSize: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}file_size']), + videoFileName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}video_file_name']), + trickPlayModel: + attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}trick_play_model']), + mediaSegments: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}media_segments']), + images: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}images']), + chapters: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}chapters']), + subtitles: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}subtitles']), + unSyncedData: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}un_synced_data'])!, + userData: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}user_data']), ); } @@ -338,42 +275,22 @@ class DatabaseItem extends DataClass implements Insertable { userId: Value(userId), id: Value(id), syncing: Value(syncing), - sortName: sortName == null && nullToAbsent - ? const Value.absent() - : Value(sortName), - parentId: parentId == null && nullToAbsent - ? const Value.absent() - : Value(parentId), + sortName: sortName == null && nullToAbsent ? const Value.absent() : Value(sortName), + parentId: parentId == null && nullToAbsent ? const Value.absent() : Value(parentId), path: path == null && nullToAbsent ? const Value.absent() : Value(path), - fileSize: fileSize == null && nullToAbsent - ? const Value.absent() - : Value(fileSize), - videoFileName: videoFileName == null && nullToAbsent - ? const Value.absent() - : Value(videoFileName), - trickPlayModel: trickPlayModel == null && nullToAbsent - ? const Value.absent() - : Value(trickPlayModel), - mediaSegments: mediaSegments == null && nullToAbsent - ? const Value.absent() - : Value(mediaSegments), - images: - images == null && nullToAbsent ? const Value.absent() : Value(images), - chapters: chapters == null && nullToAbsent - ? const Value.absent() - : Value(chapters), - subtitles: subtitles == null && nullToAbsent - ? const Value.absent() - : Value(subtitles), + fileSize: fileSize == null && nullToAbsent ? const Value.absent() : Value(fileSize), + videoFileName: videoFileName == null && nullToAbsent ? const Value.absent() : Value(videoFileName), + trickPlayModel: trickPlayModel == null && nullToAbsent ? const Value.absent() : Value(trickPlayModel), + mediaSegments: mediaSegments == null && nullToAbsent ? const Value.absent() : Value(mediaSegments), + images: images == null && nullToAbsent ? const Value.absent() : Value(images), + chapters: chapters == null && nullToAbsent ? const Value.absent() : Value(chapters), + subtitles: subtitles == null && nullToAbsent ? const Value.absent() : Value(subtitles), unSyncedData: Value(unSyncedData), - userData: userData == null && nullToAbsent - ? const Value.absent() - : Value(userData), + userData: userData == null && nullToAbsent ? const Value.absent() : Value(userData), ); } - factory DatabaseItem.fromJson(Map json, - {ValueSerializer? serializer}) { + factory DatabaseItem.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return DatabaseItem( userId: serializer.fromJson(json['userId']), @@ -439,12 +356,9 @@ class DatabaseItem extends DataClass implements Insertable { parentId: parentId.present ? parentId.value : this.parentId, path: path.present ? path.value : this.path, fileSize: fileSize.present ? fileSize.value : this.fileSize, - videoFileName: - videoFileName.present ? videoFileName.value : this.videoFileName, - trickPlayModel: - trickPlayModel.present ? trickPlayModel.value : this.trickPlayModel, - mediaSegments: - mediaSegments.present ? mediaSegments.value : this.mediaSegments, + videoFileName: videoFileName.present ? videoFileName.value : this.videoFileName, + trickPlayModel: trickPlayModel.present ? trickPlayModel.value : this.trickPlayModel, + mediaSegments: mediaSegments.present ? mediaSegments.value : this.mediaSegments, images: images.present ? images.value : this.images, chapters: chapters.present ? chapters.value : this.chapters, subtitles: subtitles.present ? subtitles.value : this.subtitles, @@ -460,21 +374,13 @@ class DatabaseItem extends DataClass implements Insertable { parentId: data.parentId.present ? data.parentId.value : this.parentId, path: data.path.present ? data.path.value : this.path, fileSize: data.fileSize.present ? data.fileSize.value : this.fileSize, - videoFileName: data.videoFileName.present - ? data.videoFileName.value - : this.videoFileName, - trickPlayModel: data.trickPlayModel.present - ? data.trickPlayModel.value - : this.trickPlayModel, - mediaSegments: data.mediaSegments.present - ? data.mediaSegments.value - : this.mediaSegments, + videoFileName: data.videoFileName.present ? data.videoFileName.value : this.videoFileName, + trickPlayModel: data.trickPlayModel.present ? data.trickPlayModel.value : this.trickPlayModel, + mediaSegments: data.mediaSegments.present ? data.mediaSegments.value : this.mediaSegments, images: data.images.present ? data.images.value : this.images, chapters: data.chapters.present ? data.chapters.value : this.chapters, subtitles: data.subtitles.present ? data.subtitles.value : this.subtitles, - unSyncedData: data.unSyncedData.present - ? data.unSyncedData.value - : this.unSyncedData, + unSyncedData: data.unSyncedData.present ? data.unSyncedData.value : this.unSyncedData, userData: data.userData.present ? data.userData.value : this.userData, ); } @@ -502,22 +408,8 @@ class DatabaseItem extends DataClass implements Insertable { } @override - int get hashCode => Object.hash( - userId, - id, - syncing, - sortName, - parentId, - path, - fileSize, - videoFileName, - trickPlayModel, - mediaSegments, - images, - chapters, - subtitles, - unSyncedData, - userData); + int get hashCode => Object.hash(userId, id, syncing, sortName, parentId, path, fileSize, videoFileName, + trickPlayModel, mediaSegments, images, chapters, subtitles, unSyncedData, userData); @override bool operator ==(Object other) => identical(this, other) || @@ -750,18 +642,14 @@ abstract class _$AppDatabase extends GeneratedDatabase { _$AppDatabase(QueryExecutor e) : super(e); $AppDatabaseManager get managers => $AppDatabaseManager(this); late final $DatabaseItemsTable databaseItems = $DatabaseItemsTable(this); - late final Index databaseId = Index('database_id', - 'CREATE INDEX database_id ON database_items (user_id, id)'); + late final Index databaseId = Index('database_id', 'CREATE INDEX database_id ON database_items (user_id, id)'); @override - Iterable> get allTables => - allSchemaEntities.whereType>(); + Iterable> get allTables => allSchemaEntities.whereType>(); @override - List get allSchemaEntities => - [databaseItems, databaseId]; + List get allSchemaEntities => [databaseItems, databaseId]; } -typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion - Function({ +typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion Function({ required String userId, required String id, Value syncing, @@ -779,8 +667,7 @@ typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion Value userData, Value rowid, }); -typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion - Function({ +typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion Function({ Value userId, Value id, Value syncing, @@ -799,8 +686,7 @@ typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion Value rowid, }); -class $$DatabaseItemsTableFilterComposer - extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableFilterComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableFilterComposer({ required super.$db, required super.$table, @@ -808,55 +694,51 @@ class $$DatabaseItemsTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get userId => $composableBuilder( - column: $table.userId, builder: (column) => ColumnFilters(column)); + ColumnFilters get userId => + $composableBuilder(column: $table.userId, builder: (column) => ColumnFilters(column)); - ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get syncing => $composableBuilder( - column: $table.syncing, builder: (column) => ColumnFilters(column)); + ColumnFilters get syncing => + $composableBuilder(column: $table.syncing, builder: (column) => ColumnFilters(column)); - ColumnFilters get sortName => $composableBuilder( - column: $table.sortName, builder: (column) => ColumnFilters(column)); + ColumnFilters get sortName => + $composableBuilder(column: $table.sortName, builder: (column) => ColumnFilters(column)); - ColumnFilters get parentId => $composableBuilder( - column: $table.parentId, builder: (column) => ColumnFilters(column)); + ColumnFilters get parentId => + $composableBuilder(column: $table.parentId, builder: (column) => ColumnFilters(column)); - ColumnFilters get path => $composableBuilder( - column: $table.path, builder: (column) => ColumnFilters(column)); + ColumnFilters get path => $composableBuilder(column: $table.path, builder: (column) => ColumnFilters(column)); - ColumnFilters get fileSize => $composableBuilder( - column: $table.fileSize, builder: (column) => ColumnFilters(column)); + ColumnFilters get fileSize => + $composableBuilder(column: $table.fileSize, builder: (column) => ColumnFilters(column)); - ColumnFilters get videoFileName => $composableBuilder( - column: $table.videoFileName, builder: (column) => ColumnFilters(column)); + ColumnFilters get videoFileName => + $composableBuilder(column: $table.videoFileName, builder: (column) => ColumnFilters(column)); - ColumnFilters get trickPlayModel => $composableBuilder( - column: $table.trickPlayModel, - builder: (column) => ColumnFilters(column)); + ColumnFilters get trickPlayModel => + $composableBuilder(column: $table.trickPlayModel, builder: (column) => ColumnFilters(column)); - ColumnFilters get mediaSegments => $composableBuilder( - column: $table.mediaSegments, builder: (column) => ColumnFilters(column)); + ColumnFilters get mediaSegments => + $composableBuilder(column: $table.mediaSegments, builder: (column) => ColumnFilters(column)); - ColumnFilters get images => $composableBuilder( - column: $table.images, builder: (column) => ColumnFilters(column)); + ColumnFilters get images => + $composableBuilder(column: $table.images, builder: (column) => ColumnFilters(column)); - ColumnFilters get chapters => $composableBuilder( - column: $table.chapters, builder: (column) => ColumnFilters(column)); + ColumnFilters get chapters => + $composableBuilder(column: $table.chapters, builder: (column) => ColumnFilters(column)); - ColumnFilters get subtitles => $composableBuilder( - column: $table.subtitles, builder: (column) => ColumnFilters(column)); + ColumnFilters get subtitles => + $composableBuilder(column: $table.subtitles, builder: (column) => ColumnFilters(column)); - ColumnFilters get unSyncedData => $composableBuilder( - column: $table.unSyncedData, builder: (column) => ColumnFilters(column)); + ColumnFilters get unSyncedData => + $composableBuilder(column: $table.unSyncedData, builder: (column) => ColumnFilters(column)); - ColumnFilters get userData => $composableBuilder( - column: $table.userData, builder: (column) => ColumnFilters(column)); + ColumnFilters get userData => + $composableBuilder(column: $table.userData, builder: (column) => ColumnFilters(column)); } -class $$DatabaseItemsTableOrderingComposer - extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableOrderingComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableOrderingComposer({ required super.$db, required super.$table, @@ -864,58 +746,52 @@ class $$DatabaseItemsTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get userId => $composableBuilder( - column: $table.userId, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get userId => + $composableBuilder(column: $table.userId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get syncing => $composableBuilder( - column: $table.syncing, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get syncing => + $composableBuilder(column: $table.syncing, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get sortName => $composableBuilder( - column: $table.sortName, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get sortName => + $composableBuilder(column: $table.sortName, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get parentId => $composableBuilder( - column: $table.parentId, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get parentId => + $composableBuilder(column: $table.parentId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get path => $composableBuilder( - column: $table.path, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get path => + $composableBuilder(column: $table.path, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get fileSize => $composableBuilder( - column: $table.fileSize, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get fileSize => + $composableBuilder(column: $table.fileSize, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get videoFileName => $composableBuilder( - column: $table.videoFileName, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get videoFileName => + $composableBuilder(column: $table.videoFileName, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get trickPlayModel => $composableBuilder( - column: $table.trickPlayModel, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get trickPlayModel => + $composableBuilder(column: $table.trickPlayModel, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get mediaSegments => $composableBuilder( - column: $table.mediaSegments, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get mediaSegments => + $composableBuilder(column: $table.mediaSegments, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get images => $composableBuilder( - column: $table.images, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get images => + $composableBuilder(column: $table.images, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get chapters => $composableBuilder( - column: $table.chapters, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get chapters => + $composableBuilder(column: $table.chapters, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get subtitles => $composableBuilder( - column: $table.subtitles, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get subtitles => + $composableBuilder(column: $table.subtitles, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get unSyncedData => $composableBuilder( - column: $table.unSyncedData, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get unSyncedData => + $composableBuilder(column: $table.unSyncedData, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get userData => $composableBuilder( - column: $table.userData, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get userData => + $composableBuilder(column: $table.userData, builder: (column) => ColumnOrderings(column)); } -class $$DatabaseItemsTableAnnotationComposer - extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableAnnotationComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableAnnotationComposer({ required super.$db, required super.$table, @@ -923,50 +799,39 @@ class $$DatabaseItemsTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get userId => - $composableBuilder(column: $table.userId, builder: (column) => column); + GeneratedColumn get userId => $composableBuilder(column: $table.userId, builder: (column) => column); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get syncing => - $composableBuilder(column: $table.syncing, builder: (column) => column); + GeneratedColumn get syncing => $composableBuilder(column: $table.syncing, builder: (column) => column); - GeneratedColumn get sortName => - $composableBuilder(column: $table.sortName, builder: (column) => column); + GeneratedColumn get sortName => $composableBuilder(column: $table.sortName, builder: (column) => column); - GeneratedColumn get parentId => - $composableBuilder(column: $table.parentId, builder: (column) => column); + GeneratedColumn get parentId => $composableBuilder(column: $table.parentId, builder: (column) => column); - GeneratedColumn get path => - $composableBuilder(column: $table.path, builder: (column) => column); + GeneratedColumn get path => $composableBuilder(column: $table.path, builder: (column) => column); - GeneratedColumn get fileSize => - $composableBuilder(column: $table.fileSize, builder: (column) => column); + GeneratedColumn get fileSize => $composableBuilder(column: $table.fileSize, builder: (column) => column); - GeneratedColumn get videoFileName => $composableBuilder( - column: $table.videoFileName, builder: (column) => column); + GeneratedColumn get videoFileName => + $composableBuilder(column: $table.videoFileName, builder: (column) => column); - GeneratedColumn get trickPlayModel => $composableBuilder( - column: $table.trickPlayModel, builder: (column) => column); + GeneratedColumn get trickPlayModel => + $composableBuilder(column: $table.trickPlayModel, builder: (column) => column); - GeneratedColumn get mediaSegments => $composableBuilder( - column: $table.mediaSegments, builder: (column) => column); + GeneratedColumn get mediaSegments => + $composableBuilder(column: $table.mediaSegments, builder: (column) => column); - GeneratedColumn get images => - $composableBuilder(column: $table.images, builder: (column) => column); + GeneratedColumn get images => $composableBuilder(column: $table.images, builder: (column) => column); - GeneratedColumn get chapters => - $composableBuilder(column: $table.chapters, builder: (column) => column); + GeneratedColumn get chapters => $composableBuilder(column: $table.chapters, builder: (column) => column); - GeneratedColumn get subtitles => - $composableBuilder(column: $table.subtitles, builder: (column) => column); + GeneratedColumn get subtitles => $composableBuilder(column: $table.subtitles, builder: (column) => column); - GeneratedColumn get unSyncedData => $composableBuilder( - column: $table.unSyncedData, builder: (column) => column); + GeneratedColumn get unSyncedData => + $composableBuilder(column: $table.unSyncedData, builder: (column) => column); - GeneratedColumn get userData => - $composableBuilder(column: $table.userData, builder: (column) => column); + GeneratedColumn get userData => $composableBuilder(column: $table.userData, builder: (column) => column); } class $$DatabaseItemsTableTableManager extends RootTableManager< @@ -978,22 +843,16 @@ class $$DatabaseItemsTableTableManager extends RootTableManager< $$DatabaseItemsTableAnnotationComposer, $$DatabaseItemsTableCreateCompanionBuilder, $$DatabaseItemsTableUpdateCompanionBuilder, - ( - DatabaseItem, - BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem> - ), + (DatabaseItem, BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem>), DatabaseItem, PrefetchHooks Function()> { $$DatabaseItemsTableTableManager(_$AppDatabase db, $DatabaseItemsTable table) : super(TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$DatabaseItemsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$DatabaseItemsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$DatabaseItemsTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$DatabaseItemsTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$DatabaseItemsTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$DatabaseItemsTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value userId = const Value.absent(), Value id = const Value.absent(), @@ -1066,9 +925,7 @@ class $$DatabaseItemsTableTableManager extends RootTableManager< userData: userData, rowid: rowid, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, )); } @@ -1082,16 +939,12 @@ typedef $$DatabaseItemsTableProcessedTableManager = ProcessedTableManager< $$DatabaseItemsTableAnnotationComposer, $$DatabaseItemsTableCreateCompanionBuilder, $$DatabaseItemsTableUpdateCompanionBuilder, - ( - DatabaseItem, - BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem> - ), + (DatabaseItem, BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem>), DatabaseItem, PrefetchHooks Function()>; class $AppDatabaseManager { final _$AppDatabase _db; $AppDatabaseManager(this._db); - $$DatabaseItemsTableTableManager get databaseItems => - $$DatabaseItemsTableTableManager(_db, _db.databaseItems); + $$DatabaseItemsTableTableManager get databaseItems => $$DatabaseItemsTableTableManager(_db, _db.databaseItems); } diff --git a/lib/models/syncing/sync_item.freezed.dart b/lib/models/syncing/sync_item.freezed.dart index 8de14950e..d750cae94 100644 --- a/lib/models/syncing/sync_item.freezed.dart +++ b/lib/models/syncing/sync_item.freezed.dart @@ -31,8 +31,7 @@ mixin _$SyncedItem { bool get unSyncedData; @UserDataJsonSerializer() UserData? get userData; - TranscodeDownloadModel? - get transcodeDownloadModel; // ignore: invalid_annotation_target + TranscodeDownloadModel? get transcodeDownloadModel; // ignore: invalid_annotation_target @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? get itemModel; @@ -40,8 +39,7 @@ mixin _$SyncedItem { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $SyncedItemCopyWith get copyWith => - _$SyncedItemCopyWithImpl(this as SyncedItem, _$identity); + $SyncedItemCopyWith get copyWith => _$SyncedItemCopyWithImpl(this as SyncedItem, _$identity); @override String toString() { @@ -51,9 +49,7 @@ mixin _$SyncedItem { /// @nodoc abstract mixin class $SyncedItemCopyWith<$Res> { - factory $SyncedItemCopyWith( - SyncedItem value, $Res Function(SyncedItem) _then) = - _$SyncedItemCopyWithImpl; + factory $SyncedItemCopyWith(SyncedItem value, $Res Function(SyncedItem) _then) = _$SyncedItemCopyWithImpl; @useResult $Res call( {String id, @@ -73,8 +69,7 @@ abstract mixin class $SyncedItemCopyWith<$Res> { bool unSyncedData, @UserDataJsonSerializer() UserData? userData, TranscodeDownloadModel? transcodeDownloadModel, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel}); + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel}); $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel; $TranscodeDownloadModelCopyWith<$Res>? get transcodeDownloadModel; @@ -210,8 +205,7 @@ class _$SyncedItemCopyWithImpl<$Res> implements $SyncedItemCopyWith<$Res> { return null; } - return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel!, - (value) { + return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel!, (value) { return _then(_self.copyWith(transcodeDownloadModel: value)); }); } @@ -328,8 +322,7 @@ extension SyncedItemPatterns on SyncedItem { bool unSyncedData, @UserDataJsonSerializer() UserData? userData, TranscodeDownloadModel? transcodeDownloadModel, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel)? + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel)? $default, { required TResult orElse(), }) { @@ -393,8 +386,7 @@ extension SyncedItemPatterns on SyncedItem { bool unSyncedData, @UserDataJsonSerializer() UserData? userData, TranscodeDownloadModel? transcodeDownloadModel, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel) + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel) $default, ) { final _that = this; @@ -456,8 +448,7 @@ extension SyncedItemPatterns on SyncedItem { bool unSyncedData, @UserDataJsonSerializer() UserData? userData, TranscodeDownloadModel? transcodeDownloadModel, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel)? + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel)? $default, ) { final _that = this; @@ -576,8 +567,7 @@ class _SyncItem extends SyncedItem { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SyncItemCopyWith<_SyncItem> get copyWith => - __$SyncItemCopyWithImpl<_SyncItem>(this, _$identity); + _$SyncItemCopyWith<_SyncItem> get copyWith => __$SyncItemCopyWithImpl<_SyncItem>(this, _$identity); @override String toString() { @@ -586,10 +576,8 @@ class _SyncItem extends SyncedItem { } /// @nodoc -abstract mixin class _$SyncItemCopyWith<$Res> - implements $SyncedItemCopyWith<$Res> { - factory _$SyncItemCopyWith(_SyncItem value, $Res Function(_SyncItem) _then) = - __$SyncItemCopyWithImpl; +abstract mixin class _$SyncItemCopyWith<$Res> implements $SyncedItemCopyWith<$Res> { + factory _$SyncItemCopyWith(_SyncItem value, $Res Function(_SyncItem) _then) = __$SyncItemCopyWithImpl; @override @useResult $Res call( @@ -610,8 +598,7 @@ abstract mixin class _$SyncItemCopyWith<$Res> bool unSyncedData, @UserDataJsonSerializer() UserData? userData, TranscodeDownloadModel? transcodeDownloadModel, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel}); + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel}); @override $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel; @@ -749,8 +736,7 @@ class __$SyncItemCopyWithImpl<$Res> implements _$SyncItemCopyWith<$Res> { return null; } - return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel!, - (value) { + return $TranscodeDownloadModelCopyWith<$Res>(_self.transcodeDownloadModel!, (value) { return _then(_self.copyWith(transcodeDownloadModel: value)); }); } diff --git a/lib/models/syncing/sync_settings_model.freezed.dart b/lib/models/syncing/sync_settings_model.freezed.dart index b70eeca18..902cc4cb3 100644 --- a/lib/models/syncing/sync_settings_model.freezed.dart +++ b/lib/models/syncing/sync_settings_model.freezed.dart @@ -21,8 +21,7 @@ mixin _$SyncSettingsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SyncSettingsModelCopyWith get copyWith => - _$SyncSettingsModelCopyWithImpl( - this as SyncSettingsModel, _$identity); + _$SyncSettingsModelCopyWithImpl(this as SyncSettingsModel, _$identity); @override String toString() { @@ -32,16 +31,14 @@ mixin _$SyncSettingsModel { /// @nodoc abstract mixin class $SyncSettingsModelCopyWith<$Res> { - factory $SyncSettingsModelCopyWith( - SyncSettingsModel value, $Res Function(SyncSettingsModel) _then) = + factory $SyncSettingsModelCopyWith(SyncSettingsModel value, $Res Function(SyncSettingsModel) _then) = _$SyncSettingsModelCopyWithImpl; @useResult $Res call({List items}); } /// @nodoc -class _$SyncSettingsModelCopyWithImpl<$Res> - implements $SyncSettingsModelCopyWith<$Res> { +class _$SyncSettingsModelCopyWithImpl<$Res> implements $SyncSettingsModelCopyWith<$Res> { _$SyncSettingsModelCopyWithImpl(this._self, this._then); final SyncSettingsModel _self; @@ -251,10 +248,8 @@ class _SyncSettignsModel extends SyncSettingsModel { } /// @nodoc -abstract mixin class _$SyncSettignsModelCopyWith<$Res> - implements $SyncSettingsModelCopyWith<$Res> { - factory _$SyncSettignsModelCopyWith( - _SyncSettignsModel value, $Res Function(_SyncSettignsModel) _then) = +abstract mixin class _$SyncSettignsModelCopyWith<$Res> implements $SyncSettingsModelCopyWith<$Res> { + factory _$SyncSettignsModelCopyWith(_SyncSettignsModel value, $Res Function(_SyncSettignsModel) _then) = __$SyncSettignsModelCopyWithImpl; @override @useResult @@ -262,8 +257,7 @@ abstract mixin class _$SyncSettignsModelCopyWith<$Res> } /// @nodoc -class __$SyncSettignsModelCopyWithImpl<$Res> - implements _$SyncSettignsModelCopyWith<$Res> { +class __$SyncSettignsModelCopyWithImpl<$Res> implements _$SyncSettignsModelCopyWith<$Res> { __$SyncSettignsModelCopyWithImpl(this._self, this._then); final _SyncSettignsModel _self; diff --git a/lib/models/syncing/transcode_download_model.freezed.dart b/lib/models/syncing/transcode_download_model.freezed.dart index 8d2621c78..e1b96dda2 100644 --- a/lib/models/syncing/transcode_download_model.freezed.dart +++ b/lib/models/syncing/transcode_download_model.freezed.dart @@ -26,8 +26,7 @@ mixin _$TranscodeDownloadModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TranscodeDownloadModelCopyWith get copyWith => - _$TranscodeDownloadModelCopyWithImpl( - this as TranscodeDownloadModel, _$identity); + _$TranscodeDownloadModelCopyWithImpl(this as TranscodeDownloadModel, _$identity); /// Serializes this TranscodeDownloadModel to a JSON map. Map toJson(); @@ -40,8 +39,7 @@ mixin _$TranscodeDownloadModel { /// @nodoc abstract mixin class $TranscodeDownloadModelCopyWith<$Res> { - factory $TranscodeDownloadModelCopyWith(TranscodeDownloadModel value, - $Res Function(TranscodeDownloadModel) _then) = + factory $TranscodeDownloadModelCopyWith(TranscodeDownloadModel value, $Res Function(TranscodeDownloadModel) _then) = _$TranscodeDownloadModelCopyWithImpl; @useResult $Res call( @@ -54,8 +52,7 @@ abstract mixin class $TranscodeDownloadModelCopyWith<$Res> { } /// @nodoc -class _$TranscodeDownloadModelCopyWithImpl<$Res> - implements $TranscodeDownloadModelCopyWith<$Res> { +class _$TranscodeDownloadModelCopyWithImpl<$Res> implements $TranscodeDownloadModelCopyWith<$Res> { _$TranscodeDownloadModelCopyWithImpl(this._self, this._then); final TranscodeDownloadModel _self; @@ -195,16 +192,16 @@ extension TranscodeDownloadModelPatterns on TranscodeDownloadModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(bool enabled, VideoCodec videoCodec, AudioCodec audioCodec, - MaxHeight maxHeight, VideoContainer container, Bitrate maxBitrate)? + TResult Function(bool enabled, VideoCodec videoCodec, AudioCodec audioCodec, MaxHeight maxHeight, + VideoContainer container, Bitrate maxBitrate)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _TranscodeDownloadModel() when $default != null: - return $default(_that.enabled, _that.videoCodec, _that.audioCodec, - _that.maxHeight, _that.container, _that.maxBitrate); + return $default( + _that.enabled, _that.videoCodec, _that.audioCodec, _that.maxHeight, _that.container, _that.maxBitrate); case _: return orElse(); } @@ -225,15 +222,15 @@ extension TranscodeDownloadModelPatterns on TranscodeDownloadModel { @optionalTypeArgs TResult when( - TResult Function(bool enabled, VideoCodec videoCodec, AudioCodec audioCodec, - MaxHeight maxHeight, VideoContainer container, Bitrate maxBitrate) + TResult Function(bool enabled, VideoCodec videoCodec, AudioCodec audioCodec, MaxHeight maxHeight, + VideoContainer container, Bitrate maxBitrate) $default, ) { final _that = this; switch (_that) { case _TranscodeDownloadModel(): - return $default(_that.enabled, _that.videoCodec, _that.audioCodec, - _that.maxHeight, _that.container, _that.maxBitrate); + return $default( + _that.enabled, _that.videoCodec, _that.audioCodec, _that.maxHeight, _that.container, _that.maxBitrate); case _: throw StateError('Unexpected subclass'); } @@ -253,20 +250,15 @@ extension TranscodeDownloadModelPatterns on TranscodeDownloadModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - bool enabled, - VideoCodec videoCodec, - AudioCodec audioCodec, - MaxHeight maxHeight, - VideoContainer container, - Bitrate maxBitrate)? + TResult? Function(bool enabled, VideoCodec videoCodec, AudioCodec audioCodec, MaxHeight maxHeight, + VideoContainer container, Bitrate maxBitrate)? $default, ) { final _that = this; switch (_that) { case _TranscodeDownloadModel() when $default != null: - return $default(_that.enabled, _that.videoCodec, _that.audioCodec, - _that.maxHeight, _that.container, _that.maxBitrate); + return $default( + _that.enabled, _that.videoCodec, _that.audioCodec, _that.maxHeight, _that.container, _that.maxBitrate); case _: return null; } @@ -284,8 +276,7 @@ class _TranscodeDownloadModel extends TranscodeDownloadModel { required this.container, required this.maxBitrate}) : super._(); - factory _TranscodeDownloadModel.fromJson(Map json) => - _$TranscodeDownloadModelFromJson(json); + factory _TranscodeDownloadModel.fromJson(Map json) => _$TranscodeDownloadModelFromJson(json); @override @JsonKey() @@ -307,8 +298,7 @@ class _TranscodeDownloadModel extends TranscodeDownloadModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$TranscodeDownloadModelCopyWith<_TranscodeDownloadModel> get copyWith => - __$TranscodeDownloadModelCopyWithImpl<_TranscodeDownloadModel>( - this, _$identity); + __$TranscodeDownloadModelCopyWithImpl<_TranscodeDownloadModel>(this, _$identity); @override Map toJson() { @@ -324,10 +314,9 @@ class _TranscodeDownloadModel extends TranscodeDownloadModel { } /// @nodoc -abstract mixin class _$TranscodeDownloadModelCopyWith<$Res> - implements $TranscodeDownloadModelCopyWith<$Res> { - factory _$TranscodeDownloadModelCopyWith(_TranscodeDownloadModel value, - $Res Function(_TranscodeDownloadModel) _then) = +abstract mixin class _$TranscodeDownloadModelCopyWith<$Res> implements $TranscodeDownloadModelCopyWith<$Res> { + factory _$TranscodeDownloadModelCopyWith( + _TranscodeDownloadModel value, $Res Function(_TranscodeDownloadModel) _then) = __$TranscodeDownloadModelCopyWithImpl; @override @useResult @@ -341,8 +330,7 @@ abstract mixin class _$TranscodeDownloadModelCopyWith<$Res> } /// @nodoc -class __$TranscodeDownloadModelCopyWithImpl<$Res> - implements _$TranscodeDownloadModelCopyWith<$Res> { +class __$TranscodeDownloadModelCopyWithImpl<$Res> implements _$TranscodeDownloadModelCopyWith<$Res> { __$TranscodeDownloadModelCopyWithImpl(this._self, this._then); final _TranscodeDownloadModel _self; diff --git a/lib/models/syncing/transcode_download_model.g.dart b/lib/models/syncing/transcode_download_model.g.dart index b1b8a40f9..b3393d7dc 100644 --- a/lib/models/syncing/transcode_download_model.g.dart +++ b/lib/models/syncing/transcode_download_model.g.dart @@ -6,9 +6,7 @@ part of 'transcode_download_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_TranscodeDownloadModel _$TranscodeDownloadModelFromJson( - Map json) => - _TranscodeDownloadModel( +_TranscodeDownloadModel _$TranscodeDownloadModelFromJson(Map json) => _TranscodeDownloadModel( enabled: json['enabled'] as bool? ?? false, videoCodec: $enumDecode(_$VideoCodecEnumMap, json['videoCodec']), audioCodec: $enumDecode(_$AudioCodecEnumMap, json['audioCodec']), @@ -17,9 +15,7 @@ _TranscodeDownloadModel _$TranscodeDownloadModelFromJson( maxBitrate: $enumDecode(_$BitrateEnumMap, json['maxBitrate']), ); -Map _$TranscodeDownloadModelToJson( - _TranscodeDownloadModel instance) => - { +Map _$TranscodeDownloadModelToJson(_TranscodeDownloadModel instance) => { 'enabled': instance.enabled, 'videoCodec': _$VideoCodecEnumMap[instance.videoCodec]!, 'audioCodec': _$AudioCodecEnumMap[instance.audioCodec]!, diff --git a/lib/models/syncplay/syncplay_models.dart b/lib/models/syncplay/syncplay_models.dart new file mode 100644 index 000000000..f750f257b --- /dev/null +++ b/lib/models/syncplay/syncplay_models.dart @@ -0,0 +1,319 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'syncplay_models.freezed.dart'; + +/// Time sync measurement for NTP-like clock synchronization +@Freezed(copyWith: true) +abstract class TimeSyncMeasurement with _$TimeSyncMeasurement { + const TimeSyncMeasurement._(); + + factory TimeSyncMeasurement({ + required DateTime requestSent, + required DateTime requestReceived, + required DateTime responseSent, + required DateTime responseReceived, + }) = _TimeSyncMeasurement; + + /// Clock offset between client and server + /// Positive = server is ahead of client + Duration get offset { + final t1 = requestSent.millisecondsSinceEpoch; + final t2 = requestReceived.millisecondsSinceEpoch; + final t3 = responseSent.millisecondsSinceEpoch; + final t4 = responseReceived.millisecondsSinceEpoch; + final offsetMs = ((t2 - t1) + (t3 - t4)) / 2; + return Duration(milliseconds: offsetMs.round()); + } + + /// Round-trip delay + Duration get delay { + final t1 = requestSent.millisecondsSinceEpoch; + final t2 = requestReceived.millisecondsSinceEpoch; + final t3 = responseSent.millisecondsSinceEpoch; + final t4 = responseReceived.millisecondsSinceEpoch; + final delayMs = (t4 - t1) - (t3 - t2); + return Duration(milliseconds: delayMs); + } + + /// One-way ping (half of round-trip) + Duration get ping => Duration(milliseconds: delay.inMilliseconds ~/ 2); +} + +/// SyncPlay group state +enum SyncPlayGroupState { + idle, + waiting, + paused, + playing, +} + +/// SyncPlay command type emitted by the server in `SyncPlayCommand` +/// messages. Keeps the cross-platform contract typed instead of +/// passing raw strings (AGENTS.md SyncPlay rule 2). +enum SyncPlayCommand { + pause('Pause'), + unpause('Unpause'), + seek('Seek'), + stop('Stop'); + + const SyncPlayCommand(this.wire); + + /// Server-side wire identifier (used in REST/WebSocket payloads). + final String wire; + + /// Parse a wire string from the server. Returns `null` for unknown + /// values so callers can ignore the message instead of crashing. + static SyncPlayCommand? fromWire(String? value) { + if (value == null) { + return null; + } + for (final command in SyncPlayCommand.values) { + if (command.wire == value) { + return command; + } + } + return null; + } +} + +/// Reason field reported alongside `StateUpdate` group updates. +enum SyncPlayStateReason { + newPlaylist('NewPlaylist'), + setCurrentItem('SetCurrentItem'), + unpause('Unpause'), + pause('Pause'), + seek('Seek'), + buffer('Buffer'), + ready('Ready'), + stop('Stop'); + + const SyncPlayStateReason(this.wire); + + final String wire; + + static SyncPlayStateReason? fromWire(String? value) { + if (value == null) { + return null; + } + for (final reason in SyncPlayStateReason.values) { + if (reason.wire == value) { + return reason; + } + } + return null; + } +} + +/// Playback correction strategy used to resync local playback with group time. +enum SyncCorrectionStrategy { + none, + speedToSync, + skipToSync, +} + +/// Config values for playback drift correction. +/// +/// Defaults match official Jellyfin SyncPlay thresholds. +class SyncCorrectionConfig { + const SyncCorrectionConfig({ + this.minDelaySpeedToSyncMs = 60, + this.maxDelaySpeedToSyncMs = 3000, + this.speedToSyncDurationMs = 1000, + this.minDelaySkipToSyncMs = 400, + this.useSpeedToSync = true, + this.useSkipToSync = true, + this.enableSyncCorrection = true, + }); + + final double minDelaySpeedToSyncMs; + final double maxDelaySpeedToSyncMs; + final double speedToSyncDurationMs; + final double minDelaySkipToSyncMs; + final bool useSpeedToSync; + final bool useSkipToSync; + final bool enableSyncCorrection; + + SyncCorrectionConfig copyWith({ + double? minDelaySpeedToSyncMs, + double? maxDelaySpeedToSyncMs, + double? speedToSyncDurationMs, + double? minDelaySkipToSyncMs, + bool? useSpeedToSync, + bool? useSkipToSync, + bool? enableSyncCorrection, + }) { + return SyncCorrectionConfig( + minDelaySpeedToSyncMs: minDelaySpeedToSyncMs ?? this.minDelaySpeedToSyncMs, + maxDelaySpeedToSyncMs: maxDelaySpeedToSyncMs ?? this.maxDelaySpeedToSyncMs, + speedToSyncDurationMs: speedToSyncDurationMs ?? this.speedToSyncDurationMs, + minDelaySkipToSyncMs: minDelaySkipToSyncMs ?? this.minDelaySkipToSyncMs, + useSpeedToSync: useSpeedToSync ?? this.useSpeedToSync, + useSkipToSync: useSkipToSync ?? this.useSkipToSync, + enableSyncCorrection: enableSyncCorrection ?? this.enableSyncCorrection, + ); + } +} + +/// Runtime state of playback correction logic. +class SyncCorrectionState { + const SyncCorrectionState({ + this.syncEnabled = true, + this.playerIsBuffering = false, + this.playbackDiffMillis = 0, + this.syncAttempts = 0, + this.lastSyncAt, + this.activeStrategy = SyncCorrectionStrategy.none, + }); + + final bool syncEnabled; + final bool playerIsBuffering; + final double playbackDiffMillis; + final int syncAttempts; + final DateTime? lastSyncAt; + final SyncCorrectionStrategy activeStrategy; + + SyncCorrectionState copyWith({ + bool? syncEnabled, + bool? playerIsBuffering, + double? playbackDiffMillis, + int? syncAttempts, + DateTime? lastSyncAt, + SyncCorrectionStrategy? activeStrategy, + }) { + return SyncCorrectionState( + syncEnabled: syncEnabled ?? this.syncEnabled, + playerIsBuffering: playerIsBuffering ?? this.playerIsBuffering, + playbackDiffMillis: playbackDiffMillis ?? this.playbackDiffMillis, + syncAttempts: syncAttempts ?? this.syncAttempts, + lastSyncAt: lastSyncAt ?? this.lastSyncAt, + activeStrategy: activeStrategy ?? this.activeStrategy, + ); + } +} + +/// Select correction strategy based on current diff and runtime/config state. +/// +/// Precedence intentionally mirrors official behavior: +/// SpeedToSync first, then SkipToSync fallback. +SyncCorrectionStrategy selectSyncCorrectionStrategy({ + required SyncCorrectionConfig config, + required SyncCorrectionState state, + required double diffMillis, + required bool hasPlaybackRate, +}) { + if (!config.enableSyncCorrection || !state.syncEnabled) { + return SyncCorrectionStrategy.none; + } + + if (state.activeStrategy != SyncCorrectionStrategy.none) { + return SyncCorrectionStrategy.none; + } + + final absDiffMillis = diffMillis.abs(); + + final canUseSpeedToSync = (config.useSpeedToSync && + hasPlaybackRate && + absDiffMillis >= config.minDelaySpeedToSyncMs && + absDiffMillis < config.maxDelaySpeedToSyncMs); + if (canUseSpeedToSync) { + return SyncCorrectionStrategy.speedToSync; + } + + final canUseSkipToSync = (config.useSkipToSync && absDiffMillis >= config.minDelaySkipToSyncMs); + if (canUseSkipToSync) { + return SyncCorrectionStrategy.skipToSync; + } + + return SyncCorrectionStrategy.none; +} + +/// Current SyncPlay session state +@Freezed(copyWith: true) +abstract class SyncPlayState with _$SyncPlayState { + const SyncPlayState._(); + + factory SyncPlayState({ + @Default(false) bool isConnected, + @Default(false) bool isInGroup, + String? groupId, + String? groupName, + @Default(SyncPlayGroupState.idle) SyncPlayGroupState groupState, + String? stateReason, + @Default([]) List participants, + String? playingItemId, + String? playlistItemId, + @Default(0) int positionTicks, + DateTime? lastCommandTime, + + /// Whether a SyncPlay command is currently being processed + @Default(false) bool isProcessingCommand, + + /// The type of command being processed (for UI feedback). Typed + /// as [SyncPlayCommand] to keep cross-platform contracts strongly + /// typed (AGENTS.md SyncPlay rule 2). + SyncPlayCommand? processingCommandType, + + /// Internal correction configuration and thresholds. + @Default(SyncCorrectionConfig()) SyncCorrectionConfig correctionConfig, + + /// Runtime correction status for UI and command logic. + @Default(SyncCorrectionState()) SyncCorrectionState correctionState, + + /// True while a `_startPlayback` call is in flight (loader UX). + @Default(false) bool startPlaybackInProgress, + + /// PlaylistItemId currently being started (for dedup of concurrent + /// PlayQueue updates that race against each other). + String? startingPlaylistItemId, + + /// Number of nested local-only operations currently active. While + /// > 0, the controller suppresses `reportBuffering`/`reportReady` + /// so audio/subtitle reloads don't pause the rest of the group. + @Default(0) int localOnlyOperationCount, + }) = _SyncPlayState; + + bool get isActive => isConnected && isInGroup; + + /// True when local-only mode is active (audio/subtitle switch, etc.). + bool get isInLocalOnlyMode => localOnlyOperationCount > 0; + + /// True when the group has an active item playing/paused/waiting that + /// the local user could re-attach to (used by the "Resume playback" + /// button when the player route is not currently mounted). + bool get hasActivePlayback => isInGroup && playingItemId != null && groupState != SyncPlayGroupState.idle; +} + +/// Last executed command for duplicate detection +@Freezed(copyWith: true) +abstract class LastSyncPlayCommand with _$LastSyncPlayCommand { + factory LastSyncPlayCommand({ + required String when, + required int positionTicks, + required SyncPlayCommand command, + required String playlistItemId, + }) = _LastSyncPlayCommand; +} + +/// WebSocket connection state +enum WebSocketConnectionState { + disconnected, + connecting, + connected, + reconnecting, +} + +/// Ticks conversion constants +const int ticksPerMillisecond = 10000; +const int ticksPerSecond = 10000000; + +/// Convert seconds to ticks +int secondsToTicks(double seconds) => (seconds * ticksPerSecond).round(); + +/// Convert ticks to seconds +double ticksToSeconds(int ticks) => ticks / ticksPerSecond; + +/// Convert milliseconds to ticks +int millisecondsToTicks(int ms) => ms * ticksPerMillisecond; + +/// Convert ticks to milliseconds +int ticksToMilliseconds(int ticks) => ticks ~/ ticksPerMillisecond; diff --git a/lib/models/syncplay/syncplay_models.freezed.dart b/lib/models/syncplay/syncplay_models.freezed.dart new file mode 100644 index 000000000..54be5b4bc --- /dev/null +++ b/lib/models/syncplay/syncplay_models.freezed.dart @@ -0,0 +1,1320 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'syncplay_models.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$TimeSyncMeasurement { + DateTime get requestSent; + DateTime get requestReceived; + DateTime get responseSent; + DateTime get responseReceived; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $TimeSyncMeasurementCopyWith get copyWith => + _$TimeSyncMeasurementCopyWithImpl(this as TimeSyncMeasurement, _$identity); + + @override + String toString() { + return 'TimeSyncMeasurement(requestSent: $requestSent, requestReceived: $requestReceived, responseSent: $responseSent, responseReceived: $responseReceived)'; + } +} + +/// @nodoc +abstract mixin class $TimeSyncMeasurementCopyWith<$Res> { + factory $TimeSyncMeasurementCopyWith(TimeSyncMeasurement value, $Res Function(TimeSyncMeasurement) _then) = + _$TimeSyncMeasurementCopyWithImpl; + @useResult + $Res call({DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived}); +} + +/// @nodoc +class _$TimeSyncMeasurementCopyWithImpl<$Res> implements $TimeSyncMeasurementCopyWith<$Res> { + _$TimeSyncMeasurementCopyWithImpl(this._self, this._then); + + final TimeSyncMeasurement _self; + final $Res Function(TimeSyncMeasurement) _then; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? requestSent = null, + Object? requestReceived = null, + Object? responseSent = null, + Object? responseReceived = null, + }) { + return _then(_self.copyWith( + requestSent: null == requestSent + ? _self.requestSent + : requestSent // ignore: cast_nullable_to_non_nullable + as DateTime, + requestReceived: null == requestReceived + ? _self.requestReceived + : requestReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + responseSent: null == responseSent + ? _self.responseSent + : responseSent // ignore: cast_nullable_to_non_nullable + as DateTime, + responseReceived: null == responseReceived + ? _self.responseReceived + : responseReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + )); + } +} + +/// Adds pattern-matching-related methods to [TimeSyncMeasurement]. +extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_TimeSyncMeasurement value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_TimeSyncMeasurement value) $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_TimeSyncMeasurement value)? $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived) + $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement(): + return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived)? + $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); + case _: + return null; + } + } +} + +/// @nodoc + +class _TimeSyncMeasurement extends TimeSyncMeasurement { + _TimeSyncMeasurement( + {required this.requestSent, + required this.requestReceived, + required this.responseSent, + required this.responseReceived}) + : super._(); + + @override + final DateTime requestSent; + @override + final DateTime requestReceived; + @override + final DateTime responseSent; + @override + final DateTime responseReceived; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$TimeSyncMeasurementCopyWith<_TimeSyncMeasurement> get copyWith => + __$TimeSyncMeasurementCopyWithImpl<_TimeSyncMeasurement>(this, _$identity); + + @override + String toString() { + return 'TimeSyncMeasurement(requestSent: $requestSent, requestReceived: $requestReceived, responseSent: $responseSent, responseReceived: $responseReceived)'; + } +} + +/// @nodoc +abstract mixin class _$TimeSyncMeasurementCopyWith<$Res> implements $TimeSyncMeasurementCopyWith<$Res> { + factory _$TimeSyncMeasurementCopyWith(_TimeSyncMeasurement value, $Res Function(_TimeSyncMeasurement) _then) = + __$TimeSyncMeasurementCopyWithImpl; + @override + @useResult + $Res call({DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived}); +} + +/// @nodoc +class __$TimeSyncMeasurementCopyWithImpl<$Res> implements _$TimeSyncMeasurementCopyWith<$Res> { + __$TimeSyncMeasurementCopyWithImpl(this._self, this._then); + + final _TimeSyncMeasurement _self; + final $Res Function(_TimeSyncMeasurement) _then; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? requestSent = null, + Object? requestReceived = null, + Object? responseSent = null, + Object? responseReceived = null, + }) { + return _then(_TimeSyncMeasurement( + requestSent: null == requestSent + ? _self.requestSent + : requestSent // ignore: cast_nullable_to_non_nullable + as DateTime, + requestReceived: null == requestReceived + ? _self.requestReceived + : requestReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + responseSent: null == responseSent + ? _self.responseSent + : responseSent // ignore: cast_nullable_to_non_nullable + as DateTime, + responseReceived: null == responseReceived + ? _self.responseReceived + : responseReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + )); + } +} + +/// @nodoc +mixin _$SyncPlayState { + bool get isConnected; + bool get isInGroup; + String? get groupId; + String? get groupName; + SyncPlayGroupState get groupState; + String? get stateReason; + List get participants; + String? get playingItemId; + String? get playlistItemId; + int get positionTicks; + DateTime? get lastCommandTime; + + /// Whether a SyncPlay command is currently being processed + bool get isProcessingCommand; + + /// The type of command being processed (for UI feedback). Typed + /// as [SyncPlayCommand] to keep cross-platform contracts strongly + /// typed (AGENTS.md SyncPlay rule 2). + SyncPlayCommand? get processingCommandType; + + /// Internal correction configuration and thresholds. + SyncCorrectionConfig get correctionConfig; + + /// Runtime correction status for UI and command logic. + SyncCorrectionState get correctionState; + + /// True while a `_startPlayback` call is in flight (loader UX). + bool get startPlaybackInProgress; + + /// PlaylistItemId currently being started (for dedup of concurrent + /// PlayQueue updates that race against each other). + String? get startingPlaylistItemId; + + /// Number of nested local-only operations currently active. While + /// > 0, the controller suppresses `reportBuffering`/`reportReady` + /// so audio/subtitle reloads don't pause the rest of the group. + int get localOnlyOperationCount; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $SyncPlayStateCopyWith get copyWith => + _$SyncPlayStateCopyWithImpl(this as SyncPlayState, _$identity); + + @override + String toString() { + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType, correctionConfig: $correctionConfig, correctionState: $correctionState, startPlaybackInProgress: $startPlaybackInProgress, startingPlaylistItemId: $startingPlaylistItemId, localOnlyOperationCount: $localOnlyOperationCount)'; + } +} + +/// @nodoc +abstract mixin class $SyncPlayStateCopyWith<$Res> { + factory $SyncPlayStateCopyWith(SyncPlayState value, $Res Function(SyncPlayState) _then) = _$SyncPlayStateCopyWithImpl; + @useResult + $Res call( + {bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime, + bool isProcessingCommand, + SyncPlayCommand? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState, + bool startPlaybackInProgress, + String? startingPlaylistItemId, + int localOnlyOperationCount}); +} + +/// @nodoc +class _$SyncPlayStateCopyWithImpl<$Res> implements $SyncPlayStateCopyWith<$Res> { + _$SyncPlayStateCopyWithImpl(this._self, this._then); + + final SyncPlayState _self; + final $Res Function(SyncPlayState) _then; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? isConnected = null, + Object? isInGroup = null, + Object? groupId = freezed, + Object? groupName = freezed, + Object? groupState = null, + Object? stateReason = freezed, + Object? participants = null, + Object? playingItemId = freezed, + Object? playlistItemId = freezed, + Object? positionTicks = null, + Object? lastCommandTime = freezed, + Object? isProcessingCommand = null, + Object? processingCommandType = freezed, + Object? correctionConfig = null, + Object? correctionState = null, + Object? startPlaybackInProgress = null, + Object? startingPlaylistItemId = freezed, + Object? localOnlyOperationCount = null, + }) { + return _then(_self.copyWith( + isConnected: null == isConnected + ? _self.isConnected + : isConnected // ignore: cast_nullable_to_non_nullable + as bool, + isInGroup: null == isInGroup + ? _self.isInGroup + : isInGroup // ignore: cast_nullable_to_non_nullable + as bool, + groupId: freezed == groupId + ? _self.groupId + : groupId // ignore: cast_nullable_to_non_nullable + as String?, + groupName: freezed == groupName + ? _self.groupName + : groupName // ignore: cast_nullable_to_non_nullable + as String?, + groupState: null == groupState + ? _self.groupState + : groupState // ignore: cast_nullable_to_non_nullable + as SyncPlayGroupState, + stateReason: freezed == stateReason + ? _self.stateReason + : stateReason // ignore: cast_nullable_to_non_nullable + as String?, + participants: null == participants + ? _self.participants + : participants // ignore: cast_nullable_to_non_nullable + as List, + playingItemId: freezed == playingItemId + ? _self.playingItemId + : playingItemId // ignore: cast_nullable_to_non_nullable + as String?, + playlistItemId: freezed == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String?, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + lastCommandTime: freezed == lastCommandTime + ? _self.lastCommandTime + : lastCommandTime // ignore: cast_nullable_to_non_nullable + as DateTime?, + isProcessingCommand: null == isProcessingCommand + ? _self.isProcessingCommand + : isProcessingCommand // ignore: cast_nullable_to_non_nullable + as bool, + processingCommandType: freezed == processingCommandType + ? _self.processingCommandType + : processingCommandType // ignore: cast_nullable_to_non_nullable + as SyncPlayCommand?, + correctionConfig: null == correctionConfig + ? _self.correctionConfig + : correctionConfig // ignore: cast_nullable_to_non_nullable + as SyncCorrectionConfig, + correctionState: null == correctionState + ? _self.correctionState + : correctionState // ignore: cast_nullable_to_non_nullable + as SyncCorrectionState, + startPlaybackInProgress: null == startPlaybackInProgress + ? _self.startPlaybackInProgress + : startPlaybackInProgress // ignore: cast_nullable_to_non_nullable + as bool, + startingPlaylistItemId: freezed == startingPlaylistItemId + ? _self.startingPlaylistItemId + : startingPlaylistItemId // ignore: cast_nullable_to_non_nullable + as String?, + localOnlyOperationCount: null == localOnlyOperationCount + ? _self.localOnlyOperationCount + : localOnlyOperationCount // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// Adds pattern-matching-related methods to [SyncPlayState]. +extension SyncPlayStatePatterns on SyncPlayState { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_SyncPlayState value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_SyncPlayState value) $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_SyncPlayState value)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function( + bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime, + bool isProcessingCommand, + SyncPlayCommand? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState, + bool startPlaybackInProgress, + String? startingPlaylistItemId, + int localOnlyOperationCount)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default( + _that.isConnected, + _that.isInGroup, + _that.groupId, + _that.groupName, + _that.groupState, + _that.stateReason, + _that.participants, + _that.playingItemId, + _that.playlistItemId, + _that.positionTicks, + _that.lastCommandTime, + _that.isProcessingCommand, + _that.processingCommandType, + _that.correctionConfig, + _that.correctionState, + _that.startPlaybackInProgress, + _that.startingPlaylistItemId, + _that.localOnlyOperationCount); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function( + bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime, + bool isProcessingCommand, + SyncPlayCommand? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState, + bool startPlaybackInProgress, + String? startingPlaylistItemId, + int localOnlyOperationCount) + $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState(): + return $default( + _that.isConnected, + _that.isInGroup, + _that.groupId, + _that.groupName, + _that.groupState, + _that.stateReason, + _that.participants, + _that.playingItemId, + _that.playlistItemId, + _that.positionTicks, + _that.lastCommandTime, + _that.isProcessingCommand, + _that.processingCommandType, + _that.correctionConfig, + _that.correctionState, + _that.startPlaybackInProgress, + _that.startingPlaylistItemId, + _that.localOnlyOperationCount); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function( + bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime, + bool isProcessingCommand, + SyncPlayCommand? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState, + bool startPlaybackInProgress, + String? startingPlaylistItemId, + int localOnlyOperationCount)? + $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default( + _that.isConnected, + _that.isInGroup, + _that.groupId, + _that.groupName, + _that.groupState, + _that.stateReason, + _that.participants, + _that.playingItemId, + _that.playlistItemId, + _that.positionTicks, + _that.lastCommandTime, + _that.isProcessingCommand, + _that.processingCommandType, + _that.correctionConfig, + _that.correctionState, + _that.startPlaybackInProgress, + _that.startingPlaylistItemId, + _that.localOnlyOperationCount); + case _: + return null; + } + } +} + +/// @nodoc + +class _SyncPlayState extends SyncPlayState { + _SyncPlayState( + {this.isConnected = false, + this.isInGroup = false, + this.groupId, + this.groupName, + this.groupState = SyncPlayGroupState.idle, + this.stateReason, + final List participants = const [], + this.playingItemId, + this.playlistItemId, + this.positionTicks = 0, + this.lastCommandTime, + this.isProcessingCommand = false, + this.processingCommandType, + this.correctionConfig = const SyncCorrectionConfig(), + this.correctionState = const SyncCorrectionState(), + this.startPlaybackInProgress = false, + this.startingPlaylistItemId, + this.localOnlyOperationCount = 0}) + : _participants = participants, + super._(); + + @override + @JsonKey() + final bool isConnected; + @override + @JsonKey() + final bool isInGroup; + @override + final String? groupId; + @override + final String? groupName; + @override + @JsonKey() + final SyncPlayGroupState groupState; + @override + final String? stateReason; + final List _participants; + @override + @JsonKey() + List get participants { + if (_participants is EqualUnmodifiableListView) return _participants; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_participants); + } + + @override + final String? playingItemId; + @override + final String? playlistItemId; + @override + @JsonKey() + final int positionTicks; + @override + final DateTime? lastCommandTime; + + /// Whether a SyncPlay command is currently being processed + @override + @JsonKey() + final bool isProcessingCommand; + + /// The type of command being processed (for UI feedback). Typed + /// as [SyncPlayCommand] to keep cross-platform contracts strongly + /// typed (AGENTS.md SyncPlay rule 2). + @override + final SyncPlayCommand? processingCommandType; + + /// Internal correction configuration and thresholds. + @override + @JsonKey() + final SyncCorrectionConfig correctionConfig; + + /// Runtime correction status for UI and command logic. + @override + @JsonKey() + final SyncCorrectionState correctionState; + + /// True while a `_startPlayback` call is in flight (loader UX). + @override + @JsonKey() + final bool startPlaybackInProgress; + + /// PlaylistItemId currently being started (for dedup of concurrent + /// PlayQueue updates that race against each other). + @override + final String? startingPlaylistItemId; + + /// Number of nested local-only operations currently active. While + /// > 0, the controller suppresses `reportBuffering`/`reportReady` + /// so audio/subtitle reloads don't pause the rest of the group. + @override + @JsonKey() + final int localOnlyOperationCount; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$SyncPlayStateCopyWith<_SyncPlayState> get copyWith => + __$SyncPlayStateCopyWithImpl<_SyncPlayState>(this, _$identity); + + @override + String toString() { + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType, correctionConfig: $correctionConfig, correctionState: $correctionState, startPlaybackInProgress: $startPlaybackInProgress, startingPlaylistItemId: $startingPlaylistItemId, localOnlyOperationCount: $localOnlyOperationCount)'; + } +} + +/// @nodoc +abstract mixin class _$SyncPlayStateCopyWith<$Res> implements $SyncPlayStateCopyWith<$Res> { + factory _$SyncPlayStateCopyWith(_SyncPlayState value, $Res Function(_SyncPlayState) _then) = + __$SyncPlayStateCopyWithImpl; + @override + @useResult + $Res call( + {bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime, + bool isProcessingCommand, + SyncPlayCommand? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState, + bool startPlaybackInProgress, + String? startingPlaylistItemId, + int localOnlyOperationCount}); +} + +/// @nodoc +class __$SyncPlayStateCopyWithImpl<$Res> implements _$SyncPlayStateCopyWith<$Res> { + __$SyncPlayStateCopyWithImpl(this._self, this._then); + + final _SyncPlayState _self; + final $Res Function(_SyncPlayState) _then; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? isConnected = null, + Object? isInGroup = null, + Object? groupId = freezed, + Object? groupName = freezed, + Object? groupState = null, + Object? stateReason = freezed, + Object? participants = null, + Object? playingItemId = freezed, + Object? playlistItemId = freezed, + Object? positionTicks = null, + Object? lastCommandTime = freezed, + Object? isProcessingCommand = null, + Object? processingCommandType = freezed, + Object? correctionConfig = null, + Object? correctionState = null, + Object? startPlaybackInProgress = null, + Object? startingPlaylistItemId = freezed, + Object? localOnlyOperationCount = null, + }) { + return _then(_SyncPlayState( + isConnected: null == isConnected + ? _self.isConnected + : isConnected // ignore: cast_nullable_to_non_nullable + as bool, + isInGroup: null == isInGroup + ? _self.isInGroup + : isInGroup // ignore: cast_nullable_to_non_nullable + as bool, + groupId: freezed == groupId + ? _self.groupId + : groupId // ignore: cast_nullable_to_non_nullable + as String?, + groupName: freezed == groupName + ? _self.groupName + : groupName // ignore: cast_nullable_to_non_nullable + as String?, + groupState: null == groupState + ? _self.groupState + : groupState // ignore: cast_nullable_to_non_nullable + as SyncPlayGroupState, + stateReason: freezed == stateReason + ? _self.stateReason + : stateReason // ignore: cast_nullable_to_non_nullable + as String?, + participants: null == participants + ? _self._participants + : participants // ignore: cast_nullable_to_non_nullable + as List, + playingItemId: freezed == playingItemId + ? _self.playingItemId + : playingItemId // ignore: cast_nullable_to_non_nullable + as String?, + playlistItemId: freezed == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String?, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + lastCommandTime: freezed == lastCommandTime + ? _self.lastCommandTime + : lastCommandTime // ignore: cast_nullable_to_non_nullable + as DateTime?, + isProcessingCommand: null == isProcessingCommand + ? _self.isProcessingCommand + : isProcessingCommand // ignore: cast_nullable_to_non_nullable + as bool, + processingCommandType: freezed == processingCommandType + ? _self.processingCommandType + : processingCommandType // ignore: cast_nullable_to_non_nullable + as SyncPlayCommand?, + correctionConfig: null == correctionConfig + ? _self.correctionConfig + : correctionConfig // ignore: cast_nullable_to_non_nullable + as SyncCorrectionConfig, + correctionState: null == correctionState + ? _self.correctionState + : correctionState // ignore: cast_nullable_to_non_nullable + as SyncCorrectionState, + startPlaybackInProgress: null == startPlaybackInProgress + ? _self.startPlaybackInProgress + : startPlaybackInProgress // ignore: cast_nullable_to_non_nullable + as bool, + startingPlaylistItemId: freezed == startingPlaylistItemId + ? _self.startingPlaylistItemId + : startingPlaylistItemId // ignore: cast_nullable_to_non_nullable + as String?, + localOnlyOperationCount: null == localOnlyOperationCount + ? _self.localOnlyOperationCount + : localOnlyOperationCount // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// @nodoc +mixin _$LastSyncPlayCommand { + String get when; + int get positionTicks; + SyncPlayCommand get command; + String get playlistItemId; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $LastSyncPlayCommandCopyWith get copyWith => + _$LastSyncPlayCommandCopyWithImpl(this as LastSyncPlayCommand, _$identity); + + @override + String toString() { + return 'LastSyncPlayCommand(when: $when, positionTicks: $positionTicks, command: $command, playlistItemId: $playlistItemId)'; + } +} + +/// @nodoc +abstract mixin class $LastSyncPlayCommandCopyWith<$Res> { + factory $LastSyncPlayCommandCopyWith(LastSyncPlayCommand value, $Res Function(LastSyncPlayCommand) _then) = + _$LastSyncPlayCommandCopyWithImpl; + @useResult + $Res call({String when, int positionTicks, SyncPlayCommand command, String playlistItemId}); +} + +/// @nodoc +class _$LastSyncPlayCommandCopyWithImpl<$Res> implements $LastSyncPlayCommandCopyWith<$Res> { + _$LastSyncPlayCommandCopyWithImpl(this._self, this._then); + + final LastSyncPlayCommand _self; + final $Res Function(LastSyncPlayCommand) _then; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? when = null, + Object? positionTicks = null, + Object? command = null, + Object? playlistItemId = null, + }) { + return _then(_self.copyWith( + when: null == when + ? _self.when + : when // ignore: cast_nullable_to_non_nullable + as String, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + command: null == command + ? _self.command + : command // ignore: cast_nullable_to_non_nullable + as SyncPlayCommand, + playlistItemId: null == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// Adds pattern-matching-related methods to [LastSyncPlayCommand]. +extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_LastSyncPlayCommand value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_LastSyncPlayCommand value) $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_LastSyncPlayCommand value)? $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function(String when, int positionTicks, SyncPlayCommand command, String playlistItemId)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function(String when, int positionTicks, SyncPlayCommand command, String playlistItemId) $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand(): + return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function(String when, int positionTicks, SyncPlayCommand command, String playlistItemId)? $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); + case _: + return null; + } + } +} + +/// @nodoc + +class _LastSyncPlayCommand implements LastSyncPlayCommand { + _LastSyncPlayCommand( + {required this.when, required this.positionTicks, required this.command, required this.playlistItemId}); + + @override + final String when; + @override + final int positionTicks; + @override + final SyncPlayCommand command; + @override + final String playlistItemId; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$LastSyncPlayCommandCopyWith<_LastSyncPlayCommand> get copyWith => + __$LastSyncPlayCommandCopyWithImpl<_LastSyncPlayCommand>(this, _$identity); + + @override + String toString() { + return 'LastSyncPlayCommand(when: $when, positionTicks: $positionTicks, command: $command, playlistItemId: $playlistItemId)'; + } +} + +/// @nodoc +abstract mixin class _$LastSyncPlayCommandCopyWith<$Res> implements $LastSyncPlayCommandCopyWith<$Res> { + factory _$LastSyncPlayCommandCopyWith(_LastSyncPlayCommand value, $Res Function(_LastSyncPlayCommand) _then) = + __$LastSyncPlayCommandCopyWithImpl; + @override + @useResult + $Res call({String when, int positionTicks, SyncPlayCommand command, String playlistItemId}); +} + +/// @nodoc +class __$LastSyncPlayCommandCopyWithImpl<$Res> implements _$LastSyncPlayCommandCopyWith<$Res> { + __$LastSyncPlayCommandCopyWithImpl(this._self, this._then); + + final _LastSyncPlayCommand _self; + final $Res Function(_LastSyncPlayCommand) _then; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? when = null, + Object? positionTicks = null, + Object? command = null, + Object? playlistItemId = null, + }) { + return _then(_LastSyncPlayCommand( + when: null == when + ? _self.when + : when // ignore: cast_nullable_to_non_nullable + as String, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + command: null == command + ? _self.command + : command // ignore: cast_nullable_to_non_nullable + as SyncPlayCommand, + playlistItemId: null == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +// dart format on diff --git a/lib/providers/api_provider.g.dart b/lib/providers/api_provider.g.dart index dd4988991..709646cdc 100644 --- a/lib/providers/api_provider.g.dart +++ b/lib/providers/api_provider.g.dart @@ -10,12 +10,10 @@ String _$jellyApiHash() => r'9bc824d28d17f88f40c768cefb637144e0fbf346'; /// See also [JellyApi]. @ProviderFor(JellyApi) -final jellyApiProvider = - AutoDisposeNotifierProvider.internal( +final jellyApiProvider = AutoDisposeNotifierProvider.internal( JellyApi.new, name: r'jellyApiProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$jellyApiHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$jellyApiHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/connectivity_provider.g.dart b/lib/providers/connectivity_provider.g.dart index d44f52b38..330a708de 100644 --- a/lib/providers/connectivity_provider.g.dart +++ b/lib/providers/connectivity_provider.g.dart @@ -6,18 +6,14 @@ part of 'connectivity_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$connectivityStatusHash() => - r'52306e5e6a94bafdcb98d63e6fd5c7fe9c2a5bd7'; +String _$connectivityStatusHash() => r'52306e5e6a94bafdcb98d63e6fd5c7fe9c2a5bd7'; /// See also [ConnectivityStatus]. @ProviderFor(ConnectivityStatus) -final connectivityStatusProvider = - NotifierProvider.internal( +final connectivityStatusProvider = NotifierProvider.internal( ConnectivityStatus.new, name: r'connectivityStatusProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$connectivityStatusHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$connectivityStatusHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_active_tasks_provider.g.dart b/lib/providers/control_panel/control_active_tasks_provider.g.dart index dececcfa0..bad7af0ec 100644 --- a/lib/providers/control_panel/control_active_tasks_provider.g.dart +++ b/lib/providers/control_panel/control_active_tasks_provider.g.dart @@ -6,18 +6,14 @@ part of 'control_active_tasks_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$controlActiveTasksHash() => - r'afe69c1b45a2b1492d99f539fe8322d2c891942a'; +String _$controlActiveTasksHash() => r'afe69c1b45a2b1492d99f539fe8322d2c891942a'; /// See also [ControlActiveTasks]. @ProviderFor(ControlActiveTasks) -final controlActiveTasksProvider = - AutoDisposeNotifierProvider>.internal( +final controlActiveTasksProvider = AutoDisposeNotifierProvider>.internal( ControlActiveTasks.new, name: r'controlActiveTasksProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlActiveTasksHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlActiveTasksHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_activity_provider.freezed.dart b/lib/providers/control_panel/control_activity_provider.freezed.dart index 9c354f02a..7556a53fd 100644 --- a/lib/providers/control_panel/control_activity_provider.freezed.dart +++ b/lib/providers/control_panel/control_activity_provider.freezed.dart @@ -29,8 +29,7 @@ mixin _$ControlActivityModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlActivityModelCopyWith get copyWith => - _$ControlActivityModelCopyWithImpl( - this as ControlActivityModel, _$identity); + _$ControlActivityModelCopyWithImpl(this as ControlActivityModel, _$identity); @override String toString() { @@ -40,8 +39,7 @@ mixin _$ControlActivityModel { /// @nodoc abstract mixin class $ControlActivityModelCopyWith<$Res> { - factory $ControlActivityModelCopyWith(ControlActivityModel value, - $Res Function(ControlActivityModel) _then) = + factory $ControlActivityModelCopyWith(ControlActivityModel value, $Res Function(ControlActivityModel) _then) = _$ControlActivityModelCopyWithImpl; @useResult $Res call( @@ -61,8 +59,7 @@ abstract mixin class $ControlActivityModelCopyWith<$Res> { } /// @nodoc -class _$ControlActivityModelCopyWithImpl<$Res> - implements $ControlActivityModelCopyWith<$Res> { +class _$ControlActivityModelCopyWithImpl<$Res> implements $ControlActivityModelCopyWith<$Res> { _$ControlActivityModelCopyWithImpl(this._self, this._then); final ControlActivityModel _self; @@ -275,16 +272,8 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel() when $default != null: - return $default( - _that.user, - _that.deviceName, - _that.client, - _that.applicationVersion, - _that.activityType, - _that.nowPlayingItem, - _that.trickPlay, - _that.playState, - _that.lastActivityDate); + return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, + _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); case _: return orElse(); } @@ -320,16 +309,8 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel(): - return $default( - _that.user, - _that.deviceName, - _that.client, - _that.applicationVersion, - _that.activityType, - _that.nowPlayingItem, - _that.trickPlay, - _that.playState, - _that.lastActivityDate); + return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, + _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); case _: throw StateError('Unexpected subclass'); } @@ -364,16 +345,8 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel() when $default != null: - return $default( - _that.user, - _that.deviceName, - _that.client, - _that.applicationVersion, - _that.activityType, - _that.nowPlayingItem, - _that.trickPlay, - _that.playState, - _that.lastActivityDate); + return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, + _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); case _: return null; } @@ -419,8 +392,7 @@ class _ControlActivityModel implements ControlActivityModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlActivityModelCopyWith<_ControlActivityModel> get copyWith => - __$ControlActivityModelCopyWithImpl<_ControlActivityModel>( - this, _$identity); + __$ControlActivityModelCopyWithImpl<_ControlActivityModel>(this, _$identity); @override String toString() { @@ -429,10 +401,8 @@ class _ControlActivityModel implements ControlActivityModel { } /// @nodoc -abstract mixin class _$ControlActivityModelCopyWith<$Res> - implements $ControlActivityModelCopyWith<$Res> { - factory _$ControlActivityModelCopyWith(_ControlActivityModel value, - $Res Function(_ControlActivityModel) _then) = +abstract mixin class _$ControlActivityModelCopyWith<$Res> implements $ControlActivityModelCopyWith<$Res> { + factory _$ControlActivityModelCopyWith(_ControlActivityModel value, $Res Function(_ControlActivityModel) _then) = __$ControlActivityModelCopyWithImpl; @override @useResult @@ -456,8 +426,7 @@ abstract mixin class _$ControlActivityModelCopyWith<$Res> } /// @nodoc -class __$ControlActivityModelCopyWithImpl<$Res> - implements _$ControlActivityModelCopyWith<$Res> { +class __$ControlActivityModelCopyWithImpl<$Res> implements _$ControlActivityModelCopyWith<$Res> { __$ControlActivityModelCopyWithImpl(this._self, this._then); final _ControlActivityModel _self; @@ -572,8 +541,7 @@ mixin _$ActivityPlayState { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ActivityPlayStateCopyWith get copyWith => - _$ActivityPlayStateCopyWithImpl( - this as ActivityPlayState, _$identity); + _$ActivityPlayStateCopyWithImpl(this as ActivityPlayState, _$identity); @override String toString() { @@ -583,16 +551,14 @@ mixin _$ActivityPlayState { /// @nodoc abstract mixin class $ActivityPlayStateCopyWith<$Res> { - factory $ActivityPlayStateCopyWith( - ActivityPlayState value, $Res Function(ActivityPlayState) _then) = + factory $ActivityPlayStateCopyWith(ActivityPlayState value, $Res Function(ActivityPlayState) _then) = _$ActivityPlayStateCopyWithImpl; @useResult $Res call({Duration currentPosition, String? playMethod, bool? isPaused}); } /// @nodoc -class _$ActivityPlayStateCopyWithImpl<$Res> - implements $ActivityPlayStateCopyWith<$Res> { +class _$ActivityPlayStateCopyWithImpl<$Res> implements $ActivityPlayStateCopyWith<$Res> { _$ActivityPlayStateCopyWithImpl(this._self, this._then); final ActivityPlayState _self; @@ -717,16 +683,13 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult maybeWhen( - TResult Function( - Duration currentPosition, String? playMethod, bool? isPaused)? - $default, { + TResult Function(Duration currentPosition, String? playMethod, bool? isPaused)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ActivityPlayState() when $default != null: - return $default( - _that.currentPosition, _that.playMethod, _that.isPaused); + return $default(_that.currentPosition, _that.playMethod, _that.isPaused); case _: return orElse(); } @@ -747,15 +710,12 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult when( - TResult Function( - Duration currentPosition, String? playMethod, bool? isPaused) - $default, + TResult Function(Duration currentPosition, String? playMethod, bool? isPaused) $default, ) { final _that = this; switch (_that) { case _ActivityPlayState(): - return $default( - _that.currentPosition, _that.playMethod, _that.isPaused); + return $default(_that.currentPosition, _that.playMethod, _that.isPaused); case _: throw StateError('Unexpected subclass'); } @@ -775,15 +735,12 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - Duration currentPosition, String? playMethod, bool? isPaused)? - $default, + TResult? Function(Duration currentPosition, String? playMethod, bool? isPaused)? $default, ) { final _that = this; switch (_that) { case _ActivityPlayState() when $default != null: - return $default( - _that.currentPosition, _that.playMethod, _that.isPaused); + return $default(_that.currentPosition, _that.playMethod, _that.isPaused); case _: return null; } @@ -793,8 +750,7 @@ extension ActivityPlayStatePatterns on ActivityPlayState { /// @nodoc class _ActivityPlayState implements ActivityPlayState { - _ActivityPlayState( - {required this.currentPosition, this.playMethod, this.isPaused}); + _ActivityPlayState({required this.currentPosition, this.playMethod, this.isPaused}); @override final Duration currentPosition; @@ -818,10 +774,8 @@ class _ActivityPlayState implements ActivityPlayState { } /// @nodoc -abstract mixin class _$ActivityPlayStateCopyWith<$Res> - implements $ActivityPlayStateCopyWith<$Res> { - factory _$ActivityPlayStateCopyWith( - _ActivityPlayState value, $Res Function(_ActivityPlayState) _then) = +abstract mixin class _$ActivityPlayStateCopyWith<$Res> implements $ActivityPlayStateCopyWith<$Res> { + factory _$ActivityPlayStateCopyWith(_ActivityPlayState value, $Res Function(_ActivityPlayState) _then) = __$ActivityPlayStateCopyWithImpl; @override @useResult @@ -829,8 +783,7 @@ abstract mixin class _$ActivityPlayStateCopyWith<$Res> } /// @nodoc -class __$ActivityPlayStateCopyWithImpl<$Res> - implements _$ActivityPlayStateCopyWith<$Res> { +class __$ActivityPlayStateCopyWithImpl<$Res> implements _$ActivityPlayStateCopyWith<$Res> { __$ActivityPlayStateCopyWithImpl(this._self, this._then); final _ActivityPlayState _self; diff --git a/lib/providers/control_panel/control_activity_provider.g.dart b/lib/providers/control_panel/control_activity_provider.g.dart index cfdeae880..5a25c2ad1 100644 --- a/lib/providers/control_panel/control_activity_provider.g.dart +++ b/lib/providers/control_panel/control_activity_provider.g.dart @@ -10,13 +10,10 @@ String _$controlActivityHash() => r'6bf669b9917ca9c694b6e0d498c57bbf1e77748c'; /// See also [ControlActivity]. @ProviderFor(ControlActivity) -final controlActivityProvider = AutoDisposeNotifierProvider>.internal( +final controlActivityProvider = AutoDisposeNotifierProvider>.internal( ControlActivity.new, name: r'controlActivityProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlActivityHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlActivityHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_dashboard_provider.freezed.dart b/lib/providers/control_panel/control_dashboard_provider.freezed.dart index ae3cf1dfe..22d1ec78a 100644 --- a/lib/providers/control_panel/control_dashboard_provider.freezed.dart +++ b/lib/providers/control_panel/control_dashboard_provider.freezed.dart @@ -26,8 +26,7 @@ mixin _$ControlDashboardModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlDashboardModelCopyWith get copyWith => - _$ControlDashboardModelCopyWithImpl( - this as ControlDashboardModel, _$identity); + _$ControlDashboardModelCopyWithImpl(this as ControlDashboardModel, _$identity); @override String toString() { @@ -37,8 +36,7 @@ mixin _$ControlDashboardModel { /// @nodoc abstract mixin class $ControlDashboardModelCopyWith<$Res> { - factory $ControlDashboardModelCopyWith(ControlDashboardModel value, - $Res Function(ControlDashboardModel) _then) = + factory $ControlDashboardModelCopyWith(ControlDashboardModel value, $Res Function(ControlDashboardModel) _then) = _$ControlDashboardModelCopyWithImpl; @useResult $Res call( @@ -51,8 +49,7 @@ abstract mixin class $ControlDashboardModelCopyWith<$Res> { } /// @nodoc -class _$ControlDashboardModelCopyWithImpl<$Res> - implements $ControlDashboardModelCopyWith<$Res> { +class _$ControlDashboardModelCopyWithImpl<$Res> implements $ControlDashboardModelCopyWith<$Res> { _$ControlDashboardModelCopyWithImpl(this._self, this._then); final ControlDashboardModel _self; @@ -192,21 +189,16 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - String? serverName, - String? serverVersion, - String? webVersion, - bool isShuttingDown, - jelly.ItemCounts? itemCounts, - jelly.SystemStorageDto? storagePaths)? + TResult Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, + jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ControlDashboardModel() when $default != null: - return $default(_that.serverName, _that.serverVersion, _that.webVersion, - _that.isShuttingDown, _that.itemCounts, _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, + _that.storagePaths); case _: return orElse(); } @@ -227,20 +219,15 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult when( - TResult Function( - String? serverName, - String? serverVersion, - String? webVersion, - bool isShuttingDown, - jelly.ItemCounts? itemCounts, - jelly.SystemStorageDto? storagePaths) + TResult Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, + jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths) $default, ) { final _that = this; switch (_that) { case _ControlDashboardModel(): - return $default(_that.serverName, _that.serverVersion, _that.webVersion, - _that.isShuttingDown, _that.itemCounts, _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, + _that.storagePaths); case _: throw StateError('Unexpected subclass'); } @@ -260,20 +247,15 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - String? serverName, - String? serverVersion, - String? webVersion, - bool isShuttingDown, - jelly.ItemCounts? itemCounts, - jelly.SystemStorageDto? storagePaths)? + TResult? Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, + jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths)? $default, ) { final _that = this; switch (_that) { case _ControlDashboardModel() when $default != null: - return $default(_that.serverName, _that.serverVersion, _that.webVersion, - _that.isShuttingDown, _that.itemCounts, _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, + _that.storagePaths); case _: return null; } @@ -311,8 +293,7 @@ class _ControlDashboardModel implements ControlDashboardModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlDashboardModelCopyWith<_ControlDashboardModel> get copyWith => - __$ControlDashboardModelCopyWithImpl<_ControlDashboardModel>( - this, _$identity); + __$ControlDashboardModelCopyWithImpl<_ControlDashboardModel>(this, _$identity); @override String toString() { @@ -321,10 +302,8 @@ class _ControlDashboardModel implements ControlDashboardModel { } /// @nodoc -abstract mixin class _$ControlDashboardModelCopyWith<$Res> - implements $ControlDashboardModelCopyWith<$Res> { - factory _$ControlDashboardModelCopyWith(_ControlDashboardModel value, - $Res Function(_ControlDashboardModel) _then) = +abstract mixin class _$ControlDashboardModelCopyWith<$Res> implements $ControlDashboardModelCopyWith<$Res> { + factory _$ControlDashboardModelCopyWith(_ControlDashboardModel value, $Res Function(_ControlDashboardModel) _then) = __$ControlDashboardModelCopyWithImpl; @override @useResult @@ -338,8 +317,7 @@ abstract mixin class _$ControlDashboardModelCopyWith<$Res> } /// @nodoc -class __$ControlDashboardModelCopyWithImpl<$Res> - implements _$ControlDashboardModelCopyWith<$Res> { +class __$ControlDashboardModelCopyWithImpl<$Res> implements _$ControlDashboardModelCopyWith<$Res> { __$ControlDashboardModelCopyWithImpl(this._self, this._then); final _ControlDashboardModel _self; diff --git a/lib/providers/control_panel/control_dashboard_provider.g.dart b/lib/providers/control_panel/control_dashboard_provider.g.dart index 2a7733968..2366051c6 100644 --- a/lib/providers/control_panel/control_dashboard_provider.g.dart +++ b/lib/providers/control_panel/control_dashboard_provider.g.dart @@ -10,13 +10,10 @@ String _$controlDashboardHash() => r'5d6d925acafc9a0e837351cf5d29952cb1f507eb'; /// See also [ControlDashboard]. @ProviderFor(ControlDashboard) -final controlDashboardProvider = AutoDisposeNotifierProvider.internal( +final controlDashboardProvider = AutoDisposeNotifierProvider.internal( ControlDashboard.new, name: r'controlDashboardProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlDashboardHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlDashboardHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_device_discovery_provider.freezed.dart b/lib/providers/control_panel/control_device_discovery_provider.freezed.dart index dde87e51c..0e480d363 100644 --- a/lib/providers/control_panel/control_device_discovery_provider.freezed.dart +++ b/lib/providers/control_panel/control_device_discovery_provider.freezed.dart @@ -21,9 +21,8 @@ mixin _$ControlDeviceDiscoveryModel { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $ControlDeviceDiscoveryModelCopyWith - get copyWith => _$ControlDeviceDiscoveryModelCopyWithImpl< - ControlDeviceDiscoveryModel>( + $ControlDeviceDiscoveryModelCopyWith get copyWith => + _$ControlDeviceDiscoveryModelCopyWithImpl( this as ControlDeviceDiscoveryModel, _$identity); @override @@ -35,16 +34,14 @@ mixin _$ControlDeviceDiscoveryModel { /// @nodoc abstract mixin class $ControlDeviceDiscoveryModelCopyWith<$Res> { factory $ControlDeviceDiscoveryModelCopyWith( - ControlDeviceDiscoveryModel value, - $Res Function(ControlDeviceDiscoveryModel) _then) = + ControlDeviceDiscoveryModel value, $Res Function(ControlDeviceDiscoveryModel) _then) = _$ControlDeviceDiscoveryModelCopyWithImpl; @useResult $Res call({bool isLoading, List devices}); } /// @nodoc -class _$ControlDeviceDiscoveryModelCopyWithImpl<$Res> - implements $ControlDeviceDiscoveryModelCopyWith<$Res> { +class _$ControlDeviceDiscoveryModelCopyWithImpl<$Res> implements $ControlDeviceDiscoveryModelCopyWith<$Res> { _$ControlDeviceDiscoveryModelCopyWithImpl(this._self, this._then); final ControlDeviceDiscoveryModel _self; @@ -231,8 +228,7 @@ extension ControlDeviceDiscoveryModelPatterns on ControlDeviceDiscoveryModel { /// @nodoc class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { - const _ControlDeviceDiscoveryModel( - {this.isLoading = true, final List devices = const []}) + const _ControlDeviceDiscoveryModel({this.isLoading = true, final List devices = const []}) : _devices = devices; @override @@ -252,9 +248,8 @@ class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$ControlDeviceDiscoveryModelCopyWith<_ControlDeviceDiscoveryModel> - get copyWith => __$ControlDeviceDiscoveryModelCopyWithImpl< - _ControlDeviceDiscoveryModel>(this, _$identity); + _$ControlDeviceDiscoveryModelCopyWith<_ControlDeviceDiscoveryModel> get copyWith => + __$ControlDeviceDiscoveryModelCopyWithImpl<_ControlDeviceDiscoveryModel>(this, _$identity); @override String toString() { @@ -263,11 +258,9 @@ class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { } /// @nodoc -abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> - implements $ControlDeviceDiscoveryModelCopyWith<$Res> { +abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> implements $ControlDeviceDiscoveryModelCopyWith<$Res> { factory _$ControlDeviceDiscoveryModelCopyWith( - _ControlDeviceDiscoveryModel value, - $Res Function(_ControlDeviceDiscoveryModel) _then) = + _ControlDeviceDiscoveryModel value, $Res Function(_ControlDeviceDiscoveryModel) _then) = __$ControlDeviceDiscoveryModelCopyWithImpl; @override @useResult @@ -275,8 +268,7 @@ abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> } /// @nodoc -class __$ControlDeviceDiscoveryModelCopyWithImpl<$Res> - implements _$ControlDeviceDiscoveryModelCopyWith<$Res> { +class __$ControlDeviceDiscoveryModelCopyWithImpl<$Res> implements _$ControlDeviceDiscoveryModelCopyWith<$Res> { __$ControlDeviceDiscoveryModelCopyWithImpl(this._self, this._then); final _ControlDeviceDiscoveryModel _self; diff --git a/lib/providers/control_panel/control_device_discovery_provider.g.dart b/lib/providers/control_panel/control_device_discovery_provider.g.dart index b0d34dcab..247b181b1 100644 --- a/lib/providers/control_panel/control_device_discovery_provider.g.dart +++ b/lib/providers/control_panel/control_device_discovery_provider.g.dart @@ -6,23 +6,19 @@ part of 'control_device_discovery_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$controlDeviceDiscoveryHash() => - r'2d01dd615a1afd7dd6f3ec69dd332c341a0fdc81'; +String _$controlDeviceDiscoveryHash() => r'2d01dd615a1afd7dd6f3ec69dd332c341a0fdc81'; /// See also [ControlDeviceDiscovery]. @ProviderFor(ControlDeviceDiscovery) -final controlDeviceDiscoveryProvider = AutoDisposeNotifierProvider< - ControlDeviceDiscovery, ControlDeviceDiscoveryModel>.internal( +final controlDeviceDiscoveryProvider = + AutoDisposeNotifierProvider.internal( ControlDeviceDiscovery.new, name: r'controlDeviceDiscoveryProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlDeviceDiscoveryHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlDeviceDiscoveryHash, dependencies: null, allTransitiveDependencies: null, ); -typedef _$ControlDeviceDiscovery - = AutoDisposeNotifier; +typedef _$ControlDeviceDiscovery = AutoDisposeNotifier; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/control_panel/control_libraries_provider.freezed.dart b/lib/providers/control_panel/control_libraries_provider.freezed.dart index 50de08413..ba1b3b2a1 100644 --- a/lib/providers/control_panel/control_libraries_provider.freezed.dart +++ b/lib/providers/control_panel/control_libraries_provider.freezed.dart @@ -27,8 +27,7 @@ mixin _$ControlLibrariesModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlLibrariesModelCopyWith get copyWith => - _$ControlLibrariesModelCopyWithImpl( - this as ControlLibrariesModel, _$identity); + _$ControlLibrariesModelCopyWithImpl(this as ControlLibrariesModel, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -51,8 +50,7 @@ mixin _$ControlLibrariesModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $ControlLibrariesModelCopyWith<$Res> { - factory $ControlLibrariesModelCopyWith(ControlLibrariesModel value, - $Res Function(ControlLibrariesModel) _then) = + factory $ControlLibrariesModelCopyWith(ControlLibrariesModel value, $Res Function(ControlLibrariesModel) _then) = _$ControlLibrariesModelCopyWithImpl; @useResult $Res call( @@ -66,8 +64,7 @@ abstract mixin class $ControlLibrariesModelCopyWith<$Res> { } /// @nodoc -class _$ControlLibrariesModelCopyWithImpl<$Res> - implements $ControlLibrariesModelCopyWith<$Res> { +class _$ControlLibrariesModelCopyWithImpl<$Res> implements $ControlLibrariesModelCopyWith<$Res> { _$ControlLibrariesModelCopyWithImpl(this._self, this._then); final ControlLibrariesModel _self; @@ -226,14 +223,8 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel() when $default != null: - return $default( - _that.availableLibraries, - _that.selectedLibrary, - _that.newVirtualFolder, - _that.cultures, - _that.countries, - _that.virtualFolders, - _that.availableOptions); + return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, + _that.countries, _that.virtualFolders, _that.availableOptions); case _: return orElse(); } @@ -267,14 +258,8 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel(): - return $default( - _that.availableLibraries, - _that.selectedLibrary, - _that.newVirtualFolder, - _that.cultures, - _that.countries, - _that.virtualFolders, - _that.availableOptions); + return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, + _that.countries, _that.virtualFolders, _that.availableOptions); case _: throw StateError('Unexpected subclass'); } @@ -307,14 +292,8 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel() when $default != null: - return $default( - _that.availableLibraries, - _that.selectedLibrary, - _that.newVirtualFolder, - _that.cultures, - _that.countries, - _that.virtualFolders, - _that.availableOptions); + return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, + _that.countries, _that.virtualFolders, _that.availableOptions); case _: return null; } @@ -323,8 +302,7 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { /// @nodoc -class _ControlLibrariesModel extends ControlLibrariesModel - with DiagnosticableTreeMixin { +class _ControlLibrariesModel extends ControlLibrariesModel with DiagnosticableTreeMixin { _ControlLibrariesModel( {final List availableLibraries = const [], this.selectedLibrary, @@ -343,8 +321,7 @@ class _ControlLibrariesModel extends ControlLibrariesModel @override @JsonKey() List get availableLibraries { - if (_availableLibraries is EqualUnmodifiableListView) - return _availableLibraries; + if (_availableLibraries is EqualUnmodifiableListView) return _availableLibraries; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_availableLibraries); } @@ -389,8 +366,7 @@ class _ControlLibrariesModel extends ControlLibrariesModel @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlLibrariesModelCopyWith<_ControlLibrariesModel> get copyWith => - __$ControlLibrariesModelCopyWithImpl<_ControlLibrariesModel>( - this, _$identity); + __$ControlLibrariesModelCopyWithImpl<_ControlLibrariesModel>(this, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -412,10 +388,8 @@ class _ControlLibrariesModel extends ControlLibrariesModel } /// @nodoc -abstract mixin class _$ControlLibrariesModelCopyWith<$Res> - implements $ControlLibrariesModelCopyWith<$Res> { - factory _$ControlLibrariesModelCopyWith(_ControlLibrariesModel value, - $Res Function(_ControlLibrariesModel) _then) = +abstract mixin class _$ControlLibrariesModelCopyWith<$Res> implements $ControlLibrariesModelCopyWith<$Res> { + factory _$ControlLibrariesModelCopyWith(_ControlLibrariesModel value, $Res Function(_ControlLibrariesModel) _then) = __$ControlLibrariesModelCopyWithImpl; @override @useResult @@ -430,8 +404,7 @@ abstract mixin class _$ControlLibrariesModelCopyWith<$Res> } /// @nodoc -class __$ControlLibrariesModelCopyWithImpl<$Res> - implements _$ControlLibrariesModelCopyWith<$Res> { +class __$ControlLibrariesModelCopyWithImpl<$Res> implements _$ControlLibrariesModelCopyWith<$Res> { __$ControlLibrariesModelCopyWithImpl(this._self, this._then); final _ControlLibrariesModel _self; diff --git a/lib/providers/control_panel/control_libraries_provider.g.dart b/lib/providers/control_panel/control_libraries_provider.g.dart index 91929ee8f..668421052 100644 --- a/lib/providers/control_panel/control_libraries_provider.g.dart +++ b/lib/providers/control_panel/control_libraries_provider.g.dart @@ -10,13 +10,10 @@ String _$controlLibrariesHash() => r'e3da05dc3d283260923cedee26a2069ad6ec2ab0'; /// See also [ControlLibraries]. @ProviderFor(ControlLibraries) -final controlLibrariesProvider = AutoDisposeNotifierProvider.internal( +final controlLibrariesProvider = AutoDisposeNotifierProvider.internal( ControlLibraries.new, name: r'controlLibrariesProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlLibrariesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlLibrariesHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_livetv_provider.freezed.dart b/lib/providers/control_panel/control_livetv_provider.freezed.dart index 114487606..1e843f251 100644 --- a/lib/providers/control_panel/control_livetv_provider.freezed.dart +++ b/lib/providers/control_panel/control_livetv_provider.freezed.dart @@ -21,8 +21,7 @@ mixin _$ControlLiveTvModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlLiveTvModelCopyWith get copyWith => - _$ControlLiveTvModelCopyWithImpl( - this as ControlLiveTvModel, _$identity); + _$ControlLiveTvModelCopyWithImpl(this as ControlLiveTvModel, _$identity); @override String toString() { @@ -32,16 +31,14 @@ mixin _$ControlLiveTvModel { /// @nodoc abstract mixin class $ControlLiveTvModelCopyWith<$Res> { - factory $ControlLiveTvModelCopyWith( - ControlLiveTvModel value, $Res Function(ControlLiveTvModel) _then) = + factory $ControlLiveTvModelCopyWith(ControlLiveTvModel value, $Res Function(ControlLiveTvModel) _then) = _$ControlLiveTvModelCopyWithImpl; @useResult $Res call({LiveTvOptions? liveTvOptions}); } /// @nodoc -class _$ControlLiveTvModelCopyWithImpl<$Res> - implements $ControlLiveTvModelCopyWith<$Res> { +class _$ControlLiveTvModelCopyWithImpl<$Res> implements $ControlLiveTvModelCopyWith<$Res> { _$ControlLiveTvModelCopyWithImpl(this._self, this._then); final ControlLiveTvModel _self; @@ -243,10 +240,8 @@ class _ControlLiveTvModel implements ControlLiveTvModel { } /// @nodoc -abstract mixin class _$ControlLiveTvModelCopyWith<$Res> - implements $ControlLiveTvModelCopyWith<$Res> { - factory _$ControlLiveTvModelCopyWith( - _ControlLiveTvModel value, $Res Function(_ControlLiveTvModel) _then) = +abstract mixin class _$ControlLiveTvModelCopyWith<$Res> implements $ControlLiveTvModelCopyWith<$Res> { + factory _$ControlLiveTvModelCopyWith(_ControlLiveTvModel value, $Res Function(_ControlLiveTvModel) _then) = __$ControlLiveTvModelCopyWithImpl; @override @useResult @@ -254,8 +249,7 @@ abstract mixin class _$ControlLiveTvModelCopyWith<$Res> } /// @nodoc -class __$ControlLiveTvModelCopyWithImpl<$Res> - implements _$ControlLiveTvModelCopyWith<$Res> { +class __$ControlLiveTvModelCopyWithImpl<$Res> implements _$ControlLiveTvModelCopyWith<$Res> { __$ControlLiveTvModelCopyWithImpl(this._self, this._then); final _ControlLiveTvModel _self; diff --git a/lib/providers/control_panel/control_livetv_provider.g.dart b/lib/providers/control_panel/control_livetv_provider.g.dart index 8865a7b92..f131e00d7 100644 --- a/lib/providers/control_panel/control_livetv_provider.g.dart +++ b/lib/providers/control_panel/control_livetv_provider.g.dart @@ -10,13 +10,10 @@ String _$controlLiveTvHash() => r'f82b3b1ae56471d190aa7fa8fb5a34a6ccd73761'; /// See also [ControlLiveTv]. @ProviderFor(ControlLiveTv) -final controlLiveTvProvider = - AutoDisposeNotifierProvider.internal( +final controlLiveTvProvider = AutoDisposeNotifierProvider.internal( ControlLiveTv.new, name: r'controlLiveTvProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlLiveTvHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlLiveTvHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_server_provider.freezed.dart b/lib/providers/control_panel/control_server_provider.freezed.dart index 542964639..7d952dc8c 100644 --- a/lib/providers/control_panel/control_server_provider.freezed.dart +++ b/lib/providers/control_panel/control_server_provider.freezed.dart @@ -28,8 +28,7 @@ mixin _$ControlServerModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlServerModelCopyWith get copyWith => - _$ControlServerModelCopyWithImpl( - this as ControlServerModel, _$identity); + _$ControlServerModelCopyWithImpl(this as ControlServerModel, _$identity); @override String toString() { @@ -39,8 +38,7 @@ mixin _$ControlServerModel { /// @nodoc abstract mixin class $ControlServerModelCopyWith<$Res> { - factory $ControlServerModelCopyWith( - ControlServerModel value, $Res Function(ControlServerModel) _then) = + factory $ControlServerModelCopyWith(ControlServerModel value, $Res Function(ControlServerModel) _then) = _$ControlServerModelCopyWithImpl; @useResult $Res call( @@ -55,8 +53,7 @@ abstract mixin class $ControlServerModelCopyWith<$Res> { } /// @nodoc -class _$ControlServerModelCopyWithImpl<$Res> - implements $ControlServerModelCopyWith<$Res> { +class _$ControlServerModelCopyWithImpl<$Res> implements $ControlServerModelCopyWith<$Res> { _$ControlServerModelCopyWithImpl(this._self, this._then); final ControlServerModel _self; @@ -221,15 +218,8 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel() when $default != null: - return $default( - _that.name, - _that.language, - _that.availableLanguages, - _that.cachePath, - _that.metaDataPath, - _that.quickConnectEnabled, - _that.maxConcurrentLibraryScan, - _that.maxImageDecodingThreads); + return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, + _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); case _: return orElse(); } @@ -264,15 +254,8 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel(): - return $default( - _that.name, - _that.language, - _that.availableLanguages, - _that.cachePath, - _that.metaDataPath, - _that.quickConnectEnabled, - _that.maxConcurrentLibraryScan, - _that.maxImageDecodingThreads); + return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, + _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); case _: throw StateError('Unexpected subclass'); } @@ -306,15 +289,8 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel() when $default != null: - return $default( - _that.name, - _that.language, - _that.availableLanguages, - _that.cachePath, - _that.metaDataPath, - _that.quickConnectEnabled, - _that.maxConcurrentLibraryScan, - _that.maxImageDecodingThreads); + return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, + _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); case _: return null; } @@ -345,8 +321,7 @@ class _ControlServerModel implements ControlServerModel { List? get availableLanguages { final value = _availableLanguages; if (value == null) return null; - if (_availableLanguages is EqualUnmodifiableListView) - return _availableLanguages; + if (_availableLanguages is EqualUnmodifiableListView) return _availableLanguages; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -382,10 +357,8 @@ class _ControlServerModel implements ControlServerModel { } /// @nodoc -abstract mixin class _$ControlServerModelCopyWith<$Res> - implements $ControlServerModelCopyWith<$Res> { - factory _$ControlServerModelCopyWith( - _ControlServerModel value, $Res Function(_ControlServerModel) _then) = +abstract mixin class _$ControlServerModelCopyWith<$Res> implements $ControlServerModelCopyWith<$Res> { + factory _$ControlServerModelCopyWith(_ControlServerModel value, $Res Function(_ControlServerModel) _then) = __$ControlServerModelCopyWithImpl; @override @useResult @@ -401,8 +374,7 @@ abstract mixin class _$ControlServerModelCopyWith<$Res> } /// @nodoc -class __$ControlServerModelCopyWithImpl<$Res> - implements _$ControlServerModelCopyWith<$Res> { +class __$ControlServerModelCopyWithImpl<$Res> implements _$ControlServerModelCopyWith<$Res> { __$ControlServerModelCopyWithImpl(this._self, this._then); final _ControlServerModel _self; diff --git a/lib/providers/control_panel/control_server_provider.g.dart b/lib/providers/control_panel/control_server_provider.g.dart index 2fa466dcb..bbfe62a4b 100644 --- a/lib/providers/control_panel/control_server_provider.g.dart +++ b/lib/providers/control_panel/control_server_provider.g.dart @@ -10,13 +10,10 @@ String _$controlServerHash() => r'6b0310b063bd0de6ba7b332f056dd5da50648af4'; /// See also [ControlServer]. @ProviderFor(ControlServer) -final controlServerProvider = - AutoDisposeNotifierProvider.internal( +final controlServerProvider = AutoDisposeNotifierProvider.internal( ControlServer.new, name: r'controlServerProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlServerHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlServerHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart b/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart index 7bf353990..57cd64f13 100644 --- a/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart +++ b/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart @@ -37,8 +37,7 @@ mixin _$ControlTunerEditModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlTunerEditModelCopyWith get copyWith => - _$ControlTunerEditModelCopyWithImpl( - this as ControlTunerEditModel, _$identity); + _$ControlTunerEditModelCopyWithImpl(this as ControlTunerEditModel, _$identity); @override String toString() { @@ -48,8 +47,7 @@ mixin _$ControlTunerEditModel { /// @nodoc abstract mixin class $ControlTunerEditModelCopyWith<$Res> { - factory $ControlTunerEditModelCopyWith(ControlTunerEditModel value, - $Res Function(ControlTunerEditModel) _then) = + factory $ControlTunerEditModelCopyWith(ControlTunerEditModel value, $Res Function(ControlTunerEditModel) _then) = _$ControlTunerEditModelCopyWithImpl; @useResult $Res call( @@ -73,8 +71,7 @@ abstract mixin class $ControlTunerEditModelCopyWith<$Res> { } /// @nodoc -class _$ControlTunerEditModelCopyWithImpl<$Res> - implements $ControlTunerEditModelCopyWith<$Res> { +class _$ControlTunerEditModelCopyWithImpl<$Res> implements $ControlTunerEditModelCopyWith<$Res> { _$ControlTunerEditModelCopyWithImpl(this._self, this._then); final ControlTunerEditModel _self; @@ -516,8 +513,7 @@ class _ControlTunerEditModel implements ControlTunerEditModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlTunerEditModelCopyWith<_ControlTunerEditModel> get copyWith => - __$ControlTunerEditModelCopyWithImpl<_ControlTunerEditModel>( - this, _$identity); + __$ControlTunerEditModelCopyWithImpl<_ControlTunerEditModel>(this, _$identity); @override String toString() { @@ -526,10 +522,8 @@ class _ControlTunerEditModel implements ControlTunerEditModel { } /// @nodoc -abstract mixin class _$ControlTunerEditModelCopyWith<$Res> - implements $ControlTunerEditModelCopyWith<$Res> { - factory _$ControlTunerEditModelCopyWith(_ControlTunerEditModel value, - $Res Function(_ControlTunerEditModel) _then) = +abstract mixin class _$ControlTunerEditModelCopyWith<$Res> implements $ControlTunerEditModelCopyWith<$Res> { + factory _$ControlTunerEditModelCopyWith(_ControlTunerEditModel value, $Res Function(_ControlTunerEditModel) _then) = __$ControlTunerEditModelCopyWithImpl; @override @useResult @@ -554,8 +548,7 @@ abstract mixin class _$ControlTunerEditModelCopyWith<$Res> } /// @nodoc -class __$ControlTunerEditModelCopyWithImpl<$Res> - implements _$ControlTunerEditModelCopyWith<$Res> { +class __$ControlTunerEditModelCopyWithImpl<$Res> implements _$ControlTunerEditModelCopyWith<$Res> { __$ControlTunerEditModelCopyWithImpl(this._self, this._then); final _ControlTunerEditModel _self; diff --git a/lib/providers/control_panel/control_tuner_edit_provider.g.dart b/lib/providers/control_panel/control_tuner_edit_provider.g.dart index 2e66bec5b..a5c511c65 100644 --- a/lib/providers/control_panel/control_tuner_edit_provider.g.dart +++ b/lib/providers/control_panel/control_tuner_edit_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$ControlTunerEdit - extends BuildlessAutoDisposeNotifier { +abstract class _$ControlTunerEdit extends BuildlessAutoDisposeNotifier { late final TunerHostInfo? initialTuner; ControlTunerEditModel build( @@ -73,16 +72,14 @@ class ControlTunerEditFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'controlTunerEditProvider'; } /// See also [ControlTunerEdit]. -class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< - ControlTunerEdit, ControlTunerEditModel> { +class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl { /// See also [ControlTunerEdit]. ControlTunerEditProvider( TunerHostInfo? initialTuner, @@ -90,13 +87,9 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< () => ControlTunerEdit()..initialTuner = initialTuner, from: controlTunerEditProvider, name: r'controlTunerEditProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlTunerEditHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlTunerEditHash, dependencies: ControlTunerEditFamily._dependencies, - allTransitiveDependencies: - ControlTunerEditFamily._allTransitiveDependencies, + allTransitiveDependencies: ControlTunerEditFamily._allTransitiveDependencies, initialTuner: initialTuner, ); @@ -138,15 +131,13 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _ControlTunerEditProviderElement(this); } @override bool operator ==(Object other) { - return other is ControlTunerEditProvider && - other.initialTuner == initialTuner; + return other is ControlTunerEditProvider && other.initialTuner == initialTuner; } @override @@ -160,20 +151,17 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin ControlTunerEditRef - on AutoDisposeNotifierProviderRef { +mixin ControlTunerEditRef on AutoDisposeNotifierProviderRef { /// The parameter `initialTuner` of this provider. TunerHostInfo? get initialTuner; } class _ControlTunerEditProviderElement - extends AutoDisposeNotifierProviderElement with ControlTunerEditRef { + extends AutoDisposeNotifierProviderElement with ControlTunerEditRef { _ControlTunerEditProviderElement(super.provider); @override - TunerHostInfo? get initialTuner => - (origin as ControlTunerEditProvider).initialTuner; + TunerHostInfo? get initialTuner => (origin as ControlTunerEditProvider).initialTuner; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/control_panel/control_users_provider.freezed.dart b/lib/providers/control_panel/control_users_provider.freezed.dart index 101985190..904a3033f 100644 --- a/lib/providers/control_panel/control_users_provider.freezed.dart +++ b/lib/providers/control_panel/control_users_provider.freezed.dart @@ -26,8 +26,7 @@ mixin _$ControlUsersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlUsersModelCopyWith get copyWith => - _$ControlUsersModelCopyWithImpl( - this as ControlUsersModel, _$identity); + _$ControlUsersModelCopyWithImpl(this as ControlUsersModel, _$identity); @override String toString() { @@ -37,8 +36,7 @@ mixin _$ControlUsersModel { /// @nodoc abstract mixin class $ControlUsersModelCopyWith<$Res> { - factory $ControlUsersModelCopyWith( - ControlUsersModel value, $Res Function(ControlUsersModel) _then) = + factory $ControlUsersModelCopyWith(ControlUsersModel value, $Res Function(ControlUsersModel) _then) = _$ControlUsersModelCopyWithImpl; @useResult $Res call( @@ -53,8 +51,7 @@ abstract mixin class $ControlUsersModelCopyWith<$Res> { } /// @nodoc -class _$ControlUsersModelCopyWithImpl<$Res> - implements $ControlUsersModelCopyWith<$Res> { +class _$ControlUsersModelCopyWithImpl<$Res> implements $ControlUsersModelCopyWith<$Res> { _$ControlUsersModelCopyWithImpl(this._self, this._then); final ControlUsersModel _self; @@ -208,21 +205,16 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - List users, - List views, - AccountModel? selectedUser, - UserPolicy? editingPolicy, - List? availableDevices, - List? parentalRatings)? + TResult Function(List users, List views, AccountModel? selectedUser, + UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ControlUsersModel() when $default != null: - return $default(_that.users, _that.views, _that.selectedUser, - _that.editingPolicy, _that.availableDevices, _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, + _that.parentalRatings); case _: return orElse(); } @@ -243,20 +235,15 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult when( - TResult Function( - List users, - List views, - AccountModel? selectedUser, - UserPolicy? editingPolicy, - List? availableDevices, - List? parentalRatings) + TResult Function(List users, List views, AccountModel? selectedUser, + UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings) $default, ) { final _that = this; switch (_that) { case _ControlUsersModel(): - return $default(_that.users, _that.views, _that.selectedUser, - _that.editingPolicy, _that.availableDevices, _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, + _that.parentalRatings); case _: throw StateError('Unexpected subclass'); } @@ -276,20 +263,15 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - List users, - List views, - AccountModel? selectedUser, - UserPolicy? editingPolicy, - List? availableDevices, - List? parentalRatings)? + TResult? Function(List users, List views, AccountModel? selectedUser, + UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings)? $default, ) { final _that = this; switch (_that) { case _ControlUsersModel() when $default != null: - return $default(_that.users, _that.views, _that.selectedUser, - _that.editingPolicy, _that.availableDevices, _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, + _that.parentalRatings); case _: return null; } @@ -338,8 +320,7 @@ class _ControlUsersModel implements ControlUsersModel { List? get availableDevices { final value = _availableDevices; if (value == null) return null; - if (_availableDevices is EqualUnmodifiableListView) - return _availableDevices; + if (_availableDevices is EqualUnmodifiableListView) return _availableDevices; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -369,10 +350,8 @@ class _ControlUsersModel implements ControlUsersModel { } /// @nodoc -abstract mixin class _$ControlUsersModelCopyWith<$Res> - implements $ControlUsersModelCopyWith<$Res> { - factory _$ControlUsersModelCopyWith( - _ControlUsersModel value, $Res Function(_ControlUsersModel) _then) = +abstract mixin class _$ControlUsersModelCopyWith<$Res> implements $ControlUsersModelCopyWith<$Res> { + factory _$ControlUsersModelCopyWith(_ControlUsersModel value, $Res Function(_ControlUsersModel) _then) = __$ControlUsersModelCopyWithImpl; @override @useResult @@ -389,8 +368,7 @@ abstract mixin class _$ControlUsersModelCopyWith<$Res> } /// @nodoc -class __$ControlUsersModelCopyWithImpl<$Res> - implements _$ControlUsersModelCopyWith<$Res> { +class __$ControlUsersModelCopyWithImpl<$Res> implements _$ControlUsersModelCopyWith<$Res> { __$ControlUsersModelCopyWithImpl(this._self, this._then); final _ControlUsersModel _self; diff --git a/lib/providers/control_panel/control_users_provider.g.dart b/lib/providers/control_panel/control_users_provider.g.dart index d339c144e..91a5aff0d 100644 --- a/lib/providers/control_panel/control_users_provider.g.dart +++ b/lib/providers/control_panel/control_users_provider.g.dart @@ -10,12 +10,10 @@ String _$controlUsersHash() => r'c75c30523c95aa41812bcdb4c6d34873cbf2bca6'; /// See also [ControlUsers]. @ProviderFor(ControlUsers) -final controlUsersProvider = - AutoDisposeNotifierProvider.internal( +final controlUsersProvider = AutoDisposeNotifierProvider.internal( ControlUsers.new, name: r'controlUsersProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$controlUsersHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlUsersHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/cultures_provider.g.dart b/lib/providers/cultures_provider.g.dart index 95be7dda8..0622cf1e5 100644 --- a/lib/providers/cultures_provider.g.dart +++ b/lib/providers/cultures_provider.g.dart @@ -10,12 +10,10 @@ String _$culturesHash() => r'588163e393fff0bc643f10c4be598787a3581170'; /// See also [Cultures]. @ProviderFor(Cultures) -final culturesProvider = - AutoDisposeNotifierProvider>.internal( +final culturesProvider = AutoDisposeNotifierProvider>.internal( Cultures.new, name: r'culturesProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$culturesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$culturesHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/directory_browser_provider.freezed.dart b/lib/providers/directory_browser_provider.freezed.dart index 6c66b77ca..df700f19d 100644 --- a/lib/providers/directory_browser_provider.freezed.dart +++ b/lib/providers/directory_browser_provider.freezed.dart @@ -24,8 +24,7 @@ mixin _$DirectoryBrowserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $DirectoryBrowserModelCopyWith get copyWith => - _$DirectoryBrowserModelCopyWithImpl( - this as DirectoryBrowserModel, _$identity); + _$DirectoryBrowserModelCopyWithImpl(this as DirectoryBrowserModel, _$identity); @override String toString() { @@ -35,20 +34,14 @@ mixin _$DirectoryBrowserModel { /// @nodoc abstract mixin class $DirectoryBrowserModelCopyWith<$Res> { - factory $DirectoryBrowserModelCopyWith(DirectoryBrowserModel value, - $Res Function(DirectoryBrowserModel) _then) = + factory $DirectoryBrowserModelCopyWith(DirectoryBrowserModel value, $Res Function(DirectoryBrowserModel) _then) = _$DirectoryBrowserModelCopyWithImpl; @useResult - $Res call( - {String? parentFolder, - String? currentPath, - List paths, - bool loading}); + $Res call({String? parentFolder, String? currentPath, List paths, bool loading}); } /// @nodoc -class _$DirectoryBrowserModelCopyWithImpl<$Res> - implements $DirectoryBrowserModelCopyWith<$Res> { +class _$DirectoryBrowserModelCopyWithImpl<$Res> implements $DirectoryBrowserModelCopyWith<$Res> { _$DirectoryBrowserModelCopyWithImpl(this._self, this._then); final DirectoryBrowserModel _self; @@ -178,16 +171,13 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String? parentFolder, String? currentPath, - List paths, bool loading)? - $default, { + TResult Function(String? parentFolder, String? currentPath, List paths, bool loading)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _DirectoryBrowserModel() when $default != null: - return $default( - _that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: return orElse(); } @@ -208,15 +198,12 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult when( - TResult Function(String? parentFolder, String? currentPath, - List paths, bool loading) - $default, + TResult Function(String? parentFolder, String? currentPath, List paths, bool loading) $default, ) { final _that = this; switch (_that) { case _DirectoryBrowserModel(): - return $default( - _that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: throw StateError('Unexpected subclass'); } @@ -236,15 +223,12 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String? parentFolder, String? currentPath, - List paths, bool loading)? - $default, + TResult? Function(String? parentFolder, String? currentPath, List paths, bool loading)? $default, ) { final _that = this; switch (_that) { case _DirectoryBrowserModel() when $default != null: - return $default( - _that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: return null; } @@ -255,10 +239,7 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { class _DirectoryBrowserModel implements DirectoryBrowserModel { const _DirectoryBrowserModel( - {this.parentFolder, - this.currentPath, - final List paths = const [], - this.loading = false}) + {this.parentFolder, this.currentPath, final List paths = const [], this.loading = false}) : _paths = paths; @override @@ -284,8 +265,7 @@ class _DirectoryBrowserModel implements DirectoryBrowserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$DirectoryBrowserModelCopyWith<_DirectoryBrowserModel> get copyWith => - __$DirectoryBrowserModelCopyWithImpl<_DirectoryBrowserModel>( - this, _$identity); + __$DirectoryBrowserModelCopyWithImpl<_DirectoryBrowserModel>(this, _$identity); @override String toString() { @@ -294,23 +274,16 @@ class _DirectoryBrowserModel implements DirectoryBrowserModel { } /// @nodoc -abstract mixin class _$DirectoryBrowserModelCopyWith<$Res> - implements $DirectoryBrowserModelCopyWith<$Res> { - factory _$DirectoryBrowserModelCopyWith(_DirectoryBrowserModel value, - $Res Function(_DirectoryBrowserModel) _then) = +abstract mixin class _$DirectoryBrowserModelCopyWith<$Res> implements $DirectoryBrowserModelCopyWith<$Res> { + factory _$DirectoryBrowserModelCopyWith(_DirectoryBrowserModel value, $Res Function(_DirectoryBrowserModel) _then) = __$DirectoryBrowserModelCopyWithImpl; @override @useResult - $Res call( - {String? parentFolder, - String? currentPath, - List paths, - bool loading}); + $Res call({String? parentFolder, String? currentPath, List paths, bool loading}); } /// @nodoc -class __$DirectoryBrowserModelCopyWithImpl<$Res> - implements _$DirectoryBrowserModelCopyWith<$Res> { +class __$DirectoryBrowserModelCopyWithImpl<$Res> implements _$DirectoryBrowserModelCopyWith<$Res> { __$DirectoryBrowserModelCopyWithImpl(this._self, this._then); final _DirectoryBrowserModel _self; diff --git a/lib/providers/directory_browser_provider.g.dart b/lib/providers/directory_browser_provider.g.dart index 09f17af54..96a754e3c 100644 --- a/lib/providers/directory_browser_provider.g.dart +++ b/lib/providers/directory_browser_provider.g.dart @@ -10,13 +10,10 @@ String _$directoryBrowserHash() => r'baecaa63893df6dcbcf6c940bee81f92a7cd5c92'; /// See also [DirectoryBrowser]. @ProviderFor(DirectoryBrowser) -final directoryBrowserProvider = AutoDisposeNotifierProvider.internal( +final directoryBrowserProvider = AutoDisposeNotifierProvider.internal( DirectoryBrowser.new, name: r'directoryBrowserProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$directoryBrowserHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$directoryBrowserHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/discovery_provider.g.dart b/lib/providers/discovery_provider.g.dart index 5a43da7e6..0c254fe97 100644 --- a/lib/providers/discovery_provider.g.dart +++ b/lib/providers/discovery_provider.g.dart @@ -10,13 +10,10 @@ String _$serverDiscoveryHash() => r'f299dab33f48950f0bd91afab1f831fd6e351923'; /// See also [ServerDiscovery]. @ProviderFor(ServerDiscovery) -final serverDiscoveryProvider = AutoDisposeStreamNotifierProvider< - ServerDiscovery, List>.internal( +final serverDiscoveryProvider = AutoDisposeStreamNotifierProvider>.internal( ServerDiscovery.new, name: r'serverDiscoveryProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$serverDiscoveryHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$serverDiscoveryHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/discovery_provider.mapper.dart b/lib/providers/discovery_provider.mapper.dart index eb28f0ec8..f58125641 100644 --- a/lib/providers/discovery_provider.mapper.dart +++ b/lib/providers/discovery_provider.mapper.dart @@ -21,14 +21,11 @@ class DiscoveryInfoMapper extends ClassMapperBase { final String id = 'DiscoveryInfo'; static String _$id(DiscoveryInfo v) => v.id; - static const Field _f$id = - Field('id', _$id, key: r'Id'); + static const Field _f$id = Field('id', _$id, key: r'Id'); static String _$name(DiscoveryInfo v) => v.name; - static const Field _f$name = - Field('name', _$name, key: r'Name'); + static const Field _f$name = Field('name', _$name, key: r'Name'); static String _$address(DiscoveryInfo v) => v.address; - static const Field _f$address = - Field('address', _$address, key: r'Address'); + static const Field _f$address = Field('address', _$address, key: r'Address'); static String? _$endPointAddress(DiscoveryInfo v) => v.endPointAddress; static const Field _f$endPointAddress = Field('endPointAddress', _$endPointAddress, key: r'EndpointAddress'); @@ -65,12 +62,10 @@ class DiscoveryInfoMapper extends ClassMapperBase { mixin DiscoveryInfoMappable { String toJson() { - return DiscoveryInfoMapper.ensureInitialized() - .encodeJson(this as DiscoveryInfo); + return DiscoveryInfoMapper.ensureInitialized().encodeJson(this as DiscoveryInfo); } Map toMap() { - return DiscoveryInfoMapper.ensureInitialized() - .encodeMap(this as DiscoveryInfo); + return DiscoveryInfoMapper.ensureInitialized().encodeMap(this as DiscoveryInfo); } } diff --git a/lib/providers/items/channel_details_provider.g.dart b/lib/providers/items/channel_details_provider.g.dart index c181b3d5f..c922ee79b 100644 --- a/lib/providers/items/channel_details_provider.g.dart +++ b/lib/providers/items/channel_details_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$ChannelDetails - extends BuildlessAutoDisposeNotifier { +abstract class _$ChannelDetails extends BuildlessAutoDisposeNotifier { late final String id; ChannelModel? build( @@ -73,16 +72,14 @@ class ChannelDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'channelDetailsProvider'; } /// See also [ChannelDetails]. -class ChannelDetailsProvider - extends AutoDisposeNotifierProviderImpl { +class ChannelDetailsProvider extends AutoDisposeNotifierProviderImpl { /// See also [ChannelDetails]. ChannelDetailsProvider( String id, @@ -90,13 +87,9 @@ class ChannelDetailsProvider () => ChannelDetails()..id = id, from: channelDetailsProvider, name: r'channelDetailsProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$channelDetailsHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$channelDetailsHash, dependencies: ChannelDetailsFamily._dependencies, - allTransitiveDependencies: - ChannelDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: ChannelDetailsFamily._allTransitiveDependencies, id: id, ); @@ -138,8 +131,7 @@ class ChannelDetailsProvider } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _ChannelDetailsProviderElement(this); } @@ -164,8 +156,7 @@ mixin ChannelDetailsRef on AutoDisposeNotifierProviderRef { String get id; } -class _ChannelDetailsProviderElement - extends AutoDisposeNotifierProviderElement +class _ChannelDetailsProviderElement extends AutoDisposeNotifierProviderElement with ChannelDetailsRef { _ChannelDetailsProviderElement(super.provider); diff --git a/lib/providers/items/movies_details_provider.g.dart b/lib/providers/items/movies_details_provider.g.dart index 2fd7f3d7c..38080dd80 100644 --- a/lib/providers/items/movies_details_provider.g.dart +++ b/lib/providers/items/movies_details_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$MovieDetails - extends BuildlessAutoDisposeNotifier { +abstract class _$MovieDetails extends BuildlessAutoDisposeNotifier { late final String arg; MovieModel? build( @@ -73,16 +72,14 @@ class MovieDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'movieDetailsProvider'; } /// See also [MovieDetails]. -class MovieDetailsProvider - extends AutoDisposeNotifierProviderImpl { +class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl { /// See also [MovieDetails]. MovieDetailsProvider( String arg, @@ -90,13 +87,9 @@ class MovieDetailsProvider () => MovieDetails()..arg = arg, from: movieDetailsProvider, name: r'movieDetailsProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$movieDetailsHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$movieDetailsHash, dependencies: MovieDetailsFamily._dependencies, - allTransitiveDependencies: - MovieDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: MovieDetailsFamily._allTransitiveDependencies, arg: arg, ); @@ -138,8 +131,7 @@ class MovieDetailsProvider } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _MovieDetailsProviderElement(this); } @@ -164,8 +156,7 @@ mixin MovieDetailsRef on AutoDisposeNotifierProviderRef { String get arg; } -class _MovieDetailsProviderElement - extends AutoDisposeNotifierProviderElement +class _MovieDetailsProviderElement extends AutoDisposeNotifierProviderElement with MovieDetailsRef { _MovieDetailsProviderElement(super.provider); diff --git a/lib/providers/library_filters_provider.g.dart b/lib/providers/library_filters_provider.g.dart index 7e9331ff8..1b73764d3 100644 --- a/lib/providers/library_filters_provider.g.dart +++ b/lib/providers/library_filters_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$LibraryFilters - extends BuildlessAutoDisposeNotifier> { +abstract class _$LibraryFilters extends BuildlessAutoDisposeNotifier> { late final List ids; List build( @@ -73,16 +72,14 @@ class LibraryFiltersFamily extends Family> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'libraryFiltersProvider'; } /// See also [LibraryFilters]. -class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< - LibraryFilters, List> { +class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl> { /// See also [LibraryFilters]. LibraryFiltersProvider( List ids, @@ -90,13 +87,9 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< () => LibraryFilters()..ids = ids, from: libraryFiltersProvider, name: r'libraryFiltersProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$libraryFiltersHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$libraryFiltersHash, dependencies: LibraryFiltersFamily._dependencies, - allTransitiveDependencies: - LibraryFiltersFamily._allTransitiveDependencies, + allTransitiveDependencies: LibraryFiltersFamily._allTransitiveDependencies, ids: ids, ); @@ -138,8 +131,7 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< } @override - AutoDisposeNotifierProviderElement> - createElement() { + AutoDisposeNotifierProviderElement> createElement() { return _LibraryFiltersProviderElement(this); } @@ -159,14 +151,13 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin LibraryFiltersRef - on AutoDisposeNotifierProviderRef> { +mixin LibraryFiltersRef on AutoDisposeNotifierProviderRef> { /// The parameter `ids` of this provider. List get ids; } -class _LibraryFiltersProviderElement extends AutoDisposeNotifierProviderElement< - LibraryFilters, List> with LibraryFiltersRef { +class _LibraryFiltersProviderElement + extends AutoDisposeNotifierProviderElement> with LibraryFiltersRef { _LibraryFiltersProviderElement(super.provider); @override diff --git a/lib/providers/library_screen_provider.freezed.dart b/lib/providers/library_screen_provider.freezed.dart index 7fb9a63f7..f0267ee36 100644 --- a/lib/providers/library_screen_provider.freezed.dart +++ b/lib/providers/library_screen_provider.freezed.dart @@ -26,8 +26,7 @@ mixin _$LibraryScreenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryScreenModelCopyWith get copyWith => - _$LibraryScreenModelCopyWithImpl( - this as LibraryScreenModel, _$identity); + _$LibraryScreenModelCopyWithImpl(this as LibraryScreenModel, _$identity); @override String toString() { @@ -37,8 +36,7 @@ mixin _$LibraryScreenModel { /// @nodoc abstract mixin class $LibraryScreenModelCopyWith<$Res> { - factory $LibraryScreenModelCopyWith( - LibraryScreenModel value, $Res Function(LibraryScreenModel) _then) = + factory $LibraryScreenModelCopyWith(LibraryScreenModel value, $Res Function(LibraryScreenModel) _then) = _$LibraryScreenModelCopyWithImpl; @useResult $Res call( @@ -51,8 +49,7 @@ abstract mixin class $LibraryScreenModelCopyWith<$Res> { } /// @nodoc -class _$LibraryScreenModelCopyWithImpl<$Res> - implements $LibraryScreenModelCopyWith<$Res> { +class _$LibraryScreenModelCopyWithImpl<$Res> implements $LibraryScreenModelCopyWith<$Res> { _$LibraryScreenModelCopyWithImpl(this._self, this._then); final LibraryScreenModel _self; @@ -192,21 +189,16 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - List views, - ViewModel? selectedViewModel, - Set viewType, - List recommendations, - List genres, - List favourites)? + TResult Function(List views, ViewModel? selectedViewModel, Set viewType, + List recommendations, List genres, List favourites)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LibraryScreenModel() when $default != null: - return $default(_that.views, _that.selectedViewModel, _that.viewType, - _that.recommendations, _that.genres, _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, + _that.favourites); case _: return orElse(); } @@ -227,20 +219,15 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult when( - TResult Function( - List views, - ViewModel? selectedViewModel, - Set viewType, - List recommendations, - List genres, - List favourites) + TResult Function(List views, ViewModel? selectedViewModel, Set viewType, + List recommendations, List genres, List favourites) $default, ) { final _that = this; switch (_that) { case _LibraryScreenModel(): - return $default(_that.views, _that.selectedViewModel, _that.viewType, - _that.recommendations, _that.genres, _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, + _that.favourites); case _: throw StateError('Unexpected subclass'); } @@ -260,20 +247,15 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - List views, - ViewModel? selectedViewModel, - Set viewType, - List recommendations, - List genres, - List favourites)? + TResult? Function(List views, ViewModel? selectedViewModel, Set viewType, + List recommendations, List genres, List favourites)? $default, ) { final _that = this; switch (_that) { case _LibraryScreenModel() when $default != null: - return $default(_that.views, _that.selectedViewModel, _that.viewType, - _that.recommendations, _that.genres, _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, + _that.favourites); case _: return null; } @@ -286,10 +268,7 @@ class _LibraryScreenModel implements LibraryScreenModel { _LibraryScreenModel( {final List views = const [], this.selectedViewModel, - final Set viewType = const { - LibraryViewType.recommended, - LibraryViewType.favourites - }, + final Set viewType = const {LibraryViewType.recommended, LibraryViewType.favourites}, final List recommendations = const [], final List genres = const [], final List favourites = const []}) @@ -361,10 +340,8 @@ class _LibraryScreenModel implements LibraryScreenModel { } /// @nodoc -abstract mixin class _$LibraryScreenModelCopyWith<$Res> - implements $LibraryScreenModelCopyWith<$Res> { - factory _$LibraryScreenModelCopyWith( - _LibraryScreenModel value, $Res Function(_LibraryScreenModel) _then) = +abstract mixin class _$LibraryScreenModelCopyWith<$Res> implements $LibraryScreenModelCopyWith<$Res> { + factory _$LibraryScreenModelCopyWith(_LibraryScreenModel value, $Res Function(_LibraryScreenModel) _then) = __$LibraryScreenModelCopyWithImpl; @override @useResult @@ -378,8 +355,7 @@ abstract mixin class _$LibraryScreenModelCopyWith<$Res> } /// @nodoc -class __$LibraryScreenModelCopyWithImpl<$Res> - implements _$LibraryScreenModelCopyWith<$Res> { +class __$LibraryScreenModelCopyWithImpl<$Res> implements _$LibraryScreenModelCopyWith<$Res> { __$LibraryScreenModelCopyWithImpl(this._self, this._then); final _LibraryScreenModel _self; diff --git a/lib/providers/library_screen_provider.g.dart b/lib/providers/library_screen_provider.g.dart index b2933a5cc..9dc14ed29 100644 --- a/lib/providers/library_screen_provider.g.dart +++ b/lib/providers/library_screen_provider.g.dart @@ -10,13 +10,10 @@ String _$libraryScreenHash() => r'77ce3c552cf4655d6f25c51bdffe551807b7601f'; /// See also [LibraryScreen]. @ProviderFor(LibraryScreen) -final libraryScreenProvider = - NotifierProvider.internal( +final libraryScreenProvider = NotifierProvider.internal( LibraryScreen.new, name: r'libraryScreenProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$libraryScreenHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$libraryScreenHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/live_tv_provider.g.dart b/lib/providers/live_tv_provider.g.dart index 42a76e9aa..3b32600bd 100644 --- a/lib/providers/live_tv_provider.g.dart +++ b/lib/providers/live_tv_provider.g.dart @@ -13,8 +13,7 @@ String _$liveTvHash() => r'06fb75eeafd5f2d1bc860c2da7b7ca493a58d743'; final liveTvProvider = NotifierProvider.internal( LiveTv.new, name: r'liveTvProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$liveTvHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$liveTvHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/lock_screen_provider.dart b/lib/providers/lock_screen_provider.dart index e69de29bb..8b1378917 100644 --- a/lib/providers/lock_screen_provider.dart +++ b/lib/providers/lock_screen_provider.dart @@ -0,0 +1 @@ + diff --git a/lib/providers/router_provider.dart b/lib/providers/router_provider.dart new file mode 100644 index 000000000..bcec1b9ed --- /dev/null +++ b/lib/providers/router_provider.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +import 'package:fladder/routes/auto_router.dart'; + +/// Provider for the global AutoRouter instance +/// Set from main.dart after initialization +final routerProvider = StateProvider((ref) => null); + +/// Get the navigator key from the router for pushing routes without context +GlobalKey? getNavigatorKey(Ref ref) { + return ref.read(routerProvider)?.navigatorKey; +} diff --git a/lib/providers/seerr/seerr_details_provider.freezed.dart b/lib/providers/seerr/seerr_details_provider.freezed.dart index c46121190..a52e68f85 100644 --- a/lib/providers/seerr/seerr_details_provider.freezed.dart +++ b/lib/providers/seerr/seerr_details_provider.freezed.dart @@ -37,8 +37,7 @@ mixin _$SeerrDetailsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrDetailsModelCopyWith get copyWith => - _$SeerrDetailsModelCopyWithImpl( - this as SeerrDetailsModel, _$identity); + _$SeerrDetailsModelCopyWithImpl(this as SeerrDetailsModel, _$identity); @override String toString() { @@ -48,8 +47,7 @@ mixin _$SeerrDetailsModel { /// @nodoc abstract mixin class $SeerrDetailsModelCopyWith<$Res> { - factory $SeerrDetailsModelCopyWith( - SeerrDetailsModel value, $Res Function(SeerrDetailsModel) _then) = + factory $SeerrDetailsModelCopyWith(SeerrDetailsModel value, $Res Function(SeerrDetailsModel) _then) = _$SeerrDetailsModelCopyWithImpl; @useResult $Res call( @@ -75,8 +73,7 @@ abstract mixin class $SeerrDetailsModelCopyWith<$Res> { } /// @nodoc -class _$SeerrDetailsModelCopyWithImpl<$Res> - implements $SeerrDetailsModelCopyWith<$Res> { +class _$SeerrDetailsModelCopyWithImpl<$Res> implements $SeerrDetailsModelCopyWith<$Res> { _$SeerrDetailsModelCopyWithImpl(this._self, this._then); final SeerrDetailsModel _self; @@ -591,10 +588,8 @@ class _SeerrDetailsModel extends SeerrDetailsModel { } /// @nodoc -abstract mixin class _$SeerrDetailsModelCopyWith<$Res> - implements $SeerrDetailsModelCopyWith<$Res> { - factory _$SeerrDetailsModelCopyWith( - _SeerrDetailsModel value, $Res Function(_SeerrDetailsModel) _then) = +abstract mixin class _$SeerrDetailsModelCopyWith<$Res> implements $SeerrDetailsModelCopyWith<$Res> { + factory _$SeerrDetailsModelCopyWith(_SeerrDetailsModel value, $Res Function(_SeerrDetailsModel) _then) = __$SeerrDetailsModelCopyWithImpl; @override @useResult @@ -622,8 +617,7 @@ abstract mixin class _$SeerrDetailsModelCopyWith<$Res> } /// @nodoc -class __$SeerrDetailsModelCopyWithImpl<$Res> - implements _$SeerrDetailsModelCopyWith<$Res> { +class __$SeerrDetailsModelCopyWithImpl<$Res> implements _$SeerrDetailsModelCopyWith<$Res> { __$SeerrDetailsModelCopyWithImpl(this._self, this._then); final _SeerrDetailsModel _self; diff --git a/lib/providers/seerr/seerr_details_provider.g.dart b/lib/providers/seerr/seerr_details_provider.g.dart index 9f6e5792a..9b3abc73d 100644 --- a/lib/providers/seerr/seerr_details_provider.g.dart +++ b/lib/providers/seerr/seerr_details_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$SeerrDetails - extends BuildlessAutoDisposeNotifier { +abstract class _$SeerrDetails extends BuildlessAutoDisposeNotifier { late final int tmdbId; late final SeerrMediaType mediaType; late final SeerrDashboardPosterModel? poster; @@ -83,16 +82,14 @@ class SeerrDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'seerrDetailsProvider'; } /// See also [SeerrDetails]. -class SeerrDetailsProvider - extends AutoDisposeNotifierProviderImpl { +class SeerrDetailsProvider extends AutoDisposeNotifierProviderImpl { /// See also [SeerrDetails]. SeerrDetailsProvider({ required int tmdbId, @@ -105,13 +102,9 @@ class SeerrDetailsProvider ..poster = poster, from: seerrDetailsProvider, name: r'seerrDetailsProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$seerrDetailsHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrDetailsHash, dependencies: SeerrDetailsFamily._dependencies, - allTransitiveDependencies: - SeerrDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: SeerrDetailsFamily._allTransitiveDependencies, tmdbId: tmdbId, mediaType: mediaType, poster: poster, @@ -166,8 +159,7 @@ class SeerrDetailsProvider } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _SeerrDetailsProviderElement(this); } @@ -203,8 +195,7 @@ mixin SeerrDetailsRef on AutoDisposeNotifierProviderRef { SeerrDashboardPosterModel? get poster; } -class _SeerrDetailsProviderElement - extends AutoDisposeNotifierProviderElement +class _SeerrDetailsProviderElement extends AutoDisposeNotifierProviderElement with SeerrDetailsRef { _SeerrDetailsProviderElement(super.provider); @@ -213,8 +204,7 @@ class _SeerrDetailsProviderElement @override SeerrMediaType get mediaType => (origin as SeerrDetailsProvider).mediaType; @override - SeerrDashboardPosterModel? get poster => - (origin as SeerrDetailsProvider).poster; + SeerrDashboardPosterModel? get poster => (origin as SeerrDetailsProvider).poster; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/seerr/seerr_request_provider.freezed.dart b/lib/providers/seerr/seerr_request_provider.freezed.dart index f10666637..c8af86b0e 100644 --- a/lib/providers/seerr/seerr_request_provider.freezed.dart +++ b/lib/providers/seerr/seerr_request_provider.freezed.dart @@ -40,8 +40,7 @@ mixin _$SeerrRequestModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRequestModelCopyWith get copyWith => - _$SeerrRequestModelCopyWithImpl( - this as SeerrRequestModel, _$identity); + _$SeerrRequestModelCopyWithImpl(this as SeerrRequestModel, _$identity); @override String toString() { @@ -51,8 +50,7 @@ mixin _$SeerrRequestModel { /// @nodoc abstract mixin class $SeerrRequestModelCopyWith<$Res> { - factory $SeerrRequestModelCopyWith( - SeerrRequestModel value, $Res Function(SeerrRequestModel) _then) = + factory $SeerrRequestModelCopyWith(SeerrRequestModel value, $Res Function(SeerrRequestModel) _then) = _$SeerrRequestModelCopyWithImpl; @useResult $Res call( @@ -85,8 +83,7 @@ abstract mixin class $SeerrRequestModelCopyWith<$Res> { } /// @nodoc -class _$SeerrRequestModelCopyWithImpl<$Res> - implements $SeerrRequestModelCopyWith<$Res> { +class _$SeerrRequestModelCopyWithImpl<$Res> implements $SeerrRequestModelCopyWith<$Res> { _$SeerrRequestModelCopyWithImpl(this._self, this._then); final SeerrRequestModel _self; @@ -211,8 +208,7 @@ class _$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, - (value) { + return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, (value) { return _then(_self.copyWith(selectedSonarrServer: value)); }); } @@ -226,8 +222,7 @@ class _$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, - (value) { + return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, (value) { return _then(_self.copyWith(selectedRadarrServer: value)); }); } @@ -703,10 +698,8 @@ class _SeerrRequestModel extends SeerrRequestModel { } /// @nodoc -abstract mixin class _$SeerrRequestModelCopyWith<$Res> - implements $SeerrRequestModelCopyWith<$Res> { - factory _$SeerrRequestModelCopyWith( - _SeerrRequestModel value, $Res Function(_SeerrRequestModel) _then) = +abstract mixin class _$SeerrRequestModelCopyWith<$Res> implements $SeerrRequestModelCopyWith<$Res> { + factory _$SeerrRequestModelCopyWith(_SeerrRequestModel value, $Res Function(_SeerrRequestModel) _then) = __$SeerrRequestModelCopyWithImpl; @override @useResult @@ -745,8 +738,7 @@ abstract mixin class _$SeerrRequestModelCopyWith<$Res> } /// @nodoc -class __$SeerrRequestModelCopyWithImpl<$Res> - implements _$SeerrRequestModelCopyWith<$Res> { +class __$SeerrRequestModelCopyWithImpl<$Res> implements _$SeerrRequestModelCopyWith<$Res> { __$SeerrRequestModelCopyWithImpl(this._self, this._then); final _SeerrRequestModel _self; @@ -871,8 +863,7 @@ class __$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, - (value) { + return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, (value) { return _then(_self.copyWith(selectedSonarrServer: value)); }); } @@ -886,8 +877,7 @@ class __$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, - (value) { + return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, (value) { return _then(_self.copyWith(selectedRadarrServer: value)); }); } diff --git a/lib/providers/seerr/seerr_request_provider.g.dart b/lib/providers/seerr/seerr_request_provider.g.dart index c2c408030..e659dee1a 100644 --- a/lib/providers/seerr/seerr_request_provider.g.dart +++ b/lib/providers/seerr/seerr_request_provider.g.dart @@ -10,12 +10,10 @@ String _$seerrRequestHash() => r'985de35a81ccf086e636c9dde24e5e0c7f3577c0'; /// See also [SeerrRequest]. @ProviderFor(SeerrRequest) -final seerrRequestProvider = - AutoDisposeNotifierProvider.internal( +final seerrRequestProvider = AutoDisposeNotifierProvider.internal( SeerrRequest.new, name: r'seerrRequestProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrRequestHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrRequestHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_api_provider.g.dart b/lib/providers/seerr_api_provider.g.dart index f84b6adbb..2a24f1bd0 100644 --- a/lib/providers/seerr_api_provider.g.dart +++ b/lib/providers/seerr_api_provider.g.dart @@ -10,12 +10,10 @@ String _$seerrApiHash() => r'57b39e9af4926a0b255b94ff257c738ffbd91d32'; /// See also [SeerrApi]. @ProviderFor(SeerrApi) -final seerrApiProvider = - AutoDisposeNotifierProvider.internal( +final seerrApiProvider = AutoDisposeNotifierProvider.internal( SeerrApi.new, name: r'seerrApiProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrApiHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrApiHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_dashboard_provider.g.dart b/lib/providers/seerr_dashboard_provider.g.dart index 8089d24bb..5ce7a4f18 100644 --- a/lib/providers/seerr_dashboard_provider.g.dart +++ b/lib/providers/seerr_dashboard_provider.g.dart @@ -10,13 +10,10 @@ String _$seerrDashboardHash() => r'e04260df2673014d673f2bf6a715ac638c6bdc4e'; /// See also [SeerrDashboard]. @ProviderFor(SeerrDashboard) -final seerrDashboardProvider = - AutoDisposeNotifierProvider.internal( +final seerrDashboardProvider = AutoDisposeNotifierProvider.internal( SeerrDashboard.new, name: r'seerrDashboardProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$seerrDashboardHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrDashboardHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_search_provider.freezed.dart b/lib/providers/seerr_search_provider.freezed.dart index 19b387298..e69ac0cd5 100644 --- a/lib/providers/seerr_search_provider.freezed.dart +++ b/lib/providers/seerr_search_provider.freezed.dart @@ -33,8 +33,7 @@ mixin _$SeerrSearchModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSearchModelCopyWith get copyWith => - _$SeerrSearchModelCopyWithImpl( - this as SeerrSearchModel, _$identity); + _$SeerrSearchModelCopyWithImpl(this as SeerrSearchModel, _$identity); @override String toString() { @@ -44,8 +43,7 @@ mixin _$SeerrSearchModel { /// @nodoc abstract mixin class $SeerrSearchModelCopyWith<$Res> { - factory $SeerrSearchModelCopyWith( - SeerrSearchModel value, $Res Function(SeerrSearchModel) _then) = + factory $SeerrSearchModelCopyWith(SeerrSearchModel value, $Res Function(SeerrSearchModel) _then) = _$SeerrSearchModelCopyWithImpl; @useResult $Res call( @@ -67,8 +65,7 @@ abstract mixin class $SeerrSearchModelCopyWith<$Res> { } /// @nodoc -class _$SeerrSearchModelCopyWithImpl<$Res> - implements $SeerrSearchModelCopyWith<$Res> { +class _$SeerrSearchModelCopyWithImpl<$Res> implements $SeerrSearchModelCopyWith<$Res> { _$SeerrSearchModelCopyWithImpl(this._self, this._then); final SeerrSearchModel _self; @@ -456,8 +453,7 @@ class _SeerrSearchModel extends SeerrSearchModel { @override @JsonKey() List get watchProviderRegions { - if (_watchProviderRegions is EqualUnmodifiableListView) - return _watchProviderRegions; + if (_watchProviderRegions is EqualUnmodifiableListView) return _watchProviderRegions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_watchProviderRegions); } @@ -507,10 +503,8 @@ class _SeerrSearchModel extends SeerrSearchModel { } /// @nodoc -abstract mixin class _$SeerrSearchModelCopyWith<$Res> - implements $SeerrSearchModelCopyWith<$Res> { - factory _$SeerrSearchModelCopyWith( - _SeerrSearchModel value, $Res Function(_SeerrSearchModel) _then) = +abstract mixin class _$SeerrSearchModelCopyWith<$Res> implements $SeerrSearchModelCopyWith<$Res> { + factory _$SeerrSearchModelCopyWith(_SeerrSearchModel value, $Res Function(_SeerrSearchModel) _then) = __$SeerrSearchModelCopyWithImpl; @override @useResult @@ -534,8 +528,7 @@ abstract mixin class _$SeerrSearchModelCopyWith<$Res> } /// @nodoc -class __$SeerrSearchModelCopyWithImpl<$Res> - implements _$SeerrSearchModelCopyWith<$Res> { +class __$SeerrSearchModelCopyWithImpl<$Res> implements _$SeerrSearchModelCopyWith<$Res> { __$SeerrSearchModelCopyWithImpl(this._self, this._then); final _SeerrSearchModel _self; diff --git a/lib/providers/seerr_search_provider.g.dart b/lib/providers/seerr_search_provider.g.dart index c88ba0755..ff85054a1 100644 --- a/lib/providers/seerr_search_provider.g.dart +++ b/lib/providers/seerr_search_provider.g.dart @@ -10,12 +10,10 @@ String _$seerrSearchHash() => r'c26e548427c4dd144be5b844ea3e7865f07998b2'; /// See also [SeerrSearch]. @ProviderFor(SeerrSearch) -final seerrSearchProvider = - AutoDisposeNotifierProvider.internal( +final seerrSearchProvider = AutoDisposeNotifierProvider.internal( SeerrSearch.new, name: r'seerrSearchProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrSearchHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrSearchHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_user_provider.g.dart b/lib/providers/seerr_user_provider.g.dart index 97e3ff319..7d9411f0d 100644 --- a/lib/providers/seerr_user_provider.g.dart +++ b/lib/providers/seerr_user_provider.g.dart @@ -10,12 +10,10 @@ String _$seerrUserHash() => r'99fd98d6e4f32a4d7eda0567f970714f32023896'; /// See also [SeerrUser]. @ProviderFor(SeerrUser) -final seerrUserProvider = - AutoDisposeNotifierProvider.internal( +final seerrUserProvider = AutoDisposeNotifierProvider.internal( SeerrUser.new, name: r'seerrUserProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrUserHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrUserHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/service_provider.dart b/lib/providers/service_provider.dart index 4174f4f41..1dd34b5ff 100644 --- a/lib/providers/service_provider.dart +++ b/lib/providers/service_provider.dart @@ -1,13 +1,8 @@ import 'dart:convert'; import 'dart:developer'; -import 'package:flutter/foundation.dart'; - import 'package:chopper/chopper.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:http/http.dart' as http; - import 'package:fladder/fake/fake_jellyfin_open_api.dart'; import 'package:fladder/jellyfin/enum_models.dart'; import 'package:fladder/jellyfin/jellyfin_open_api.enums.swagger.dart' as enums; @@ -26,6 +21,9 @@ import 'package:fladder/providers/image_provider.dart'; import 'package:fladder/providers/sync_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/util/jellyfin_extension.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:http/http.dart' as http; const _userSettings = "usersettings"; const _client = "fladder"; @@ -1238,7 +1236,9 @@ class JellyService { (e) { final parsed = Uri.tryParse(e); if (parsed == null) return ''; - if (parsed.hasScheme && parsed.host.isNotEmpty) return parsed.toString(); + if (parsed.hasScheme && parsed.host.isNotEmpty) { + return parsed.toString(); + } return buildServerUrl( ref, pathSegments: [ diff --git a/lib/providers/session_info_provider.freezed.dart b/lib/providers/session_info_provider.freezed.dart index 04e9ee0f4..4976ffcab 100644 --- a/lib/providers/session_info_provider.freezed.dart +++ b/lib/providers/session_info_provider.freezed.dart @@ -119,8 +119,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo)? - $default, { + TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo)? $default, { required TResult orElse(), }) { final _that = this; @@ -147,8 +146,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult when( - TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo) - $default, + TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo) $default, ) { final _that = this; switch (_that) { @@ -173,8 +171,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String? playbackModel, TranscodingInfo? transCodeInfo)? - $default, + TResult? Function(String? playbackModel, TranscodingInfo? transCodeInfo)? $default, ) { final _that = this; switch (_that) { @@ -190,8 +187,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @JsonSerializable() class _SessionInfoModel extends SessionInfoModel { _SessionInfoModel({this.playbackModel, this.transCodeInfo}) : super._(); - factory _SessionInfoModel.fromJson(Map json) => - _$SessionInfoModelFromJson(json); + factory _SessionInfoModel.fromJson(Map json) => _$SessionInfoModelFromJson(json); @override final String? playbackModel; diff --git a/lib/providers/session_info_provider.g.dart b/lib/providers/session_info_provider.g.dart index 00432075b..e98c37111 100644 --- a/lib/providers/session_info_provider.g.dart +++ b/lib/providers/session_info_provider.g.dart @@ -6,17 +6,14 @@ part of 'session_info_provider.dart'; // JsonSerializableGenerator // ************************************************************************** -_SessionInfoModel _$SessionInfoModelFromJson(Map json) => - _SessionInfoModel( +_SessionInfoModel _$SessionInfoModelFromJson(Map json) => _SessionInfoModel( playbackModel: json['playbackModel'] as String?, transCodeInfo: json['transCodeInfo'] == null ? null - : TranscodingInfo.fromJson( - json['transCodeInfo'] as Map), + : TranscodingInfo.fromJson(json['transCodeInfo'] as Map), ); -Map _$SessionInfoModelToJson(_SessionInfoModel instance) => - { +Map _$SessionInfoModelToJson(_SessionInfoModel instance) => { 'playbackModel': instance.playbackModel, 'transCodeInfo': instance.transCodeInfo, }; @@ -29,12 +26,10 @@ String _$sessionInfoHash() => r'024da7f8d05fb98f6e2e5395ed06c1cc9d003f79'; /// See also [SessionInfo]. @ProviderFor(SessionInfo) -final sessionInfoProvider = - AutoDisposeNotifierProvider.internal( +final sessionInfoProvider = AutoDisposeNotifierProvider.internal( SessionInfo.new, name: r'sessionInfoProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$sessionInfoHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$sessionInfoHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/sync/background_download_provider.g.dart b/lib/providers/sync/background_download_provider.g.dart index 2f569229c..e1ffde73a 100644 --- a/lib/providers/sync/background_download_provider.g.dart +++ b/lib/providers/sync/background_download_provider.g.dart @@ -6,18 +6,14 @@ part of 'background_download_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$backgroundDownloaderHash() => - r'9b4032e6ee780c64ea44d4ab1f451e5278b6d8f6'; +String _$backgroundDownloaderHash() => r'9b4032e6ee780c64ea44d4ab1f451e5278b6d8f6'; /// See also [BackgroundDownloader]. @ProviderFor(BackgroundDownloader) -final backgroundDownloaderProvider = - NotifierProvider.internal( +final backgroundDownloaderProvider = NotifierProvider.internal( BackgroundDownloader.new, name: r'backgroundDownloaderProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$backgroundDownloaderHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$backgroundDownloaderHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/sync/sync_provider_helpers.g.dart b/lib/providers/sync/sync_provider_helpers.g.dart index e6438f1b3..f0f9b914b 100644 --- a/lib/providers/sync/sync_provider_helpers.g.dart +++ b/lib/providers/sync/sync_provider_helpers.g.dart @@ -64,8 +64,7 @@ class SyncedItemFamily extends Family> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncedItemProvider'; @@ -83,13 +82,9 @@ class SyncedItemProvider extends AutoDisposeStreamProvider { ), from: syncedItemProvider, name: r'syncedItemProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncedItemHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedItemHash, dependencies: SyncedItemFamily._dependencies, - allTransitiveDependencies: - SyncedItemFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncedItemFamily._allTransitiveDependencies, item: item, ); @@ -149,8 +144,7 @@ mixin SyncedItemRef on AutoDisposeStreamProviderRef { ItemBaseModel? get item; } -class _SyncedItemProviderElement - extends AutoDisposeStreamProviderElement with SyncedItemRef { +class _SyncedItemProviderElement extends AutoDisposeStreamProviderElement with SyncedItemRef { _SyncedItemProviderElement(super.provider); @override @@ -159,8 +153,7 @@ class _SyncedItemProviderElement String _$syncedChildrenHash() => r'75e25432f33e0fe31708618b7ba744430523a4d3'; -abstract class _$SyncedChildren - extends BuildlessAutoDisposeAsyncNotifier> { +abstract class _$SyncedChildren extends BuildlessAutoDisposeAsyncNotifier> { late final SyncedItem item; FutureOr> build( @@ -203,16 +196,14 @@ class SyncedChildrenFamily extends Family>> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncedChildrenProvider'; } /// See also [SyncedChildren]. -class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< - SyncedChildren, List> { +class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl> { /// See also [SyncedChildren]. SyncedChildrenProvider( SyncedItem item, @@ -220,13 +211,9 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< () => SyncedChildren()..item = item, from: syncedChildrenProvider, name: r'syncedChildrenProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncedChildrenHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedChildrenHash, dependencies: SyncedChildrenFamily._dependencies, - allTransitiveDependencies: - SyncedChildrenFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncedChildrenFamily._allTransitiveDependencies, item: item, ); @@ -268,8 +255,7 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< } @override - AutoDisposeAsyncNotifierProviderElement> - createElement() { + AutoDisposeAsyncNotifierProviderElement> createElement() { return _SyncedChildrenProviderElement(this); } @@ -289,26 +275,22 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin SyncedChildrenRef - on AutoDisposeAsyncNotifierProviderRef> { +mixin SyncedChildrenRef on AutoDisposeAsyncNotifierProviderRef> { /// The parameter `item` of this provider. SyncedItem get item; } -class _SyncedChildrenProviderElement - extends AutoDisposeAsyncNotifierProviderElement> with SyncedChildrenRef { +class _SyncedChildrenProviderElement extends AutoDisposeAsyncNotifierProviderElement> + with SyncedChildrenRef { _SyncedChildrenProviderElement(super.provider); @override SyncedItem get item => (origin as SyncedChildrenProvider).item; } -String _$syncedNestedChildrenHash() => - r'ea8dd0e694efa6d6ec0c73d699b5fb3e933f9322'; +String _$syncedNestedChildrenHash() => r'ea8dd0e694efa6d6ec0c73d699b5fb3e933f9322'; -abstract class _$SyncedNestedChildren - extends BuildlessAutoDisposeAsyncNotifier> { +abstract class _$SyncedNestedChildren extends BuildlessAutoDisposeAsyncNotifier> { late final SyncedItem item; FutureOr> build( @@ -351,16 +333,15 @@ class SyncedNestedChildrenFamily extends Family>> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncedNestedChildrenProvider'; } /// See also [SyncedNestedChildren]. -class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< - SyncedNestedChildren, List> { +class SyncedNestedChildrenProvider + extends AutoDisposeAsyncNotifierProviderImpl> { /// See also [SyncedNestedChildren]. SyncedNestedChildrenProvider( SyncedItem item, @@ -368,13 +349,9 @@ class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< () => SyncedNestedChildren()..item = item, from: syncedNestedChildrenProvider, name: r'syncedNestedChildrenProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncedNestedChildrenHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedNestedChildrenHash, dependencies: SyncedNestedChildrenFamily._dependencies, - allTransitiveDependencies: - SyncedNestedChildrenFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncedNestedChildrenFamily._allTransitiveDependencies, item: item, ); @@ -416,8 +393,7 @@ class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< } @override - AutoDisposeAsyncNotifierProviderElement> createElement() { + AutoDisposeAsyncNotifierProviderElement> createElement() { return _SyncedNestedChildrenProviderElement(this); } @@ -437,26 +413,23 @@ class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin SyncedNestedChildrenRef - on AutoDisposeAsyncNotifierProviderRef> { +mixin SyncedNestedChildrenRef on AutoDisposeAsyncNotifierProviderRef> { /// The parameter `item` of this provider. SyncedItem get item; } class _SyncedNestedChildrenProviderElement - extends AutoDisposeAsyncNotifierProviderElement> with SyncedNestedChildrenRef { + extends AutoDisposeAsyncNotifierProviderElement> + with SyncedNestedChildrenRef { _SyncedNestedChildrenProviderElement(super.provider); @override SyncedItem get item => (origin as SyncedNestedChildrenProvider).item; } -String _$syncDownloadStatusHash() => - r'39cacaf983e7da79b406b0249f5de4da1e785f9a'; +String _$syncDownloadStatusHash() => r'39cacaf983e7da79b406b0249f5de4da1e785f9a'; -abstract class _$SyncDownloadStatus - extends BuildlessAutoDisposeNotifier { +abstract class _$SyncDownloadStatus extends BuildlessAutoDisposeNotifier { late final SyncedItem arg; late final List children; @@ -504,16 +477,14 @@ class SyncDownloadStatusFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncDownloadStatusProvider'; } /// See also [SyncDownloadStatus]. -class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl< - SyncDownloadStatus, DownloadStream?> { +class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl { /// See also [SyncDownloadStatus]. SyncDownloadStatusProvider( SyncedItem arg, @@ -524,13 +495,9 @@ class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl< ..children = children, from: syncDownloadStatusProvider, name: r'syncDownloadStatusProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncDownloadStatusHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncDownloadStatusHash, dependencies: SyncDownloadStatusFamily._dependencies, - allTransitiveDependencies: - SyncDownloadStatusFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncDownloadStatusFamily._allTransitiveDependencies, arg: arg, children: children, ); @@ -579,16 +546,13 @@ class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl< } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _SyncDownloadStatusProviderElement(this); } @override bool operator ==(Object other) { - return other is SyncDownloadStatusProvider && - other.arg == arg && - other.children == children; + return other is SyncDownloadStatusProvider && other.arg == arg && other.children == children; } @override @@ -611,16 +575,14 @@ mixin SyncDownloadStatusRef on AutoDisposeNotifierProviderRef { List get children; } -class _SyncDownloadStatusProviderElement - extends AutoDisposeNotifierProviderElement with SyncDownloadStatusRef { +class _SyncDownloadStatusProviderElement extends AutoDisposeNotifierProviderElement + with SyncDownloadStatusRef { _SyncDownloadStatusProviderElement(super.provider); @override SyncedItem get arg => (origin as SyncDownloadStatusProvider).arg; @override - List get children => - (origin as SyncDownloadStatusProvider).children; + List get children => (origin as SyncDownloadStatusProvider).children; } String _$syncSizeHash() => r'a975c17b0918892ccf9ee36a3635d34d7398512f'; @@ -673,8 +635,7 @@ class SyncSizeFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncSizeProvider'; @@ -692,10 +653,7 @@ class SyncSizeProvider extends AutoDisposeNotifierProviderImpl { ..children = children, from: syncSizeProvider, name: r'syncSizeProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncSizeHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncSizeHash, dependencies: SyncSizeFamily._dependencies, allTransitiveDependencies: SyncSizeFamily._allTransitiveDependencies, arg: arg, @@ -752,9 +710,7 @@ class SyncSizeProvider extends AutoDisposeNotifierProviderImpl { @override bool operator ==(Object other) { - return other is SyncSizeProvider && - other.arg == arg && - other.children == children; + return other is SyncSizeProvider && other.arg == arg && other.children == children; } @override @@ -777,9 +733,7 @@ mixin SyncSizeRef on AutoDisposeNotifierProviderRef { List? get children; } -class _SyncSizeProviderElement - extends AutoDisposeNotifierProviderElement - with SyncSizeRef { +class _SyncSizeProviderElement extends AutoDisposeNotifierProviderElement with SyncSizeRef { _SyncSizeProviderElement(super.provider); @override diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart new file mode 100644 index 000000000..bb70e4a69 --- /dev/null +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -0,0 +1,260 @@ +import 'dart:async'; +import 'dart:developer'; + +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/time_sync_service.dart'; + +/// Callback types for player control commands from SyncPlay +typedef SyncPlayPlayerCallback = Future Function(); +typedef SyncPlaySeekCallback = Future Function(int positionTicks); +typedef SyncPlayPositionCallback = int Function(); +typedef SyncPlayReportReadyCallback = Future Function(); +typedef SyncPlaySetSpeedCallback = Future Function(double speed); + +/// Handles scheduling and execution of SyncPlay commands +class SyncPlayCommandHandler { + SyncPlayCommandHandler({ + required this.timeSync, + required this.onStateUpdate, + }); + + final TimeSyncService? Function() timeSync; + final void Function(SyncPlayState Function(SyncPlayState)) onStateUpdate; + + // Last command for duplicate detection + LastSyncPlayCommand? _lastCommand; + + // Pending command timer + Timer? _commandTimer; + + // Player callbacks + SyncPlayPlayerCallback? onPlay; + SyncPlayPlayerCallback? onPause; + SyncPlaySeekCallback? onSeek; + SyncPlayPlayerCallback? onStop; + SyncPlayPositionCallback? getPositionTicks; + bool Function()? isPlaying; + bool Function()? isBuffering; + + // New callback to signal that a seek has been requested by someone else + SyncPlaySeekCallback? onSeekRequested; + + // Report ready callback (to tell server we're ready after seek) + SyncPlayReportReadyCallback? onReportReady; + + // Playback rate callbacks for SpeedToSync + SyncPlaySetSpeedCallback? onSetSpeed; + bool Function()? hasPlaybackRate; + + /// Last accepted command (non-duplicate), exposed for correction logic. + LastSyncPlayCommand? get lastCommand => _lastCommand; + + /// Handle incoming SyncPlay command from WebSocket + void handleCommand(Map data, SyncPlayState currentState) { + final commandWire = data['Command'] as String?; + final whenStr = data['When'] as String?; + final positionTicks = data['PositionTicks'] as int? ?? 0; + final playlistItemId = data['PlaylistItemId'] as String? ?? ''; + + final command = SyncPlayCommand.fromWire(commandWire); + if (command == null || whenStr == null) { + log('SyncPlay: Ignoring unknown command "$commandWire"'); + return; + } + + // Check for duplicate command + if (_isDuplicateCommand(whenStr, positionTicks, command, playlistItemId)) { + log('SyncPlay: Ignoring duplicate command: ${command.wire}'); + return; + } + + _lastCommand = LastSyncPlayCommand( + when: whenStr, + positionTicks: positionTicks, + command: command, + playlistItemId: playlistItemId, + ); + + onStateUpdate((state) => state.copyWith( + positionTicks: positionTicks, + playlistItemId: playlistItemId, + )); + + // If it's a Seek command, notify the player immediately so it can + // report buffering. + if (command == SyncPlayCommand.seek) { + onSeekRequested?.call(positionTicks); + } + + final when = DateTime.parse(whenStr); + _scheduleCommand(command, when, positionTicks); + } + + bool _isDuplicateCommand( + String when, + int positionTicks, + SyncPlayCommand command, + String playlistItemId, + ) { + if (_lastCommand == null) { + return false; + } + + // For Unpause commands, if we are not currently playing, we should + // NEVER treat it as a duplicate to ensure the player actually + // resumes. + if (command == SyncPlayCommand.unpause && isPlaying?.call() == false) { + return false; + } + + return _lastCommand!.when == when && + _lastCommand!.positionTicks == positionTicks && + _lastCommand!.command == command && + _lastCommand!.playlistItemId == playlistItemId; + } + + /// Guard rules before any playback correction attempt. + /// + /// Rules: + /// - only after `Unpause` command context + /// - skip while player is buffering/reloading + /// - skip when command playlist item does not match current item + bool canAttemptSyncCorrection(SyncPlayState currentState) { + final command = _lastCommand; + if (command == null) { + return false; + } + if (command.command != SyncPlayCommand.unpause) { + return false; + } + if (isBuffering?.call() == true) { + return false; + } + + final commandItemId = command.playlistItemId; + final currentItemId = currentState.playlistItemId; + if (commandItemId.isNotEmpty && currentItemId != null && commandItemId != currentItemId) { + return false; + } + + return true; + } + + void _scheduleCommand( + SyncPlayCommand command, + DateTime serverTime, + int positionTicks, + ) { + final timeSyncService = timeSync(); + if (timeSyncService == null) { + log('SyncPlay: Cannot schedule command without time sync'); + _executeCommand(command, positionTicks); + return; + } + + final localTime = timeSyncService.remoteDateToLocal(serverTime); + final now = DateTime.now().toUtc(); + final delay = localTime.difference(now); + + _commandTimer?.cancel(); + + // Show processing indicator + onStateUpdate((state) => state.copyWith( + isProcessingCommand: true, + processingCommandType: command, + )); + + if (delay.isNegative) { + // Command is in the past - execute immediately. Estimate where + // playback should be now. + final estimatedTicks = _estimateCurrentTicks(positionTicks, serverTime); + log('SyncPlay: Executing late command: ${command.wire} ' + '(${delay.inMilliseconds}ms late)'); + _executeCommand(command, estimatedTicks); + } else if (delay.inMilliseconds > 5000) { + log('SyncPlay: Warning - large delay: ${delay.inMilliseconds}ms'); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + } else { + log('SyncPlay: Scheduling command: ${command.wire} ' + 'in ${delay.inMilliseconds}ms'); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + } + } + + int _estimateCurrentTicks(int ticks, DateTime when) { + final timeSyncService = timeSync(); + if (timeSyncService == null) { + return ticks; + } + final remoteNow = timeSyncService.localDateToRemote(DateTime.now().toUtc()); + final elapsedMs = remoteNow.difference(when).inMilliseconds; + return ticks + millisecondsToTicks(elapsedMs); + } + + Future _executeCommand( + SyncPlayCommand command, + int positionTicks, + ) async { + log('SyncPlay: Executing command: ${command.wire} at $positionTicks ticks'); + + try { + switch (command) { + case SyncPlayCommand.pause: + await onPause?.call(); + // Only seek if position is significantly different (>1 sec). + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond) { + await onSeek?.call(positionTicks); + } + break; + + case SyncPlayCommand.unpause: + // Only seek if position is significantly different (>1 sec). + // Seek first, then play for smoother unpause alignment. + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond) { + await onSeek?.call(positionTicks); + } + await onPlay?.call(); + break; + + case SyncPlayCommand.seek: + await onPause?.call(); + await onSeek?.call(positionTicks); + // Report ready after seek so server knows to send unpause. If + // we're buffering, the buffering state handler will report + // ready when done; otherwise report immediately. + if (isBuffering?.call() != true) { + await onReportReady?.call(); + } + break; + + case SyncPlayCommand.stop: + await onPause?.call(); + await onSeek?.call(0); + break; + } + } finally { + // Clear processing state after command completes + onStateUpdate((state) => state.copyWith( + isProcessingCommand: false, + processingCommandType: null, + )); + } + } + + /// Cancel any pending commands + void cancelPendingCommands() { + _commandTimer?.cancel(); + } + + /// Clear last command context used for duplicate detection and correction. + void clearLastCommand() { + _lastCommand = null; + } + + /// Dispose resources + void dispose() { + _commandTimer?.cancel(); + } +} diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart new file mode 100644 index 000000000..3e368faf6 --- /dev/null +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -0,0 +1,300 @@ +import 'dart:developer'; + +import 'package:fladder/l10n/generated/app_localizations.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/screens/shared/fladder_notification_overlay.dart'; +import 'package:fladder/util/localization_helper.dart'; +import 'package:flutter/material.dart'; + +/// Callback for reporting ready state after seek +typedef ReportReadyCallback = Future Function({bool isPlaying}); + +/// Callback for starting playback of an item +typedef StartPlaybackCallback = Future Function(String itemId, int startPositionTicks); + +/// Handles SyncPlay group update messages from WebSocket +class SyncPlayMessageHandler { + SyncPlayMessageHandler({ + required this.onStateUpdate, + required this.reportReady, + required this.startPlayback, + required this.isBuffering, + required this.getContext, + required this.onGroupJoined, + required this.onGroupJoinFailed, + this.onGroupLeftOrKicked, + this.onStateUpdateToPlaying, + this.onGroupGone, + }); + + final void Function(SyncPlayState Function(SyncPlayState)) onStateUpdate; + final ReportReadyCallback reportReady; + final StartPlaybackCallback startPlayback; + final bool Function() isBuffering; + final BuildContext? Function() getContext; + final void Function() onGroupJoined; + final void Function() onGroupJoinFailed; + + /// Called when we leave or are kicked so controller can cancel pending commands and clear processing state. + final void Function()? onGroupLeftOrKicked; + + /// Called when group state becomes Playing so controller can ensure player is actually playing (per docs). + final void Function()? onStateUpdateToPlaying; + + /// Called when the user is no longer part of the group from the + /// server's perspective (kicked, group disposed, etc.) so that the + /// controller can surface a user-visible notification. + final void Function({required bool wasKicked})? onGroupGone; + + /// Handle group update message + void handleGroupUpdate(Map data, SyncPlayState currentState) { + _wasInGroupAtLastUpdate = currentState.isInGroup; + final updateType = data['Type'] as String?; + final updateData = data['Data']; + + switch (updateType) { + case 'GroupJoined': + _handleGroupJoined(updateData as Map); + break; + case 'UserJoined': + _handleUserJoined(updateData as String?, currentState); + break; + case 'UserLeft': + _handleUserLeft(updateData as String?, currentState); + break; + case 'GroupLeft': + _handleGroupLeft(); + break; + case 'GroupDoesNotExist': + _handleGroupDoesNotExist(); + break; + case 'NotInGroup': + _handleNotInGroup(); + break; + case 'StateUpdate': + _handleStateUpdate(updateData as Map); + break; + case 'PlayQueue': + _handlePlayQueue(updateData as Map, currentState); + break; + } + } + + void _handleGroupJoined(Map data) { + final groupId = data['GroupId'] as String?; + final groupName = data['GroupName'] as String?; + final stateStr = data['State'] as String?; + final participants = (data['Participants'] as List?)?.cast() ?? []; + final positionTicks = data['PositionTicks'] as int? ?? 0; + final playingItemId = data['PlayingItemId'] as String?; + + onStateUpdate((state) => state.copyWith( + isInGroup: true, + groupId: groupId, + groupName: groupName, + groupState: _parseGroupState(stateStr), + participants: participants, + positionTicks: positionTicks, + playingItemId: playingItemId ?? state.playingItemId, + )); + + log('SyncPlay: Joined group "$groupName" ($groupId)'); + + // Notify controller that group join was confirmed + onGroupJoined(); + } + + /// Note: SyncPlay's `UserJoined` / `UserLeft` payloads carry the + /// participant's display name directly in `Data` (a plain string), + /// not a userId. No `usersUserIdGet` lookup is needed - calling that + /// endpoint with the username returns a 400. + void _handleUserJoined(String? userName, SyncPlayState currentState) { + if (userName == null) { + return; + } + final participants = [...currentState.participants, userName]; + onStateUpdate((state) => state.copyWith(participants: participants)); + + _showSnackbar((l) => l.syncPlayUserJoined(userName)); + log('SyncPlay: User joined: $userName'); + } + + void _handleUserLeft(String? userName, SyncPlayState currentState) { + if (userName == null) { + return; + } + final participants = currentState.participants.where((p) => p != userName).toList(); + onStateUpdate((state) => state.copyWith(participants: participants)); + + _showSnackbar((l) => l.syncPlayUserLeft(userName)); + log('SyncPlay: User left: $userName'); + } + + /// Render a snackbar through the global notification overlay. We + /// deliberately do NOT pass the navigator-key context here: that + /// context lives under `Navigator` but not under any `Overlay`, so + /// `Overlay.of(context)` throws. `FladderSnack` keeps a stored root + /// context (set by `NotificationManagerInitializer`) that already + /// resolves to the root overlay. + void _showSnackbar(String Function(AppLocalizations l) builder) { + final context = getContext(); + if (context != null) { + FladderSnack.show(builder(context.localized)); + return; + } + try { + final loc = lookupAppLocalizations(const Locale('en')); + FladderSnack.show(builder(loc)); + } catch (_) { + // No fallback available - silently swallow. + } + } + + void _handleGroupLeft() { + onStateUpdate((state) => state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + isProcessingCommand: false, + processingCommandType: null, + )); + onGroupLeftOrKicked?.call(); + log('SyncPlay: Left group'); + } + + void _handleGroupDoesNotExist() { + final wasInGroup = _wasInGroupAtLastUpdate; + onStateUpdate((state) => state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + isProcessingCommand: false, + processingCommandType: null, + )); + onGroupLeftOrKicked?.call(); + log('SyncPlay: Group does not exist'); + + if (wasInGroup) { + onGroupGone?.call(wasKicked: false); + } + + // Notify controller that group join failed + onGroupJoinFailed(); + } + + void _handleNotInGroup() { + final wasInGroup = _wasInGroupAtLastUpdate; + onStateUpdate((state) => state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + isProcessingCommand: false, + processingCommandType: null, + )); + onGroupLeftOrKicked?.call(); + log('SyncPlay: Not in group - server rejected operation'); + + if (wasInGroup) { + onGroupGone?.call(wasKicked: true); + } + + // Notify controller that group join failed + onGroupJoinFailed(); + } + + bool _wasInGroupAtLastUpdate = false; + + void _handleStateUpdate(Map data) { + final stateStr = data['State'] as String?; + final reasonStr = data['Reason'] as String?; + final positionTicks = data['PositionTicks'] as int? ?? 0; + final newGroupState = _parseGroupState(stateStr); + final reason = SyncPlayStateReason.fromWire(reasonStr); + + onStateUpdate((state) => state.copyWith( + groupState: newGroupState, + stateReason: reasonStr, + positionTicks: positionTicks, + )); + + log('SyncPlay: State update: $stateStr (reason: $reasonStr)'); + + if (newGroupState == SyncPlayGroupState.waiting) { + _handleWaitingState(reason); + } + + // Per docs: when state becomes Playing, ensure player is actually + // playing (recover if Unpause was missed). + if (newGroupState == SyncPlayGroupState.playing) { + onStateUpdateToPlaying?.call(); + } + } + + void _handleWaitingState(SyncPlayStateReason? reason) { + if (reason == SyncPlayStateReason.buffer || reason == SyncPlayStateReason.unpause) { + if (!isBuffering()) { + reportReady(isPlaying: true); + } + } + } + + void _handlePlayQueue(Map data, SyncPlayState currentState) { + final playlist = data['Playlist'] as List? ?? []; + final playingItemIndex = data['PlayingItemIndex'] as int? ?? 0; + final startPositionTicks = data['StartPositionTicks'] as int? ?? 0; + final isPlayingNow = data['IsPlaying'] as bool? ?? false; + final reason = data['Reason'] as String?; + + String? playingItemId; + String? playlistItemId; + + if (playlist.isNotEmpty && playingItemIndex < playlist.length) { + final item = playlist[playingItemIndex] as Map; + playingItemId = item['ItemId'] as String?; + playlistItemId = item['PlaylistItemId'] as String?; + } + + final previousItemId = currentState.playingItemId; + + onStateUpdate((state) => state.copyWith( + playingItemId: playingItemId, + playlistItemId: playlistItemId, + positionTicks: startPositionTicks, + )); + + log('SyncPlay: PlayQueue update - playing: $playingItemId (reason: $reason, isPlaying: $isPlayingNow, previousItemId: $previousItemId)'); + + // Trigger playback for NewPlaylist/SetCurrentItem regardless of whether item changed + // (the same user who set the queue also receives the update and needs to start playing) + final shouldTrigger = playingItemId != null && + (reason == 'NewPlaylist' || reason == 'SetCurrentItem' || (playingItemId != previousItemId && isPlayingNow)); + + log('SyncPlay: shouldTrigger=$shouldTrigger (reason: $reason)'); + + if (shouldTrigger) { + log('SyncPlay: Triggering playback for item: $playingItemId'); + startPlayback(playingItemId, startPositionTicks); + } + } + + SyncPlayGroupState _parseGroupState(String? state) { + switch (state?.toLowerCase()) { + case 'idle': + return SyncPlayGroupState.idle; + case 'waiting': + return SyncPlayGroupState.waiting; + case 'paused': + return SyncPlayGroupState.paused; + case 'playing': + return SyncPlayGroupState.playing; + default: + return SyncPlayGroupState.idle; + } + } +} diff --git a/lib/providers/syncplay/syncplay.dart b/lib/providers/syncplay/syncplay.dart new file mode 100644 index 000000000..1ab5c0f9e --- /dev/null +++ b/lib/providers/syncplay/syncplay.dart @@ -0,0 +1,27 @@ +/// SyncPlay - Synchronized playback for Jellyfin +/// +/// This module provides synchronized playback functionality allowing multiple +/// clients to watch media together in perfect synchronization. +/// +/// Main components: +/// - [SyncPlayController] - Core controller for SyncPlay operations +/// - [SyncPlayState] - Current state of the SyncPlay session +/// - [TimeSyncService] - NTP-like clock synchronization with server +/// - [WebSocketManager] - WebSocket connection management +/// +/// Usage: +/// ```dart +/// final syncPlay = ref.read(syncPlayProvider.notifier); +/// await syncPlay.connect(); +/// await syncPlay.createGroup('Movie Night'); +/// ``` +library; + +export 'package:fladder/models/syncplay/syncplay_models.dart'; + +export 'handlers/syncplay_command_handler.dart' + show SyncPlayPlayerCallback, SyncPlaySeekCallback, SyncPlayPositionCallback; +export 'syncplay_controller.dart'; +export 'syncplay_provider.dart'; +export 'time_sync_service.dart'; +export 'websocket_manager.dart'; diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart new file mode 100644 index 000000000..da8bfa4af --- /dev/null +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -0,0 +1,1127 @@ +import 'dart:async'; +import 'dart:developer' as developer; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/models/media_playback_model.dart'; +import 'package:fladder/models/playback/playback_model.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/api_provider.dart'; +import 'package:fladder/providers/router_provider.dart'; +import 'package:fladder/providers/syncplay/handlers/syncplay_command_handler.dart'; +import 'package:fladder/providers/syncplay/handlers/syncplay_message_handler.dart'; +import 'package:fladder/providers/syncplay/time_sync_service.dart'; +import 'package:fladder/providers/syncplay/websocket_manager.dart'; +import 'package:fladder/providers/user_provider.dart'; +import 'package:fladder/providers/video_player_provider.dart'; +import 'package:fladder/screens/shared/fladder_notification_overlay.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:fladder/l10n/generated/app_localizations.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +/// Controller for SyncPlay synchronized playback +class SyncPlayController { + static const bool _verboseSyncPlayLogs = false; + + SyncPlayController(this._ref) { + _commandHandler = SyncPlayCommandHandler( + timeSync: () => _timeSync, + onStateUpdate: _updateStateWith, + ); + _messageHandler = SyncPlayMessageHandler( + onStateUpdate: _updateStateWith, + reportReady: ({bool isPlaying = true}) => reportReady(isPlaying: isPlaying), + // Wrap _startPlayback so the loader-UX completer resolves as soon + // as the server's PlayQueue is received (i.e. our queue request + // was accepted and broadcast). The actual local load + // (loadPlaybackItem → media-kit) can then take its time without + // gating the dialog: media-kit on web sometimes leaves + // `state.loadVideo()` hanging which would otherwise let the + // 20s timeout fire and surface a misleading "unable to play + // media format" snack while playback is in fact already running. + startPlayback: (itemId, ticks) async { + final completer = _startPlaybackCompleter; + if (completer != null && !completer.isCompleted) { + log('SyncPlay: PlayQueue accepted - resolving loader ' + 'completer eagerly for item=$itemId'); + completer.complete(true); + } + await _startPlayback(itemId, ticks); + }, + isBuffering: () => _commandHandler.isBuffering?.call() ?? false, + getContext: () => getNavigatorKey(_ref)?.currentContext, + onGroupJoined: _onGroupJoined, + onGroupJoinFailed: _onGroupJoinFailed, + onGroupLeftOrKicked: _onGroupLeftOrKicked, + onStateUpdateToPlaying: _onStateUpdateToPlaying, + onGroupGone: ({required wasKicked}) => notifyGroupGone(wasKicked: wasKicked), + ); + } + + final Ref _ref; + + WebSocketManager? _wsManager; + TimeSyncService? _timeSync; + StreamSubscription? _wsMessageSubscription; + StreamSubscription? _wsStateSubscription; + Timer? _syncCorrectionTimer; + + late final SyncPlayCommandHandler _commandHandler; + late final SyncPlayMessageHandler _messageHandler; + + SyncPlayState _state = SyncPlayState(); + final _stateController = StreamController.broadcast(); + + Stream get stateStream => _stateController.stream; + + SyncPlayState get state => _state; + + // Lifecycle state for reconnection + String? _lastGroupId; + bool _wasConnected = false; + + // Completer for waiting on group join confirmation + Completer? _joinGroupCompleter; + + // Completer that resolves the next time `_startPlayback` finishes + // (success or failure). Used by the loader UX for both initiator + // and receivers. + Completer? _startPlaybackCompleter; + + // PlaylistItemId currently being started (dedup against concurrent + // PlayQueue updates issued by simultaneous initiators). + String? _currentlyStartingPlaylistItemId; + Completer? _inFlightStartCompleter; + + // Debounce: timestamp of the last `setNewQueue` API call so two + // initiators don't fire two requests in the same second. + DateTime? _lastSetNewQueueAt; + + // Player callbacks (delegated to command handler) + set onPlay(SyncPlayPlayerCallback? callback) => _commandHandler.onPlay = callback; + + set onPause(SyncPlayPlayerCallback? callback) => _commandHandler.onPause = callback; + + set onSeek(SyncPlaySeekCallback? callback) => _commandHandler.onSeek = callback; + + set onStop(SyncPlayPlayerCallback? callback) => _commandHandler.onStop = callback; + + set getPositionTicks(SyncPlayPositionCallback? callback) => _commandHandler.getPositionTicks = callback; + + set isPlaying(bool Function()? callback) => _commandHandler.isPlaying = callback; + + set isBuffering(bool Function()? callback) => _commandHandler.isBuffering = callback; + + set onSeekRequested(SyncPlaySeekCallback? callback) => _commandHandler.onSeekRequested = callback; + + set onReportReady(SyncPlayReportReadyCallback? callback) => _commandHandler.onReportReady = callback; + + set onSetSpeed(SyncPlaySetSpeedCallback? callback) => _commandHandler.onSetSpeed = callback; + + set hasPlaybackRate(bool Function()? callback) => _commandHandler.hasPlaybackRate = callback; + + void log(String message) { + final isImportant = message.contains('Failed') || message.contains('Error') || message.contains('Cannot'); + if (_verboseSyncPlayLogs || isImportant) { + developer.log(message); + } + } + + /// Mark that a SyncPlay command was executed locally. + /// Used by player-side cooldown logic to avoid feedback loops. + void markCommandExecuted([DateTime? at]) { + _updateStateWith((state) => state.copyWith( + lastCommandTime: at ?? DateTime.now().toUtc(), + )); + } + + /// Update buffering/reloading status used by SyncPlay integration. + void setPlayerBufferingState(bool isBuffering) { + if (isBuffering) { + _syncCorrectionTimer?.cancel(); + _syncCorrectionTimer = null; + final setSpeed = _commandHandler.onSetSpeed; + if (setSpeed != null) { + unawaited( + setSpeed(1.0).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to reset speed while buffering: $error'); + }), + ); + } + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playerIsBuffering: true, + syncEnabled: false, + activeStrategy: SyncCorrectionStrategy.none, + ), + )); + return; + } + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playerIsBuffering: false, + syncEnabled: true, + ), + )); + } + + /// Reset correction strategy/state when commands are cleared, on stop, + /// or around rejoin flows. + void resetCorrectionState({ + String reason = 'reset', + bool syncEnabled = true, + }) { + _syncCorrectionTimer?.cancel(); + _syncCorrectionTimer = null; + + final setSpeed = _commandHandler.onSetSpeed; + if (setSpeed != null) { + unawaited( + setSpeed(1.0).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to reset speed during correction reset: $error'); + }), + ); + } + _commandHandler.clearLastCommand(); + + log('SyncPlay: Reset correction state ($reason)'); + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + activeStrategy: SyncCorrectionStrategy.none, + syncEnabled: syncEnabled, + playbackDiffMillis: 0, + syncAttempts: 0, + ), + )); + } + + /// Update current playback drift against estimated SyncPlay server time. + /// + /// Drift is computed as: + /// `estimatedServerPositionTicks - currentLocalPositionTicks`. + /// Positive means local player is behind, negative means ahead. + void updatePlaybackDrift({ + required int currentPositionTicks, + DateTime? at, + }) { + if (!_commandHandler.canAttemptSyncCorrection(_state)) { + return; + } + + final lastCommand = _commandHandler.lastCommand; + if (lastCommand == null) { + return; + } + + final when = DateTime.tryParse(lastCommand.when); + if (when == null) { + return; + } + + final now = (at ?? DateTime.now().toUtc()); + final remoteNow = _timeSync?.localDateToRemote(now) ?? now; + final elapsedMs = remoteNow.difference(when).inMilliseconds; + + final estimatedServerTicks = lastCommand.positionTicks + millisecondsToTicks(elapsedMs); + final diffTicks = estimatedServerTicks - currentPositionTicks; + final diffMillis = ticksToMilliseconds(diffTicks).toDouble(); + final correctionConfig = _state.correctionConfig; + final correctionState = _state.correctionState; + final strategy = selectSyncCorrectionStrategy( + config: correctionConfig, + state: correctionState, + diffMillis: diffMillis, + hasPlaybackRate: _commandHandler.hasPlaybackRate?.call() == true, + ); + + if (strategy == SyncCorrectionStrategy.speedToSync) { + _applySpeedToSync( + diffMillis: diffMillis, + config: correctionConfig, + now: now, + ); + return; + } + + if (strategy == SyncCorrectionStrategy.skipToSync) { + _applySkipToSync( + diffMillis: diffMillis, + targetPositionTicks: estimatedServerTicks, + config: correctionConfig, + now: now, + ); + return; + } + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playbackDiffMillis: diffMillis, + lastSyncAt: now, + ), + )); + } + + void _applySpeedToSync({ + required double diffMillis, + required SyncCorrectionConfig config, + required DateTime now, + }) { + final setSpeed = _commandHandler.onSetSpeed; + if (setSpeed == null) { + return; + } + + var speedToSyncTimeMs = config.speedToSyncDurationMs; + const minSpeed = 0.2; + if (diffMillis <= -speedToSyncTimeMs * minSpeed) { + speedToSyncTimeMs = diffMillis.abs() / (1.0 - minSpeed); + } + + final rawSpeed = 1.0 + (diffMillis / speedToSyncTimeMs); + final speed = rawSpeed < minSpeed ? minSpeed : rawSpeed; + final resetDuration = Duration( + milliseconds: speedToSyncTimeMs.round(), + ); + + _syncCorrectionTimer?.cancel(); + unawaited( + setSpeed(speed).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to apply SpeedToSync rate: $error'); + }), + ); + log( + 'SyncPlay: SpeedToSync applied ' + '(speed=${speed.toStringAsFixed(2)}, ' + 'diffMs=${diffMillis.toStringAsFixed(1)})', + ); + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playbackDiffMillis: diffMillis, + lastSyncAt: now, + activeStrategy: SyncCorrectionStrategy.speedToSync, + syncEnabled: false, + syncAttempts: state.correctionState.syncAttempts + 1, + ), + )); + + _syncCorrectionTimer = Timer(resetDuration, () { + final resetSpeed = _commandHandler.onSetSpeed; + if (resetSpeed != null) { + unawaited( + resetSpeed(1.0).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to reset speed after SpeedToSync: $error'); + }), + ); + } + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + activeStrategy: SyncCorrectionStrategy.none, + syncEnabled: true, + ), + )); + }); + } + + void _applySkipToSync({ + required double diffMillis, + required int targetPositionTicks, + required SyncCorrectionConfig config, + required DateTime now, + }) { + final seek = _commandHandler.onSeek; + if (seek == null) { + return; + } + + _syncCorrectionTimer?.cancel(); + unawaited( + seek(targetPositionTicks).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to apply SkipToSync seek: $error'); + }), + ); + log( + 'SyncPlay: SkipToSync applied ' + '(targetTicks=$targetPositionTicks, ' + 'diffMs=${diffMillis.toStringAsFixed(1)})', + ); + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playbackDiffMillis: diffMillis, + lastSyncAt: now, + activeStrategy: SyncCorrectionStrategy.skipToSync, + syncEnabled: false, + syncAttempts: state.correctionState.syncAttempts + 1, + ), + )); + + final cooldownDuration = Duration( + milliseconds: (config.maxDelaySpeedToSyncMs / 2.0).round(), + ); + _syncCorrectionTimer = Timer(cooldownDuration, () { + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + activeStrategy: SyncCorrectionStrategy.none, + syncEnabled: true, + ), + )); + }); + } + + JellyfinOpenApi get _api => _ref.read(jellyApiProvider).api; + + /// Initialize and connect to SyncPlay + Future connect() async { + final user = _ref.read(userProvider); + if (user == null) { + log('SyncPlay: Cannot connect without user'); + return; + } + + final serverUrl = _ref.read(serverUrlProvider); + if (serverUrl == null || serverUrl.isEmpty) { + log('SyncPlay: Cannot connect without server URL'); + return; + } + + // Initialize time sync + _timeSync = TimeSyncService(_api); + _timeSync!.start(); + + // Initialize WebSocket + log('SyncPlay: Initializing WebSocket with deviceId: ${user.credentials.deviceId}'); + _wsManager = WebSocketManager( + serverUrl: serverUrl, + token: user.credentials.token, + deviceId: user.credentials.deviceId, + ); + + _wsStateSubscription = _wsManager!.connectionState.listen(_handleConnectionState); + _wsMessageSubscription = _wsManager!.messages.listen(_handleMessage); + + await _wsManager!.connect(); + } + + /// Disconnect from SyncPlay + Future disconnect() async { + resetCorrectionState( + reason: 'disconnect', + syncEnabled: false, + ); + await leaveGroup(); + _commandHandler.cancelPendingCommands(); + _wsMessageSubscription?.cancel(); + _wsStateSubscription?.cancel(); + _timeSync?.dispose(); + await _wsManager?.dispose(); + _wsManager = null; + _timeSync = null; + _updateState(SyncPlayState()); + } + + /// List available SyncPlay groups + Future> listGroups() async { + try { + final response = await _api.syncPlayListGet(); + return response.body ?? []; + } catch (e) { + log('SyncPlay: Failed to list groups: $e'); + return []; + } + } + + /// Create a new SyncPlay group + Future createGroup(String groupName) async { + try { + final response = await _api.syncPlayNewPost( + body: NewGroupRequestDto(groupName: groupName), + ); + return response.body; + } catch (e) { + log('SyncPlay: Failed to create group: $e'); + return null; + } + } + + /// Join an existing SyncPlay group + /// Returns true only after receiving GroupJoined confirmation from WebSocket + Future joinGroup(String groupId) async { + // Check if already in a group + if (_state.isInGroup) { + log('SyncPlay: Already in a group, leaving first...'); + await leaveGroup(); + } + + // Check if WebSocket is connected + if (!_state.isConnected) { + log('SyncPlay: WebSocket not connected, cannot join group'); + return false; + } + + try { + log('SyncPlay: Joining group: $groupId'); + + // Create completer to wait for GroupJoined confirmation + _joinGroupCompleter = Completer(); + + await _api.syncPlayJoinPost( + body: JoinGroupRequestDto(groupId: groupId), + ); + _lastGroupId = groupId; + log('SyncPlay: Join request sent, waiting for confirmation...'); + + // Wait for GroupJoined message with timeout + final confirmed = await _joinGroupCompleter!.future.timeout( + const Duration(seconds: 5), + onTimeout: () { + log('SyncPlay: Timeout waiting for GroupJoined confirmation'); + return false; + }, + ); + + _joinGroupCompleter = null; + + if (confirmed) { + log('SyncPlay: Group join confirmed'); + } else { + log('SyncPlay: Group join not confirmed'); + _lastGroupId = null; + } + + return confirmed; + } catch (e) { + log('SyncPlay: Failed to join group: $e'); + _joinGroupCompleter?.complete(false); + _joinGroupCompleter = null; + return false; + } + } + + /// Called by message handler when GroupJoined is received. + /// + /// If the group is already playing/waiting, signal `Buffering` so the + /// server moves the group to `Waiting` and pauses the other clients + /// until our own player is ready (see SyncPlay docs §"Client Buffering + /// During Playback"). + void _onGroupJoined() { + resetCorrectionState( + reason: 'group_joined', + syncEnabled: true, + ); + _joinGroupCompleter?.complete(true); + final showSnackbar = _state.groupName != null; + if (showSnackbar) { + _showGroupSnackbar( + (l) => l.syncPlayJoinedGroup(_state.groupName ?? ''), + ); + } + if (_state.groupState == SyncPlayGroupState.playing || _state.groupState == SyncPlayGroupState.waiting) { + log('SyncPlay: Joined mid-playback, reporting Buffering to ' + 'pause group while we catch up'); + unawaited(reportBuffering()); + } + } + + /// Called by message handler when NotInGroup/GroupDoesNotExist is received + void _onGroupJoinFailed() { + _joinGroupCompleter?.complete(false); + } + + /// Called when we leave or are kicked; cancel pending commands, + /// clear processing state and stop any local playback that was + /// driven by the previous group. Without the local stop, the player + /// keeps the old media loaded in the background and a later + /// `Unpause` command from a *different* group would resume it. + void _onGroupLeftOrKicked() { + _commandHandler.cancelPendingCommands(); + resetCorrectionState( + reason: 'group_left_or_kicked', + syncEnabled: false, + ); + _updateStateWith((s) => s.copyWith( + isProcessingCommand: false, + processingCommandType: null, + playingItemId: null, + playlistItemId: null, + startPlaybackInProgress: false, + startingPlaylistItemId: null, + )); + _stopLocalPlayback(); + } + + /// Stop and dispose the local video player & playback model so no + /// leftover media can resume after the SyncPlay session ended. + void _stopLocalPlayback() { + try { + unawaited(_ref.read(videoPlayerProvider).stop()); + _ref.read(playBackModel.notifier).update((_) => null); + _ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + } catch (e) { + log('SyncPlay: Failed to stop local playback after leave: $e'); + } + } + + /// When server reports Playing, ensure player is actually playing (per docs: recover if Unpause command was missed). + void _onStateUpdateToPlaying() { + if (_commandHandler.isPlaying?.call() != true) { + log('SyncPlay: State is Playing but player not playing, triggering play'); + _commandHandler.onPlay?.call(); + } + } + + /// Leave the current SyncPlay group. + /// Resets processing state and cancels pending commands so playback is not stuck (per docs). + Future leaveGroup() async { + if (!_state.isInGroup) { + return; + } + try { + await _api.syncPlayLeavePost(); + _lastGroupId = null; + _commandHandler.cancelPendingCommands(); + resetCorrectionState( + reason: 'leave_group', + syncEnabled: false, + ); + _updateState(_state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + isProcessingCommand: false, + processingCommandType: null, + positionTicks: 0, + playlistItemId: null, + playingItemId: null, + startPlaybackInProgress: false, + startingPlaylistItemId: null, + )); + _stopLocalPlayback(); + log('SyncPlay: Left group, state reset'); + } catch (e) { + log('SyncPlay: Failed to leave group: $e'); + _commandHandler.cancelPendingCommands(); + resetCorrectionState( + reason: 'leave_group_failed_local_reset', + syncEnabled: false, + ); + _updateState(_state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + isProcessingCommand: false, + processingCommandType: null, + playingItemId: null, + playlistItemId: null, + startPlaybackInProgress: false, + startingPlaylistItemId: null, + )); + _stopLocalPlayback(); + } + } + + /// Request pause + Future requestPause() async { + if (!_state.isInGroup) { + return; + } + try { + await _api.syncPlayPausePost(); + } catch (e) { + log('SyncPlay: Failed to request pause: $e'); + } + } + + /// Request unpause/play (server will move to Waiting until all clients report Ready, then broadcast Unpause). + Future requestUnpause() async { + if (!_state.isInGroup) { + return; + } + try { + log('SyncPlay: Sending Unpause request'); + await _api.syncPlayUnpausePost(); + } catch (e) { + log('SyncPlay: Failed to request unpause: $e'); + } + } + + /// Request seek + Future requestSeek(int positionTicks) async { + if (!_state.isInGroup) { + return; + } + try { + await _api.syncPlaySeekPost( + body: SeekRequestDto(positionTicks: positionTicks), + ); + } catch (e) { + log('SyncPlay: Failed to request seek: $e'); + } + } + + /// Report buffering state. + /// + /// No-op while a local-only operation is active (track switch) so + /// changing audio/subtitle locally does not pause the group. + Future reportBuffering() async { + if (!_state.isInGroup) { + return; + } + if (_state.isInLocalOnlyMode) { + log('SyncPlay: Skipping reportBuffering (local-only mode)'); + return; + } + try { + final when = _timeSync?.localDateToRemote(DateTime.now().toUtc()); + await _api.syncPlayBufferingPost( + body: BufferRequestDto( + when: when, + positionTicks: _commandHandler.getPositionTicks?.call() ?? 0, + isPlaying: false, + playlistItemId: _state.playlistItemId, + ), + ); + } catch (e) { + log('SyncPlay: Failed to report buffering: $e'); + } + } + + /// Report ready state (required for server to broadcast Unpause when + /// in Waiting). Suppressed while local-only mode is active. + Future reportReady({bool isPlaying = true}) async { + if (!_state.isInGroup) { + return; + } + if (_state.isInLocalOnlyMode) { + log('SyncPlay: Skipping reportReady (local-only mode)'); + return; + } + try { + final when = _timeSync?.localDateToRemote(DateTime.now().toUtc()); + final ticks = _commandHandler.getPositionTicks?.call() ?? 0; + log('SyncPlay: Reporting Ready (isPlaying=$isPlaying, positionTicks=$ticks)'); + await _api.syncPlayReadyPost( + body: ReadyRequestDto( + when: when, + positionTicks: ticks, + isPlaying: isPlaying, + playlistItemId: _state.playlistItemId, + ), + ); + } catch (e) { + log('SyncPlay: Failed to report ready: $e'); + } + } + + /// Run [body] as a "local-only" operation. While this runs the + /// controller will not emit `Buffering`/`Ready` to the server and + /// will trigger an immediate drift correction on completion so the + /// local player catches up to the group time after a track reload. + /// + /// If the group is in `Playing` state when the operation finishes, + /// the local player is explicitly resumed: media-kit on web does + /// not reliably auto-play after `loadVideo` + `setAudioTrack` / + /// `setSubtitleTrack`, and since we suppress `Buffering`/`Ready` + /// reports the server never re-issues an `Unpause` command we could + /// piggy-back on. + Future runLocalOnly(Future Function() body) async { + final wasPlaying = _commandHandler.isPlaying?.call() ?? false; + _updateStateWith( + (state) => state.copyWith( + localOnlyOperationCount: state.localOnlyOperationCount + 1, + ), + ); + try { + return await body(); + } finally { + _updateStateWith( + (state) => state.copyWith( + localOnlyOperationCount: (state.localOnlyOperationCount - 1).clamp(0, 1 << 30), + ), + ); + + final shouldResume = wasPlaying || _state.groupState == SyncPlayGroupState.playing; + if (shouldResume && _state.localOnlyOperationCount == 0 && _commandHandler.isPlaying?.call() == false) { + log('SyncPlay: Resuming local playback after local-only switch'); + try { + await _commandHandler.onPlay?.call(); + } catch (e) { + log('SyncPlay: Failed to resume after local-only switch: $e'); + } + } + + final ticks = _commandHandler.getPositionTicks?.call() ?? 0; + updatePlaybackDrift(currentPositionTicks: ticks); + } + } + + /// Report ping to server + Future reportPing() async { + if (!_state.isInGroup || _timeSync == null) { + return; + } + try { + await _api.syncPlayPingPost( + body: PingRequestDto(ping: _timeSync!.ping.inMilliseconds), + ); + } catch (e) { + log('SyncPlay: Failed to report ping: $e'); + } + } + + /// Set a new queue/playlist. + /// + /// Debounced to 1 second so two participants cannot race the same + /// `setNewQueue` request and crash the player by triggering two + /// concurrent `_startPlayback` flows. + /// Returns `true` when the request was actually sent to the server, + /// `false` when it was suppressed (not in group, or debounced). + /// Callers awaiting the next `_startPlayback` (e.g. the loader UX in + /// `_playSyncPlay`) need this to avoid waiting for a `PlayQueue` + /// broadcast that will never arrive. + Future setNewQueue({ + required List itemIds, + int playingItemPosition = 0, + int startPositionTicks = 0, + }) async { + if (!_state.isInGroup) { + log('SyncPlay: Cannot set queue - not in group'); + return false; + } + final now = DateTime.now().toUtc(); + final lastAt = _lastSetNewQueueAt; + if (lastAt != null && now.difference(lastAt) < const Duration(seconds: 1)) { + log('SyncPlay: Ignoring setNewQueue (debounced, last call ' + '${now.difference(lastAt).inMilliseconds}ms ago)'); + return false; + } + _lastSetNewQueueAt = now; + try { + final body = PlayRequestDto( + playingQueue: itemIds, + playingItemPosition: playingItemPosition, + startPositionTicks: startPositionTicks, + ); + log('SyncPlay: Setting new queue: ${body.toJson()}'); + final response = await _api.syncPlaySetNewQueuePost(body: body); + log('SyncPlay: SetNewQueue response: ${response.statusCode} - ${response.body}'); + return true; + } catch (e) { + log('SyncPlay: Failed to set new queue: $e'); + _lastSetNewQueueAt = null; + return false; + } + } + + /// Returns a Future that completes the next time `_startPlayback` + /// finishes. Used by the loader UX (initiator path). + /// + /// Resolves to `true` on successful playback start, `false` on + /// error or timeout. + Future awaitNextStartPlayback({ + Duration timeout = const Duration(seconds: 20), + }) { + final completer = _startPlaybackCompleter ??= Completer(); + return completer.future.timeout( + timeout, + onTimeout: () { + log('SyncPlay: awaitNextStartPlayback TIMED OUT after ' + '${timeout.inSeconds}s (no _startPlayback completion)'); + return false; + }, + ).then((value) { + log('SyncPlay: awaitNextStartPlayback resolved with success=$value'); + return value; + }); + } + + /// Re-attach to the currently playing group item from outside the + /// player route. Re-uses [_startPlayback] with the current group + /// position so the local player jumps back into the running session. + Future rejoinPlayback() async { + final itemId = _state.playingItemId; + if (!_state.isInGroup || itemId == null) { + log('SyncPlay: rejoinPlayback called but no active item in group'); + return false; + } + final positionTicks = _state.positionTicks; + final pending = awaitNextStartPlayback(); + log('SyncPlay: Rejoining playback for item=$itemId, ' + 'positionTicks=$positionTicks'); + unawaited(_startPlayback(itemId, positionTicks)); + return pending; + } + + void _handleConnectionState(WebSocketConnectionState wsState) { + log('SyncPlay: WebSocket connection state: $wsState'); + final isConnected = wsState == WebSocketConnectionState.connected; + _updateState(_state.copyWith(isConnected: isConnected)); + log('SyncPlay: isConnected updated to: $isConnected'); + } + + void _handleMessage(Map message) { + final messageType = message['MessageType'] as String?; + final data = message['Data']; + + log('SyncPlay: Received WebSocket message: $messageType'); + + switch (messageType) { + case 'SyncPlayCommand': + final cmd = (data as Map)['Command'] as String?; + log('SyncPlay: Received SyncPlayCommand: $cmd'); + _commandHandler.handleCommand(data, _state); + break; + case 'SyncPlayGroupUpdate': + log('SyncPlay: GroupUpdate data: $data'); + _messageHandler.handleGroupUpdate(data as Map, _state); + break; + default: + // Log unhandled message types for debugging + if (messageType?.startsWith('SyncPlay') == true) { + log('SyncPlay: Unhandled SyncPlay message type: $messageType'); + } + } + } + + /// Start playback of an item from SyncPlay. + /// + /// Guards against re-entrancy: if a `_startPlayback` is already in + /// flight for the same playlist item, the duplicate call is ignored + /// (this is the crash fix when two participants press play at the + /// same time and the server broadcasts two PlayQueue updates back to + /// back). If a different item is already starting, we wait for it + /// to finish before kicking off the new one. + Future _startPlayback(String itemId, int startPositionTicks) async { + final dedupKey = _state.playlistItemId ?? itemId; + if (_state.startPlaybackInProgress) { + if (_currentlyStartingPlaylistItemId == dedupKey) { + log('SyncPlay: _startPlayback skipped (already starting $dedupKey)'); + return; + } + log('SyncPlay: _startPlayback waiting for previous start to finish'); + try { + await _inFlightStartCompleter?.future.timeout(const Duration(seconds: 15)); + } catch (_) { + // Fall through and try our own start anyway. + } + } + + final localCompleter = _startPlaybackCompleter ??= Completer(); + _inFlightStartCompleter = Completer(); + _currentlyStartingPlaylistItemId = dedupKey; + _updateStateWith((state) => state.copyWith( + startPlaybackInProgress: true, + startingPlaylistItemId: dedupKey, + )); + log('SyncPlay: _startPlayback called for item: $itemId, ticks: $startPositionTicks'); + + var success = false; + try { + final playerRouteAlreadyOpen = _ref.read(isVideoPlayerRouteOpenProvider); + log('SyncPlay: Player route already open: $playerRouteAlreadyOpen'); + + // Clear the old playback model BEFORE re-initializing. This prevents + // the fire-and-forget stop() inside _initPlayer() from entering a + // 1-second delayed playbackStopped flow that races against the new + // loadPlaybackItem call (which also calls stop()). With playBackModel + // null, every stop() becomes a no-op. + if (!playerRouteAlreadyOpen) { + _ref.read(playBackModel.notifier).update((state) => null); + await _ref.read(videoPlayerProvider.notifier).init(); + } + + // Fetch the item from Jellyfin + log('SyncPlay: Fetching item from API...'); + final api = _ref.read(jellyApiProvider); + final itemResponse = await api.usersUserIdItemsItemIdGet(itemId: itemId); + final itemModel = itemResponse.body; + + if (itemModel == null) { + log('SyncPlay: Failed to fetch item $itemId - response body was null'); + return; + } + log('SyncPlay: Fetched item: ${itemModel.name}'); + + // Create playback model (context is optional - null for SyncPlay auto-play) + log('SyncPlay: Creating playback model...'); + final playbackHelper = _ref.read(playbackModelHelper); + final startPosition = Duration(microseconds: startPositionTicks ~/ 10); + + final playbackModel = await playbackHelper.createPlaybackModel( + null, // No context needed for SyncPlay + itemModel, + startPosition: startPosition, + ); + + if (playbackModel == null) { + log('SyncPlay: Failed to create playback model for $itemId'); + return; + } + log('SyncPlay: Playback model created successfully'); + + // Load and play + log('SyncPlay: Loading playback item...'); + final loadedCorrectly = await _ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + playbackModel, + startPosition, + ); + + if (!loadedCorrectly) { + log('SyncPlay: Failed to load playback item $itemId'); + return; + } + success = true; + log('SyncPlay: Playback item loaded successfully'); + + // Set state to fullScreen + _ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.fullScreen), + ); + log('SyncPlay: Set state to fullScreen'); + + // Only push the player route when it isn't already on screen. + // When the route is already open (e.g. User B whose player stayed + // open), loadPlaybackItem already swapped the video content in the + // existing player — pushing again would stack duplicate routes. + if (!playerRouteAlreadyOpen) { + final navigatorKey = getNavigatorKey(_ref); + final context = navigatorKey?.currentContext; + log('SyncPlay: Navigator context: ${context != null ? "exists" : "null"}'); + + if (context != null) { + await _ref.read(videoPlayerProvider.notifier).openPlayer(context); + log('SyncPlay: Successfully opened player for $itemId'); + } else { + log('SyncPlay: No navigator context available, player loaded but not opened fullscreen'); + } + } else { + log('SyncPlay: Player route already open, video reloaded in place'); + } + } catch (e, stackTrace) { + log('SyncPlay: Error starting playback: $e\n$stackTrace'); + } finally { + _currentlyStartingPlaylistItemId = null; + _updateStateWith((state) => state.copyWith( + startPlaybackInProgress: false, + startingPlaylistItemId: null, + )); + _inFlightStartCompleter?.complete(); + _inFlightStartCompleter = null; + if (!localCompleter.isCompleted) { + localCompleter.complete(success); + } + _startPlaybackCompleter = null; + } + } + + void _updateState(SyncPlayState newState) { + _state = newState; + _stateController.add(newState); + } + + void _updateStateWith(SyncPlayState Function(SyncPlayState) updater) { + _state = updater(_state); + _stateController.add(_state); + } + + // ───────────────────────────────────────────────────────────────────────── + // Lifecycle Handling (for mobile background/resume) + // ───────────────────────────────────────────────────────────────────────── + + /// Handle app lifecycle state changes + /// Call this from a WidgetsBindingObserver when app state changes + Future handleAppLifecycleChange(AppLifecycleState lifecycleState) async { + // On web, we want to stay connected even in background and avoid forced reconnection on resume. + if (kIsWeb) { + return; + } + + switch (lifecycleState) { + case AppLifecycleState.paused: + case AppLifecycleState.inactive: + // App going to background - remember state for reconnection + _wasConnected = _wsManager?.currentState == WebSocketConnectionState.connected; + log('SyncPlay: App paused, wasConnected=$_wasConnected, lastGroupId=$_lastGroupId'); + break; + + case AppLifecycleState.resumed: + // App returning to foreground - attempt reconnection if needed + log('SyncPlay: App resumed, wasConnected=$_wasConnected, isInGroup=${_state.isInGroup}'); + if (_wasConnected || _state.isInGroup) { + await _handleAppResume(); + } + break; + + case AppLifecycleState.detached: + case AppLifecycleState.hidden: + // No action needed + break; + } + } + + /// Handle app resume - reconnect WebSocket and optionally rejoin group + Future _handleAppResume() async { + // Force reconnect WebSocket + if (_wsManager != null) { + log('SyncPlay: Force reconnecting WebSocket on resume'); + await _wsManager!.forceReconnect(); + + // Wait for connection to establish + await Future.delayed(const Duration(milliseconds: 500)); + + // Restart time sync if it was active + if (_timeSync != null) { + _timeSync!.start(); + await _timeSync!.forceUpdate(); + } + + // If we were in a group but got disconnected, try to rejoin + if (_lastGroupId != null && !_state.isInGroup) { + resetCorrectionState( + reason: 'pre_rejoin', + syncEnabled: false, + ); + log('SyncPlay: Attempting to rejoin group $_lastGroupId'); + final success = await joinGroup(_lastGroupId!); + if (!success) { + log('SyncPlay: Failed to rejoin group, clearing lastGroupId'); + _lastGroupId = null; + } + } + } + } + + /// Display a SyncPlay-related snackbar through the global overlay. + /// We never pass the navigator-key context to `FladderSnack`: that + /// context isn't under any `Overlay`. The notification manager keeps + /// a stored root context (set by `NotificationManagerInitializer`) + /// that resolves to the root overlay. + void _showGroupSnackbar(String Function(AppLocalizations l) message) { + try { + final loc = lookupAppLocalizations(const Locale('en')); + FladderSnack.show(message(loc)); + } catch (_) { + // Best effort - ignore if localizations are unavailable. + } + } + + /// Notify listeners (and overlays) that we got kicked out of a group + /// while still believing we belonged to it. + void notifyGroupGone({bool wasKicked = false}) { + _showGroupSnackbar( + (l) => wasKicked ? l.syncPlayKickedFromGroup : l.syncPlayGroupNoLongerExists, + ); + } + + /// Dispose resources + Future dispose() async { + _commandHandler.dispose(); + await disconnect(); + await _stateController.close(); + } +} diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart new file mode 100644 index 000000000..e1c7e55db --- /dev/null +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -0,0 +1,282 @@ +import 'dart:async'; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_controller.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:freezed_annotation/freezed_annotation.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +part 'syncplay_provider.freezed.dart'; +part 'syncplay_provider.g.dart'; + +/// Lifecycle observer for SyncPlay - handles app background/resume +class _SyncPlayLifecycleObserver with WidgetsBindingObserver { + _SyncPlayLifecycleObserver(this._controller); + + final SyncPlayController _controller; + + void register() { + WidgetsBinding.instance.addObserver(this); + } + + void unregister() { + WidgetsBinding.instance.removeObserver(this); + } + + @override + void didChangeAppLifecycleState(AppLifecycleState state) { + _controller.handleAppLifecycleChange(state); + } +} + +/// Provider for SyncPlay controller instance +@Riverpod(keepAlive: true) +class SyncPlay extends _$SyncPlay { + SyncPlayController? _controller; + StreamSubscription? _stateSubscription; + _SyncPlayLifecycleObserver? _lifecycleObserver; + + @override + SyncPlayState build() { + ref.onDispose(() { + _lifecycleObserver?.unregister(); + _stateSubscription?.cancel(); + _controller?.dispose(); + }); + return SyncPlayState(); + } + + SyncPlayController get controller { + if (_controller == null) { + _controller = SyncPlayController(ref); + // Register lifecycle observer when controller is created (except on Web) + if (!kIsWeb) { + _lifecycleObserver = _SyncPlayLifecycleObserver(_controller!); + _lifecycleObserver!.register(); + } + } + return _controller!; + } + + /// Initialize and connect to SyncPlay WebSocket + Future connect() async { + await controller.connect(); + _stateSubscription?.cancel(); + _stateSubscription = controller.stateStream.listen((newState) { + state = newState; + }); + } + + /// Disconnect from SyncPlay + Future disconnect() async { + await controller.disconnect(); + state = SyncPlayState(); + } + + /// List available SyncPlay groups + Future> listGroups() => controller.listGroups(); + + /// Create a new SyncPlay group + Future createGroup(String groupName) => controller.createGroup(groupName); + + /// Join an existing group + Future joinGroup(String groupId) => controller.joinGroup(groupId); + + /// Leave current group + Future leaveGroup() => controller.leaveGroup(); + + /// Request pause + Future requestPause() => controller.requestPause(); + + /// Request unpause/play + Future requestUnpause() async => await controller.requestUnpause(); + + /// Request seek + Future requestSeek(int positionTicks) => controller.requestSeek(positionTicks); + + /// Report buffering state + Future reportBuffering() => controller.reportBuffering(); + + /// Report ready state + Future reportReady({bool isPlaying = true}) => controller.reportReady(isPlaying: isPlaying); + + /// Mark local execution of a SyncPlay command for cooldown handling. + void markCommandExecuted([DateTime? at]) => controller.markCommandExecuted(at); + + /// Update buffering/reloading status inside SyncPlay state. + void setPlayerBufferingState(bool isBuffering) => controller.setPlayerBufferingState(isBuffering); + + /// Reset correction state and timers. + void resetCorrectionState({ + String reason = 'manual', + bool syncEnabled = true, + }) => + controller.resetCorrectionState( + reason: reason, + syncEnabled: syncEnabled, + ); + + /// Update playback drift using current local position ticks. + void updatePlaybackDrift({ + required int currentPositionTicks, + DateTime? at, + }) => + controller.updatePlaybackDrift( + currentPositionTicks: currentPositionTicks, + at: at, + ); + + /// Returns a Future that completes the next time `_startPlayback` + /// finishes (success or failure). Used by the loader UX. + Future awaitNextStartPlayback({ + Duration timeout = const Duration(seconds: 20), + }) => + controller.awaitNextStartPlayback(timeout: timeout); + + /// Re-attach to the currently playing group item from outside the + /// player route ("Resume playback" button). + Future rejoinPlayback() => controller.rejoinPlayback(); + + /// Run [body] while suppressing `Buffering`/`Ready` reports so the + /// rest of the group is not paused (used for audio/subtitle reload). + Future runLocalOnly(Future Function() body) => controller.runLocalOnly(body); + + /// Set a new queue/playlist. Returns `true` when the request was + /// actually sent to the server, `false` if it was suppressed. + Future setNewQueue({ + required List itemIds, + int playingItemPosition = 0, + int startPositionTicks = 0, + }) => + controller.setNewQueue( + itemIds: itemIds, + playingItemPosition: playingItemPosition, + startPositionTicks: startPositionTicks, + ); + + /// Register player callbacks + void registerPlayer({ + required Future Function() onPlay, + required Future Function() onPause, + required Future Function(int positionTicks) onSeek, + required Future Function() onStop, + required Future Function(double speed) onSetSpeed, + required int Function() getPositionTicks, + required bool Function() isPlaying, + required bool Function() isBuffering, + required bool Function() hasPlaybackRate, + Future Function(int positionTicks)? onSeekRequested, + }) { + controller.onPlay = onPlay; + controller.onPause = onPause; + controller.onSeek = onSeek; + controller.onStop = onStop; + controller.onSetSpeed = onSetSpeed; + controller.getPositionTicks = getPositionTicks; + controller.isPlaying = isPlaying; + controller.isBuffering = isBuffering; + controller.hasPlaybackRate = hasPlaybackRate; + controller.onSeekRequested = onSeekRequested; + // Wire up reportReady callback so command handler can report ready after seek + controller.onReportReady = () => controller.reportReady(); + } + + /// Unregister player callbacks + void unregisterPlayer() { + controller.onPlay = null; + controller.onPause = null; + controller.onSeek = null; + controller.onStop = null; + controller.onSetSpeed = null; + controller.getPositionTicks = null; + controller.isPlaying = null; + controller.isBuffering = null; + controller.hasPlaybackRate = null; + controller.onSeekRequested = null; + controller.onReportReady = null; + } +} + +/// Provider to check if currently in a SyncPlay session +@riverpod +bool isSyncPlayActive(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.isActive)); +} + +/// Provider for current SyncPlay group name +@riverpod +String? syncPlayGroupName(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.groupName)); +} + +/// Provider for SyncPlay group state +@riverpod +SyncPlayGroupState syncPlayGroupState(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.groupState)); +} + +/// Provider for SyncPlay correction runtime state (UI + diagnostics). +@riverpod +SyncCorrectionState syncCorrectionState(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.correctionState)); +} + +/// Provider for active correction strategy. +@riverpod +SyncCorrectionStrategy syncCorrectionStrategy(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.correctionState.activeStrategy)); +} + +/// True when a SyncPlay-driven `_startPlayback` is currently in flight +/// (initial play, episode switch, rejoin). UI can use this to display +/// a loading indicator while the local player is being prepared. +@riverpod +bool syncPlayStartPlaybackInProgress(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.startPlaybackInProgress)); +} + +/// True when the group has an active item the local user could +/// resume from outside the player route. +@riverpod +bool syncPlayHasActivePlayback(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.hasActivePlayback)); +} + +/// Immutable state for the SyncPlay groups list (used by group sheet). +/// Lists are stored unmodifiable so the state cannot be mutated. +@Freezed(copyWith: true) +abstract class SyncPlayGroupsState with _$SyncPlayGroupsState { + const factory SyncPlayGroupsState({ + List? groups, + @Default(false) bool isLoading, + String? error, + }) = _SyncPlayGroupsState; +} + +/// Provider for the list of SyncPlay groups (load/refresh from sheet). +@Riverpod(keepAlive: false) +class SyncPlayGroups extends _$SyncPlayGroups { + @override + SyncPlayGroupsState build() => const SyncPlayGroupsState(isLoading: true); + + Future loadGroups() async { + state = state.copyWith(isLoading: true, error: null); + try { + await ref.read(syncPlayProvider.notifier).connect(); + final groups = await ref.read(syncPlayProvider.notifier).listGroups(); + state = state.copyWith( + groups: List.unmodifiable(groups), + isLoading: false, + ); + } catch (e) { + state = state.copyWith(isLoading: false, error: e.toString()); + } + } + + void setLoading(bool isLoading) { + state = state.copyWith(isLoading: isLoading); + } +} diff --git a/lib/providers/syncplay/syncplay_provider.freezed.dart b/lib/providers/syncplay/syncplay_provider.freezed.dart new file mode 100644 index 000000000..40457a1a4 --- /dev/null +++ b/lib/providers/syncplay/syncplay_provider.freezed.dart @@ -0,0 +1,327 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'syncplay_provider.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$SyncPlayGroupsState implements DiagnosticableTreeMixin { + List? get groups; + bool get isLoading; + String? get error; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $SyncPlayGroupsStateCopyWith get copyWith => + _$SyncPlayGroupsStateCopyWithImpl(this as SyncPlayGroupsState, _$identity); + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'SyncPlayGroupsState')) + ..add(DiagnosticsProperty('groups', groups)) + ..add(DiagnosticsProperty('isLoading', isLoading)) + ..add(DiagnosticsProperty('error', error)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'SyncPlayGroupsState(groups: $groups, isLoading: $isLoading, error: $error)'; + } +} + +/// @nodoc +abstract mixin class $SyncPlayGroupsStateCopyWith<$Res> { + factory $SyncPlayGroupsStateCopyWith(SyncPlayGroupsState value, $Res Function(SyncPlayGroupsState) _then) = + _$SyncPlayGroupsStateCopyWithImpl; + @useResult + $Res call({List? groups, bool isLoading, String? error}); +} + +/// @nodoc +class _$SyncPlayGroupsStateCopyWithImpl<$Res> implements $SyncPlayGroupsStateCopyWith<$Res> { + _$SyncPlayGroupsStateCopyWithImpl(this._self, this._then); + + final SyncPlayGroupsState _self; + final $Res Function(SyncPlayGroupsState) _then; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? groups = freezed, + Object? isLoading = null, + Object? error = freezed, + }) { + return _then(_self.copyWith( + groups: freezed == groups + ? _self.groups + : groups // ignore: cast_nullable_to_non_nullable + as List?, + isLoading: null == isLoading + ? _self.isLoading + : isLoading // ignore: cast_nullable_to_non_nullable + as bool, + error: freezed == error + ? _self.error + : error // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// Adds pattern-matching-related methods to [SyncPlayGroupsState]. +extension SyncPlayGroupsStatePatterns on SyncPlayGroupsState { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_SyncPlayGroupsState value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_SyncPlayGroupsState value) $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_SyncPlayGroupsState value)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function(List? groups, bool isLoading, String? error)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that.groups, _that.isLoading, _that.error); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function(List? groups, bool isLoading, String? error) $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState(): + return $default(_that.groups, _that.isLoading, _that.error); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function(List? groups, bool isLoading, String? error)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that.groups, _that.isLoading, _that.error); + case _: + return null; + } + } +} + +/// @nodoc + +class _SyncPlayGroupsState with DiagnosticableTreeMixin implements SyncPlayGroupsState { + const _SyncPlayGroupsState({final List? groups, this.isLoading = false, this.error}) : _groups = groups; + + final List? _groups; + @override + List? get groups { + final value = _groups; + if (value == null) return null; + if (_groups is EqualUnmodifiableListView) return _groups; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); + } + + @override + @JsonKey() + final bool isLoading; + @override + final String? error; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$SyncPlayGroupsStateCopyWith<_SyncPlayGroupsState> get copyWith => + __$SyncPlayGroupsStateCopyWithImpl<_SyncPlayGroupsState>(this, _$identity); + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'SyncPlayGroupsState')) + ..add(DiagnosticsProperty('groups', groups)) + ..add(DiagnosticsProperty('isLoading', isLoading)) + ..add(DiagnosticsProperty('error', error)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'SyncPlayGroupsState(groups: $groups, isLoading: $isLoading, error: $error)'; + } +} + +/// @nodoc +abstract mixin class _$SyncPlayGroupsStateCopyWith<$Res> implements $SyncPlayGroupsStateCopyWith<$Res> { + factory _$SyncPlayGroupsStateCopyWith(_SyncPlayGroupsState value, $Res Function(_SyncPlayGroupsState) _then) = + __$SyncPlayGroupsStateCopyWithImpl; + @override + @useResult + $Res call({List? groups, bool isLoading, String? error}); +} + +/// @nodoc +class __$SyncPlayGroupsStateCopyWithImpl<$Res> implements _$SyncPlayGroupsStateCopyWith<$Res> { + __$SyncPlayGroupsStateCopyWithImpl(this._self, this._then); + + final _SyncPlayGroupsState _self; + final $Res Function(_SyncPlayGroupsState) _then; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? groups = freezed, + Object? isLoading = null, + Object? error = freezed, + }) { + return _then(_SyncPlayGroupsState( + groups: freezed == groups + ? _self._groups + : groups // ignore: cast_nullable_to_non_nullable + as List?, + isLoading: null == isLoading + ? _self.isLoading + : isLoading // ignore: cast_nullable_to_non_nullable + as bool, + error: freezed == error + ? _self.error + : error // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +// dart format on diff --git a/lib/providers/syncplay/syncplay_provider.g.dart b/lib/providers/syncplay/syncplay_provider.g.dart new file mode 100644 index 000000000..9744a29c3 --- /dev/null +++ b/lib/providers/syncplay/syncplay_provider.g.dart @@ -0,0 +1,163 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'syncplay_provider.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$isSyncPlayActiveHash() => r'bf9cda97aa9130fed8fc6558481c02f10f815f99'; + +/// Provider to check if currently in a SyncPlay session +/// +/// Copied from [isSyncPlayActive]. +@ProviderFor(isSyncPlayActive) +final isSyncPlayActiveProvider = AutoDisposeProvider.internal( + isSyncPlayActive, + name: r'isSyncPlayActiveProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$isSyncPlayActiveHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef IsSyncPlayActiveRef = AutoDisposeProviderRef; +String _$syncPlayGroupNameHash() => r'f73f243808920efbfbfa467d1ba1234fec622283'; + +/// Provider for current SyncPlay group name +/// +/// Copied from [syncPlayGroupName]. +@ProviderFor(syncPlayGroupName) +final syncPlayGroupNameProvider = AutoDisposeProvider.internal( + syncPlayGroupName, + name: r'syncPlayGroupNameProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupNameHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncPlayGroupNameRef = AutoDisposeProviderRef; +String _$syncPlayGroupStateHash() => r'dff5dba3297066e06ff5ed1b9b273ee19bc27878'; + +/// Provider for SyncPlay group state +/// +/// Copied from [syncPlayGroupState]. +@ProviderFor(syncPlayGroupState) +final syncPlayGroupStateProvider = AutoDisposeProvider.internal( + syncPlayGroupState, + name: r'syncPlayGroupStateProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupStateHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncPlayGroupStateRef = AutoDisposeProviderRef; +String _$syncCorrectionStateHash() => r'0c623c5a3e9b99b5dc09c14b50d4cbf120151af9'; + +/// Provider for SyncPlay correction runtime state (UI + diagnostics). +/// +/// Copied from [syncCorrectionState]. +@ProviderFor(syncCorrectionState) +final syncCorrectionStateProvider = AutoDisposeProvider.internal( + syncCorrectionState, + name: r'syncCorrectionStateProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncCorrectionStateHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncCorrectionStateRef = AutoDisposeProviderRef; +String _$syncCorrectionStrategyHash() => r'eaa4de3db8e9d9155b6f41465462f087833744e0'; + +/// Provider for active correction strategy. +/// +/// Copied from [syncCorrectionStrategy]. +@ProviderFor(syncCorrectionStrategy) +final syncCorrectionStrategyProvider = AutoDisposeProvider.internal( + syncCorrectionStrategy, + name: r'syncCorrectionStrategyProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncCorrectionStrategyHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncCorrectionStrategyRef = AutoDisposeProviderRef; +String _$syncPlayStartPlaybackInProgressHash() => r'883e5426c30e568f8374656112a2de902a98f5dc'; + +/// True when a SyncPlay-driven `_startPlayback` is currently in flight +/// (initial play, episode switch, rejoin). UI can use this to display +/// a loading indicator while the local player is being prepared. +/// +/// Copied from [syncPlayStartPlaybackInProgress]. +@ProviderFor(syncPlayStartPlaybackInProgress) +final syncPlayStartPlaybackInProgressProvider = AutoDisposeProvider.internal( + syncPlayStartPlaybackInProgress, + name: r'syncPlayStartPlaybackInProgressProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayStartPlaybackInProgressHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncPlayStartPlaybackInProgressRef = AutoDisposeProviderRef; +String _$syncPlayHasActivePlaybackHash() => r'007d108b36b600d13f83e6e04f7c47e3123f3a79'; + +/// True when the group has an active item the local user could +/// resume from outside the player route. +/// +/// Copied from [syncPlayHasActivePlayback]. +@ProviderFor(syncPlayHasActivePlayback) +final syncPlayHasActivePlaybackProvider = AutoDisposeProvider.internal( + syncPlayHasActivePlayback, + name: r'syncPlayHasActivePlaybackProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayHasActivePlaybackHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncPlayHasActivePlaybackRef = AutoDisposeProviderRef; +String _$syncPlayHash() => r'd14ff1a3c7612f44c4c8a1ebeb1b090c3b70e578'; + +/// Provider for SyncPlay controller instance +/// +/// Copied from [SyncPlay]. +@ProviderFor(SyncPlay) +final syncPlayProvider = NotifierProvider.internal( + SyncPlay.new, + name: r'syncPlayProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef _$SyncPlay = Notifier; +String _$syncPlayGroupsHash() => r'7f17436df1b0afb4c77cd21128e03b1ed0875939'; + +/// Provider for the list of SyncPlay groups (load/refresh from sheet). +/// +/// Copied from [SyncPlayGroups]. +@ProviderFor(SyncPlayGroups) +final syncPlayGroupsProvider = AutoDisposeNotifierProvider.internal( + SyncPlayGroups.new, + name: r'syncPlayGroupsProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupsHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef _$SyncPlayGroups = AutoDisposeNotifier; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/syncplay/time_sync_service.dart b/lib/providers/syncplay/time_sync_service.dart new file mode 100644 index 000000000..907aab095 --- /dev/null +++ b/lib/providers/syncplay/time_sync_service.dart @@ -0,0 +1,177 @@ +import 'dart:async'; +import 'dart:developer'; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; + +/// Service for synchronizing client clock with Jellyfin server using NTP-like algorithm +class TimeSyncService { + TimeSyncService(this._api); + + final JellyfinOpenApi _api; + + final List _measurements = []; + static const int _maxMeasurements = 8; + + Timer? _pollingTimer; + int _pingCount = 0; + bool _isActive = false; + + // Polling intervals + static const Duration _greedyInterval = Duration(seconds: 1); + static const Duration _lowProfileInterval = Duration(seconds: 60); + static const int _greedyPingCount = 3; + + // Staleness threshold + static const Duration _staleThreshold = Duration(seconds: 30); + DateTime? _lastMeasurementTime; + + /// Current best offset estimate + Duration get offset { + if (_measurements.isEmpty) { + return Duration.zero; + } + // Use measurement with minimum delay (least network jitter) + final best = _measurements.reduce( + (a, b) => a.delay < b.delay ? a : b, + ); + return best.offset; + } + + /// Current ping estimate (from best measurement) + Duration get ping { + if (_measurements.isEmpty) { + return Duration.zero; + } + final best = _measurements.reduce( + (a, b) => a.delay < b.delay ? a : b, + ); + return best.ping; + } + + /// Whether time sync is stale and needs refresh + bool get isStale { + if (_lastMeasurementTime == null) { + return true; + } + return DateTime.now().difference(_lastMeasurementTime!) > _staleThreshold; + } + + /// Convert server time to local time + DateTime remoteDateToLocal(DateTime serverTime) { + return serverTime.subtract(offset); + } + + /// Convert local time to server time + DateTime localDateToRemote(DateTime localTime) { + return localTime.add(offset); + } + + /// Start time synchronization + void start() { + if (_isActive) { + return; + } + _isActive = true; + _pingCount = 0; + _poll(); + } + + /// Stop time synchronization + void stop() { + _isActive = false; + _pollingTimer?.cancel(); + _pollingTimer = null; + } + + /// Force an immediate sync update + Future forceUpdate() async { + await _requestPing(); + } + + /// Force update and wait for completion + Future forceUpdateAndWait() async { + await _requestPing(); + } + + void _poll() { + if (!_isActive) { + return; + } + + _requestPing().then((_) { + if (!_isActive) { + return; + } + + _pingCount++; + final interval = _pingCount <= _greedyPingCount ? _greedyInterval : _lowProfileInterval; + + _pollingTimer?.cancel(); + _pollingTimer = Timer(interval, _poll); + }); + } + + Future _requestPing() async { + try { + // T1: Record local time before request + final requestSent = DateTime.now().toUtc(); + + // Make request to Jellyfin TimeSync API + final response = await _api.getUtcTimeGet(); + + // T4: Record local time after response + final responseReceived = DateTime.now().toUtc(); + + final data = response.body; + if (data == null) { + log('Time sync: No response body'); + return; + } + + // T2 and T3 from server + final requestReceived = data.requestReceptionTime; + final responseSent = data.responseTransmissionTime; + + if (requestReceived == null || responseSent == null) { + log('Time sync: Missing server timestamps'); + return; + } + + final measurement = TimeSyncMeasurement( + requestSent: requestSent, + requestReceived: requestReceived, + responseSent: responseSent, + responseReceived: responseReceived, + ); + + _addMeasurement(measurement); + _lastMeasurementTime = DateTime.now(); + + log('Time sync: offset=${offset.inMilliseconds}ms, ping=${ping.inMilliseconds}ms'); + } catch (e) { + log('Time sync failed: $e'); + } + } + + void _addMeasurement(TimeSyncMeasurement measurement) { + _measurements.add(measurement); + // Keep only the last N measurements + while (_measurements.length > _maxMeasurements) { + _measurements.removeAt(0); + } + } + + /// Clear all measurements + void clear() { + _measurements.clear(); + _lastMeasurementTime = null; + _pingCount = 0; + } + + /// Dispose resources + void dispose() { + stop(); + clear(); + } +} diff --git a/lib/providers/syncplay/websocket_manager.dart b/lib/providers/syncplay/websocket_manager.dart new file mode 100644 index 000000000..55604511e --- /dev/null +++ b/lib/providers/syncplay/websocket_manager.dart @@ -0,0 +1,196 @@ +import 'dart:async'; +import 'dart:convert'; +import 'dart:developer'; + +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:web_socket_channel/web_socket_channel.dart'; + +/// Manages WebSocket connection to Jellyfin server for SyncPlay +class WebSocketManager { + WebSocketManager({ + required this.serverUrl, + required this.token, + required this.deviceId, + }); + + final String serverUrl; + final String token; + final String deviceId; + + WebSocketChannel? _channel; + Timer? _keepAliveTimer; + Timer? _reconnectTimer; + int _reconnectAttempts = 0; + static const int _maxReconnectAttempts = 5; + static const Duration _baseReconnectDelay = Duration(seconds: 2); + + final _connectionStateController = StreamController.broadcast(); + final _messageController = StreamController>.broadcast(); + + Stream get connectionState => _connectionStateController.stream; + Stream> get messages => _messageController.stream; + + WebSocketConnectionState _currentState = WebSocketConnectionState.disconnected; + WebSocketConnectionState get currentState => _currentState; + + /// Build WebSocket URL for Jellyfin + Uri get _webSocketUri { + final baseUri = Uri.parse(serverUrl); + final scheme = baseUri.scheme == 'https' ? 'wss' : 'ws'; + return Uri( + scheme: scheme, + host: baseUri.host, + port: baseUri.port, + path: '${baseUri.path}/socket', + queryParameters: { + 'api_key': token, + 'deviceId': deviceId, + }, + ); + } + + /// Connect to WebSocket + Future connect() async { + if (_currentState == WebSocketConnectionState.connected || _currentState == WebSocketConnectionState.connecting) { + return; + } + + _updateState(WebSocketConnectionState.connecting); + + try { + log('WebSocket: Connecting to ${_webSocketUri.toString().replaceAll(RegExp(r'api_key=[^&]+'), 'api_key=***')}'); + _channel = WebSocketChannel.connect(_webSocketUri); + await _channel!.ready; + + _updateState(WebSocketConnectionState.connected); + _reconnectAttempts = 0; + + _channel!.stream.listen( + _handleMessage, + onError: _handleError, + onDone: _handleDone, + ); + } catch (e) { + log('WebSocket connection failed: $e'); + _updateState(WebSocketConnectionState.disconnected); + _scheduleReconnect(); + } + } + + /// Disconnect from WebSocket + Future disconnect() async { + _reconnectTimer?.cancel(); + _keepAliveTimer?.cancel(); + _reconnectAttempts = _maxReconnectAttempts; // Prevent auto-reconnect + + await _channel?.sink.close(); + _channel = null; + _updateState(WebSocketConnectionState.disconnected); + } + + /// Force reconnect (e.g., after app resume) + /// Resets attempt counter and immediately reconnects + Future forceReconnect() async { + _reconnectTimer?.cancel(); + _keepAliveTimer?.cancel(); + await _channel?.sink.close(); + _channel = null; + _reconnectAttempts = 0; + _updateState(WebSocketConnectionState.disconnected); + await connect(); + } + + /// Send a message through WebSocket + void send(Map message) { + if (_currentState != WebSocketConnectionState.connected) { + log('Cannot send message: WebSocket not connected'); + return; + } + + try { + _channel?.sink.add(json.encode(message)); + } catch (e) { + log('Failed to send WebSocket message: $e'); + } + } + + /// Send keep-alive message + void _sendKeepAlive() { + send({'MessageType': 'KeepAlive'}); + } + + void _handleMessage(dynamic data) { + try { + final message = json.decode(data as String) as Map; + final messageType = message['MessageType'] as String?; + + // Log all received messages for debugging (except KeepAlive spam) + if (messageType != 'KeepAlive') { + log('WebSocket: Received message: $message'); + } + + // Handle ForceKeepAlive to set up keep-alive interval + if (messageType == 'ForceKeepAlive') { + final timeoutSeconds = message['Data'] as int? ?? 60; + _setupKeepAlive(timeoutSeconds); + } + + // Forward message to listeners + _messageController.add(message); + } catch (e) { + log('Failed to parse WebSocket message: $e\nRaw data: $data'); + } + } + + void _handleError(dynamic error) { + log('WebSocket error: $error'); + _updateState(WebSocketConnectionState.disconnected); + _scheduleReconnect(); + } + + void _handleDone() { + log('WebSocket connection closed'); + _keepAliveTimer?.cancel(); + + if (_currentState != WebSocketConnectionState.disconnected) { + _updateState(WebSocketConnectionState.disconnected); + _scheduleReconnect(); + } + } + + void _setupKeepAlive(int timeoutSeconds) { + _keepAliveTimer?.cancel(); + // Send keep-alive at half the timeout interval + final interval = Duration(seconds: (timeoutSeconds * 0.5).round()); + _keepAliveTimer = Timer.periodic(interval, (_) => _sendKeepAlive()); + } + + void _scheduleReconnect() { + if (_reconnectAttempts >= _maxReconnectAttempts) { + log('Max reconnect attempts reached'); + return; + } + + _reconnectTimer?.cancel(); + _updateState(WebSocketConnectionState.reconnecting); + + // Exponential backoff + final delay = _baseReconnectDelay * (1 << _reconnectAttempts); + _reconnectAttempts++; + + log('Scheduling reconnect in ${delay.inSeconds}s (attempt $_reconnectAttempts)'); + _reconnectTimer = Timer(delay, connect); + } + + void _updateState(WebSocketConnectionState state) { + _currentState = state; + _connectionStateController.add(state); + } + + /// Dispose resources + Future dispose() async { + await disconnect(); + await _connectionStateController.close(); + await _messageController.close(); + } +} diff --git a/lib/providers/update_provider.g.dart b/lib/providers/update_provider.g.dart index 0dc684976..541ed82f8 100644 --- a/lib/providers/update_provider.g.dart +++ b/lib/providers/update_provider.g.dart @@ -13,8 +13,7 @@ String _$updateHash() => r'e22205cb13e6b43df1296de90e39059f09bb80a8'; final updateProvider = NotifierProvider.internal( Update.new, name: r'updateProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$updateHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$updateHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/user_provider.g.dart b/lib/providers/user_provider.g.dart index 52b534827..9ff63258e 100644 --- a/lib/providers/user_provider.g.dart +++ b/lib/providers/user_provider.g.dart @@ -6,17 +6,14 @@ part of 'user_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$showSyncButtonProviderHash() => - r'c09f42cd6536425bf9417da41c83e15c135d0edb'; +String _$showSyncButtonProviderHash() => r'c09f42cd6536425bf9417da41c83e15c135d0edb'; /// See also [showSyncButtonProvider]. @ProviderFor(showSyncButtonProvider) final showSyncButtonProviderProvider = AutoDisposeProvider.internal( showSyncButtonProvider, name: r'showSyncButtonProviderProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$showSyncButtonProviderHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$showSyncButtonProviderHash, dependencies: null, allTransitiveDependencies: null, ); @@ -24,15 +21,14 @@ final showSyncButtonProviderProvider = AutoDisposeProvider.internal( @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element typedef ShowSyncButtonProviderRef = AutoDisposeProviderRef; -String _$userHash() => r'a9f56595249dd592b1d2e17203b103c42c7f7acb'; +String _$userHash() => r'25509e314ef25d9224d83ad7ab63d75d8f7af7dd'; /// See also [User]. @ProviderFor(User) final userProvider = NotifierProvider.internal( User.new, name: r'userProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$userHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$userHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index e3620f753..ce01c6fbf 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -1,21 +1,24 @@ import 'dart:async'; import 'dart:io'; -import 'package:flutter/material.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:path/path.dart' as p; - import 'package:fladder/models/media_playback_model.dart'; import 'package:fladder/models/playback/playback_model.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/src/video_player_helper.g.dart' show PlaybackChangeSource, SyncPlayCommandType; import 'package:fladder/wrappers/media_control_wrapper.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:path/path.dart' as p; final mediaPlaybackProvider = StateProvider((ref) => MediaPlaybackModel()); final playBackModel = StateProvider((ref) => null); +final isVideoPlayerRouteOpenProvider = StateProvider((ref) => false); + final videoPlayerProvider = StateNotifierProvider((ref) { final videoPlayer = VideoPlayerNotifier(ref); videoPlayer.init(); @@ -33,6 +36,27 @@ class VideoPlayerNotifier extends StateNotifier { MediaPlaybackModel get playbackState => ref.read(mediaPlaybackProvider); + /// Flag to indicate if the current action is initiated by SyncPlay + bool _syncPlayAction = false; + + /// Cooldown period after SyncPlay command during which we don't auto-report ready + static const _syncPlayCooldown = Duration(milliseconds: 500); + + /// Check if SyncPlay is active + bool get _isSyncPlayActive => ref.read(isSyncPlayActiveProvider); + + /// Whether player is reloading/buffering from SyncPlay perspective. + bool get _isReloading => ref.read(syncPlayProvider.select((s) => s.correctionState.playerIsBuffering)); + + /// Check if we're in the SyncPlay cooldown period + bool get _inSyncPlayCooldown { + final lastCommandTime = ref.read(syncPlayProvider.select((s) => s.lastCommandTime)); + if (lastCommandTime == null) { + return false; + } + return DateTime.now().toUtc().difference(lastCommandTime) < _syncPlayCooldown; + } + Future init() async { await state.dispose(); await state.init(); @@ -42,6 +66,19 @@ class VideoPlayerNotifier extends StateNotifier { } final subscription = state.stateStream?.listen((value) { + // Infer SyncPlay user actions from native player state stream (reviewer request). + if (value.changeSource == PlaybackChangeSource.user) { + final prev = playbackState; + if (value.playing != prev.playing) { + if (value.playing) { + userPlay(); + } else { + userPause(); + } + } else if ((value.position - prev.position).inSeconds.abs() > 2) { + userSeek(value.position); + } + } updateBuffering(value.buffering); updateBuffer(value.buffer); updatePlaying(value.playing); @@ -52,10 +89,129 @@ class VideoPlayerNotifier extends StateNotifier { if (subscription != null) { subscriptions.add(subscription); } + + // Register player callbacks with SyncPlay + _registerSyncPlayCallbacks(); + + // Listen to SyncPlay state changes for native player overlay + _setupSyncPlayStateListener(); + } + + /// Set up listener to forward SyncPlay command state to native player + void _setupSyncPlayStateListener() { + ref.listen( + syncPlayProvider, + (previous, next) { + // Only forward to native player if it's active + if (state.isNativePlayerActive) { + // Check if the relevant state changed + if (previous?.isProcessingCommand != next.isProcessingCommand || + previous?.processingCommandType != next.processingCommandType) { + state.updateSyncPlayCommandState( + next.isProcessingCommand, + _toSyncPlayCommandType(next.processingCommandType), + ); + } + } + }, + ); + } + + SyncPlayCommandType _toSyncPlayCommandType(SyncPlayCommand? commandType) { + return switch (commandType) { + SyncPlayCommand.pause => SyncPlayCommandType.pause, + SyncPlayCommand.unpause => SyncPlayCommandType.unpause, + SyncPlayCommand.seek => SyncPlayCommandType.seek, + SyncPlayCommand.stop => SyncPlayCommandType.stop, + null => SyncPlayCommandType.none, + }; + } + + /// Manually set the reloading state (e.g. before fetching new PlaybackInfo) + void setReloading( + bool value, { + bool reportToSyncPlay = true, + }) { + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(value); + if (value && _isSyncPlayActive && reportToSyncPlay) { + ref.read(syncPlayProvider.notifier).reportBuffering(); + } } - Future updateBuffering(bool event) async => - mediaState.update((state) => state.buffering == event ? state : state.copyWith(buffering: event)); + /// Register player callbacks with SyncPlay controller + void _registerSyncPlayCallbacks() { + ref.read(syncPlayProvider.notifier).registerPlayer( + onPlay: () async { + _syncPlayAction = true; + ref.read(syncPlayProvider.notifier).markCommandExecuted(); + await state.play(); + _syncPlayAction = false; + }, + onPause: () async { + _syncPlayAction = true; + ref.read(syncPlayProvider.notifier).markCommandExecuted(); + await state.pause(); + _syncPlayAction = false; + }, + onSeek: (positionTicks) async { + _syncPlayAction = true; + ref.read(syncPlayProvider.notifier).markCommandExecuted(); + final position = Duration(microseconds: positionTicks ~/ 10); + await state.seek(position); + _syncPlayAction = false; + }, + onSeekRequested: (positionTicks) async { + // Another user requested a seek. Report buffering to SyncPlay + // without forcing local buffering state, otherwise the command + // handler can get stuck waiting and suppress Ready/Unpause. + ref.read(syncPlayProvider.notifier).reportBuffering(); + }, + onStop: () async { + _syncPlayAction = true; + ref.read(syncPlayProvider.notifier).markCommandExecuted(); + await state.stop(); + ref.read(syncPlayProvider.notifier).resetCorrectionState( + reason: 'stop_command', + ); + _syncPlayAction = false; + }, + onSetSpeed: (speed) async { + await state.setSpeed(speed); + }, + getPositionTicks: () { + final position = playbackState.position; + return secondsToTicks(position.inMilliseconds / 1000); + }, + isPlaying: () => playbackState.playing, + isBuffering: () => _isReloading || playbackState.buffering, + hasPlaybackRate: () => !state.isNativePlayerActive, + ); + } + + Future updateBuffering(bool event) async { + final oldState = playbackState; + if (oldState.buffering == event) { + return; + } + + mediaState.update((state) => state.copyWith(buffering: event)); + if (_isSyncPlayActive) { + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(event); + } + + // Report buffering state to SyncPlay if active + // Skip if we're in the cooldown period after a SyncPlay command to prevent feedback loops + // Also skip if we are currently reloading (we'll report manually when done) + if (_isSyncPlayActive && !_syncPlayAction && !_inSyncPlayCooldown && !_isReloading) { + if (event) { + // Started buffering + ref.read(syncPlayProvider.notifier).reportBuffering(); + } else { + // Finished buffering - ready + ref.read(syncPlayProvider.notifier).reportReady(isPlaying: playbackState.playing); + } + } + } Future updateBuffer(Duration buffer) async { mediaState.update( @@ -88,13 +244,19 @@ class VideoPlayerNotifier extends StateNotifier { } Future updatePosition(Duration event) async { - if (!state.hasPlayer) return; - if (playbackState.playing == false) return; + if (!state.hasPlayer) { + return; + } + if (playbackState.playing == false) { + return; + } final currentState = playbackState; if (currentState.state == VideoPlayerState.disposed) return; final currentPosition = currentState.position; - if ((currentPosition - event).inSeconds.abs() < 1) return; + if ((currentPosition - event).inSeconds.abs() < 1) { + return; + } final position = event; @@ -112,10 +274,33 @@ class VideoPlayerNotifier extends StateNotifier { position: event, )); } + + // Feed time updates into SyncPlay drift estimation. + if (_isSyncPlayActive) { + ref.read(syncPlayProvider.notifier).updatePlaybackDrift( + currentPositionTicks: secondsToTicks( + event.inMilliseconds / 1000, + ), + at: DateTime.now().toUtc(), + ); + } } - Future loadPlaybackItem(PlaybackModel model, Duration startPosition) async { + Future loadPlaybackItem( + PlaybackModel model, + Duration startPosition, { + bool waitForSyncPlayCommand = true, + }) async { ref.read(playBackModel)?.dispose(); + + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(true); + + // Only report group buffering for flows that should wait + // for a SyncPlay unpause command. + if (_isSyncPlayActive && waitForSyncPlayCommand) { + ref.read(syncPlayProvider.notifier).reportBuffering(); + } + await state.stop(); ref.read(playbackRateProvider.notifier).state = 1.0; mediaState.update((state) => state.copyWith( @@ -140,6 +325,7 @@ class VideoPlayerNotifier extends StateNotifier { return true; } + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(false); mediaState.update((state) => state.copyWith(errorPlaying: true)); return false; } @@ -200,4 +386,64 @@ class VideoPlayerNotifier extends StateNotifier { return false; } + + // ============================================ + // User-initiated actions (go through SyncPlay if active) + // ============================================ + + /// User-initiated play - routes through SyncPlay if active + Future userPlay() async { + if (_isSyncPlayActive) { + // Just request unpause. The server will put the group in Waiting state, + // and our buffering listener will report Ready(isPlaying: false) when appropriate. + await ref.read(syncPlayProvider.notifier).requestUnpause(); + } else { + await state.play(); + } + } + + /// User-initiated pause - routes through SyncPlay if active + Future userPause() async { + if (_isSyncPlayActive) { + await ref.read(syncPlayProvider.notifier).requestPause(); + } else { + await state.pause(); + } + } + + /// User-initiated seek - routes through SyncPlay if active + Future userSeek(Duration position) async { + final wasPlaying = playbackState.playing; + if (_isSyncPlayActive) { + // Apply the seek locally immediately so the UI/slider does not snap + // back to the previous position while we wait for the server to + // broadcast the Seek command. _syncPlayAction prevents the player + // state stream from re-triggering userSeek for our own action. + _syncPlayAction = true; + try { + await state.seek(position); + if (wasPlaying && !playbackState.playing) { + await state.play(); + } + } finally { + _syncPlayAction = false; + } + final positionTicks = secondsToTicks(position.inMilliseconds / 1000); + await ref.read(syncPlayProvider.notifier).requestSeek(positionTicks); + } else { + await state.seek(position); + if (wasPlaying && !playbackState.playing) { + await state.play(); + } + } + } + + /// User-initiated play/pause toggle - routes through SyncPlay if active + Future userPlayOrPause() async { + if (playbackState.playing) { + await userPause(); + } else { + await userPlay(); + } + } } diff --git a/lib/routes/auto_router.gr.dart b/lib/routes/auto_router.gr.dart index 56630fb00..608d23e95 100644 --- a/lib/routes/auto_router.gr.dart +++ b/lib/routes/auto_router.gr.dart @@ -15,30 +15,23 @@ import 'package:auto_route/auto_route.dart' as _i31; import 'package:collection/collection.dart' as _i36; import 'package:fladder/models/item_base_model.dart' as _i33; import 'package:fladder/models/items/photos_model.dart' as _i37; -import 'package:fladder/models/library_search/library_search_options.dart' - as _i35; +import 'package:fladder/models/library_search/library_search_options.dart' as _i35; import 'package:fladder/models/seerr/seerr_dashboard_model.dart' as _i39; import 'package:fladder/routes/nested_details_screen.dart' as _i13; -import 'package:fladder/screens/control_panel/control_active_tasks_page.dart' - as _i3; -import 'package:fladder/screens/control_panel/control_dashboard_page.dart' - as _i4; -import 'package:fladder/screens/control_panel/control_libraries_page.dart' - as _i5; +import 'package:fladder/screens/control_panel/control_active_tasks_page.dart' as _i3; +import 'package:fladder/screens/control_panel/control_dashboard_page.dart' as _i4; +import 'package:fladder/screens/control_panel/control_libraries_page.dart' as _i5; import 'package:fladder/screens/control_panel/control_livetv_page.dart' as _i6; import 'package:fladder/screens/control_panel/control_panel_screen.dart' as _i7; -import 'package:fladder/screens/control_panel/control_panel_selection_screen.dart' - as _i8; +import 'package:fladder/screens/control_panel/control_panel_selection_screen.dart' as _i8; import 'package:fladder/screens/control_panel/control_server_page.dart' as _i9; -import 'package:fladder/screens/control_panel/control_user_edit_page.dart' - as _i10; +import 'package:fladder/screens/control_panel/control_user_edit_page.dart' as _i10; import 'package:fladder/screens/control_panel/control_users_page.dart' as _i11; import 'package:fladder/screens/dashboard/dashboard_screen.dart' as _i12; import 'package:fladder/screens/favourites/favourites_screen.dart' as _i14; import 'package:fladder/screens/home_screen.dart' as _i15; import 'package:fladder/screens/library/library_screen.dart' as _i16; -import 'package:fladder/screens/library_search/library_search_screen.dart' - as _i17; +import 'package:fladder/screens/library_search/library_search_screen.dart' as _i17; import 'package:fladder/screens/live_tv/live_tv_screen.dart' as _i18; import 'package:fladder/screens/login/lock_screen.dart' as _i19; import 'package:fladder/screens/login/login_screen.dart' as _i20; @@ -51,8 +44,7 @@ import 'package:fladder/screens/settings/client_settings_page.dart' as _i2; import 'package:fladder/screens/settings/player_settings_page.dart' as _i22; import 'package:fladder/screens/settings/profile_settings_page.dart' as _i23; import 'package:fladder/screens/settings/settings_screen.dart' as _i27; -import 'package:fladder/screens/settings/settings_selection_screen.dart' - as _i28; +import 'package:fladder/screens/settings/settings_selection_screen.dart' as _i28; import 'package:fladder/screens/splash_screen.dart' as _i29; import 'package:fladder/screens/syncing/synced_screen.dart' as _i30; import 'package:fladder/seerr/seerr_models.dart' as _i40; @@ -205,8 +197,7 @@ class ControlServerRoute extends _i31.PageRouteInfo { /// generated route for /// [_i10.ControlUserEditPage] -class ControlUserEditRoute - extends _i31.PageRouteInfo { +class ControlUserEditRoute extends _i31.PageRouteInfo { ControlUserEditRoute({ String? userId, _i32.Key? key, @@ -225,8 +216,7 @@ class ControlUserEditRoute builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - ControlUserEditRouteArgs(userId: queryParams.optString('userId')), + orElse: () => ControlUserEditRouteArgs(userId: queryParams.optString('userId')), ); return _i10.ControlUserEditPage(userId: args.userId, key: args.key); }, @@ -275,8 +265,7 @@ class ControlUsersRoute extends _i31.PageRouteInfo { /// generated route for /// [_i12.DashboardScreen] class DashboardRoute extends _i31.PageRouteInfo { - const DashboardRoute({List<_i31.PageRouteInfo>? children}) - : super(DashboardRoute.name, initialChildren: children); + const DashboardRoute({List<_i31.PageRouteInfo>? children}) : super(DashboardRoute.name, initialChildren: children); static const String name = 'DashboardRoute'; @@ -343,10 +332,7 @@ class DetailsRouteArgs { bool operator ==(Object other) { if (identical(this, other)) return true; if (other is! DetailsRouteArgs) return false; - return id == other.id && - item == other.item && - tag == other.tag && - key == other.key; + return id == other.id && item == other.item && tag == other.tag && key == other.key; } @override @@ -356,8 +342,7 @@ class DetailsRouteArgs { /// generated route for /// [_i14.FavouritesScreen] class FavouritesRoute extends _i31.PageRouteInfo { - const FavouritesRoute({List<_i31.PageRouteInfo>? children}) - : super(FavouritesRoute.name, initialChildren: children); + const FavouritesRoute({List<_i31.PageRouteInfo>? children}) : super(FavouritesRoute.name, initialChildren: children); static const String name = 'FavouritesRoute'; @@ -372,8 +357,7 @@ class FavouritesRoute extends _i31.PageRouteInfo { /// generated route for /// [_i15.HomeScreen] class HomeRoute extends _i31.PageRouteInfo { - const HomeRoute({List<_i31.PageRouteInfo>? children}) - : super(HomeRoute.name, initialChildren: children); + const HomeRoute({List<_i31.PageRouteInfo>? children}) : super(HomeRoute.name, initialChildren: children); static const String name = 'HomeRoute'; @@ -388,8 +372,7 @@ class HomeRoute extends _i31.PageRouteInfo { /// generated route for /// [_i16.LibraryScreen] class LibraryRoute extends _i31.PageRouteInfo { - const LibraryRoute({List<_i31.PageRouteInfo>? children}) - : super(LibraryRoute.name, initialChildren: children); + const LibraryRoute({List<_i31.PageRouteInfo>? children}) : super(LibraryRoute.name, initialChildren: children); static const String name = 'LibraryRoute'; @@ -559,8 +542,7 @@ class LiveTvRoute extends _i31.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - LiveTvRouteArgs(viewId: queryParams.getString('viewId', "")), + orElse: () => LiveTvRouteArgs(viewId: queryParams.getString('viewId', "")), ); return _i18.LiveTvScreen(viewId: args.viewId, key: args.key); }, @@ -593,8 +575,7 @@ class LiveTvRouteArgs { /// generated route for /// [_i19.LockScreen] class LockRoute extends _i31.PageRouteInfo { - const LockRoute({List<_i31.PageRouteInfo>? children}) - : super(LockRoute.name, initialChildren: children); + const LockRoute({List<_i31.PageRouteInfo>? children}) : super(LockRoute.name, initialChildren: children); static const String name = 'LockRoute'; @@ -627,8 +608,7 @@ class LoginRoute extends _i31.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - LoginRouteArgs(authLink: queryParams.optString('authLink')), + orElse: () => LoginRouteArgs(authLink: queryParams.optString('authLink')), ); return _i20.LoginScreen(authLink: args.authLink, key: args.key); }, @@ -686,8 +666,7 @@ class PhotoViewerRoute extends _i31.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')), + orElse: () => PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')), ); return _i21.PhotoViewerScreen( items: args.items, @@ -731,11 +710,7 @@ class PhotoViewerRouteArgs { } @override - int get hashCode => - const _i36.ListEquality().hash(items) ^ - selected.hashCode ^ - loadingItems.hashCode ^ - key.hashCode; + int get hashCode => const _i36.ListEquality().hash(items) ^ selected.hashCode ^ loadingItems.hashCode ^ key.hashCode; } /// generated route for @@ -838,22 +813,17 @@ class SeerrDetailsRouteArgs { bool operator ==(Object other) { if (identical(this, other)) return true; if (other is! SeerrDetailsRouteArgs) return false; - return mediaType == other.mediaType && - tmdbId == other.tmdbId && - poster == other.poster && - key == other.key; + return mediaType == other.mediaType && tmdbId == other.tmdbId && poster == other.poster && key == other.key; } @override - int get hashCode => - mediaType.hashCode ^ tmdbId.hashCode ^ poster.hashCode ^ key.hashCode; + int get hashCode => mediaType.hashCode ^ tmdbId.hashCode ^ poster.hashCode ^ key.hashCode; } /// generated route for /// [_i25.SeerrScreen] class SeerrRoute extends _i31.PageRouteInfo { - const SeerrRoute({List<_i31.PageRouteInfo>? children}) - : super(SeerrRoute.name, initialChildren: children); + const SeerrRoute({List<_i31.PageRouteInfo>? children}) : super(SeerrRoute.name, initialChildren: children); static const String name = 'SeerrRoute'; @@ -929,8 +899,7 @@ class SeerrSearchRouteArgs { /// generated route for /// [_i27.SettingsScreen] class SettingsRoute extends _i31.PageRouteInfo { - const SettingsRoute({List<_i31.PageRouteInfo>? children}) - : super(SettingsRoute.name, initialChildren: children); + const SettingsRoute({List<_i31.PageRouteInfo>? children}) : super(SettingsRoute.name, initialChildren: children); static const String name = 'SettingsRoute'; @@ -1010,8 +979,7 @@ class SplashRouteArgs { /// generated route for /// [_i30.SyncedScreen] class SyncedRoute extends _i31.PageRouteInfo { - const SyncedRoute({List<_i31.PageRouteInfo>? children}) - : super(SyncedRoute.name, initialChildren: children); + const SyncedRoute({List<_i31.PageRouteInfo>? children}) : super(SyncedRoute.name, initialChildren: children); static const String name = 'SyncedRoute'; diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index db643ed20..ae73670a6 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -20,6 +20,7 @@ import 'package:fladder/widgets/keyboard/slide_in_keyboard.dart'; import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; import 'package:fladder/widgets/navigation_scaffold/components/destination_model.dart'; import 'package:fladder/widgets/navigation_scaffold/navigation_scaffold.dart'; +import 'package:fladder/widgets/syncplay/dashboard_fabs.dart'; enum HomeTabs { dashboard, @@ -83,13 +84,7 @@ class HomeScreen extends ConsumerWidget { selectedIcon: Icon(e.selectedIcon), route: const DashboardRoute(), action: () => e.navigate(context), - floatingActionButton: AdaptiveFab( - context: context, - title: context.localized.search, - key: Key(e.name.capitalize()), - onPressed: () => context.router.navigate(LibrarySearchRoute()), - child: const Icon(IconsaxPlusLinear.search_normal_1), - ), + customFab: const DashboardFabs(), ); case HomeTabs.favorites: return DestinationModel( diff --git a/lib/screens/login/controllers/login_controller.dart b/lib/screens/login/controllers/login_controller.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/controllers/login_controller.dart +++ b/lib/screens/login/controllers/login_controller.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/login_code_dialog.dart b/lib/screens/login/login_code_dialog.dart index 61121ce01..4a2e2fa32 100644 --- a/lib/screens/login/login_code_dialog.dart +++ b/lib/screens/login/login_code_dialog.dart @@ -27,6 +27,7 @@ Future openLoginCodeDialog( class LoginCodeDialog extends ConsumerStatefulWidget { final QuickConnectResult quickConnectInfo; final Function(BuildContext context, String secret) onAuthenticated; + const LoginCodeDialog({ required this.quickConnectInfo, required this.onAuthenticated, diff --git a/lib/screens/login/screens/server_selection_screen.dart b/lib/screens/login/screens/server_selection_screen.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/screens/server_selection_screen.dart +++ b/lib/screens/login/screens/server_selection_screen.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/credentials_input_section.dart b/lib/screens/login/widgets/credentials_input_section.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/credentials_input_section.dart +++ b/lib/screens/login/widgets/credentials_input_section.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/login_credentials_input_extensions.dart b/lib/screens/login/widgets/login_credentials_input_extensions.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/login_credentials_input_extensions.dart +++ b/lib/screens/login/widgets/login_credentials_input_extensions.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/server_input_section.dart b/lib/screens/login/widgets/server_input_section.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/server_input_section.dart +++ b/lib/screens/login/widgets/server_input_section.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/server_url_input.dart b/lib/screens/login/widgets/server_url_input.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/server_url_input.dart +++ b/lib/screens/login/widgets/server_url_input.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/server_url_input_extensions.dart b/lib/screens/login/widgets/server_url_input_extensions.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/server_url_input_extensions.dart +++ b/lib/screens/login/widgets/server_url_input_extensions.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/settings/quick_connect_window.dart b/lib/screens/settings/quick_connect_window.dart index 6e01c737a..e89efed53 100644 --- a/lib/screens/settings/quick_connect_window.dart +++ b/lib/screens/settings/quick_connect_window.dart @@ -9,16 +9,14 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; Future openQuickConnectDialog( BuildContext context, ) async { - return showDialog( - context: context, builder: (context) => const QuickConnectDialog()); + return showDialog(context: context, builder: (context) => const QuickConnectDialog()); } class QuickConnectDialog extends ConsumerStatefulWidget { const QuickConnectDialog({super.key}); @override - ConsumerState createState() => - _QuickConnectDialogState(); + ConsumerState createState() => _QuickConnectDialogState(); } class _QuickConnectDialogState extends ConsumerState { @@ -105,8 +103,7 @@ class _QuickConnectDialogState extends ConsumerState { error = null; loading = true; }); - final response = - await ref.read(userProvider.notifier).quickConnect(controller.text); + final response = await ref.read(userProvider.notifier).quickConnect(controller.text); if (response.isSuccessful) { setState( () { diff --git a/lib/screens/shared/media/person_list_.dart b/lib/screens/shared/media/person_list_.dart index 30d9788d1..7650cd62a 100644 --- a/lib/screens/shared/media/person_list_.dart +++ b/lib/screens/shared/media/person_list_.dart @@ -20,12 +20,10 @@ class PersonList extends ConsumerWidget { label, style: Theme.of(context).textTheme.titleMedium, ), - ...people - .map((person) => TextButton( - onPressed: - onPersonTap != null ? () => onPersonTap?.call(person) : () => openPersonDetailPage(context, person), - child: Text(person.name))) - + ...people.map((person) => TextButton( + onPressed: + onPersonTap != null ? () => onPersonTap?.call(person) : () => openPersonDetailPage(context, person), + child: Text(person.name))) ], ); } diff --git a/lib/screens/syncing/sync_item_details.dart b/lib/screens/syncing/sync_item_details.dart index 0e55dfde8..2f4edf42c 100644 --- a/lib/screens/syncing/sync_item_details.dart +++ b/lib/screens/syncing/sync_item_details.dart @@ -1,9 +1,4 @@ -import 'package:flutter/material.dart'; - import 'package:background_downloader/background_downloader.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; - import 'package:fladder/models/syncing/sync_item.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/sync/sync_provider_helpers.dart'; @@ -25,6 +20,9 @@ import 'package:fladder/util/size_formatting.dart'; import 'package:fladder/widgets/shared/alert_content.dart'; import 'package:fladder/widgets/shared/icon_button_await.dart'; import 'package:fladder/widgets/shared/pull_to_refresh.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; Future showSyncItemDetails( BuildContext context, diff --git a/lib/screens/video_player/components/syncplay_command_indicator.dart b/lib/screens/video_player/components/syncplay_command_indicator.dart new file mode 100644 index 000000000..3772473b2 --- /dev/null +++ b/lib/screens/video_player/components/syncplay_command_indicator.dart @@ -0,0 +1,121 @@ +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +/// Centered overlay showing SyncPlay command being processed +class SyncPlayCommandIndicator extends ConsumerWidget { + const SyncPlayCommandIndicator({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); + final commandType = ref.watch(syncPlayProvider.select((s) => s.processingCommandType)); + final strategy = ref.watch(syncCorrectionStrategyProvider); + + final hasCorrection = strategy != SyncCorrectionStrategy.none; + final showCommand = isProcessing && commandType != null; + final visible = isActive && (showCommand || hasCorrection); + + return IgnorePointer( + child: AnimatedOpacity( + duration: const Duration(milliseconds: 200), + opacity: visible ? 1 : 0, + child: Center( + child: AnimatedScale( + duration: const Duration(milliseconds: 200), + scale: visible ? 1.0 : 0.8, + child: Container( + padding: const EdgeInsets.all(24), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.surface.withValues(alpha: 0.9), + borderRadius: BorderRadius.circular(20), + border: Border.all( + color: Theme.of(context).colorScheme.primary.withValues(alpha: 0.5), + width: 2, + ), + boxShadow: [ + BoxShadow( + color: Colors.black.withValues(alpha: 0.3), + blurRadius: 20, + spreadRadius: 5, + ), + ], + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + _CommandIcon( + commandType: commandType, + strategy: strategy, + ), + const SizedBox(height: 12), + Text( + showCommand ? commandType.syncPlayCommandOverlayLabel(context) : strategy.label(context), + style: Theme.of(context).textTheme.titleMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurface, + fontWeight: FontWeight.w600, + ), + ), + const SizedBox(height: 4), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + SizedBox( + width: 12, + height: 12, + child: CircularProgressIndicator( + strokeWidth: 2, + color: Theme.of(context).colorScheme.primary, + ), + ), + const SizedBox(width: 8), + Text( + context.localized.syncPlaySyncingWithGroup, + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + ], + ), + ], + ), + ), + ), + ), + ), + ); + } +} + +class _CommandIcon extends StatelessWidget { + final SyncPlayCommand? commandType; + final SyncCorrectionStrategy strategy; + + const _CommandIcon({ + required this.commandType, + required this.strategy, + }); + + @override + Widget build(BuildContext context) { + final (icon, color) = + commandType != null ? commandType.syncPlayCommandIconAndColor(context) : strategy.iconAndColor(context); + + return Container( + padding: const EdgeInsets.all(16), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.15), + shape: BoxShape.circle, + ), + child: Icon( + icon, + size: 48, + color: color, + ), + ); + } +} diff --git a/lib/screens/video_player/components/video_player_next_wrapper.dart b/lib/screens/video_player/components/video_player_next_wrapper.dart index c3f31eb27..e0039a989 100644 --- a/lib/screens/video_player/components/video_player_next_wrapper.dart +++ b/lib/screens/video_player/components/video_player_next_wrapper.dart @@ -1,10 +1,3 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:screen_brightness/screen_brightness.dart'; - import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/movie_model.dart'; import 'package:fladder/models/media_playback_model.dart'; @@ -23,11 +16,17 @@ import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; import 'package:fladder/widgets/navigation_scaffold/components/floating_player_bar.dart'; import 'package:fladder/widgets/shared/progress_floating_button.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:screen_brightness/screen_brightness.dart'; class VideoPlayerNextWrapper extends ConsumerStatefulWidget { final Widget video; final Widget controls; final List overlays; + const VideoPlayerNextWrapper({ required this.video, required this.controls, @@ -123,6 +122,7 @@ class _VideoPlayerNextWrapperState extends ConsumerState Future closePlayer() async { clearOverlaySettings(); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; ref.read(videoPlayerProvider).stop(); Navigator.of(context).pop(); } @@ -350,6 +350,7 @@ class _VideoPlayerNextWrapperState extends ConsumerState class _NextUpInformation extends StatelessWidget { final ItemBaseModel item; + const _NextUpInformation({ required this.item, }); @@ -440,19 +441,19 @@ class _NextUpInformation extends StatelessWidget { class _SimpleControls extends ConsumerWidget { final Function()? skip; + const _SimpleControls({ this.skip, }); @override Widget build(BuildContext context, WidgetRef ref) { - final player = ref.watch(videoPlayerProvider); final isPlaying = ref.watch(mediaPlaybackProvider.select((value) => value.playing)); return Row( mainAxisSize: MainAxisSize.min, children: [ IconButton.filledTonal( - onPressed: () => player.playOrPause(), + onPressed: () => ref.read(videoPlayerProvider.notifier).userPlayOrPause(), icon: Icon(isPlaying ? IconsaxPlusBold.pause : IconsaxPlusBold.play), ), if (skip != null) diff --git a/lib/screens/video_player/components/video_player_options_sheet.dart b/lib/screens/video_player/components/video_player_options_sheet.dart index d451f39ef..dbedb2cbe 100644 --- a/lib/screens/video_player/components/video_player_options_sheet.dart +++ b/lib/screens/video_player/components/video_player_options_sheet.dart @@ -14,6 +14,7 @@ import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/models/playback/transcode_playback_model.dart'; import 'package:fladder/models/settings/video_player_settings.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/screens/collections/add_to_collection.dart'; @@ -417,10 +418,21 @@ Future showSubSelection(BuildContext context) { ? Opacity(opacity: 0.6, child: Text(subModel.language.capitalize())) : null, onTap: () async { - final newModel = await playbackModel.setSubtitle(subModel, player); - ref.read(playBackModel.notifier).update((state) => newModel); - if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + Future doSwitch() async { + final newModel = await playbackModel.setSubtitle(subModel, player); + ref.read(playBackModel.notifier).update((state) => newModel); + if (newModel != null) { + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); + } + } + + if (ref.read(isSyncPlayActiveProvider)) { + await ref.read(syncPlayProvider.notifier).runLocalOnly(doSwitch); + } else { + await doSwitch(); } }, ); @@ -458,10 +470,21 @@ Future showAudioSelection(BuildContext context) { ? Opacity(opacity: 0.6, child: Text(audioStream.language.capitalize())) : null, onTap: () async { - final newModel = await playbackModel.setAudio(audioStream, player); - ref.read(playBackModel.notifier).update((state) => newModel); - if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + Future doSwitch() async { + final newModel = await playbackModel.setAudio(audioStream, player); + ref.read(playBackModel.notifier).update((state) => newModel); + if (newModel != null) { + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); + } + } + + if (ref.read(isSyncPlayActiveProvider)) { + await ref.read(syncPlayProvider.notifier).runLocalOnly(doSwitch); + } else { + await doSwitch(); } }); }, diff --git a/lib/screens/video_player/components/video_player_screenshot_indicator.dart b/lib/screens/video_player/components/video_player_screenshot_indicator.dart index 0ae67f7df..7b60556c1 100644 --- a/lib/screens/video_player/components/video_player_screenshot_indicator.dart +++ b/lib/screens/video_player/components/video_player_screenshot_indicator.dart @@ -46,7 +46,10 @@ class VideoPlayerScreenshotIndicatorState extends ConsumerState noSubsModel); if (noSubsModel != null) { - await ref.read(playbackModelHelper).shouldReload(noSubsModel); + await ref.read(playbackModelHelper).shouldReload( + noSubsModel, + isLocalTrackSwitch: true, + ); } result = await ref.read(videoPlayerProvider.notifier).takeScreenshot(); @@ -55,7 +58,10 @@ class VideoPlayerScreenshotIndicatorState extends ConsumerState restoredModel); if (restoredModel != null) { - await ref.read(playbackModelHelper).shouldReload(restoredModel); + await ref.read(playbackModelHelper).shouldReload( + restoredModel, + isLocalTrackSwitch: true, + ); } } else { result = await ref.read(videoPlayerProvider.notifier).takeScreenshot(); diff --git a/lib/screens/video_player/components/video_player_speed_indicator.dart b/lib/screens/video_player/components/video_player_speed_indicator.dart index 40114f477..6367824d0 100644 --- a/lib/screens/video_player/components/video_player_speed_indicator.dart +++ b/lib/screens/video_player/components/video_player_speed_indicator.dart @@ -71,8 +71,8 @@ class _VideoPlayerSpeedIndicatorState extends ConsumerState { ), onChangeEnd: (e) async { currentDuration = Duration(milliseconds: e.toInt()); + // Route seek through SyncPlay if active + widget.onPositionChanged(Duration(milliseconds: e.toInt())); widget.onPositionChanged.call(Duration(milliseconds: e.toInt())); await Future.delayed(const Duration(milliseconds: 250)); if (widget.wasPlaying) { - player.play(); + // Route play through SyncPlay if active + ref.read(videoPlayerProvider.notifier).userPlay(); } widget.timerReset.call(); setState(() { @@ -122,7 +123,8 @@ class _ChapterProgressSliderState extends ConsumerState { onHoverStart = true; }); widget.wasPlayingChanged.call(player.lastState?.playing ?? false); - player.pause(); + // Route pause through SyncPlay if active + ref.read(videoPlayerProvider.notifier).userPause(); }, onChanged: (e) { currentDuration = Duration(milliseconds: e.toInt()); diff --git a/lib/screens/video_player/tv_player_controls.dart b/lib/screens/video_player/tv_player_controls.dart index abf380490..b93003f6c 100644 --- a/lib/screens/video_player/tv_player_controls.dart +++ b/lib/screens/video_player/tv_player_controls.dart @@ -1,15 +1,6 @@ import 'dart:async'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; - import 'package:async/async.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:screen_brightness/screen_brightness.dart'; - import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/media_segments_model.dart'; import 'package:fladder/models/media_playback_model.dart'; @@ -22,6 +13,7 @@ import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/screens/shared/default_title_bar.dart'; import 'package:fladder/screens/shared/media/components/item_logo.dart'; +import 'package:fladder/screens/video_player/components/syncplay_command_indicator.dart'; import 'package:fladder/screens/video_player/components/video_playback_information.dart'; import 'package:fladder/screens/video_player/components/video_player_options_sheet.dart'; import 'package:fladder/screens/video_player/components/video_player_quality_controls.dart'; @@ -35,9 +27,18 @@ import 'package:fladder/util/duration_extensions.dart'; import 'package:fladder/util/input_handler.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_badge.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:screen_brightness/screen_brightness.dart'; class TvPlayerControls extends ConsumerStatefulWidget { final Function(bool value) showGuide; + const TvPlayerControls({ required this.showGuide, super.key, @@ -75,7 +76,6 @@ class _TvPlayerControlsState extends ConsumerState { @override Widget build(BuildContext context) { - final player = ref.watch(videoPlayerProvider); return Listener( onPointerSignal: setVolume, child: InputHandler( @@ -98,7 +98,9 @@ class _TvPlayerControlsState extends ConsumerState { children: [ Positioned.fill( child: GestureDetector( - onTap: initInputDevice == InputDevice.pointer ? () => player.playOrPause() : () => toggleOverlay(), + onTap: initInputDevice == InputDevice.pointer + ? () => ref.read(videoPlayerProvider.notifier).userPlayOrPause() + : () => toggleOverlay(), onDoubleTap: initInputDevice == InputDevice.pointer ? () => fullScreenHelper.toggleFullScreen(ref) : null, ), @@ -126,6 +128,7 @@ class _TvPlayerControlsState extends ConsumerState { const VideoPlayerSeekIndicator(), const VideoPlayerVolumeIndicator(), const VideoPlayerScreenshotIndicator(), + const SyncPlayCommandIndicator(), ], ), ), @@ -205,6 +208,7 @@ class _TvPlayerControlsState extends ConsumerState { ], ), ), + const SyncPlayBadge(), if (initInputDevice == InputDevice.touch) Align( alignment: Alignment.centerRight, @@ -277,7 +281,7 @@ class _TvPlayerControlsState extends ConsumerState { IconButton.filledTonal( iconSize: 38, onPressed: () { - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); }, icon: Icon( mediaPlayback.playing ? IconsaxPlusBold.pause : IconsaxPlusBold.play, @@ -629,7 +633,10 @@ class _TvPlayerControlsState extends ConsumerState { void minimizePlayer(BuildContext context) { clearOverlaySettings(); - ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.minimized)); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.minimized), + ); Navigator.of(context).pop(); } @@ -637,6 +644,7 @@ class _TvPlayerControlsState extends ConsumerState { Future closePlayer() async { clearOverlaySettings(); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; ref.read(videoPlayerProvider).stop(); Navigator.of(context).pop(); } @@ -683,7 +691,7 @@ class _TvPlayerControlsState extends ConsumerState { switch (value) { case VideoHotKeys.playPause: - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); return true; case VideoHotKeys.volumeUp: resetTimer(); diff --git a/lib/screens/video_player/video_player.dart b/lib/screens/video_player/video_player.dart index 198126900..b5ef797fa 100644 --- a/lib/screens/video_player/video_player.dart +++ b/lib/screens/video_player/video_player.dart @@ -52,6 +52,32 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb } } + @override + void deactivate() { + // Capture the notifier synchronously while the consumer element is + // still alive, then defer the mutation to the next microtask to + // avoid "Tried to modify a provider while the widget tree was + // building" when deactivate runs inside a parent rebuild. + try { + final notifier = ref.read(mediaPlaybackProvider.notifier); + final currentPlaybackState = ref.read(mediaPlaybackProvider).state; + if (currentPlaybackState == VideoPlayerState.fullScreen) { + Future.microtask(() { + try { + notifier.update( + (state) => state.copyWith(state: VideoPlayerState.minimized), + ); + } catch (_) { + // ProviderContainer may already be torn down. + } + }); + } + } catch (_) { + // ProviderContainer may already be torn down (app shutdown). + } + super.deactivate(); + } + @override void dispose() { WidgetsBinding.instance.removeObserver(this); @@ -64,6 +90,7 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb super.initState(); WidgetsBinding.instance.addObserver(this); Future.microtask(() { + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = true; ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.fullScreen)); final orientations = ref.read(videoPlayerSettingsProvider.select((value) => value.allowedOrientations)); SystemChrome.setPreferredOrientations( @@ -80,11 +107,17 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb final playerController = ref.watch(videoPlayerProvider.select((value) => value)); - //Watch playbackModel type changes to switch between normal players + // Watch playbackModel type changes to switch between normal + // players. Guard with `mounted`: this listener can fire from an + // async callback (e.g. media-kit's loadVideo Future) that resolves + // after the player route has been popped/disposed - calling + // setState then triggers a "_lifecycleState != defunct" assertion. ref.listen( playBackModel, (previous, next) { - if (next == null) return; + if (!mounted || next == null) { + return; + } if (previous.runtimeType != next.runtimeType) { setState(() { currentPlaybackModel = next; @@ -97,9 +130,12 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb ref.listen( videoPlayerSettingsProvider.select((value) => value.allowedOrientations), (previous, next) { - if (previous != next) { - SystemChrome.setPreferredOrientations(next?.isNotEmpty == true ? next!.toList() : DeviceOrientation.values); + if (!mounted || previous == next) { + return; } + SystemChrome.setPreferredOrientations( + next?.isNotEmpty == true ? next!.toList() : DeviceOrientation.values, + ); }, ); diff --git a/lib/screens/video_player/video_player_controls.dart b/lib/screens/video_player/video_player_controls.dart index eb194fea5..f7289812f 100644 --- a/lib/screens/video_player/video_player_controls.dart +++ b/lib/screens/video_player/video_player_controls.dart @@ -1,15 +1,6 @@ import 'dart:async'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; - import 'package:async/async.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:screen_brightness/screen_brightness.dart'; - import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/media_segments_model.dart'; import 'package:fladder/models/media_playback_model.dart'; @@ -17,10 +8,12 @@ import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/models/settings/video_player_settings.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/screens/shared/default_title_bar.dart'; import 'package:fladder/screens/shared/media/components/item_logo.dart'; +import 'package:fladder/screens/video_player/components/syncplay_command_indicator.dart'; import 'package:fladder/screens/video_player/components/video_playback_information.dart'; import 'package:fladder/screens/video_player/components/video_player_brightness_indicator.dart'; import 'package:fladder/screens/video_player/components/video_player_controls_extras.dart'; @@ -39,6 +32,14 @@ import 'package:fladder/util/list_padding.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/util/string_extensions.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_badge.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:screen_brightness/screen_brightness.dart'; class DesktopControls extends ConsumerStatefulWidget { const DesktopControls({super.key}); @@ -128,7 +129,9 @@ class _DesktopControlsState extends ConsumerState { children: [ Positioned.fill( child: GestureDetector( - onTap: initInputDevice == InputDevice.pointer ? () => player.playOrPause() : () => toggleOverlay(), + onTap: initInputDevice == InputDevice.pointer + ? () => ref.read(videoPlayerProvider.notifier).userPlayOrPause() + : () => toggleOverlay(), onDoubleTapDown: initInputDevice == InputDevice.touch ? _handleDoubleTapDown : null, onDoubleTap: initInputDevice == InputDevice.pointer ? () => fullScreenHelper.toggleFullScreen(ref) @@ -166,6 +169,7 @@ class _DesktopControlsState extends ConsumerState { const VideoPlayerBrightnessIndicator(), const VideoPlayerSpeedIndicator(), const VideoPlayerScreenshotIndicator(), + const SyncPlayCommandIndicator(), Consumer( builder: (context, ref, child) { final position = ref.watch(mediaPlaybackProvider.select((value) => value.position)); @@ -225,7 +229,7 @@ class _DesktopControlsState extends ConsumerState { : 1, duration: const Duration(milliseconds: 250), child: IconButton.outlined( - onPressed: () => ref.read(videoPlayerProvider).play(), + onPressed: () => ref.read(videoPlayerProvider.notifier).userPlay(), isSelected: true, iconSize: 65, tooltip: "Resume video", @@ -291,6 +295,7 @@ class _DesktopControlsState extends ConsumerState { ], ), ), + const SyncPlayBadge(), if (initInputDevice == InputDevice.touch) Align( alignment: Alignment.centerRight, @@ -395,7 +400,7 @@ class _DesktopControlsState extends ConsumerState { IconButton.filledTonal( iconSize: 38, onPressed: () { - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); }, icon: Icon( mediaPlayback.playing ? IconsaxPlusBold.pause : IconsaxPlusBold.play, @@ -475,9 +480,10 @@ class _DesktopControlsState extends ConsumerState { ), const Spacer(), if (playbackModel != null) - InkWell( - onTap: () => showVideoPlaybackInformation(context), - child: Card( + Card( + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: () => showVideoPlaybackInformation(context), child: Padding( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), child: Text( @@ -509,7 +515,7 @@ class _DesktopControlsState extends ConsumerState { buffer: mediaPlayback.buffer, buffering: mediaPlayback.buffering, timerReset: () => timer.reset(), - onPositionChanged: (position) => ref.read(videoPlayerProvider).seek(position), + onPositionChanged: (position) => ref.read(videoPlayerProvider.notifier).userSeek(position), ), ), const SizedBox(height: 4), @@ -652,7 +658,7 @@ class _DesktopControlsState extends ConsumerState { final end = mediaSegment?.end; if (end != null) { resetTimer(); - ref.read(videoPlayerProvider).seek(end); + ref.read(videoPlayerProvider.notifier).userSeek(end); if (segmentId != null) { Future(() { @@ -679,7 +685,7 @@ class _DesktopControlsState extends ConsumerState { final mediaPlayback = ref.read(mediaPlaybackProvider); resetTimer(); final newPosition = (mediaPlayback.position.inSeconds + seconds).clamp(0, mediaPlayback.duration.inSeconds); - ref.read(videoPlayerProvider).seek(Duration(seconds: newPosition)); + ref.read(videoPlayerProvider.notifier).userSeek(Duration(seconds: newPosition)); } void stepBack(WidgetRef ref) { @@ -731,7 +737,10 @@ class _DesktopControlsState extends ConsumerState { void minimizePlayer(BuildContext context) { clearOverlaySettings(); - ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.minimized)); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.minimized), + ); Navigator.of(context).pop(); } @@ -739,7 +748,15 @@ class _DesktopControlsState extends ConsumerState { Future closePlayer() async { clearOverlaySettings(); - ref.read(videoPlayerProvider).stop(); + // Mark the route as closed immediately so that a SyncPlay + // _startPlayback call arriving during the pop animation knows + // it must push a new route. + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + if (ref.read(isSyncPlayActiveProvider)) { + await ref.read(videoPlayerProvider).pause(); + } else { + ref.read(videoPlayerProvider).stop(); + } Navigator.of(context).pop(); } @@ -813,7 +830,7 @@ class _DesktopControlsState extends ConsumerState { if (_speedBoostActive) { _deactivateSpeedBoost(); } else { - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); } return KeyEventResult.handled; } @@ -842,7 +859,7 @@ class _DesktopControlsState extends ConsumerState { } else if (tapX > zoneThird * 2) { seekForwardWithIndicator(); } else { - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); } _doubleTapPosition = null; } @@ -923,7 +940,7 @@ class _DesktopControlsState extends ConsumerState { if (_speedBoostActive) { return false; } - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); return true; case VideoHotKeys.volumeUp: resetTimer(); @@ -985,10 +1002,10 @@ class _DesktopControlsState extends ConsumerState { seekBack(ref, seconds: seekBackSeconds); return true; case VideoHotKeys.stepForward: - playing ? ref.read(videoPlayerProvider).playOrPause() : stepForward(ref); + playing ? ref.read(videoPlayerProvider.notifier).userPlayOrPause() : stepForward(ref); return true; case VideoHotKeys.stepBack: - playing ? ref.read(videoPlayerProvider).playOrPause() : stepBack(ref); + playing ? ref.read(videoPlayerProvider.notifier).userPlayOrPause() : stepBack(ref); return true; default: return false; diff --git a/lib/seerr/seerr_models.freezed.dart b/lib/seerr/seerr_models.freezed.dart index b0eb17a98..d0d388747 100644 --- a/lib/seerr/seerr_models.freezed.dart +++ b/lib/seerr/seerr_models.freezed.dart @@ -33,8 +33,7 @@ mixin _$SeerrUserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrUserModelCopyWith get copyWith => - _$SeerrUserModelCopyWithImpl( - this as SeerrUserModel, _$identity); + _$SeerrUserModelCopyWithImpl(this as SeerrUserModel, _$identity); /// Serializes this SeerrUserModel to a JSON map. Map toJson(); @@ -47,8 +46,7 @@ mixin _$SeerrUserModel { /// @nodoc abstract mixin class $SeerrUserModelCopyWith<$Res> { - factory $SeerrUserModelCopyWith( - SeerrUserModel value, $Res Function(SeerrUserModel) _then) = + factory $SeerrUserModelCopyWith(SeerrUserModel value, $Res Function(SeerrUserModel) _then) = _$SeerrUserModelCopyWithImpl; @useResult $Res call( @@ -68,8 +66,7 @@ abstract mixin class $SeerrUserModelCopyWith<$Res> { } /// @nodoc -class _$SeerrUserModelCopyWithImpl<$Res> - implements $SeerrUserModelCopyWith<$Res> { +class _$SeerrUserModelCopyWithImpl<$Res> implements $SeerrUserModelCopyWith<$Res> { _$SeerrUserModelCopyWithImpl(this._self, this._then); final SeerrUserModel _self; @@ -406,8 +403,7 @@ class _SeerrUserModel implements SeerrUserModel { this.movieQuotaDays, this.tvQuotaLimit, this.tvQuotaDays}); - factory _SeerrUserModel.fromJson(Map json) => - _$SeerrUserModelFromJson(json); + factory _SeerrUserModel.fromJson(Map json) => _$SeerrUserModelFromJson(json); @override final int? id; @@ -458,10 +454,8 @@ class _SeerrUserModel implements SeerrUserModel { } /// @nodoc -abstract mixin class _$SeerrUserModelCopyWith<$Res> - implements $SeerrUserModelCopyWith<$Res> { - factory _$SeerrUserModelCopyWith( - _SeerrUserModel value, $Res Function(_SeerrUserModel) _then) = +abstract mixin class _$SeerrUserModelCopyWith<$Res> implements $SeerrUserModelCopyWith<$Res> { + factory _$SeerrUserModelCopyWith(_SeerrUserModel value, $Res Function(_SeerrUserModel) _then) = __$SeerrUserModelCopyWithImpl; @override @useResult @@ -482,8 +476,7 @@ abstract mixin class _$SeerrUserModelCopyWith<$Res> } /// @nodoc -class __$SeerrUserModelCopyWithImpl<$Res> - implements _$SeerrUserModelCopyWith<$Res> { +class __$SeerrUserModelCopyWithImpl<$Res> implements _$SeerrUserModelCopyWith<$Res> { __$SeerrUserModelCopyWithImpl(this._self, this._then); final _SeerrUserModel _self; @@ -597,8 +590,7 @@ mixin _$SeerrSonarrServer { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSonarrServerCopyWith get copyWith => - _$SeerrSonarrServerCopyWithImpl( - this as SeerrSonarrServer, _$identity); + _$SeerrSonarrServerCopyWithImpl(this as SeerrSonarrServer, _$identity); /// Serializes this SeerrSonarrServer to a JSON map. Map toJson(); @@ -611,8 +603,7 @@ mixin _$SeerrSonarrServer { /// @nodoc abstract mixin class $SeerrSonarrServerCopyWith<$Res> { - factory $SeerrSonarrServerCopyWith( - SeerrSonarrServer value, $Res Function(SeerrSonarrServer) _then) = + factory $SeerrSonarrServerCopyWith(SeerrSonarrServer value, $Res Function(SeerrSonarrServer) _then) = _$SeerrSonarrServerCopyWithImpl; @useResult $Res call( @@ -643,8 +634,7 @@ abstract mixin class $SeerrSonarrServerCopyWith<$Res> { } /// @nodoc -class _$SeerrSonarrServerCopyWithImpl<$Res> - implements $SeerrSonarrServerCopyWith<$Res> { +class _$SeerrSonarrServerCopyWithImpl<$Res> implements $SeerrSonarrServerCopyWith<$Res> { _$SeerrSonarrServerCopyWithImpl(this._self, this._then); final SeerrSonarrServer _self; @@ -1113,8 +1103,7 @@ class _SeerrSonarrServer implements SeerrSonarrServer { this.tags, this.rootFolders, this.activeTags}); - factory _SeerrSonarrServer.fromJson(Map json) => - _$SeerrSonarrServerFromJson(json); + factory _SeerrSonarrServer.fromJson(Map json) => _$SeerrSonarrServerFromJson(json); @override final int? id; @@ -1187,10 +1176,8 @@ class _SeerrSonarrServer implements SeerrSonarrServer { } /// @nodoc -abstract mixin class _$SeerrSonarrServerCopyWith<$Res> - implements $SeerrSonarrServerCopyWith<$Res> { - factory _$SeerrSonarrServerCopyWith( - _SeerrSonarrServer value, $Res Function(_SeerrSonarrServer) _then) = +abstract mixin class _$SeerrSonarrServerCopyWith<$Res> implements $SeerrSonarrServerCopyWith<$Res> { + factory _$SeerrSonarrServerCopyWith(_SeerrSonarrServer value, $Res Function(_SeerrSonarrServer) _then) = __$SeerrSonarrServerCopyWithImpl; @override @useResult @@ -1222,8 +1209,7 @@ abstract mixin class _$SeerrSonarrServerCopyWith<$Res> } /// @nodoc -class __$SeerrSonarrServerCopyWithImpl<$Res> - implements _$SeerrSonarrServerCopyWith<$Res> { +class __$SeerrSonarrServerCopyWithImpl<$Res> implements _$SeerrSonarrServerCopyWith<$Res> { __$SeerrSonarrServerCopyWithImpl(this._self, this._then); final _SeerrSonarrServer _self; @@ -1372,8 +1358,7 @@ mixin _$SeerrSonarrServerResponse { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSonarrServerResponseCopyWith get copyWith => - _$SeerrSonarrServerResponseCopyWithImpl( - this as SeerrSonarrServerResponse, _$identity); + _$SeerrSonarrServerResponseCopyWithImpl(this as SeerrSonarrServerResponse, _$identity); /// Serializes this SeerrSonarrServerResponse to a JSON map. Map toJson(); @@ -1386,8 +1371,8 @@ mixin _$SeerrSonarrServerResponse { /// @nodoc abstract mixin class $SeerrSonarrServerResponseCopyWith<$Res> { - factory $SeerrSonarrServerResponseCopyWith(SeerrSonarrServerResponse value, - $Res Function(SeerrSonarrServerResponse) _then) = + factory $SeerrSonarrServerResponseCopyWith( + SeerrSonarrServerResponse value, $Res Function(SeerrSonarrServerResponse) _then) = _$SeerrSonarrServerResponseCopyWithImpl; @useResult $Res call( @@ -1400,8 +1385,7 @@ abstract mixin class $SeerrSonarrServerResponseCopyWith<$Res> { } /// @nodoc -class _$SeerrSonarrServerResponseCopyWithImpl<$Res> - implements $SeerrSonarrServerResponseCopyWith<$Res> { +class _$SeerrSonarrServerResponseCopyWithImpl<$Res> implements $SeerrSonarrServerResponseCopyWith<$Res> { _$SeerrSonarrServerResponseCopyWithImpl(this._self, this._then); final SeerrSonarrServerResponse _self; @@ -1545,10 +1529,7 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult maybeWhen( - TResult Function( - SeerrSonarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrSonarrServer? server, List? profiles, List? rootFolders, List? tags)? $default, { required TResult orElse(), @@ -1556,8 +1537,7 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { final _that = this; switch (_that) { case _SeerrSonarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return orElse(); } @@ -1578,18 +1558,14 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult when( - TResult Function( - SeerrSonarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrSonarrServer? server, List? profiles, List? rootFolders, List? tags) $default, ) { final _that = this; switch (_that) { case _SeerrSonarrServerResponse(): - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: throw StateError('Unexpected subclass'); } @@ -1609,18 +1585,14 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - SeerrSonarrServer? server, - List? profiles, - List? rootFolders, - List? tags)? + TResult? Function(SeerrSonarrServer? server, List? profiles, + List? rootFolders, List? tags)? $default, ) { final _that = this; switch (_that) { case _SeerrSonarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return null; } @@ -1630,10 +1602,8 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { /// @nodoc @JsonSerializable() class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { - const _SeerrSonarrServerResponse( - {this.server, this.profiles, this.rootFolders, this.tags}); - factory _SeerrSonarrServerResponse.fromJson(Map json) => - _$SeerrSonarrServerResponseFromJson(json); + const _SeerrSonarrServerResponse({this.server, this.profiles, this.rootFolders, this.tags}); + factory _SeerrSonarrServerResponse.fromJson(Map json) => _$SeerrSonarrServerResponseFromJson(json); @override final SeerrSonarrServer? server; @@ -1649,10 +1619,8 @@ class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SeerrSonarrServerResponseCopyWith<_SeerrSonarrServerResponse> - get copyWith => - __$SeerrSonarrServerResponseCopyWithImpl<_SeerrSonarrServerResponse>( - this, _$identity); + _$SeerrSonarrServerResponseCopyWith<_SeerrSonarrServerResponse> get copyWith => + __$SeerrSonarrServerResponseCopyWithImpl<_SeerrSonarrServerResponse>(this, _$identity); @override Map toJson() { @@ -1668,10 +1636,9 @@ class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { } /// @nodoc -abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> - implements $SeerrSonarrServerResponseCopyWith<$Res> { - factory _$SeerrSonarrServerResponseCopyWith(_SeerrSonarrServerResponse value, - $Res Function(_SeerrSonarrServerResponse) _then) = +abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> implements $SeerrSonarrServerResponseCopyWith<$Res> { + factory _$SeerrSonarrServerResponseCopyWith( + _SeerrSonarrServerResponse value, $Res Function(_SeerrSonarrServerResponse) _then) = __$SeerrSonarrServerResponseCopyWithImpl; @override @useResult @@ -1686,8 +1653,7 @@ abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> } /// @nodoc -class __$SeerrSonarrServerResponseCopyWithImpl<$Res> - implements _$SeerrSonarrServerResponseCopyWith<$Res> { +class __$SeerrSonarrServerResponseCopyWithImpl<$Res> implements _$SeerrSonarrServerResponseCopyWith<$Res> { __$SeerrSonarrServerResponseCopyWithImpl(this._self, this._then); final _SeerrSonarrServerResponse _self; @@ -1770,8 +1736,7 @@ mixin _$SeerrRadarrServer { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRadarrServerCopyWith get copyWith => - _$SeerrRadarrServerCopyWithImpl( - this as SeerrRadarrServer, _$identity); + _$SeerrRadarrServerCopyWithImpl(this as SeerrRadarrServer, _$identity); /// Serializes this SeerrRadarrServer to a JSON map. Map toJson(); @@ -1784,8 +1749,7 @@ mixin _$SeerrRadarrServer { /// @nodoc abstract mixin class $SeerrRadarrServerCopyWith<$Res> { - factory $SeerrRadarrServerCopyWith( - SeerrRadarrServer value, $Res Function(SeerrRadarrServer) _then) = + factory $SeerrRadarrServerCopyWith(SeerrRadarrServer value, $Res Function(SeerrRadarrServer) _then) = _$SeerrRadarrServerCopyWithImpl; @useResult $Res call( @@ -1816,8 +1780,7 @@ abstract mixin class $SeerrRadarrServerCopyWith<$Res> { } /// @nodoc -class _$SeerrRadarrServerCopyWithImpl<$Res> - implements $SeerrRadarrServerCopyWith<$Res> { +class _$SeerrRadarrServerCopyWithImpl<$Res> implements $SeerrRadarrServerCopyWith<$Res> { _$SeerrRadarrServerCopyWithImpl(this._self, this._then); final SeerrRadarrServer _self; @@ -2286,8 +2249,7 @@ class _SeerrRadarrServer implements SeerrRadarrServer { this.tags, this.rootFolders, this.activeTags}); - factory _SeerrRadarrServer.fromJson(Map json) => - _$SeerrRadarrServerFromJson(json); + factory _SeerrRadarrServer.fromJson(Map json) => _$SeerrRadarrServerFromJson(json); @override final int? id; @@ -2360,10 +2322,8 @@ class _SeerrRadarrServer implements SeerrRadarrServer { } /// @nodoc -abstract mixin class _$SeerrRadarrServerCopyWith<$Res> - implements $SeerrRadarrServerCopyWith<$Res> { - factory _$SeerrRadarrServerCopyWith( - _SeerrRadarrServer value, $Res Function(_SeerrRadarrServer) _then) = +abstract mixin class _$SeerrRadarrServerCopyWith<$Res> implements $SeerrRadarrServerCopyWith<$Res> { + factory _$SeerrRadarrServerCopyWith(_SeerrRadarrServer value, $Res Function(_SeerrRadarrServer) _then) = __$SeerrRadarrServerCopyWithImpl; @override @useResult @@ -2395,8 +2355,7 @@ abstract mixin class _$SeerrRadarrServerCopyWith<$Res> } /// @nodoc -class __$SeerrRadarrServerCopyWithImpl<$Res> - implements _$SeerrRadarrServerCopyWith<$Res> { +class __$SeerrRadarrServerCopyWithImpl<$Res> implements _$SeerrRadarrServerCopyWith<$Res> { __$SeerrRadarrServerCopyWithImpl(this._self, this._then); final _SeerrRadarrServer _self; @@ -2545,8 +2504,7 @@ mixin _$SeerrRadarrServerResponse { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRadarrServerResponseCopyWith get copyWith => - _$SeerrRadarrServerResponseCopyWithImpl( - this as SeerrRadarrServerResponse, _$identity); + _$SeerrRadarrServerResponseCopyWithImpl(this as SeerrRadarrServerResponse, _$identity); /// Serializes this SeerrRadarrServerResponse to a JSON map. Map toJson(); @@ -2559,8 +2517,8 @@ mixin _$SeerrRadarrServerResponse { /// @nodoc abstract mixin class $SeerrRadarrServerResponseCopyWith<$Res> { - factory $SeerrRadarrServerResponseCopyWith(SeerrRadarrServerResponse value, - $Res Function(SeerrRadarrServerResponse) _then) = + factory $SeerrRadarrServerResponseCopyWith( + SeerrRadarrServerResponse value, $Res Function(SeerrRadarrServerResponse) _then) = _$SeerrRadarrServerResponseCopyWithImpl; @useResult $Res call( @@ -2573,8 +2531,7 @@ abstract mixin class $SeerrRadarrServerResponseCopyWith<$Res> { } /// @nodoc -class _$SeerrRadarrServerResponseCopyWithImpl<$Res> - implements $SeerrRadarrServerResponseCopyWith<$Res> { +class _$SeerrRadarrServerResponseCopyWithImpl<$Res> implements $SeerrRadarrServerResponseCopyWith<$Res> { _$SeerrRadarrServerResponseCopyWithImpl(this._self, this._then); final SeerrRadarrServerResponse _self; @@ -2718,10 +2675,7 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult maybeWhen( - TResult Function( - SeerrRadarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrRadarrServer? server, List? profiles, List? rootFolders, List? tags)? $default, { required TResult orElse(), @@ -2729,8 +2683,7 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { final _that = this; switch (_that) { case _SeerrRadarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return orElse(); } @@ -2751,18 +2704,14 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult when( - TResult Function( - SeerrRadarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrRadarrServer? server, List? profiles, List? rootFolders, List? tags) $default, ) { final _that = this; switch (_that) { case _SeerrRadarrServerResponse(): - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: throw StateError('Unexpected subclass'); } @@ -2782,18 +2731,14 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - SeerrRadarrServer? server, - List? profiles, - List? rootFolders, - List? tags)? + TResult? Function(SeerrRadarrServer? server, List? profiles, + List? rootFolders, List? tags)? $default, ) { final _that = this; switch (_that) { case _SeerrRadarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return null; } @@ -2803,10 +2748,8 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { /// @nodoc @JsonSerializable() class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { - const _SeerrRadarrServerResponse( - {this.server, this.profiles, this.rootFolders, this.tags}); - factory _SeerrRadarrServerResponse.fromJson(Map json) => - _$SeerrRadarrServerResponseFromJson(json); + const _SeerrRadarrServerResponse({this.server, this.profiles, this.rootFolders, this.tags}); + factory _SeerrRadarrServerResponse.fromJson(Map json) => _$SeerrRadarrServerResponseFromJson(json); @override final SeerrRadarrServer? server; @@ -2822,10 +2765,8 @@ class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SeerrRadarrServerResponseCopyWith<_SeerrRadarrServerResponse> - get copyWith => - __$SeerrRadarrServerResponseCopyWithImpl<_SeerrRadarrServerResponse>( - this, _$identity); + _$SeerrRadarrServerResponseCopyWith<_SeerrRadarrServerResponse> get copyWith => + __$SeerrRadarrServerResponseCopyWithImpl<_SeerrRadarrServerResponse>(this, _$identity); @override Map toJson() { @@ -2841,10 +2782,9 @@ class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { } /// @nodoc -abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> - implements $SeerrRadarrServerResponseCopyWith<$Res> { - factory _$SeerrRadarrServerResponseCopyWith(_SeerrRadarrServerResponse value, - $Res Function(_SeerrRadarrServerResponse) _then) = +abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> implements $SeerrRadarrServerResponseCopyWith<$Res> { + factory _$SeerrRadarrServerResponseCopyWith( + _SeerrRadarrServerResponse value, $Res Function(_SeerrRadarrServerResponse) _then) = __$SeerrRadarrServerResponseCopyWithImpl; @override @useResult @@ -2859,8 +2799,7 @@ abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> } /// @nodoc -class __$SeerrRadarrServerResponseCopyWithImpl<$Res> - implements _$SeerrRadarrServerResponseCopyWith<$Res> { +class __$SeerrRadarrServerResponseCopyWithImpl<$Res> implements _$SeerrRadarrServerResponseCopyWith<$Res> { __$SeerrRadarrServerResponseCopyWithImpl(this._self, this._then); final _SeerrRadarrServerResponse _self; @@ -2921,8 +2860,7 @@ mixin _$SeerrServiceProfile { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrServiceProfileCopyWith get copyWith => - _$SeerrServiceProfileCopyWithImpl( - this as SeerrServiceProfile, _$identity); + _$SeerrServiceProfileCopyWithImpl(this as SeerrServiceProfile, _$identity); /// Serializes this SeerrServiceProfile to a JSON map. Map toJson(); @@ -2935,16 +2873,14 @@ mixin _$SeerrServiceProfile { /// @nodoc abstract mixin class $SeerrServiceProfileCopyWith<$Res> { - factory $SeerrServiceProfileCopyWith( - SeerrServiceProfile value, $Res Function(SeerrServiceProfile) _then) = + factory $SeerrServiceProfileCopyWith(SeerrServiceProfile value, $Res Function(SeerrServiceProfile) _then) = _$SeerrServiceProfileCopyWithImpl; @useResult $Res call({int? id, String? name}); } /// @nodoc -class _$SeerrServiceProfileCopyWithImpl<$Res> - implements $SeerrServiceProfileCopyWith<$Res> { +class _$SeerrServiceProfileCopyWithImpl<$Res> implements $SeerrServiceProfileCopyWith<$Res> { _$SeerrServiceProfileCopyWithImpl(this._self, this._then); final SeerrServiceProfile _self; @@ -3132,8 +3068,7 @@ extension SeerrServiceProfilePatterns on SeerrServiceProfile { @JsonSerializable() class _SeerrServiceProfile implements SeerrServiceProfile { const _SeerrServiceProfile({this.id, this.name}); - factory _SeerrServiceProfile.fromJson(Map json) => - _$SeerrServiceProfileFromJson(json); + factory _SeerrServiceProfile.fromJson(Map json) => _$SeerrServiceProfileFromJson(json); @override final int? id; @@ -3146,8 +3081,7 @@ class _SeerrServiceProfile implements SeerrServiceProfile { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SeerrServiceProfileCopyWith<_SeerrServiceProfile> get copyWith => - __$SeerrServiceProfileCopyWithImpl<_SeerrServiceProfile>( - this, _$identity); + __$SeerrServiceProfileCopyWithImpl<_SeerrServiceProfile>(this, _$identity); @override Map toJson() { @@ -3163,10 +3097,8 @@ class _SeerrServiceProfile implements SeerrServiceProfile { } /// @nodoc -abstract mixin class _$SeerrServiceProfileCopyWith<$Res> - implements $SeerrServiceProfileCopyWith<$Res> { - factory _$SeerrServiceProfileCopyWith(_SeerrServiceProfile value, - $Res Function(_SeerrServiceProfile) _then) = +abstract mixin class _$SeerrServiceProfileCopyWith<$Res> implements $SeerrServiceProfileCopyWith<$Res> { + factory _$SeerrServiceProfileCopyWith(_SeerrServiceProfile value, $Res Function(_SeerrServiceProfile) _then) = __$SeerrServiceProfileCopyWithImpl; @override @useResult @@ -3174,8 +3106,7 @@ abstract mixin class _$SeerrServiceProfileCopyWith<$Res> } /// @nodoc -class __$SeerrServiceProfileCopyWithImpl<$Res> - implements _$SeerrServiceProfileCopyWith<$Res> { +class __$SeerrServiceProfileCopyWithImpl<$Res> implements _$SeerrServiceProfileCopyWith<$Res> { __$SeerrServiceProfileCopyWithImpl(this._self, this._then); final _SeerrServiceProfile _self; @@ -3212,8 +3143,7 @@ mixin _$SeerrServiceTag { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrServiceTagCopyWith get copyWith => - _$SeerrServiceTagCopyWithImpl( - this as SeerrServiceTag, _$identity); + _$SeerrServiceTagCopyWithImpl(this as SeerrServiceTag, _$identity); /// Serializes this SeerrServiceTag to a JSON map. Map toJson(); @@ -3226,16 +3156,14 @@ mixin _$SeerrServiceTag { /// @nodoc abstract mixin class $SeerrServiceTagCopyWith<$Res> { - factory $SeerrServiceTagCopyWith( - SeerrServiceTag value, $Res Function(SeerrServiceTag) _then) = + factory $SeerrServiceTagCopyWith(SeerrServiceTag value, $Res Function(SeerrServiceTag) _then) = _$SeerrServiceTagCopyWithImpl; @useResult $Res call({int? id, String? label}); } /// @nodoc -class _$SeerrServiceTagCopyWithImpl<$Res> - implements $SeerrServiceTagCopyWith<$Res> { +class _$SeerrServiceTagCopyWithImpl<$Res> implements $SeerrServiceTagCopyWith<$Res> { _$SeerrServiceTagCopyWithImpl(this._self, this._then); final SeerrServiceTag _self; @@ -3423,8 +3351,7 @@ extension SeerrServiceTagPatterns on SeerrServiceTag { @JsonSerializable() class _SeerrServiceTag implements SeerrServiceTag { const _SeerrServiceTag({this.id, this.label}); - factory _SeerrServiceTag.fromJson(Map json) => - _$SeerrServiceTagFromJson(json); + factory _SeerrServiceTag.fromJson(Map json) => _$SeerrServiceTagFromJson(json); @override final int? id; @@ -3453,10 +3380,8 @@ class _SeerrServiceTag implements SeerrServiceTag { } /// @nodoc -abstract mixin class _$SeerrServiceTagCopyWith<$Res> - implements $SeerrServiceTagCopyWith<$Res> { - factory _$SeerrServiceTagCopyWith( - _SeerrServiceTag value, $Res Function(_SeerrServiceTag) _then) = +abstract mixin class _$SeerrServiceTagCopyWith<$Res> implements $SeerrServiceTagCopyWith<$Res> { + factory _$SeerrServiceTagCopyWith(_SeerrServiceTag value, $Res Function(_SeerrServiceTag) _then) = __$SeerrServiceTagCopyWithImpl; @override @useResult @@ -3464,8 +3389,7 @@ abstract mixin class _$SeerrServiceTagCopyWith<$Res> } /// @nodoc -class __$SeerrServiceTagCopyWithImpl<$Res> - implements _$SeerrServiceTagCopyWith<$Res> { +class __$SeerrServiceTagCopyWithImpl<$Res> implements _$SeerrServiceTagCopyWith<$Res> { __$SeerrServiceTagCopyWithImpl(this._self, this._then); final _SeerrServiceTag _self; @@ -3503,8 +3427,7 @@ mixin _$SeerrRootFolder { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRootFolderCopyWith get copyWith => - _$SeerrRootFolderCopyWithImpl( - this as SeerrRootFolder, _$identity); + _$SeerrRootFolderCopyWithImpl(this as SeerrRootFolder, _$identity); /// Serializes this SeerrRootFolder to a JSON map. Map toJson(); @@ -3517,16 +3440,14 @@ mixin _$SeerrRootFolder { /// @nodoc abstract mixin class $SeerrRootFolderCopyWith<$Res> { - factory $SeerrRootFolderCopyWith( - SeerrRootFolder value, $Res Function(SeerrRootFolder) _then) = + factory $SeerrRootFolderCopyWith(SeerrRootFolder value, $Res Function(SeerrRootFolder) _then) = _$SeerrRootFolderCopyWithImpl; @useResult $Res call({int? id, int? freeSpace, String? path}); } /// @nodoc -class _$SeerrRootFolderCopyWithImpl<$Res> - implements $SeerrRootFolderCopyWith<$Res> { +class _$SeerrRootFolderCopyWithImpl<$Res> implements $SeerrRootFolderCopyWith<$Res> { _$SeerrRootFolderCopyWithImpl(this._self, this._then); final SeerrRootFolder _self; @@ -3719,8 +3640,7 @@ extension SeerrRootFolderPatterns on SeerrRootFolder { @JsonSerializable() class _SeerrRootFolder implements SeerrRootFolder { const _SeerrRootFolder({this.id, this.freeSpace, this.path}); - factory _SeerrRootFolder.fromJson(Map json) => - _$SeerrRootFolderFromJson(json); + factory _SeerrRootFolder.fromJson(Map json) => _$SeerrRootFolderFromJson(json); @override final int? id; @@ -3751,10 +3671,8 @@ class _SeerrRootFolder implements SeerrRootFolder { } /// @nodoc -abstract mixin class _$SeerrRootFolderCopyWith<$Res> - implements $SeerrRootFolderCopyWith<$Res> { - factory _$SeerrRootFolderCopyWith( - _SeerrRootFolder value, $Res Function(_SeerrRootFolder) _then) = +abstract mixin class _$SeerrRootFolderCopyWith<$Res> implements $SeerrRootFolderCopyWith<$Res> { + factory _$SeerrRootFolderCopyWith(_SeerrRootFolder value, $Res Function(_SeerrRootFolder) _then) = __$SeerrRootFolderCopyWithImpl; @override @useResult @@ -3762,8 +3680,7 @@ abstract mixin class _$SeerrRootFolderCopyWith<$Res> } /// @nodoc -class __$SeerrRootFolderCopyWithImpl<$Res> - implements _$SeerrRootFolderCopyWith<$Res> { +class __$SeerrRootFolderCopyWithImpl<$Res> implements _$SeerrRootFolderCopyWith<$Res> { __$SeerrRootFolderCopyWithImpl(this._self, this._then); final _SeerrRootFolder _self; @@ -3814,8 +3731,7 @@ mixin _$SeerrMediaInfo { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrMediaInfoCopyWith get copyWith => - _$SeerrMediaInfoCopyWithImpl( - this as SeerrMediaInfo, _$identity); + _$SeerrMediaInfoCopyWithImpl(this as SeerrMediaInfo, _$identity); /// Serializes this SeerrMediaInfo to a JSON map. Map toJson(); @@ -3828,8 +3744,7 @@ mixin _$SeerrMediaInfo { /// @nodoc abstract mixin class $SeerrMediaInfoCopyWith<$Res> { - factory $SeerrMediaInfoCopyWith( - SeerrMediaInfo value, $Res Function(SeerrMediaInfo) _then) = + factory $SeerrMediaInfoCopyWith(SeerrMediaInfo value, $Res Function(SeerrMediaInfo) _then) = _$SeerrMediaInfoCopyWithImpl; @useResult $Res call( @@ -3847,8 +3762,7 @@ abstract mixin class $SeerrMediaInfoCopyWith<$Res> { } /// @nodoc -class _$SeerrMediaInfoCopyWithImpl<$Res> - implements $SeerrMediaInfoCopyWith<$Res> { +class _$SeerrMediaInfoCopyWithImpl<$Res> implements $SeerrMediaInfoCopyWith<$Res> { _$SeerrMediaInfoCopyWithImpl(this._self, this._then); final SeerrMediaInfo _self; @@ -4166,8 +4080,7 @@ class _SeerrMediaInfo extends SeerrMediaInfo { _downloadStatus = downloadStatus, _downloadStatus4k = downloadStatus4k, super._(); - factory _SeerrMediaInfo.fromJson(Map json) => - _$SeerrMediaInfoFromJson(json); + factory _SeerrMediaInfo.fromJson(Map json) => _$SeerrMediaInfoFromJson(json); @override final int? id; @@ -4218,8 +4131,7 @@ class _SeerrMediaInfo extends SeerrMediaInfo { List? get downloadStatus4k { final value = _downloadStatus4k; if (value == null) return null; - if (_downloadStatus4k is EqualUnmodifiableListView) - return _downloadStatus4k; + if (_downloadStatus4k is EqualUnmodifiableListView) return _downloadStatus4k; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -4246,10 +4158,8 @@ class _SeerrMediaInfo extends SeerrMediaInfo { } /// @nodoc -abstract mixin class _$SeerrMediaInfoCopyWith<$Res> - implements $SeerrMediaInfoCopyWith<$Res> { - factory _$SeerrMediaInfoCopyWith( - _SeerrMediaInfo value, $Res Function(_SeerrMediaInfo) _then) = +abstract mixin class _$SeerrMediaInfoCopyWith<$Res> implements $SeerrMediaInfoCopyWith<$Res> { + factory _$SeerrMediaInfoCopyWith(_SeerrMediaInfo value, $Res Function(_SeerrMediaInfo) _then) = __$SeerrMediaInfoCopyWithImpl; @override @useResult @@ -4268,8 +4178,7 @@ abstract mixin class _$SeerrMediaInfoCopyWith<$Res> } /// @nodoc -class __$SeerrMediaInfoCopyWithImpl<$Res> - implements _$SeerrMediaInfoCopyWith<$Res> { +class __$SeerrMediaInfoCopyWithImpl<$Res> implements _$SeerrMediaInfoCopyWith<$Res> { __$SeerrMediaInfoCopyWithImpl(this._self, this._then); final _SeerrMediaInfo _self; @@ -4363,8 +4272,7 @@ mixin _$SeerrFilterModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrFilterModelCopyWith get copyWith => - _$SeerrFilterModelCopyWithImpl( - this as SeerrFilterModel, _$identity); + _$SeerrFilterModelCopyWithImpl(this as SeerrFilterModel, _$identity); @override String toString() { @@ -4374,8 +4282,7 @@ mixin _$SeerrFilterModel { /// @nodoc abstract mixin class $SeerrFilterModelCopyWith<$Res> { - factory $SeerrFilterModelCopyWith( - SeerrFilterModel value, $Res Function(SeerrFilterModel) _then) = + factory $SeerrFilterModelCopyWith(SeerrFilterModel value, $Res Function(SeerrFilterModel) _then) = _$SeerrFilterModelCopyWithImpl; @useResult $Res call( @@ -4396,8 +4303,7 @@ abstract mixin class $SeerrFilterModelCopyWith<$Res> { } /// @nodoc -class _$SeerrFilterModelCopyWithImpl<$Res> - implements $SeerrFilterModelCopyWith<$Res> { +class _$SeerrFilterModelCopyWithImpl<$Res> implements $SeerrFilterModelCopyWith<$Res> { _$SeerrFilterModelCopyWithImpl(this._self, this._then); final SeerrFilterModel _self; @@ -4817,10 +4723,8 @@ class _SeerrFilterModel implements SeerrFilterModel { } /// @nodoc -abstract mixin class _$SeerrFilterModelCopyWith<$Res> - implements $SeerrFilterModelCopyWith<$Res> { - factory _$SeerrFilterModelCopyWith( - _SeerrFilterModel value, $Res Function(_SeerrFilterModel) _then) = +abstract mixin class _$SeerrFilterModelCopyWith<$Res> implements $SeerrFilterModelCopyWith<$Res> { + factory _$SeerrFilterModelCopyWith(_SeerrFilterModel value, $Res Function(_SeerrFilterModel) _then) = __$SeerrFilterModelCopyWithImpl; @override @useResult @@ -4842,8 +4746,7 @@ abstract mixin class _$SeerrFilterModelCopyWith<$Res> } /// @nodoc -class __$SeerrFilterModelCopyWithImpl<$Res> - implements _$SeerrFilterModelCopyWith<$Res> { +class __$SeerrFilterModelCopyWithImpl<$Res> implements _$SeerrFilterModelCopyWith<$Res> { __$SeerrFilterModelCopyWithImpl(this._self, this._then); final _SeerrFilterModel _self; diff --git a/lib/src/application_menu.g.dart b/lib/src/application_menu.g.dart index 1bdce4bd9..2ba36f41e 100644 --- a/lib/src/application_menu.g.dart +++ b/lib/src/application_menu.g.dart @@ -18,7 +18,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -47,11 +46,16 @@ abstract class ApplicationMenu { void newInstance(); - static void setUp(ApplicationMenu? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + static void setUp( + ApplicationMenu? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.openNewWindow$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.openNewWindow$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -62,7 +66,7 @@ abstract class ApplicationMenu { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -70,7 +74,8 @@ abstract class ApplicationMenu { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.newInstance$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.newInstance$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -81,7 +86,7 @@ abstract class ApplicationMenu { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/src/battery_optimization_pigeon.g.dart b/lib/src/battery_optimization_pigeon.g.dart index de26360b8..21144f2cd 100644 --- a/lib/src/battery_optimization_pigeon.g.dart +++ b/lib/src/battery_optimization_pigeon.g.dart @@ -15,7 +15,6 @@ PlatformException _createConnectionError(String channelName) { ); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -50,17 +49,16 @@ class BatteryOptimizationPigeon { final String pigeonVar_messageChannelSuffix; - /// Returns whether the app is currently *ignored* from battery optimizations. Future isIgnoringBatteryOptimizations() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -79,17 +77,16 @@ class BatteryOptimizationPigeon { } } - /// Opens the battery-optimization/settings screen for this app (Android). Future openBatteryOptimizationSettings() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/directory_bookmark.g.dart b/lib/src/directory_bookmark.g.dart index 2695e751a..c4349ee5b 100644 --- a/lib/src/directory_bookmark.g.dart +++ b/lib/src/directory_bookmark.g.dart @@ -15,7 +15,6 @@ PlatformException _createConnectionError(String channelName) { ); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -51,15 +50,15 @@ class DirectoryBookmark { final String pigeonVar_messageChannelSuffix; Future saveDirectory(String key, String path) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.saveDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.saveDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key, path]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -74,15 +73,15 @@ class DirectoryBookmark { } Future resolveDirectory(String key) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.resolveDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.resolveDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -97,15 +96,15 @@ class DirectoryBookmark { } Future closeDirectory(String key) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.closeDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.closeDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/player_settings_helper.g.dart b/lib/src/player_settings_helper.g.dart index 2b44241d0..7940ebee4 100644 --- a/lib/src/player_settings_helper.g.dart +++ b/lib/src/player_settings_helper.g.dart @@ -14,21 +14,19 @@ PlatformException _createConnectionError(String channelName) { message: 'Unable to establish connection on channel: "$channelName".', ); } + bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { - return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + return a.length == b.length && a.indexed.every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && + a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && _deepEquals(entry.value, b[entry.key])); } return a == b; } - enum Screensaver { disabled, dvd, @@ -125,7 +123,8 @@ class PlayerSettings { } Object encode() { - return _toList(); } + return _toList(); + } static PlayerSettings decode(Object result) { result as List; @@ -157,11 +156,9 @@ class PlayerSettings { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -169,25 +166,25 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is Screensaver) { + } else if (value is Screensaver) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is VideoPlayerFit) { + } else if (value is VideoPlayerFit) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is PlayerOrientations) { + } else if (value is PlayerOrientations) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is AutoNextType) { + } else if (value is AutoNextType) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is SegmentType) { + } else if (value is SegmentType) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is SegmentSkip) { + } else if (value is SegmentSkip) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is PlayerSettings) { + } else if (value is PlayerSettings) { buffer.putUint8(135); writeValue(buffer, value.encode()); } else { @@ -198,25 +195,25 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : Screensaver.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; return value == null ? null : VideoPlayerFit.values[value]; - case 131: + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : PlayerOrientations.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : AutoNextType.values[value]; - case 133: + case 133: final int? value = readValue(buffer) as int?; return value == null ? null : SegmentType.values[value]; - case 134: + case 134: final int? value = readValue(buffer) as int?; return value == null ? null : SegmentSkip.values[value]; - case 135: + case 135: return PlayerSettings.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -238,15 +235,15 @@ class PlayerSettingsPigeon { final String pigeonVar_messageChannelSuffix; Future sendPlayerSettings(PlayerSettings playerSettings) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.PlayerSettingsPigeon.sendPlayerSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.PlayerSettingsPigeon.sendPlayerSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([playerSettings]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/translations_pigeon.g.dart b/lib/src/translations_pigeon.g.dart index a68570968..82de1f927 100644 --- a/lib/src/translations_pigeon.g.dart +++ b/lib/src/translations_pigeon.g.dart @@ -18,7 +18,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -73,11 +72,28 @@ abstract class TranslationsPigeon { String decline(); - static void setUp(TranslationsPigeon? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + String syncPlaySyncingWithGroup(); + + String syncPlayCommandPausing(); + + String syncPlayCommandPlaying(); + + String syncPlayCommandSeeking(); + + String syncPlayCommandStopping(); + + String syncPlayCommandSyncing(); + + static void setUp( + TranslationsPigeon? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.next$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.next$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -88,7 +104,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -96,7 +112,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextVideo$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextVideo$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -107,7 +124,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -115,7 +132,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.close$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.close$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -126,7 +144,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -134,14 +152,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip was null.'); final List args = (message as List?)!; final String? arg_name = (args[0] as String?); assert(arg_name != null, @@ -151,7 +170,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -159,7 +178,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.subtitles$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.subtitles$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -170,7 +190,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -178,7 +198,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.off$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.off$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -189,7 +210,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -197,14 +218,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters was null.'); final List args = (message as List?)!; final int? arg_count = (args[0] as int?); assert(arg_count != null, @@ -214,7 +236,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -222,14 +244,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds was null.'); final List args = (message as List?)!; final int? arg_seconds = (args[0] as int?); assert(arg_seconds != null, @@ -239,7 +262,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -247,14 +270,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes was null.'); final List args = (message as List?)!; final String? arg_time = (args[0] as String?); assert(arg_time != null, @@ -264,7 +288,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -272,14 +296,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt was null.'); final List args = (message as List?)!; final String? arg_time = (args[0] as String?); assert(arg_time != null, @@ -289,7 +314,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -297,7 +322,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannel$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannel$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -308,7 +334,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -316,14 +342,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc was null.'); final List args = (message as List?)!; final String? arg_programName = (args[0] as String?); assert(arg_programName != null, @@ -336,7 +363,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -344,7 +371,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.watch$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.watch$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -355,7 +383,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -363,7 +391,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.now$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.now$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -374,7 +403,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -382,7 +411,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.decline$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.decline$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -393,7 +423,127 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlaySyncingWithGroup(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandPausing(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandPlaying(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandSeeking(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandStopping(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandSyncing(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/src/video_player_helper.g.dart b/lib/src/video_player_helper.g.dart index b717b5ffe..7c70a7112 100644 --- a/lib/src/video_player_helper.g.dart +++ b/lib/src/video_player_helper.g.dart @@ -24,21 +24,19 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { - return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + return a.length == b.length && a.indexed.every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && + a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && _deepEquals(entry.value, b[entry.key])); } return a == b; } - enum PlaybackType { direct, transcoded, @@ -46,6 +44,14 @@ enum PlaybackType { tv, } +enum SyncPlayCommandType { + none, + pause, + unpause, + seek, + stop, +} + enum MediaSegmentType { commercial, preview, @@ -54,6 +60,18 @@ enum MediaSegmentType { outro, } +/// Source of the last playback state change (for SyncPlay: infer user actions from stream). +enum PlaybackChangeSource { + /// No specific source (e.g. periodic update, buffering). + none, + + /// User tapped play/pause/seek on native; Flutter should send SyncPlay if active. + user, + + /// Change was caused by applying a SyncPlay command; do not send again. + syncplay, +} + class SimpleItemModel { SimpleItemModel({ required this.id, @@ -88,7 +106,8 @@ class SimpleItemModel { } Object encode() { - return _toList(); } + return _toList(); + } static SimpleItemModel decode(Object result) { result as List; @@ -116,8 +135,7 @@ class SimpleItemModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MediaInfo { @@ -138,7 +156,8 @@ class MediaInfo { } Object encode() { - return _toList(); } + return _toList(); + } static MediaInfo decode(Object result) { result as List; @@ -162,8 +181,7 @@ class MediaInfo { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PlayableData { @@ -232,7 +250,8 @@ class PlayableData { } Object encode() { - return _toList(); } + return _toList(); + } static PlayableData decode(Object result) { result as List; @@ -268,8 +287,7 @@ class PlayableData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MediaSegment { @@ -298,7 +316,8 @@ class MediaSegment { } Object encode() { - return _toList(); } + return _toList(); + } static MediaSegment decode(Object result) { result as List; @@ -324,8 +343,7 @@ class MediaSegment { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class AudioTrack { @@ -362,7 +380,8 @@ class AudioTrack { } Object encode() { - return _toList(); } + return _toList(); + } static AudioTrack decode(Object result) { result as List; @@ -390,8 +409,7 @@ class AudioTrack { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SubtitleTrack { @@ -428,7 +446,8 @@ class SubtitleTrack { } Object encode() { - return _toList(); } + return _toList(); + } static SubtitleTrack decode(Object result) { result as List; @@ -456,8 +475,7 @@ class SubtitleTrack { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class Chapter { @@ -482,7 +500,8 @@ class Chapter { } Object encode() { - return _toList(); } + return _toList(); + } static Chapter decode(Object result) { result as List; @@ -507,8 +526,7 @@ class Chapter { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class TrickPlayModel { @@ -549,7 +567,8 @@ class TrickPlayModel { } Object encode() { - return _toList(); } + return _toList(); + } static TrickPlayModel decode(Object result) { result as List; @@ -578,8 +597,7 @@ class TrickPlayModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class StartResult { @@ -596,7 +614,8 @@ class StartResult { } Object encode() { - return _toList(); } + return _toList(); + } static StartResult decode(Object result) { result as List; @@ -619,8 +638,7 @@ class StartResult { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PlaybackState { @@ -632,6 +650,7 @@ class PlaybackState { required this.buffering, required this.completed, required this.failed, + this.changeSource, }); int position; @@ -648,6 +667,9 @@ class PlaybackState { bool failed; + /// When set, indicates who caused this state update (for SyncPlay inference). + PlaybackChangeSource? changeSource; + List _toList() { return [ position, @@ -657,11 +679,13 @@ class PlaybackState { buffering, completed, failed, + changeSource, ]; } Object encode() { - return _toList(); } + return _toList(); + } static PlaybackState decode(Object result) { result as List; @@ -673,6 +697,7 @@ class PlaybackState { buffering: result[4]! as bool, completed: result[5]! as bool, failed: result[6]! as bool, + changeSource: result[7] as PlaybackChangeSource?, ); } @@ -690,8 +715,7 @@ class PlaybackState { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SubtitleSettings { @@ -736,7 +760,8 @@ class SubtitleSettings { } Object encode() { - return _toList(); } + return _toList(); + } static SubtitleSettings decode(Object result) { result as List; @@ -766,8 +791,7 @@ class SubtitleSettings { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class TVGuideModel { @@ -796,7 +820,8 @@ class TVGuideModel { } Object encode() { - return _toList(); } + return _toList(); + } static TVGuideModel decode(Object result) { result as List; @@ -822,8 +847,7 @@ class TVGuideModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class GuideChannel { @@ -856,7 +880,8 @@ class GuideChannel { } Object encode() { - return _toList(); } + return _toList(); + } static GuideChannel decode(Object result) { result as List; @@ -883,8 +908,7 @@ class GuideChannel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class GuideProgram { @@ -929,7 +953,8 @@ class GuideProgram { } Object encode() { - return _toList(); } + return _toList(); + } static GuideProgram decode(Object result) { result as List; @@ -959,11 +984,9 @@ class GuideProgram { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -971,54 +994,60 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is PlaybackType) { + } else if (value is PlaybackType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MediaSegmentType) { + } else if (value is SyncPlayCommandType) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is SimpleItemModel) { + } else if (value is MediaSegmentType) { buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is MediaInfo) { + writeValue(buffer, value.index); + } else if (value is PlaybackChangeSource) { buffer.putUint8(132); - writeValue(buffer, value.encode()); - } else if (value is PlayableData) { + writeValue(buffer, value.index); + } else if (value is SimpleItemModel) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is MediaSegment) { + } else if (value is MediaInfo) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is AudioTrack) { + } else if (value is PlayableData) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is SubtitleTrack) { + } else if (value is MediaSegment) { buffer.putUint8(136); writeValue(buffer, value.encode()); - } else if (value is Chapter) { + } else if (value is AudioTrack) { buffer.putUint8(137); writeValue(buffer, value.encode()); - } else if (value is TrickPlayModel) { + } else if (value is SubtitleTrack) { buffer.putUint8(138); writeValue(buffer, value.encode()); - } else if (value is StartResult) { + } else if (value is Chapter) { buffer.putUint8(139); writeValue(buffer, value.encode()); - } else if (value is PlaybackState) { + } else if (value is TrickPlayModel) { buffer.putUint8(140); writeValue(buffer, value.encode()); - } else if (value is SubtitleSettings) { + } else if (value is StartResult) { buffer.putUint8(141); writeValue(buffer, value.encode()); - } else if (value is TVGuideModel) { + } else if (value is PlaybackState) { buffer.putUint8(142); writeValue(buffer, value.encode()); - } else if (value is GuideChannel) { + } else if (value is SubtitleSettings) { buffer.putUint8(143); writeValue(buffer, value.encode()); - } else if (value is GuideProgram) { + } else if (value is TVGuideModel) { buffer.putUint8(144); writeValue(buffer, value.encode()); + } else if (value is GuideChannel) { + buffer.putUint8(145); + writeValue(buffer, value.encode()); + } else if (value is GuideProgram) { + buffer.putUint8(146); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -1027,39 +1056,45 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : PlaybackType.values[value]; - case 130: + case 130: + final int? value = readValue(buffer) as int?; + return value == null ? null : SyncPlayCommandType.values[value]; + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MediaSegmentType.values[value]; - case 131: + case 132: + final int? value = readValue(buffer) as int?; + return value == null ? null : PlaybackChangeSource.values[value]; + case 133: return SimpleItemModel.decode(readValue(buffer)!); - case 132: + case 134: return MediaInfo.decode(readValue(buffer)!); - case 133: + case 135: return PlayableData.decode(readValue(buffer)!); - case 134: + case 136: return MediaSegment.decode(readValue(buffer)!); - case 135: + case 137: return AudioTrack.decode(readValue(buffer)!); - case 136: + case 138: return SubtitleTrack.decode(readValue(buffer)!); - case 137: + case 139: return Chapter.decode(readValue(buffer)!); - case 138: + case 140: return TrickPlayModel.decode(readValue(buffer)!); - case 139: + case 141: return StartResult.decode(readValue(buffer)!); - case 140: + case 142: return PlaybackState.decode(readValue(buffer)!); - case 141: + case 143: return SubtitleSettings.decode(readValue(buffer)!); - case 142: + case 144: return TVGuideModel.decode(readValue(buffer)!); - case 143: + case 145: return GuideChannel.decode(readValue(buffer)!); - case 144: + case 146: return GuideProgram.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1081,15 +1116,15 @@ class NativeVideoActivity { final String pigeonVar_messageChannelSuffix; Future launchActivity() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1109,15 +1144,15 @@ class NativeVideoActivity { } Future disposeActivity() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1132,15 +1167,15 @@ class NativeVideoActivity { } Future isLeanBackEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1174,15 +1209,15 @@ class VideoPlayerApi { final String pigeonVar_messageChannelSuffix; Future sendPlayableModel(PlayableData playableData) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([playableData]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1202,15 +1237,15 @@ class VideoPlayerApi { } Future sendTVGuideModel(TVGuideModel guide) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([guide]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1230,15 +1265,15 @@ class VideoPlayerApi { } Future open(String url, bool play) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, play]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1258,15 +1293,15 @@ class VideoPlayerApi { } Future setLooping(bool looping) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([looping]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1282,15 +1317,15 @@ class VideoPlayerApi { /// Sets the volume, with 0.0 being muted and 1.0 being full volume. Future setVolume(double volume) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([volume]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1306,15 +1341,15 @@ class VideoPlayerApi { /// Sets the playback speed as a multiple of normal speed. Future setPlaybackSpeed(double speed) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([speed]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1329,15 +1364,15 @@ class VideoPlayerApi { } Future play() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1353,15 +1388,15 @@ class VideoPlayerApi { /// Pauses playback if the video is currently playing. Future pause() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1377,15 +1412,15 @@ class VideoPlayerApi { /// Seeks to the given playback position, in milliseconds. Future seekTo(int position) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([position]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1400,15 +1435,15 @@ class VideoPlayerApi { } Future stop() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1423,15 +1458,41 @@ class VideoPlayerApi { } Future setSubtitleSettings(SubtitleSettings settings) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + /// Sets the SyncPlay command state for the native player overlay. + /// [processing] indicates if a SyncPlay command is being processed. + /// [commandType] is the type of command. + Future setSyncPlayCommandState(bool processing, SyncPlayCommandType commandType) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([processing, commandType]); + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1451,18 +1512,23 @@ abstract class VideoPlayerListenerCallback { void onPlaybackStateChanged(PlaybackState state); - static void setUp(VideoPlayerListenerCallback? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + static void setUp( + VideoPlayerListenerCallback? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged was null.'); final List args = (message as List?)!; final PlaybackState? arg_state = (args[0] as PlaybackState?); assert(arg_state != null, @@ -1472,7 +1538,7 @@ abstract class VideoPlayerListenerCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1498,11 +1564,26 @@ abstract class VideoPlayerControlsCallback { Future> fetchProgramsForChannel(String channelId); - static void setUp(VideoPlayerControlsCallback? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + /// User-initiated play action from native player (for SyncPlay integration) + void onUserPlay(); + + /// User-initiated pause action from native player (for SyncPlay integration) + void onUserPause(); + + /// User-initiated seek action from native player (for SyncPlay integration) + /// Position is in milliseconds + void onUserSeek(int positionMs); + + static void setUp( + VideoPlayerControlsCallback? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1513,7 +1594,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1521,7 +1602,8 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1532,7 +1614,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1540,7 +1622,8 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1551,7 +1634,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1559,14 +1642,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); assert(arg_value != null, @@ -1576,7 +1660,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1584,14 +1668,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); assert(arg_value != null, @@ -1601,7 +1686,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1609,14 +1694,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram was null.'); final List args = (message as List?)!; final GuideChannel? arg_selection = (args[0] as GuideChannel?); assert(arg_selection != null, @@ -1626,7 +1712,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1634,14 +1720,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel was null.'); final List args = (message as List?)!; final String? arg_channelId = (args[0] as String?); assert(arg_channelId != null, @@ -1651,7 +1738,73 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + api.onUserPlay(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + api.onUserPause(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null.'); + final List args = (message as List?)!; + final int? arg_positionMs = (args[0] as int?); + assert(arg_positionMs != null, + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null, expected non-null int.'); + try { + api.onUserSeek(arg_positionMs!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/util/application_info.freezed.dart b/lib/util/application_info.freezed.dart index 1aabbb0b6..beda5c207 100644 --- a/lib/util/application_info.freezed.dart +++ b/lib/util/application_info.freezed.dart @@ -113,16 +113,13 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult maybeWhen( - TResult Function(String name, String version, String buildNumber, - TargetPlatform platform)? - $default, { + TResult Function(String name, String version, String buildNumber, TargetPlatform platform)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ApplicationInfo() when $default != null: - return $default( - _that.name, _that.version, _that.buildNumber, _that.platform); + return $default(_that.name, _that.version, _that.buildNumber, _that.platform); case _: return orElse(); } @@ -143,15 +140,12 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult when( - TResult Function(String name, String version, String buildNumber, - TargetPlatform platform) - $default, + TResult Function(String name, String version, String buildNumber, TargetPlatform platform) $default, ) { final _that = this; switch (_that) { case _ApplicationInfo(): - return $default( - _that.name, _that.version, _that.buildNumber, _that.platform); + return $default(_that.name, _that.version, _that.buildNumber, _that.platform); case _: throw StateError('Unexpected subclass'); } @@ -171,15 +165,12 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String name, String version, String buildNumber, - TargetPlatform platform)? - $default, + TResult? Function(String name, String version, String buildNumber, TargetPlatform platform)? $default, ) { final _that = this; switch (_that) { case _ApplicationInfo() when $default != null: - return $default( - _that.name, _that.version, _that.buildNumber, _that.platform); + return $default(_that.name, _that.version, _that.buildNumber, _that.platform); case _: return null; } @@ -189,11 +180,7 @@ extension ApplicationInfoPatterns on ApplicationInfo { /// @nodoc class _ApplicationInfo extends ApplicationInfo { - _ApplicationInfo( - {required this.name, - required this.version, - required this.buildNumber, - required this.platform}) + _ApplicationInfo({required this.name, required this.version, required this.buildNumber, required this.platform}) : super._(); @override diff --git a/lib/util/item_base_model/play_item_helpers.dart b/lib/util/item_base_model/play_item_helpers.dart index 841be08ba..f0d6de48d 100644 --- a/lib/util/item_base_model/play_item_helpers.dart +++ b/lib/util/item_base_model/play_item_helpers.dart @@ -1,15 +1,8 @@ import 'dart:developer'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; - import 'package:async/async.dart'; import 'package:auto_route/auto_route.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:square_progress_indicator/square_progress_indicator.dart'; - import 'package:fladder/models/book_model.dart'; import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/channel_model.dart'; @@ -21,6 +14,7 @@ import 'package:fladder/models/video_stream_model.dart'; import 'package:fladder/providers/api_provider.dart'; import 'package:fladder/providers/book_viewer_provider.dart'; import 'package:fladder/providers/items/book_details_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/routes/auto_router.gr.dart'; import 'package:fladder/screens/book_viewer/book_viewer_screen.dart'; @@ -32,6 +26,13 @@ import 'package:fladder/util/list_extensions.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/util/refresh_state.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:square_progress_indicator/square_progress_indicator.dart'; + +import '../../models/syncplay/syncplay_models.dart'; extension BookBaseModelExtension on BookModel? { Future play( @@ -95,6 +96,8 @@ extension PhotoAlbumExtension on PhotoAlbumModel? { log('Error closing loading dialog: $e'); } if (!op.isCanceled) { + log('unableToPlayMedia [PhotoAlbumModel.play]: ' + 'getChildItems was null for album=${albumModel.id}'); FladderSnack.show(context.localized.unableToPlayMedia, context: context); } return; @@ -154,6 +157,8 @@ extension ChannelModelExtension on ChannelModel? { log('Error closing loading dialog: $e'); } if (!op.isCanceled) { + log('unableToPlayMedia [ChannelModel.play]: ' + 'createPlaybackModel returned null for channel=${this!.id}'); FladderSnack.show(context.localized.unableToPlayMedia, context: context); } return; @@ -198,6 +203,15 @@ extension ItemBaseModelExtensions on ItemBaseModel? { }) async { if (itemModel == null) return; + // When SyncPlay is active, delegate to SyncPlay queue management. + // _startPlayback (triggered by the server's PlayQueue response) + // handles player init and route opening. + final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); + if (isSyncPlayActive) { + await _playSyncPlay(context, itemModel, ref, startPosition: startPosition); + return; + } + await ref.read(videoPlayerProvider.notifier).init(); final op = CancelableOperation.fromFuture(ref.read(playbackModelHelper).createPlaybackModel( @@ -217,6 +231,8 @@ extension ItemBaseModelExtensions on ItemBaseModel? { log('Error closing loading dialog: $e'); } if (!op.isCanceled && !showPlaybackOption) { + log('unableToPlayMedia [ItemBaseModel._default]: ' + 'createPlaybackModel returned null for item=${itemModel.id}'); FladderSnack.show(context.localized.unableToPlayMedia, context: context); } return; @@ -228,6 +244,71 @@ extension ItemBaseModelExtensions on ItemBaseModel? { } } +/// Play item through SyncPlay - sets the queue and lets SyncPlay +/// handle synchronized playback. Mirrors the local playback path by +/// showing the same loader dialog so the user knows the request was +/// accepted while the server distributes the new queue and our own +/// `_startPlayback` runs. +Future _playSyncPlay( + BuildContext context, + ItemBaseModel itemModel, + WidgetRef ref, { + Duration? startPosition, +}) async { + final startPositionTicks = startPosition != null ? secondsToTicks(startPosition.inMilliseconds / 1000) : 0; + + final notifier = ref.read(syncPlayProvider.notifier); + final pending = notifier.awaitNextStartPlayback( + timeout: const Duration(seconds: 20), + ); + final op = CancelableOperation.fromFuture(pending); + + _showLoadingIndicator(context, itemModel, op, autoCloseOnComplete: true); + + final queueAccepted = await notifier.setNewQueue( + itemIds: [itemModel.id], + playingItemPosition: 0, + startPositionTicks: startPositionTicks, + ); + + // setNewQueue is debounced server-side to avoid two participants + // racing the same request. When suppressed there is no PlayQueue + // broadcast and no `_startPlayback`, so awaiting it would always time + // out 20s later with a misleading "unable to play" snack. Cancel the + // pending wait and treat it as a successful no-op (the playback is + // already in flight from another participant or our own previous + // click). + if (!queueAccepted) { + log('SyncPlay: _playSyncPlay short-circuited - setNewQueue debounced ' + 'or rejected for item=${itemModel.id}'); + if (!op.isCanceled) { + await op.cancel(); + } + // Op is cancelled so the auto-close listener on the dialog won't + // fire (CancelableOperation.value never completes after cancel). + // No player route has been pushed yet (no PlayQueue → no + // _startPlayback), so popping the root navigator here safely closes + // just the loader dialog. + if (context.mounted) { + try { + Navigator.of(context, rootNavigator: true).pop(); + } catch (_) {} + } + return; + } + + final ok = await op.valueOrCancellation(false) ?? false; + // Loading dialog auto-closes via _LoadIndicatorCancelable when [op] + // completes; do not pop the root navigator manually here, otherwise we + // may pop the player route that `_startPlayback` pushed on top of the + // dialog. + if (!op.isCanceled && !ok && context.mounted) { + log('unableToPlayMedia [_playSyncPlay]: ' + 'awaitNextStartPlayback returned false for item=${itemModel.id}'); + FladderSnack.show(context.localized.unableToPlayMedia, context: context); + } +} + extension ItemBaseModelsBooleans on List { Future playLibraryItems(BuildContext context, WidgetRef ref, {bool shuffle = false}) async { if (isEmpty) return; @@ -253,6 +334,18 @@ extension ItemBaseModelsBooleans on List { expandedList.shuffle(); } + // If in SyncPlay group, set the queue via SyncPlay + final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); + if (isSyncPlayActive) { + Navigator.of(context, rootNavigator: true).pop(); // Pop loading indicator + await ref.read(syncPlayProvider.notifier).setNewQueue( + itemIds: expandedList.map((e) => e.id).toList(), + playingItemPosition: 0, + startPositionTicks: 0, + ); + return (null, expandedList); + } + PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( context, expandedList.firstOrNull, @@ -272,6 +365,8 @@ extension ItemBaseModelsBooleans on List { log('Error closing loading dialog: $e'); } if (!op.isCanceled) { + log('unableToPlayMedia [playLibraryItems]: ' + 'aggregated playback result was null (items=${length})'); FladderSnack.show(context.localized.unableToPlayMedia, context: context); } return; @@ -280,6 +375,14 @@ extension ItemBaseModelsBooleans on List { final PlaybackModel? model = result.$1; final List expandedList = result.$2; + // SyncPlay path: queue was set via setNewQueue, no local PlaybackModel + if (model == null && expandedList.isNotEmpty) { + if (context.mounted) { + RefreshState.maybeOf(context)?.refresh(); + } + return; + } + if (context.mounted) { await _playVideo(context, ref: ref, queue: expandedList, current: model, cancelOperation: op); if (context.mounted) { @@ -289,19 +392,60 @@ extension ItemBaseModelsBooleans on List { } } -Future _showLoadingIndicator(BuildContext context, ItemBaseModel? item, CancelableOperation op) async { +Future _showLoadingIndicator( + BuildContext context, + ItemBaseModel? item, + CancelableOperation op, { + bool autoCloseOnComplete = false, +}) async { return showDialog( barrierDismissible: false, useRootNavigator: true, context: context, - builder: (context) => _LoadIndicatorCancelable(op: op, item: item), + builder: (context) => _LoadIndicatorCancelable( + op: op, + item: item, + autoCloseOnComplete: autoCloseOnComplete, + ), ); } -class _LoadIndicatorCancelable extends StatelessWidget { +class _LoadIndicatorCancelable extends StatefulWidget { final ItemBaseModel? item; final CancelableOperation op; - const _LoadIndicatorCancelable({required this.op, this.item}); + final bool autoCloseOnComplete; + const _LoadIndicatorCancelable({ + required this.op, + this.item, + this.autoCloseOnComplete = false, + }); + + @override + State<_LoadIndicatorCancelable> createState() => _LoadIndicatorCancelableState(); +} + +class _LoadIndicatorCancelableState extends State<_LoadIndicatorCancelable> { + @override + void initState() { + super.initState(); + if (!widget.autoCloseOnComplete) { + return; + } + // Auto-close as soon as the underlying operation finishes. Used by + // the SyncPlay flow where `_startPlayback` pushes the player route + // on top of this dialog after the server's PlayQueue update; if the + // caller popped the root navigator manually after awaiting the op, + // it would pop the player route instead of this dialog, which would + // minimize the player and surface a spurious "unable to play" snack. + widget.op.value.whenComplete(() { + if (!mounted) { + return; + } + try { + Navigator.of(context, rootNavigator: true).pop(); + } catch (_) {} + }); + } @override Widget build(BuildContext context) { @@ -323,7 +467,7 @@ class _LoadIndicatorCancelable extends StatelessWidget { child: Row( spacing: 16, children: [ - if (item != null) + if (widget.item != null) Flexible( child: Container( decoration: FladderTheme.defaultPosterDecoration, @@ -348,7 +492,7 @@ class _LoadIndicatorCancelable extends StatelessWidget { ), clipBehavior: Clip.hardEdge, child: FladderImage( - image: item!.getPosters?.primary, + image: widget.item!.getPosters?.primary, fit: BoxFit.cover, ), ), @@ -372,9 +516,9 @@ class _LoadIndicatorCancelable extends StatelessWidget { context.localized.loading, style: Theme.of(context).textTheme.titleLarge, ), - if (item != null) ...[ + if (widget.item != null) ...[ Text( - item!.title, + widget.item!.title, style: Theme.of(context).textTheme.bodyMedium, ), ], @@ -389,7 +533,7 @@ class _LoadIndicatorCancelable extends StatelessWidget { tooltip: context.localized.close, onPressed: () { try { - op.cancel(); + widget.op.cancel(); } catch (_) {} Navigator.of(context, rootNavigator: true).pop(); }, @@ -418,6 +562,8 @@ Future _playVideo( } catch (e) { log('Error closing loading dialog: $e'); } + log('unableToPlayMedia [_playVideo]: ' + 'current PlaybackModel was null (queue=${queue?.length ?? 0})'); FladderSnack.show(context.localized.unableToPlayMedia, context: context); } return; diff --git a/lib/util/localization_helper.dart b/lib/util/localization_helper.dart index c34d74408..e5c2438a9 100644 --- a/lib/util/localization_helper.dart +++ b/lib/util/localization_helper.dart @@ -129,4 +129,23 @@ class _TranslationsMessgener extends messenger.TranslationsPigeon { @override String watch() => context.localized.watch; + + // SyncPlay overlay strings + @override + String syncPlaySyncingWithGroup() => context.localized.syncPlaySyncingWithGroup; + + @override + String syncPlayCommandPausing() => context.localized.syncPlayCommandPausing; + + @override + String syncPlayCommandPlaying() => context.localized.syncPlayCommandPlaying; + + @override + String syncPlayCommandSeeking() => context.localized.syncPlayCommandSeeking; + + @override + String syncPlayCommandStopping() => context.localized.syncPlayCommandStopping; + + @override + String syncPlayCommandSyncing() => context.localized.syncPlayCommandSyncing; } diff --git a/lib/widgets/navigation_scaffold/components/destination_model.dart b/lib/widgets/navigation_scaffold/components/destination_model.dart index f5e4255c8..fb27874f4 100644 --- a/lib/widgets/navigation_scaffold/components/destination_model.dart +++ b/lib/widgets/navigation_scaffold/components/destination_model.dart @@ -15,6 +15,9 @@ class DestinationModel { final Widget? badge; final AdaptiveFab? floatingActionButton; + /// Custom FAB widget - takes precedence over floatingActionButton if provided + final Widget? customFab; + DestinationModel({ required this.label, this.icon, @@ -24,8 +27,12 @@ class DestinationModel { this.tooltip, this.badge, this.floatingActionButton, + this.customFab, }); + /// Returns the FAB widget to use - prefers customFab over floatingActionButton.normal + Widget? get fabWidget => customFab ?? floatingActionButton?.normal; + /// Converts this [DestinationModel] to a [NavigationRailDestination] used in a [NavigationRail]. NavigationRailDestination toNavigationRailDestination({EdgeInsets? padding}) { return NavigationRailDestination( diff --git a/lib/widgets/navigation_scaffold/components/floating_player_bar.dart b/lib/widgets/navigation_scaffold/components/floating_player_bar.dart index a9957695c..94d447f47 100644 --- a/lib/widgets/navigation_scaffold/components/floating_player_bar.dart +++ b/lib/widgets/navigation_scaffold/components/floating_player_bar.dart @@ -227,7 +227,7 @@ class _CurrentlyPlayingBarState extends ConsumerState { child: Padding( padding: const EdgeInsets.symmetric(horizontal: 12), child: IconButton.filledTonal( - onPressed: () => ref.read(videoPlayerProvider).playOrPause(), + onPressed: () => ref.read(videoPlayerProvider.notifier).userPlayOrPause(), icon: playbackInfo.playing ? const Icon(Icons.pause_rounded) : const Icon(Icons.play_arrow_rounded), diff --git a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart index 21d40c79e..7d1e02e22 100644 --- a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart +++ b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart @@ -1,10 +1,5 @@ -import 'package:flutter/material.dart'; - import 'package:auto_route/auto_route.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; - import 'package:fladder/models/collection_types.dart'; import 'package:fladder/models/settings/client_settings_model.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; @@ -28,6 +23,10 @@ import 'package:fladder/widgets/shared/custom_tooltip.dart'; import 'package:fladder/widgets/shared/item_actions.dart'; import 'package:fladder/widgets/shared/modal_bottom_sheet.dart'; import 'package:fladder/widgets/shared/simple_overflow_widget.dart'; +import 'package:fladder/widgets/syncplay/syncplay_fab.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; final navBarNode = FocusNode(); @@ -196,7 +195,7 @@ class _SideNavigationRail extends ConsumerState { const EdgeInsets.symmetric(horizontal: 4).copyWith(bottom: expandedSideBar ? 10 : 0), child: AnimatedFadeSize( duration: const Duration(milliseconds: 250), - child: shouldExpand ? actionButton(context).extended : actionButton(context).normal, + child: actionButtonWidget(context, shouldExpand), ), ), ], @@ -439,6 +438,28 @@ class _SideNavigationRail extends ConsumerState { child: const Icon(IconsaxPlusLinear.search_normal_1), ); } + + Widget actionButtonWidget(BuildContext context, bool expanded) { + final destination = (widget.currentIndex >= 0 && widget.currentIndex < widget.destinations.length) + ? widget.destinations[widget.currentIndex] + : null; + + // If there's a custom FAB widget, use it (already includes SyncPlay for dashboard) + if (destination?.customFab != null) { + return destination!.customFab!; + } + + // Otherwise show SyncPlay + action button (same pattern as DashboardFabs) + final fab = actionButton(context); + return Column( + mainAxisSize: MainAxisSize.min, + spacing: 8, + children: [ + const SyncPlayFab(), + expanded ? fab.extended : fab.normal, + ], + ); + } } class _RailTraversalPolicy extends ReadingOrderTraversalPolicy { diff --git a/lib/widgets/navigation_scaffold/navigation_scaffold.dart b/lib/widgets/navigation_scaffold/navigation_scaffold.dart index 0beab3754..6e6bf0857 100644 --- a/lib/widgets/navigation_scaffold/navigation_scaffold.dart +++ b/lib/widgets/navigation_scaffold/navigation_scaffold.dart @@ -133,7 +133,7 @@ class _NavigationScaffoldState extends ConsumerState { resizeToAvoidBottomInset: false, extendBody: true, floatingActionButton: AdaptiveLayout.layoutModeOf(context) == LayoutMode.single && isHomeScreen - ? widget.destinations.elementAtOrNull(currentIndex)?.floatingActionButton?.normal + ? widget.destinations.elementAtOrNull(currentIndex)?.fabWidget : null, drawer: homeRoutes.any((element) => element.name.contains(currentLocation)) ? NestedNavigationDrawer( diff --git a/lib/widgets/shared/back_intent_dpad.dart b/lib/widgets/shared/back_intent_dpad.dart index a6a1a1175..59f6a37b2 100644 --- a/lib/widgets/shared/back_intent_dpad.dart +++ b/lib/widgets/shared/back_intent_dpad.dart @@ -1,11 +1,9 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; -import 'package:flutter/gestures.dart'; - import 'package:auto_route/auto_route.dart'; - import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; import 'package:fladder/util/focus_helper.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; class BackIntentDpad extends StatelessWidget { final Widget child; @@ -34,11 +32,11 @@ class BackIntentDpad extends StatelessWidget { if (event.logicalKey == LogicalKeyboardKey.backspace) { if (isEditableTextFocused()) { return KeyEventResult.ignored; - } else { + } else { context.maybePop(); return KeyEventResult.handled; + } } - } return KeyEventResult.ignored; }, diff --git a/lib/widgets/shared/background_item_image.dart b/lib/widgets/shared/background_item_image.dart index e69de29bb..8b1378917 100644 --- a/lib/widgets/shared/background_item_image.dart +++ b/lib/widgets/shared/background_item_image.dart @@ -0,0 +1 @@ + diff --git a/lib/widgets/syncplay/dashboard_fabs.dart b/lib/widgets/syncplay/dashboard_fabs.dart new file mode 100644 index 000000000..48c114afa --- /dev/null +++ b/lib/widgets/syncplay/dashboard_fabs.dart @@ -0,0 +1,92 @@ +import 'package:flutter/material.dart'; + +import 'package:auto_route/auto_route.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/routes/auto_router.gr.dart'; +import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; +import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; +import 'package:fladder/widgets/syncplay/syncplay_utils.dart'; + +/// Combined FAB for dashboard with search and SyncPlay actions +class DashboardFabs extends ConsumerWidget { + const DashboardFabs({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + final isDualLayout = AdaptiveLayout.of(context).layoutMode == LayoutMode.dual; + + final children = [ + // SyncPlay FAB + _SyncPlayFabButton(isActive: isActive), + // Search FAB + AdaptiveFab( + context: context, + title: context.localized.search, + key: const Key('dashboard_search'), + onPressed: () => context.router.navigate(LibrarySearchRoute()), + child: const Icon(IconsaxPlusLinear.search_normal_1), + ).normal, + ]; + + return isDualLayout + ? Column( + mainAxisSize: MainAxisSize.min, + spacing: 8, + children: children, + ) + : Row( + mainAxisSize: MainAxisSize.min, + spacing: 8, + children: children, + ); + } +} + +class _SyncPlayFabButton extends StatelessWidget { + final bool isActive; + + const _SyncPlayFabButton({required this.isActive}); + + @override + Widget build(BuildContext context) { + return Hero( + tag: 'syncplay_fab', + child: IconButton.filledTonal( + iconSize: 26, + tooltip: context.localized.syncPlay, + onPressed: () => showSyncPlaySheet(context), + style: IconButton.styleFrom( + backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, + ), + icon: Padding( + padding: const EdgeInsets.all(8.0), + child: Stack( + children: [ + Icon( + isActive ? IconsaxPlusBold.people : IconsaxPlusLinear.people, + ), + if (isActive) + Positioned( + right: 0, + bottom: 0, + child: Container( + width: 8, + height: 8, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primary, + shape: BoxShape.circle, + ), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart new file mode 100644 index 000000000..c668e8db4 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -0,0 +1,131 @@ +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +/// Badge widget showing SyncPlay status in the video player +class SyncPlayBadge extends ConsumerWidget { + const SyncPlayBadge({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + + if (!isActive) return const SizedBox.shrink(); + + final groupName = ref.watch(syncPlayGroupNameProvider); + final groupState = ref.watch(syncPlayGroupStateProvider); + final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); + final processingCommand = ref.watch(syncPlayProvider.select((s) => s.processingCommandType)); + final correctionStrategy = ref.watch(syncCorrectionStrategyProvider); + final hasCorrection = correctionStrategy != SyncCorrectionStrategy.none; + + final (icon, color) = groupState.iconAndColor(context); + + return AnimatedContainer( + duration: const Duration(milliseconds: 200), + padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), + decoration: BoxDecoration( + color: (isProcessing || hasCorrection) + ? Theme.of(context).colorScheme.primaryContainer.withValues(alpha: 0.95) + : Theme.of(context).colorScheme.surface.withValues(alpha: 0.85), + borderRadius: BorderRadius.circular(20), + border: Border.all( + color: (isProcessing || hasCorrection) ? Theme.of(context).colorScheme.primary : color.withValues(alpha: 0.5), + width: (isProcessing || hasCorrection) ? 2 : 1, + ), + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + if (isProcessing || hasCorrection) ...[ + SizedBox( + width: 12, + height: 12, + child: CircularProgressIndicator( + strokeWidth: 2, + color: Theme.of(context).colorScheme.primary, + ), + ), + const SizedBox(width: 6), + Text( + isProcessing ? processingCommand.syncPlayProcessingLabel(context) : correctionStrategy.label(context), + style: Theme.of(context).textTheme.labelSmall?.copyWith( + color: Theme.of(context).colorScheme.onPrimaryContainer, + fontWeight: FontWeight.w600, + ), + ), + ] else ...[ + Icon( + IconsaxPlusLinear.people, + size: 14, + color: color, + ), + const SizedBox(width: 6), + Text( + groupName ?? context.localized.syncPlay, + style: Theme.of(context).textTheme.labelSmall?.copyWith( + color: Theme.of(context).colorScheme.onSurface, + ), + ), + const SizedBox(width: 6), + Icon( + icon, + size: 12, + color: color, + ), + ], + ], + ), + ); + } +} + +/// Compact SyncPlay indicator for tight spaces +class SyncPlayIndicator extends ConsumerWidget { + const SyncPlayIndicator({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + + if (!isActive) return const SizedBox.shrink(); + + final groupState = ref.watch(syncPlayGroupStateProvider); + final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); + final correctionStrategy = ref.watch(syncCorrectionStrategyProvider); + final hasCorrection = correctionStrategy != SyncCorrectionStrategy.none; + + final color = groupState.color(context); + + return AnimatedContainer( + duration: const Duration(milliseconds: 200), + padding: const EdgeInsets.all(6), + decoration: BoxDecoration( + color: (isProcessing || hasCorrection) + ? Theme.of(context).colorScheme.primaryContainer + : color.withValues(alpha: 0.2), + shape: BoxShape.circle, + border: + (isProcessing || hasCorrection) ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) : null, + ), + child: (isProcessing || hasCorrection) + ? SizedBox( + width: 16, + height: 16, + child: CircularProgressIndicator( + strokeWidth: 2, + color: Theme.of(context).colorScheme.primary, + ), + ) + : Icon( + IconsaxPlusBold.people, + size: 16, + color: color, + ), + ); + } +} diff --git a/lib/widgets/syncplay/syncplay_extensions.dart b/lib/widgets/syncplay/syncplay_extensions.dart new file mode 100644 index 000000000..648b03b29 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_extensions.dart @@ -0,0 +1,103 @@ +import 'package:flutter/material.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/util/localization_helper.dart'; + +/// Extension on [SyncPlayGroupState] for badge/indicator icon and color. +extension SyncPlayGroupStateExtension on SyncPlayGroupState { + /// Returns (icon, color) for the current group state. + (IconData, Color) iconAndColor(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + SyncPlayGroupState.idle => ( + IconsaxPlusLinear.pause_circle, + scheme.onSurfaceVariant, + ), + SyncPlayGroupState.waiting => ( + IconsaxPlusLinear.timer_1, + scheme.tertiary, + ), + SyncPlayGroupState.paused => ( + IconsaxPlusLinear.pause, + scheme.secondary, + ), + SyncPlayGroupState.playing => ( + IconsaxPlusLinear.play, + scheme.primary, + ), + }; + } + + /// Returns the color only (for compact indicator). + Color color(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + SyncPlayGroupState.idle => scheme.onSurfaceVariant, + SyncPlayGroupState.waiting => scheme.tertiary, + SyncPlayGroupState.paused => scheme.secondary, + SyncPlayGroupState.playing => scheme.primary, + }; + } +} + +/// Extension for localized SyncPlay command processing label (typed +/// against [SyncPlayCommand] instead of raw strings - see AGENTS.md +/// SyncPlay rule 6 about centralizing repeated display logic). +extension SyncPlayCommandLabelExtension on SyncPlayCommand? { + /// Returns the localized "Syncing..." text for this command type. + String syncPlayProcessingLabel(BuildContext context) { + return switch (this) { + SyncPlayCommand.pause => context.localized.syncPlaySyncingPause, + SyncPlayCommand.unpause => context.localized.syncPlaySyncingPlay, + SyncPlayCommand.seek => context.localized.syncPlaySyncingSeek, + SyncPlayCommand.stop => context.localized.syncPlayStopping, + null => context.localized.syncPlaySyncing, + }; + } + + /// Returns the short command label for overlay (e.g. "Pausing"). + String syncPlayCommandOverlayLabel(BuildContext context) { + return switch (this) { + SyncPlayCommand.pause => context.localized.syncPlayCommandPausing, + SyncPlayCommand.unpause => context.localized.syncPlayCommandPlaying, + SyncPlayCommand.seek => context.localized.syncPlayCommandSeeking, + SyncPlayCommand.stop => context.localized.syncPlayCommandStopping, + null => context.localized.syncPlayCommandSyncing, + }; + } + + /// Returns (icon, color) for the command overlay. + (IconData, Color) syncPlayCommandIconAndColor(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + SyncPlayCommand.pause => (IconsaxPlusBold.pause, scheme.secondary), + SyncPlayCommand.unpause => (IconsaxPlusBold.play, scheme.primary), + SyncPlayCommand.seek => (IconsaxPlusBold.forward, scheme.tertiary), + SyncPlayCommand.stop => (IconsaxPlusBold.stop, scheme.error), + null => (IconsaxPlusBold.refresh, scheme.primary), + }; + } +} + +/// Extension for correction strategy UI mapping. +extension SyncCorrectionStrategyExtension on SyncCorrectionStrategy { + /// Returns short label for active correction strategy. + String label(BuildContext context) { + return switch (this) { + SyncCorrectionStrategy.none => context.localized.syncPlaySyncing, + SyncCorrectionStrategy.speedToSync => 'SpeedToSync', + SyncCorrectionStrategy.skipToSync => 'SkipToSync', + }; + } + + /// Returns icon and color for active correction strategy. + (IconData, Color) iconAndColor(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + SyncCorrectionStrategy.none => (IconsaxPlusBold.refresh, scheme.primary), + SyncCorrectionStrategy.speedToSync => (IconsaxPlusBold.flash_1, scheme.primary), + SyncCorrectionStrategy.skipToSync => (IconsaxPlusBold.forward, scheme.tertiary), + }; + } +} diff --git a/lib/widgets/syncplay/syncplay_fab.dart b/lib/widgets/syncplay/syncplay_fab.dart new file mode 100644 index 000000000..9df83c6cc --- /dev/null +++ b/lib/widgets/syncplay/syncplay_fab.dart @@ -0,0 +1,47 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; +import 'package:fladder/widgets/syncplay/syncplay_utils.dart'; + +/// FAB for accessing SyncPlay from the home screen +class SyncPlayFab extends ConsumerWidget { + const SyncPlayFab({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + + return AdaptiveFab( + context: context, + title: context.localized.syncPlay, + heroTag: 'syncplay_fab', + backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, + onPressed: () => showSyncPlaySheet(context), + child: Stack( + children: [ + Icon( + isActive ? IconsaxPlusBold.people : IconsaxPlusLinear.people, + ), + if (isActive) + Positioned( + right: 0, + bottom: 0, + child: Container( + width: 8, + height: 8, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primary, + shape: BoxShape.circle, + ), + ), + ), + ], + ), + ).normal; + } +} diff --git a/lib/widgets/syncplay/syncplay_group_sheet.dart b/lib/widgets/syncplay/syncplay_group_sheet.dart new file mode 100644 index 000000000..4f2ff7425 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_group_sheet.dart @@ -0,0 +1,472 @@ +import 'dart:developer'; + +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/providers/video_player_provider.dart'; +import 'package:fladder/screens/shared/fladder_notification_overlay.dart'; +import 'package:fladder/theme.dart'; +import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; +import 'package:fladder/util/localization_helper.dart'; + +/// Bottom sheet for managing SyncPlay groups +class SyncPlayGroupSheet extends ConsumerStatefulWidget { + const SyncPlayGroupSheet({super.key}); + + @override + ConsumerState createState() => _SyncPlayGroupSheetState(); +} + +class _SyncPlayGroupSheetState extends ConsumerState { + @override + void initState() { + super.initState(); + // Defer so we don't modify a provider during the widget lifecycle (Riverpod disallows this). + WidgetsBinding.instance.addPostFrameCallback((_) { + if (mounted) { + ref.read(syncPlayGroupsProvider.notifier).loadGroups(); + } + }); + } + + Future _createGroup() async { + final name = await _showCreateGroupDialog(); + if (name == null || name.isEmpty) return; + + ref.read(syncPlayGroupsProvider.notifier).setLoading(true); + + final group = await ref.read(syncPlayProvider.notifier).createGroup(name); + if (group != null && mounted) { + FladderSnack.show(context.localized.syncPlayCreatedGroup(group.groupName ?? ''), context: context); + Navigator.of(context).pop(); + } else { + if (mounted) { + ref.read(syncPlayGroupsProvider.notifier).setLoading(false); + FladderSnack.show(context.localized.syncPlayFailedToCreateGroup, context: context); + } + } + } + + Future _showCreateGroupDialog() async { + final controller = TextEditingController(); + return showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text(context.localized.syncPlayCreateGroup), + content: TextField( + controller: controller, + autofocus: true, + decoration: InputDecoration( + labelText: context.localized.syncPlayGroupName, + hintText: context.localized.syncPlayGroupNameHint, + ), + onSubmitted: (value) => Navigator.of(context).pop(value), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(), + child: Text(context.localized.cancel), + ), + FilledButton( + onPressed: () => Navigator.of(context).pop(controller.text), + child: Text(context.localized.create), + ), + ], + ), + ); + } + + Future _joinGroup(GroupInfoDto group) async { + ref.read(syncPlayGroupsProvider.notifier).setLoading(true); + + final success = await ref.read(syncPlayProvider.notifier).joinGroup(group.groupId ?? ''); + if (success && mounted) { + FladderSnack.show(context.localized.syncPlayJoinedGroup(group.groupName ?? ''), context: context); + Navigator.of(context).pop(); + } else { + if (mounted) { + ref.read(syncPlayGroupsProvider.notifier).setLoading(false); + FladderSnack.show(context.localized.syncPlayFailedToJoinGroup, context: context); + } + } + } + + Future _leaveGroup() async { + await ref.read(syncPlayProvider.notifier).leaveGroup(); + if (mounted) { + FladderSnack.show(context.localized.syncPlayLeftGroup, context: context); + Navigator.of(context).pop(); + } + } + + @override + Widget build(BuildContext context) { + final syncPlayState = ref.watch(syncPlayProvider); + final groupsState = ref.watch(syncPlayGroupsProvider); + + return ConstrainedBox( + constraints: BoxConstraints( + maxHeight: MediaQuery.sizeOf(context).height * 0.7, + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 8).add(MediaQuery.paddingOf(context)), + child: Card( + shape: RoundedRectangleBorder( + borderRadius: FladderTheme.largeShape.borderRadius, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + // Drag handle + if (AdaptiveLayout.inputDeviceOf(context) == InputDevice.touch) + Padding( + padding: const EdgeInsets.symmetric(vertical: 16), + child: Container( + height: 8, + width: 35, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.onSurface, + borderRadius: FladderTheme.largeShape.borderRadius, + ), + ), + ) + else + const SizedBox(height: 8), + + // Header + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Row( + children: [ + Icon( + IconsaxPlusLinear.people, + color: Theme.of(context).colorScheme.primary, + ), + const SizedBox(width: 12), + Expanded( + child: Text( + context.localized.syncPlay, + style: Theme.of(context).textTheme.titleLarge, + ), + ), + if (syncPlayState.isInGroup) + TextButton.icon( + onPressed: _leaveGroup, + icon: const Icon(IconsaxPlusLinear.logout), + label: Text(context.localized.leave), + ) + else + IconButton( + onPressed: _createGroup, + icon: const Icon(IconsaxPlusLinear.add), + tooltip: context.localized.create, + ), + ], + ), + ), + + const Divider(), + + // Content + Flexible( + child: _SyncPlaySheetContent( + syncPlayState: syncPlayState, + groupsState: groupsState, + onCreateGroup: _createGroup, + onJoinGroup: _joinGroup, + ), + ), + ], + ), + ), + ), + ); + } +} + +/// Content area of the SyncPlay group sheet (loading, error, empty, list, or active group). +class _SyncPlaySheetContent extends ConsumerWidget { + const _SyncPlaySheetContent({ + required this.syncPlayState, + required this.groupsState, + required this.onCreateGroup, + required this.onJoinGroup, + }); + + final SyncPlayState syncPlayState; + final SyncPlayGroupsState groupsState; + final VoidCallback onCreateGroup; + final void Function(GroupInfoDto) onJoinGroup; + + @override + Widget build(BuildContext context, WidgetRef ref) { + if (syncPlayState.isInGroup) { + return _ActiveGroupView(state: syncPlayState); + } + if (groupsState.isLoading) { + return const Center( + child: Padding( + padding: EdgeInsets.all(32), + child: CircularProgressIndicator(), + ), + ); + } + if (groupsState.error != null) { + return Center( + child: Padding( + padding: const EdgeInsets.all(32), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + IconsaxPlusLinear.warning_2, + size: 48, + color: Theme.of(context).colorScheme.error, + ), + const SizedBox(height: 16), + Text( + context.localized.syncPlayFailedToLoadGroups, + style: Theme.of(context).textTheme.titleMedium, + ), + const SizedBox(height: 8), + TextButton( + onPressed: () => ref.read(syncPlayGroupsProvider.notifier).loadGroups(), + child: Text(context.localized.retry), + ), + ], + ), + ), + ); + } + if (groupsState.groups == null || groupsState.groups!.isEmpty) { + return Center( + child: Padding( + padding: const EdgeInsets.all(32), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + IconsaxPlusLinear.people, + size: 48, + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + const SizedBox(height: 16), + Text( + context.localized.syncPlayNoActiveGroups, + style: Theme.of(context).textTheme.titleMedium, + ), + const SizedBox(height: 8), + Text( + context.localized.syncPlayCreateGroupHint, + style: Theme.of(context).textTheme.bodyMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + const SizedBox(height: 16), + FilledButton.icon( + autofocus: true, + onPressed: onCreateGroup, + icon: const Icon(IconsaxPlusLinear.add), + label: Text(context.localized.syncPlayCreateGroupButton), + ), + ], + ), + ), + ); + } + final groups = groupsState.groups!; + return ListView.builder( + shrinkWrap: true, + itemCount: groups.length, + padding: const EdgeInsets.only(bottom: 16), + itemBuilder: (context, index) { + final group = groups[index]; + return _GroupListTile( + group: group, + onTap: () => onJoinGroup(group), + autofocus: index == 0, + ); + }, + ); + } +} + +class _ActiveGroupView extends ConsumerWidget { + const _ActiveGroupView({required this.state}); + + final SyncPlayState state; + + Future _onResumePlayback(BuildContext context, WidgetRef ref) async { + final ok = await ref.read(syncPlayProvider.notifier).rejoinPlayback(); + if (!context.mounted) { + return; + } + if (!ok) { + log('unableToPlayMedia [_ActiveGroupView._onResumePlayback]: ' + 'rejoinPlayback returned false'); + FladderSnack.show( + context.localized.unableToPlayMedia, + context: context, + ); + return; + } + Navigator.of(context).maybePop(); + } + + @override + Widget build(BuildContext context, WidgetRef ref) { + final hasActivePlayback = state.hasActivePlayback; + final playerRouteOpen = ref.watch(isVideoPlayerRouteOpenProvider); + final showResume = hasActivePlayback && !playerRouteOpen; + + return Padding( + padding: const EdgeInsets.all(16), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + // Group name + Row( + children: [ + Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primaryContainer, + borderRadius: BorderRadius.circular(12), + ), + child: Icon( + IconsaxPlusBold.people, + color: Theme.of(context).colorScheme.onPrimaryContainer, + ), + ), + const SizedBox(width: 16), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + state.groupName ?? context.localized.syncPlayGroupFallback, + style: Theme.of(context).textTheme.titleMedium, + ), + Text( + context.localized.syncPlayParticipants(state.participants.length), + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + ], + ), + ), + ], + ), + + const SizedBox(height: 16), + _StateIndicator(state: state), + if (showResume) ...[ + const SizedBox(height: 16), + FilledButton.icon( + onPressed: () => _onResumePlayback(context, ref), + icon: const Icon(IconsaxPlusBold.play), + label: Text(context.localized.syncPlayResumePlayback), + ), + ], + const SizedBox(height: 16), + Text( + context.localized.syncPlayInstructions, + style: Theme.of(context).textTheme.bodyMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + ], + ), + ); + } +} + +class _StateIndicator extends StatelessWidget { + const _StateIndicator({required this.state}); + + final SyncPlayState state; + + @override + Widget build(BuildContext context) { + final (icon, label, color) = switch (state.groupState) { + SyncPlayGroupState.idle => ( + IconsaxPlusLinear.pause_circle, + context.localized.syncPlayStateIdle, + Theme.of(context).colorScheme.onSurfaceVariant, + ), + SyncPlayGroupState.waiting => ( + IconsaxPlusLinear.timer_1, + context.localized.syncPlayStateWaiting, + Theme.of(context).colorScheme.tertiary, + ), + SyncPlayGroupState.paused => ( + IconsaxPlusLinear.pause, + context.localized.syncPlayStatePaused, + Theme.of(context).colorScheme.secondary, + ), + SyncPlayGroupState.playing => ( + IconsaxPlusLinear.play, + context.localized.syncPlayStatePlaying, + Theme.of(context).colorScheme.primary, + ), + }; + return Container( + padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.1), + borderRadius: BorderRadius.circular(8), + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icon, size: 16, color: color), + const SizedBox(width: 8), + Text( + label, + style: Theme.of(context).textTheme.labelMedium?.copyWith(color: color), + ), + ], + ), + ); + } +} + +class _GroupListTile extends StatelessWidget { + final GroupInfoDto group; + final VoidCallback onTap; + final bool autofocus; + + const _GroupListTile({ + required this.group, + required this.onTap, + this.autofocus = false, + }); + + @override + Widget build(BuildContext context) { + return ListTile( + autofocus: autofocus, + leading: CircleAvatar( + backgroundColor: Theme.of(context).colorScheme.primaryContainer, + child: Icon( + IconsaxPlusLinear.people, + color: Theme.of(context).colorScheme.onPrimaryContainer, + ), + ), + title: Text(group.groupName ?? context.localized.syncPlayUnnamedGroup), + subtitle: Text( + context.localized.syncPlayParticipants(group.participants?.length ?? 0), + style: Theme.of(context).textTheme.bodySmall, + ), + trailing: const Icon(IconsaxPlusLinear.arrow_right_3), + onTap: onTap, + ); + } +} diff --git a/lib/widgets/syncplay/syncplay_utils.dart b/lib/widgets/syncplay/syncplay_utils.dart new file mode 100644 index 000000000..f733f3808 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_utils.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; + +import 'package:fladder/widgets/syncplay/syncplay_group_sheet.dart'; + +/// Show the SyncPlay group management bottom sheet +void showSyncPlaySheet(BuildContext context) { + showModalBottomSheet( + context: context, + isScrollControlled: true, + useSafeArea: true, + backgroundColor: Colors.transparent, + builder: (context) => const SyncPlayGroupSheet(), + ); +} diff --git a/lib/wrappers/media_control_wrapper.dart b/lib/wrappers/media_control_wrapper.dart index 74d36d31a..2d9c9ed97 100644 --- a/lib/wrappers/media_control_wrapper.dart +++ b/lib/wrappers/media_control_wrapper.dart @@ -2,15 +2,8 @@ import 'dart:async'; import 'dart:developer'; import 'dart:io'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; - import 'package:audio_service/audio_service.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:smtc_windows/smtc_windows.dart' if (dart.library.html) 'package:fladder/stubs/web/smtc_web.dart'; -import 'package:wakelock_plus/wakelock_plus.dart'; - import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/channel_model.dart'; import 'package:fladder/models/items/media_streams_model.dart'; @@ -32,6 +25,11 @@ import 'package:fladder/wrappers/players/lib_mdk.dart' import 'package:fladder/wrappers/players/lib_mpv.dart'; import 'package:fladder/wrappers/players/native_player.dart'; import 'package:fladder/wrappers/players/player_states.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:smtc_windows/smtc_windows.dart' if (dart.library.html) 'package:fladder/stubs/web/smtc_web.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerControlsCallback { MediaControlsWrapper({required this.ref}); @@ -47,10 +45,12 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro }; Stream? get stateStream => _player?.stateStream; + PlayerState? get lastState => _player?.lastState; Widget? subtitleWidget(bool showOverlay, {GlobalKey? controlsKey}) => _player?.subtitles(showOverlay, controlsKey: controlsKey); + Widget? videoWidget(Key key, BoxFit fit) => _player?.videoWidget(key, fit); final Ref ref; @@ -137,6 +137,19 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro } } + /// Check if the native Android player is currently active + bool get isNativePlayerActive => _player is NativePlayer; + + /// Update SyncPlay command state for the native player overlay + Future updateSyncPlayCommandState( + bool processing, + SyncPlayCommandType commandType, + ) async { + if (_player is NativePlayer) { + await (_player as NativePlayer).player.setSyncPlayCommandState(processing, commandType); + } + } + Future openPlayer(BuildContext context) async => _player?.open(context); // Update playback play/pause state with single retry @@ -155,7 +168,10 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro } void _subscribePlayer() { - if (Platform.isWindows && !kIsWeb) { + // Guard order matters: `Platform.isWindows` itself reads + // `Platform._operatingSystem` which is unsupported on Flutter Web + // and throws. Always check `kIsWeb` first. + if (!kIsWeb && Platform.isWindows) { smtc = SMTCWindows( config: const SMTCConfig( fastForwardEnabled: true, @@ -431,7 +447,10 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro playbackModel.audioStreams?.firstWhere((element) => element.index == value), this); ref.read(playBackModel.notifier).update((state) => newModel); if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); } } @@ -442,7 +461,10 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro playbackModel.subStreams?.firstWhere((element) => element.index == value), this); ref.read(playBackModel.notifier).update((state) => newModel); if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); } } @@ -479,6 +501,22 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro .toList(); } + // SyncPlay-aware user actions from native player + @override + void onUserPlay() { + ref.read(videoPlayerProvider.notifier).userPlay(); + } + + @override + void onUserPause() { + ref.read(videoPlayerProvider.notifier).userPause(); + } + + @override + void onUserSeek(int positionMs) { + ref.read(videoPlayerProvider.notifier).userSeek(Duration(milliseconds: positionMs)); + } + Future takeScreenshot() { final player = _player; diff --git a/lib/wrappers/players/native_player.dart b/lib/wrappers/players/native_player.dart index 50b24cd9d..3f1e164bb 100644 --- a/lib/wrappers/players/native_player.dart +++ b/lib/wrappers/players/native_player.dart @@ -108,6 +108,8 @@ class NativePlayer extends BasePlayer implements VideoPlayerListenerCallback { position: Duration(milliseconds: state.position), buffer: Duration(milliseconds: state.buffered), buffering: state.buffering, + changeSource: state.changeSource, + updateChangeSource: true, ); _stateController.add(lastState); } diff --git a/lib/wrappers/players/player_states.dart b/lib/wrappers/players/player_states.dart index a73e4f640..4bf3a4049 100644 --- a/lib/wrappers/players/player_states.dart +++ b/lib/wrappers/players/player_states.dart @@ -1,3 +1,5 @@ +import 'package:fladder/src/video_player_helper.g.dart' show PlaybackChangeSource; + class PlayerState { bool playing; bool completed; @@ -8,6 +10,9 @@ class PlayerState { bool buffering; Duration buffer; + /// Set when state came from native player (for SyncPlay: infer user actions from stream). + PlaybackChangeSource? changeSource; + PlayerState({ this.playing = false, this.completed = false, @@ -17,6 +22,7 @@ class PlayerState { this.rate = 1.0, this.buffering = true, this.buffer = Duration.zero, + this.changeSource, }); PlayerState update({ @@ -28,6 +34,8 @@ class PlayerState { double? volume, double? rate, Duration? buffer, + PlaybackChangeSource? changeSource, + bool updateChangeSource = false, }) { if (playing != null) this.playing = playing; if (completed != null) this.completed = completed; @@ -37,6 +45,7 @@ class PlayerState { if (volume != null) this.volume = volume; if (rate != null) this.rate = rate; if (buffer != null) this.buffer = buffer; + if (updateChangeSource) this.changeSource = changeSource; return this; } } diff --git a/pigeons/translations_pigeon.dart b/pigeons/translations_pigeon.dart index 52b136937..4fe214d7f 100644 --- a/pigeons/translations_pigeon.dart +++ b/pigeons/translations_pigeon.dart @@ -34,4 +34,12 @@ abstract class TranslationsPigeon { String watch(); String now(); String decline(); + + // SyncPlay overlay strings + String syncPlaySyncingWithGroup(); + String syncPlayCommandPausing(); + String syncPlayCommandPlaying(); + String syncPlayCommandSeeking(); + String syncPlayCommandStopping(); + String syncPlayCommandSyncing(); } diff --git a/pigeons/video_player.dart b/pigeons/video_player.dart index 693228e86..4840facc1 100644 --- a/pigeons/video_player.dart +++ b/pigeons/video_player.dart @@ -34,6 +34,14 @@ enum PlaybackType { tv, } +enum SyncPlayCommandType { + none, + pause, + unpause, + seek, + stop, +} + class MediaInfo { final PlaybackType playbackType; final String videoInformation; @@ -139,6 +147,7 @@ class SubtitleTrack { class Chapter { final String name; final String url; + // Duration in milliseconds final int time; @@ -155,6 +164,7 @@ class TrickPlayModel { final int tileWidth; final int tileHeight; final int thumbnailCount; + //Duration in milliseconds final int interval; final List images; @@ -178,6 +188,7 @@ class StartResult { abstract class NativeVideoActivity { @async StartResult launchActivity(); + void disposeActivity(); bool isLeanBackEnabled(); @@ -213,13 +224,32 @@ abstract class VideoPlayerApi { void stop(); void setSubtitleSettings(SubtitleSettings settings); + + /// Sets the SyncPlay command state for the native player overlay. + /// [processing] indicates if a SyncPlay command is being processed. + /// [commandType] is the type of command. + void setSyncPlayCommandState(bool processing, SyncPlayCommandType commandType); +} + +/// Source of the last playback state change (for SyncPlay: infer user actions from stream). +enum PlaybackChangeSource { + /// No specific source (e.g. periodic update, buffering). + none, + + /// User tapped play/pause/seek on native; Flutter should send SyncPlay if active. + user, + + /// Change was caused by applying a SyncPlay command; do not send again. + syncplay, } class PlaybackState { //Milliseconds final int position; + //Milliseconds final int buffered; + //Milliseconds final int duration; final bool playing; @@ -227,6 +257,9 @@ class PlaybackState { final bool completed; final bool failed; + /// When set, indicates who caused this state update (for SyncPlay inference). + final PlaybackChangeSource? changeSource; + const PlaybackState({ required this.position, required this.buffered, @@ -235,6 +268,7 @@ class PlaybackState { required this.buffering, required this.completed, required this.failed, + this.changeSource, }); } @@ -320,11 +354,27 @@ abstract class VideoPlayerListenerCallback { @FlutterApi() abstract class VideoPlayerControlsCallback { void loadNextVideo(); + void loadPreviousVideo(); + void onStop(); + void swapSubtitleTrack(int value); + void swapAudioTrack(int value); + void loadProgram(GuideChannel selection); + @async List fetchProgramsForChannel(String channelId); + + /// User-initiated play action from native player (for SyncPlay integration) + void onUserPlay(); + + /// User-initiated pause action from native player (for SyncPlay integration) + void onUserPause(); + + /// User-initiated seek action from native player (for SyncPlay integration) + /// Position is in milliseconds + void onUserSeek(int positionMs); } diff --git a/pubspec.lock b/pubspec.lock index 13b25db37..faf575095 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -2443,7 +2443,7 @@ packages: source: hosted version: "1.0.1" web_socket_channel: - dependency: transitive + dependency: "direct main" description: name: web_socket_channel sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 diff --git a/pubspec.yaml b/pubspec.yaml index 4b964a8f9..7cc422617 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,6 +46,7 @@ dependencies: flutter_cache_manager: ^3.4.1 connectivity_plus: ^7.0.0 punycoder: ^0.2.2 + web_socket_channel: ^3.0.3 # State Management flutter_riverpod: ^2.6.1 diff --git a/test/providers/syncplay/syncplay_correction_test.dart b/test/providers/syncplay/syncplay_correction_test.dart new file mode 100644 index 000000000..a59080aad --- /dev/null +++ b/test/providers/syncplay/syncplay_correction_test.dart @@ -0,0 +1,204 @@ +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/handlers/syncplay_command_handler.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + group('selectSyncCorrectionStrategy', () { + test('selects SpeedToSync in medium drift window', () { + final strategy = selectSyncCorrectionStrategy( + config: const SyncCorrectionConfig(), + state: const SyncCorrectionState( + syncEnabled: true, + activeStrategy: SyncCorrectionStrategy.none, + ), + diffMillis: 500, + hasPlaybackRate: true, + ); + + expect(strategy, SyncCorrectionStrategy.speedToSync); + }); + + test('falls back to SkipToSync when playback rate unsupported', () { + final strategy = selectSyncCorrectionStrategy( + config: const SyncCorrectionConfig(), + state: const SyncCorrectionState( + syncEnabled: true, + activeStrategy: SyncCorrectionStrategy.none, + ), + diffMillis: 500, + hasPlaybackRate: false, + ); + + expect(strategy, SyncCorrectionStrategy.skipToSync); + }); + + test('selects SkipToSync for very large drift', () { + final strategy = selectSyncCorrectionStrategy( + config: const SyncCorrectionConfig(), + state: const SyncCorrectionState( + syncEnabled: true, + activeStrategy: SyncCorrectionStrategy.none, + ), + diffMillis: 3500, + hasPlaybackRate: true, + ); + + expect(strategy, SyncCorrectionStrategy.skipToSync); + }); + }); + + group('SyncPlayState helpers', () { + test('hasActivePlayback false when no playing item', () { + final state = SyncPlayState(isInGroup: true); + expect(state.hasActivePlayback, isFalse); + }); + + test('hasActivePlayback true with playing item and non-idle state', + () { + final state = SyncPlayState( + isInGroup: true, + playingItemId: 'item-1', + groupState: SyncPlayGroupState.playing, + ); + expect(state.hasActivePlayback, isTrue); + }); + + test('hasActivePlayback false when group state is idle', () { + final state = SyncPlayState( + isInGroup: true, + playingItemId: 'item-1', + ); + expect(state.hasActivePlayback, isFalse); + }); + + test('isInLocalOnlyMode mirrors localOnlyOperationCount', () { + expect(SyncPlayState().isInLocalOnlyMode, isFalse); + expect( + SyncPlayState(localOnlyOperationCount: 1).isInLocalOnlyMode, + isTrue, + ); + expect( + SyncPlayState(localOnlyOperationCount: 3).isInLocalOnlyMode, + isTrue, + ); + }); + }); + + group('SyncPlayCommandHandler', () { + test('ignores duplicate command', () async { + var pauseCalls = 0; + final handler = SyncPlayCommandHandler( + timeSync: () => null, + onStateUpdate: (_) {}, + ) + ..onPause = () async { + pauseCalls++; + } + ..getPositionTicks = () => 0; + + final now = DateTime.now().toUtc().toIso8601String(); + final commandData = { + 'Command': 'Pause', + 'When': now, + 'PositionTicks': 0, + 'PlaylistItemId': 'playlist-item-1', + }; + + handler.handleCommand(commandData, SyncPlayState()); + handler.handleCommand(commandData, SyncPlayState()); + + expect(pauseCalls, 1); + }); + + test('executes Unpause as seek then play', () async { + final order = []; + final handler = SyncPlayCommandHandler( + timeSync: () => null, + onStateUpdate: (_) {}, + ) + ..onSeek = (ticks) async { + order.add('seek'); + } + ..onPlay = () async { + order.add('play'); + } + ..getPositionTicks = () => 0; + + final commandData = { + 'Command': 'Unpause', + 'When': DateTime.now().toUtc().toIso8601String(), + 'PositionTicks': ticksPerSecond * 2, + 'PlaylistItemId': 'playlist-item-1', + }; + + handler.handleCommand(commandData, SyncPlayState()); + await Future.delayed(const Duration(milliseconds: 5)); + + expect(order, ['seek', 'play']); + }); + + test('Unpause is not deduped when player is paused', () async { + var playCalls = 0; + final handler = SyncPlayCommandHandler( + timeSync: () => null, + onStateUpdate: (_) {}, + ) + ..onPlay = () async { + playCalls++; + } + ..onSeek = ((_) async {}) + ..getPositionTicks = (() => 0) + ..isPlaying = (() => false); + + final commandData = { + 'Command': 'Unpause', + 'When': DateTime.now().toUtc().toIso8601String(), + 'PositionTicks': 0, + 'PlaylistItemId': 'playlist-item-1', + }; + + handler.handleCommand(commandData, SyncPlayState()); + await Future.delayed(const Duration(milliseconds: 5)); + handler.handleCommand(commandData, SyncPlayState()); + await Future.delayed(const Duration(milliseconds: 5)); + + expect(playCalls, 2); + }); + + test('Seek reports ready only when not buffering', () async { + var readyCalls = 0; + final handler = SyncPlayCommandHandler( + timeSync: () => null, + onStateUpdate: (_) {}, + ) + ..onPause = () async {} + ..onSeek = (ticks) async {} + ..onReportReady = () async { + readyCalls++; + } + ..isBuffering = () => false; + + final commandData = { + 'Command': 'Seek', + 'When': DateTime.now().toUtc().toIso8601String(), + 'PositionTicks': ticksPerSecond, + 'PlaylistItemId': 'playlist-item-1', + }; + + handler.handleCommand(commandData, SyncPlayState()); + await Future.delayed(const Duration(milliseconds: 5)); + expect(readyCalls, 1); + + handler.isBuffering = () => true; + handler.handleCommand( + { + ...commandData, + 'When': DateTime.now().toUtc().toIso8601String(), + }, + SyncPlayState(), + ); + await Future.delayed(const Duration(milliseconds: 5)); + expect(readyCalls, 1); + }); + }); +}