From 6357b9843c10b08145282e5515b92a1c960ada84 Mon Sep 17 00:00:00 2001 From: PartyDonut <42371342+PartyDonut@users.noreply.github.com> Date: Sun, 24 Aug 2025 21:16:51 +0200 Subject: [PATCH] chore:cleanup-packages breaking: remove isar (#474) Co-authored-by: PartyDonut --- .fvmrc | 2 +- .vscode/launch.json | 1 - .vscode/settings.json | 2 +- .../jellyfin_open_api.enums.swagger.dart | 18 +- .../jellyfin_open_api.swagger.chopper.dart | 1 + lib/jellyfin/jellyfin_open_api.swagger.dart | 44342 +++++++++------- lib/models/account_model.dart | 4 +- lib/models/account_model.freezed.dart | 1081 +- lib/models/account_model.g.dart | 12 +- lib/models/boxset_model.mapper.dart | 7 +- lib/models/item_base_model.mapper.dart | 6 +- lib/models/items/episode_model.mapper.dart | 7 +- lib/models/items/folder_model.mapper.dart | 7 +- lib/models/items/item_properties_model.dart | 5 +- .../items/item_properties_model.freezed.dart | 189 +- .../items/item_shared_models.mapper.dart | 7 +- .../items/item_stream_model.mapper.dart | 9 +- lib/models/items/media_segments_model.dart | 4 +- .../items/media_segments_model.freezed.dart | 422 +- lib/models/items/media_segments_model.g.dart | 14 +- lib/models/items/movie_model.mapper.dart | 7 +- lib/models/items/overview_model.mapper.dart | 6 +- lib/models/items/person_model.mapper.dart | 7 +- lib/models/items/photos_model.mapper.dart | 16 +- lib/models/items/season_model.mapper.dart | 7 +- lib/models/items/series_model.mapper.dart | 7 +- lib/models/items/trick_play_model.dart | 2 +- .../items/trick_play_model.freezed.dart | 466 +- lib/models/items/trick_play_model.g.dart | 7 +- lib/models/library_filters_model.dart | 6 +- lib/models/library_filters_model.freezed.dart | 720 +- lib/models/library_filters_model.g.dart | 9 +- .../library_search_model.mapper.dart | 10 +- lib/models/settings/arguments_model.dart | 2 +- .../settings/arguments_model.freezed.dart | 182 +- .../settings/client_settings_model.dart | 2 +- .../client_settings_model.freezed.dart | 970 +- .../settings/client_settings_model.g.dart | 9 +- lib/models/settings/home_settings_model.dart | 2 +- .../settings/home_settings_model.freezed.dart | 422 +- .../settings/home_settings_model.g.dart | 8 +- lib/models/settings/key_combinations.dart | 2 +- .../settings/key_combinations.freezed.dart | 405 +- lib/models/settings/key_combinations.g.dart | 7 +- .../settings/video_player_settings.dart | 2 +- .../video_player_settings.freezed.dart | 714 +- .../settings/video_player_settings.g.dart | 8 +- lib/models/syncing/i_synced_item.dart | 61 - lib/models/syncing/i_synced_item.g.dart | 3791 -- lib/models/syncing/sync_item.dart | 36 +- lib/models/syncing/sync_item.freezed.dart | 720 +- lib/models/syncing/sync_settings_model.dart | 2 +- .../syncing/sync_settings_model.freezed.dart | 293 +- lib/providers/library_screen_provider.dart | 2 +- .../library_screen_provider.freezed.dart | 414 +- lib/providers/session_info_provider.dart | 2 +- .../session_info_provider.freezed.dart | 215 +- lib/providers/session_info_provider.g.dart | 8 +- lib/providers/sync_provider.dart | 8 +- lib/providers/sync_provider_web.dart | 13 - lib/providers/update_provider.dart | 2 +- lib/providers/update_provider.freezed.dart | 201 +- lib/routes/auto_router.dart | 2 +- lib/routes/auto_router.gr.dart | 224 +- .../widgets/library_filter_chips.dart | 8 +- .../widgets/library_sort_dialogue.dart | 19 +- lib/screens/login/lock_screen.dart | 2 +- .../client_settings_theme.dart | 84 +- lib/screens/settings/settings_scaffold.dart | 2 +- lib/screens/syncing/synced_screen.dart | 4 - .../video_player_quality_controls.dart | 35 +- lib/util/application_info.dart | 2 +- lib/util/application_info.freezed.dart | 198 +- lib/util/migration/isar_drift_migration.dart | 82 - linux/flutter/generated_plugin_registrant.cc | 4 - linux/flutter/generated_plugins.cmake | 1 - macos/Flutter/GeneratedPluginRegistrant.swift | 2 - pubspec.lock | 415 +- pubspec.yaml | 72 +- .../flutter/generated_plugin_registrant.cc | 3 - windows/flutter/generated_plugins.cmake | 1 - 81 files changed, 31400 insertions(+), 25673 deletions(-) delete mode 100644 lib/models/syncing/i_synced_item.dart delete mode 100644 lib/models/syncing/i_synced_item.g.dart delete mode 100644 lib/providers/sync_provider_web.dart delete mode 100644 lib/util/migration/isar_drift_migration.dart diff --git a/.fvmrc b/.fvmrc index 3ca65ff..00359a4 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.32.8" + "flutter": "3.35.1" } \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index ab0de16..ee28073 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -81,7 +81,6 @@ "args": [ "--web-port", "9090", - "--web-experimental-hot-reload", ], }, { diff --git a/.vscode/settings.json b/.vscode/settings.json index e5a224f..12fa939 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,7 +7,7 @@ "LTWH", "outro" ], - "dart.flutterSdkPath": ".fvm/versions/3.32.8", + "dart.flutterSdkPath": ".fvm/versions/3.35.1", "search.exclude": { "**/.fvm": true }, diff --git a/lib/jellyfin/jellyfin_open_api.enums.swagger.dart b/lib/jellyfin/jellyfin_open_api.enums.swagger.dart index dc86db7..a852171 100644 --- a/lib/jellyfin/jellyfin_open_api.enums.swagger.dart +++ b/lib/jellyfin/jellyfin_open_api.enums.swagger.dart @@ -2565,7 +2565,8 @@ enum AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod { final String? value; const AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod( - this.value); + this.value, + ); } enum AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext { @@ -2702,7 +2703,8 @@ enum VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod { final String? value; const VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod( - this.value); + this.value, + ); } enum VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext { @@ -3635,7 +3637,8 @@ enum ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayed final String? value; const ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType( - this.value); + this.value, + ); } enum ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat { @@ -3658,7 +3661,8 @@ enum ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayed final String? value; const ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat( - this.value); + this.value, + ); } enum ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType { @@ -3695,7 +3699,8 @@ enum ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayed final String? value; const ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType( - this.value); + this.value, + ); } enum ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat { @@ -3718,7 +3723,8 @@ enum ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayed final String? value; const ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat( - this.value); + this.value, + ); } enum ItemsItemIdImagesImageTypeImageIndexIndexPostImageType { diff --git a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart index 0f8f69d..63d80ed 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart @@ -1,3 +1,4 @@ +// dart format width=80 //Generated jellyfin api code part of 'jellyfin_open_api.swagger.dart'; diff --git a/lib/jellyfin/jellyfin_open_api.swagger.dart b/lib/jellyfin/jellyfin_open_api.swagger.dart index 2940a90..7e8a543 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.dart @@ -38,13 +38,14 @@ abstract class JellyfinOpenApi extends ChopperService { } final newClient = ChopperClient( - services: [_$JellyfinOpenApi()], - converter: converter ?? $JsonSerializableConverter(), - interceptors: interceptors ?? [], - client: httpClient, - authenticator: authenticator, - errorConverter: errorConverter, - baseUrl: baseUrl); + services: [_$JellyfinOpenApi()], + converter: converter ?? $JsonSerializableConverter(), + interceptors: interceptors ?? [], + client: httpClient, + authenticator: authenticator, + errorConverter: errorConverter, + baseUrl: baseUrl, + ); return _$JellyfinOpenApi(newClient); } @@ -54,20 +55,23 @@ 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. Future> - systemActivityLogEntriesGet({ + systemActivityLogEntriesGet({ int? startIndex, int? limit, DateTime? minDate, bool? hasUserId, }) { - generatedMapping.putIfAbsent(ActivityLogEntryQueryResult, - () => ActivityLogEntryQueryResult.fromJsonFactory); + generatedMapping.putIfAbsent( + ActivityLogEntryQueryResult, + () => ActivityLogEntryQueryResult.fromJsonFactory, + ); return _systemActivityLogEntriesGet( - startIndex: startIndex, - limit: limit, - minDate: minDate, - hasUserId: hasUserId); + startIndex: startIndex, + limit: limit, + minDate: minDate, + hasUserId: hasUserId, + ); } ///Gets activity log entries. @@ -75,9 +79,9 @@ 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. - @Get(path: '/System/ActivityLog/Entries') + @GET(path: '/System/ActivityLog/Entries') Future> - _systemActivityLogEntriesGet({ + _systemActivityLogEntriesGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @Query('minDate') DateTime? minDate, @@ -86,14 +90,16 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get all keys. Future> authKeysGet() { - generatedMapping.putIfAbsent(AuthenticationInfoQueryResult, - () => AuthenticationInfoQueryResult.fromJsonFactory); + generatedMapping.putIfAbsent( + AuthenticationInfoQueryResult, + () => AuthenticationInfoQueryResult.fromJsonFactory, + ); return _authKeysGet(); } ///Get all keys. - @Get(path: '/Auth/Keys') + @GET(path: '/Auth/Keys') Future> _authKeysGet(); ///Create a new api key. @@ -104,10 +110,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Create a new api key. ///@param app Name of the app using the authentication key. - @Post( - path: '/Auth/Keys', - optionalBody: true, - ) + @POST(path: '/Auth/Keys', optionalBody: true) Future _authKeysPost({@Query('app') required String? app}); ///Remove an api key. @@ -118,9 +121,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Remove an api key. ///@param key The access token to delete. - @Delete(path: '/Auth/Keys/{key}') - Future _authKeysKeyDelete( - {@Path('key') required String? key}); + @DELETE(path: '/Auth/Keys/{key}') + Future _authKeysKeyDelete({ + @Path('key') required String? key, + }); ///Gets all artists from a given item, folder, or the entire library. ///@param minCommunityRating Optional filter by minimum community rating. @@ -190,41 +194,44 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _artistsGet( - minCommunityRating: minCommunityRating, - startIndex: startIndex, - limit: limit, - searchTerm: searchTerm, - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - filters: itemFilterListToJson(filters), - isFavorite: isFavorite, - mediaTypes: mediaTypeListToJson(mediaTypes), - genres: genres, - genreIds: genreIds, - officialRatings: officialRatings, - tags: tags, - years: years, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - person: person, - personIds: personIds, - personTypes: personTypes, - studios: studios, - studioIds: studioIds, - userId: userId, - nameStartsWithOrGreater: nameStartsWithOrGreater, - nameStartsWith: nameStartsWith, - nameLessThan: nameLessThan, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder), - enableImages: enableImages, - enableTotalRecordCount: enableTotalRecordCount); + minCommunityRating: minCommunityRating, + startIndex: startIndex, + limit: limit, + searchTerm: searchTerm, + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + filters: itemFilterListToJson(filters), + isFavorite: isFavorite, + mediaTypes: mediaTypeListToJson(mediaTypes), + genres: genres, + genreIds: genreIds, + officialRatings: officialRatings, + tags: tags, + years: years, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + person: person, + personIds: personIds, + personTypes: personTypes, + studios: studios, + studioIds: studioIds, + userId: userId, + nameStartsWithOrGreater: nameStartsWithOrGreater, + nameStartsWith: nameStartsWith, + nameLessThan: nameLessThan, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + enableImages: enableImages, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets all artists from a given item, folder, or the entire library. @@ -260,7 +267,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortOrder Sort Order - Ascending,Descending. ///@param enableImages Optional, include image information in output. ///@param enableTotalRecordCount Total record count. - @Get(path: '/Artists') + @GET(path: '/Artists') Future> _artistsGet({ @Query('minCommunityRating') num? minCommunityRating, @Query('startIndex') int? startIndex, @@ -304,7 +311,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _artistsNameGet(name: name, userId: userId); } @@ -312,7 +321,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets an artist by name. ///@param name Studio name. ///@param userId Optional. Filter by user id, and attach user data. - @Get(path: '/Artists/{name}') + @GET(path: '/Artists/{name}') Future> _artistsNameGet({ @Path('name') required String? name, @Query('userId') String? userId, @@ -386,41 +395,44 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _artistsAlbumArtistsGet( - minCommunityRating: minCommunityRating, - startIndex: startIndex, - limit: limit, - searchTerm: searchTerm, - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - filters: itemFilterListToJson(filters), - isFavorite: isFavorite, - mediaTypes: mediaTypeListToJson(mediaTypes), - genres: genres, - genreIds: genreIds, - officialRatings: officialRatings, - tags: tags, - years: years, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - person: person, - personIds: personIds, - personTypes: personTypes, - studios: studios, - studioIds: studioIds, - userId: userId, - nameStartsWithOrGreater: nameStartsWithOrGreater, - nameStartsWith: nameStartsWith, - nameLessThan: nameLessThan, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder), - enableImages: enableImages, - enableTotalRecordCount: enableTotalRecordCount); + minCommunityRating: minCommunityRating, + startIndex: startIndex, + limit: limit, + searchTerm: searchTerm, + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + filters: itemFilterListToJson(filters), + isFavorite: isFavorite, + mediaTypes: mediaTypeListToJson(mediaTypes), + genres: genres, + genreIds: genreIds, + officialRatings: officialRatings, + tags: tags, + years: years, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + person: person, + personIds: personIds, + personTypes: personTypes, + studios: studios, + studioIds: studioIds, + userId: userId, + nameStartsWithOrGreater: nameStartsWithOrGreater, + nameStartsWith: nameStartsWith, + nameLessThan: nameLessThan, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + enableImages: enableImages, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets all album artists from a given item, folder, or the entire library. @@ -456,7 +468,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortOrder Sort Order - Ascending,Descending. ///@param enableImages Optional, include image information in output. ///@param enableTotalRecordCount Total record count. - @Get(path: '/Artists/AlbumArtists') + @GET(path: '/Artists/AlbumArtists') Future> _artistsAlbumArtistsGet({ @Query('minCommunityRating') num? minCommunityRating, @Query('startIndex') int? startIndex, @@ -596,56 +608,57 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdStreamGet( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets an audio stream. @@ -699,7 +712,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. - @Get(path: '/Audio/{itemId}/stream') + @GET(path: '/Audio/{itemId}/stream') Future> _audioItemIdStreamGet({ @Path('itemId') required String? itemId, @Query('container') String? container, @@ -857,56 +870,57 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdStreamHead( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets an audio stream. @@ -960,7 +974,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. - @Head(path: '/Audio/{itemId}/stream') + @HEAD(path: '/Audio/{itemId}/stream') Future> _audioItemIdStreamHead({ @Path('itemId') required String? itemId, @Query('container') String? container, @@ -1118,56 +1132,57 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdStreamContainerGet( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets an audio stream. @@ -1221,7 +1236,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. - @Get(path: '/Audio/{itemId}/stream.{container}') + @GET(path: '/Audio/{itemId}/stream.{container}') Future> _audioItemIdStreamContainerGet({ @Path('itemId') required String? itemId, @Path('container') required String? container, @@ -1379,56 +1394,57 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdStreamContainerHead( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets an audio stream. @@ -1482,7 +1498,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. - @Head(path: '/Audio/{itemId}/stream.{container}') + @HEAD(path: '/Audio/{itemId}/stream.{container}') Future> _audioItemIdStreamContainerHead({ @Path('itemId') required String? itemId, @Path('container') required String? container, @@ -1539,13 +1555,15 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets branding configuration. Future> brandingConfigurationGet() { generatedMapping.putIfAbsent( - BrandingOptions, () => BrandingOptions.fromJsonFactory); + BrandingOptions, + () => BrandingOptions.fromJsonFactory, + ); return _brandingConfigurationGet(); } ///Gets branding configuration. - @Get(path: '/Branding/Configuration') + @GET(path: '/Branding/Configuration') Future> _brandingConfigurationGet(); ///Gets branding css. @@ -1554,7 +1572,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets branding css. - @Get(path: '/Branding/Css') + @GET(path: '/Branding/Css') Future> _brandingCssGet(); ///Gets branding css. @@ -1563,7 +1581,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets branding css. - @Get(path: '/Branding/Css.css') + @GET(path: '/Branding/Css.css') Future> _brandingCssCssGet(); ///Gets available channels. @@ -1582,15 +1600,18 @@ abstract class JellyfinOpenApi extends ChopperService { bool? isFavorite, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _channelsGet( - userId: userId, - startIndex: startIndex, - limit: limit, - supportsLatestItems: supportsLatestItems, - supportsMediaDeletion: supportsMediaDeletion, - isFavorite: isFavorite); + userId: userId, + startIndex: startIndex, + limit: limit, + supportsLatestItems: supportsLatestItems, + supportsMediaDeletion: supportsMediaDeletion, + isFavorite: isFavorite, + ); } ///Gets available channels. @@ -1600,7 +1621,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param supportsLatestItems Optional. Filter by channels that support getting latest items. ///@param supportsMediaDeletion Optional. Filter by channels that support media deletion. ///@param isFavorite Optional. Filter by channels that are favorite. - @Get(path: '/Channels') + @GET(path: '/Channels') Future> _channelsGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -1612,19 +1633,23 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get channel features. ///@param channelId Channel id. - Future> channelsChannelIdFeaturesGet( - {required String? channelId}) { + Future> channelsChannelIdFeaturesGet({ + required String? channelId, + }) { generatedMapping.putIfAbsent( - ChannelFeatures, () => ChannelFeatures.fromJsonFactory); + ChannelFeatures, + () => ChannelFeatures.fromJsonFactory, + ); return _channelsChannelIdFeaturesGet(channelId: channelId); } ///Get channel features. ///@param channelId Channel id. - @Get(path: '/Channels/{channelId}/Features') - Future> _channelsChannelIdFeaturesGet( - {@Path('channelId') required String? channelId}); + @GET(path: '/Channels/{channelId}/Features') + Future> _channelsChannelIdFeaturesGet({ + @Path('channelId') required String? channelId, + }); ///Get channel items. ///@param channelId Channel Id. @@ -1648,18 +1673,21 @@ abstract class JellyfinOpenApi extends ChopperService { List? fields, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _channelsChannelIdItemsGet( - channelId: channelId, - folderId: folderId, - userId: userId, - startIndex: startIndex, - limit: limit, - sortOrder: sortOrderListToJson(sortOrder), - filters: itemFilterListToJson(filters), - sortBy: itemSortByListToJson(sortBy), - fields: itemFieldsListToJson(fields)); + channelId: channelId, + folderId: folderId, + userId: userId, + startIndex: startIndex, + limit: limit, + sortOrder: sortOrderListToJson(sortOrder), + filters: itemFilterListToJson(filters), + sortBy: itemSortByListToJson(sortBy), + fields: itemFieldsListToJson(fields), + ); } ///Get channel items. @@ -1672,7 +1700,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param filters Optional. Specify additional filters to apply. ///@param sortBy Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. ///@param fields Optional. Specify additional fields of information to return in the output. - @Get(path: '/Channels/{channelId}/Items') + @GET(path: '/Channels/{channelId}/Items') Future> _channelsChannelIdItemsGet({ @Path('channelId') required String? channelId, @Query('folderId') String? folderId, @@ -1688,13 +1716,15 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get all channel features. Future>> channelsFeaturesGet() { generatedMapping.putIfAbsent( - ChannelFeatures, () => ChannelFeatures.fromJsonFactory); + ChannelFeatures, + () => ChannelFeatures.fromJsonFactory, + ); return _channelsFeaturesGet(); } ///Get all channel features. - @Get(path: '/Channels/Features') + @GET(path: '/Channels/Features') Future>> _channelsFeaturesGet(); ///Gets latest channel items. @@ -1713,15 +1743,18 @@ abstract class JellyfinOpenApi extends ChopperService { List? channelIds, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _channelsItemsLatestGet( - userId: userId, - startIndex: startIndex, - limit: limit, - filters: itemFilterListToJson(filters), - fields: itemFieldsListToJson(fields), - channelIds: channelIds); + userId: userId, + startIndex: startIndex, + limit: limit, + filters: itemFilterListToJson(filters), + fields: itemFieldsListToJson(fields), + channelIds: channelIds, + ); } ///Gets latest channel items. @@ -1731,7 +1764,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param filters Optional. Specify additional filters to apply. ///@param fields Optional. Specify additional fields of information to return in the output. ///@param channelIds Optional. Specify one or more channel id's, comma delimited. - @Get(path: '/Channels/Items/Latest') + @GET(path: '/Channels/Items/Latest') Future> _channelsItemsLatestGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -1742,21 +1775,21 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Upload a document. - Future> clientLogDocumentPost( - {required Object? body}) { - generatedMapping.putIfAbsent(ClientLogDocumentResponseDto, - () => ClientLogDocumentResponseDto.fromJsonFactory); + Future> clientLogDocumentPost({ + required Object? body, + }) { + generatedMapping.putIfAbsent( + ClientLogDocumentResponseDto, + () => ClientLogDocumentResponseDto.fromJsonFactory, + ); return _clientLogDocumentPost(body: body); } ///Upload a document. - @Post( - path: '/ClientLog/Document', - optionalBody: true, - ) - Future> _clientLogDocumentPost( - {@Body() required Object? body}); + @POST(path: '/ClientLog/Document', optionalBody: true) + Future> + _clientLogDocumentPost({@Body() required Object? body}); ///Creates a new collection. ///@param name The name of the collection. @@ -1769,11 +1802,17 @@ abstract class JellyfinOpenApi extends ChopperService { String? parentId, bool? isLocked, }) { - generatedMapping.putIfAbsent(CollectionCreationResult, - () => CollectionCreationResult.fromJsonFactory); + generatedMapping.putIfAbsent( + CollectionCreationResult, + () => CollectionCreationResult.fromJsonFactory, + ); return _collectionsPost( - name: name, ids: ids, parentId: parentId, isLocked: isLocked); + name: name, + ids: ids, + parentId: parentId, + isLocked: isLocked, + ); } ///Creates a new collection. @@ -1781,10 +1820,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param ids Item Ids to add to the collection. ///@param parentId Optional. Create the collection within a specific folder. ///@param isLocked Whether or not to lock the new collection. - @Post( - path: '/Collections', - optionalBody: true, - ) + @POST(path: '/Collections', optionalBody: true) Future> _collectionsPost({ @Query('name') String? name, @Query('ids') List? ids, @@ -1800,16 +1836,15 @@ abstract class JellyfinOpenApi extends ChopperService { required List? ids, }) { return _collectionsCollectionIdItemsPost( - collectionId: collectionId, ids: ids); + collectionId: collectionId, + ids: ids, + ); } ///Adds items to a collection. ///@param collectionId The collection id. ///@param ids Item ids, comma delimited. - @Post( - path: '/Collections/{collectionId}/Items', - optionalBody: true, - ) + @POST(path: '/Collections/{collectionId}/Items', optionalBody: true) Future _collectionsCollectionIdItemsPost({ @Path('collectionId') required String? collectionId, @Query('ids') required List? ids, @@ -1823,13 +1858,15 @@ abstract class JellyfinOpenApi extends ChopperService { required List? ids, }) { return _collectionsCollectionIdItemsDelete( - collectionId: collectionId, ids: ids); + collectionId: collectionId, + ids: ids, + ); } ///Removes items from a collection. ///@param collectionId The collection id. ///@param ids Item ids, comma delimited. - @Delete(path: '/Collections/{collectionId}/Items') + @DELETE(path: '/Collections/{collectionId}/Items') Future _collectionsCollectionIdItemsDelete({ @Path('collectionId') required String? collectionId, @Query('ids') required List? ids, @@ -1838,41 +1875,44 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets application configuration. Future> systemConfigurationGet() { generatedMapping.putIfAbsent( - ServerConfiguration, () => ServerConfiguration.fromJsonFactory); + ServerConfiguration, + () => ServerConfiguration.fromJsonFactory, + ); return _systemConfigurationGet(); } ///Gets application configuration. - @Get(path: '/System/Configuration') + @GET(path: '/System/Configuration') Future> _systemConfigurationGet(); ///Updates application configuration. - Future systemConfigurationPost( - {required ServerConfiguration? body}) { + Future systemConfigurationPost({ + required ServerConfiguration? body, + }) { return _systemConfigurationPost(body: body); } ///Updates application configuration. - @Post( - path: '/System/Configuration', - optionalBody: true, - ) - Future _systemConfigurationPost( - {@Body() required ServerConfiguration? body}); + @POST(path: '/System/Configuration', optionalBody: true) + Future _systemConfigurationPost({ + @Body() required ServerConfiguration? body, + }); ///Gets a named configuration. ///@param key Configuration key. - Future> systemConfigurationKeyGet( - {required String? key}) { + Future> systemConfigurationKeyGet({ + required String? key, + }) { return _systemConfigurationKeyGet(key: key); } ///Gets a named configuration. ///@param key Configuration key. - @Get(path: '/System/Configuration/{key}') - Future> _systemConfigurationKeyGet( - {@Path('key') required String? key}); + @GET(path: '/System/Configuration/{key}') + Future> _systemConfigurationKeyGet({ + @Path('key') required String? key, + }); ///Updates named configuration. ///@param key Configuration key. @@ -1885,10 +1925,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates named configuration. ///@param key Configuration key. - @Post( - path: '/System/Configuration/{key}', - optionalBody: true, - ) + @POST(path: '/System/Configuration/{key}', optionalBody: true) Future _systemConfigurationKeyPost({ @Path('key') required String? key, @Body() required Object? body, @@ -1896,17 +1933,19 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a default MetadataOptions object. Future> - systemConfigurationMetadataOptionsDefaultGet() { + systemConfigurationMetadataOptionsDefaultGet() { generatedMapping.putIfAbsent( - MetadataOptions, () => MetadataOptions.fromJsonFactory); + MetadataOptions, + () => MetadataOptions.fromJsonFactory, + ); return _systemConfigurationMetadataOptionsDefaultGet(); } ///Gets a default MetadataOptions object. - @Get(path: '/System/Configuration/MetadataOptions/Default') + @GET(path: '/System/Configuration/MetadataOptions/Default') Future> - _systemConfigurationMetadataOptionsDefaultGet(); + _systemConfigurationMetadataOptionsDefaultGet(); ///Gets a dashboard configuration page. ///@param name The name of the page. @@ -1916,42 +1955,50 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a dashboard configuration page. ///@param name The name of the page. - @Get(path: '/web/ConfigurationPage') - Future> _webConfigurationPageGet( - {@Query('name') String? name}); + @GET(path: '/web/ConfigurationPage') + Future> _webConfigurationPageGet({ + @Query('name') String? name, + }); ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. Future>> - webConfigurationPagesGet({bool? enableInMainMenu}) { + webConfigurationPagesGet({bool? enableInMainMenu}) { generatedMapping.putIfAbsent( - ConfigurationPageInfo, () => ConfigurationPageInfo.fromJsonFactory); + ConfigurationPageInfo, + () => ConfigurationPageInfo.fromJsonFactory, + ); return _webConfigurationPagesGet(enableInMainMenu: enableInMainMenu); } ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. - @Get(path: '/web/ConfigurationPages') + @GET(path: '/web/ConfigurationPages') Future>> - _webConfigurationPagesGet( - {@Query('enableInMainMenu') bool? enableInMainMenu}); + _webConfigurationPagesGet({ + @Query('enableInMainMenu') bool? enableInMainMenu, + }); ///Get Devices. ///@param userId Gets or sets the user identifier. - Future> devicesGet( - {String? userId}) { - generatedMapping.putIfAbsent(DeviceInfoDtoQueryResult, - () => DeviceInfoDtoQueryResult.fromJsonFactory); + Future> devicesGet({ + String? userId, + }) { + generatedMapping.putIfAbsent( + DeviceInfoDtoQueryResult, + () => DeviceInfoDtoQueryResult.fromJsonFactory, + ); return _devicesGet(userId: userId); } ///Get Devices. ///@param userId Gets or sets the user identifier. - @Get(path: '/Devices') - Future> _devicesGet( - {@Query('userId') String? userId}); + @GET(path: '/Devices') + Future> _devicesGet({ + @Query('userId') String? userId, + }); ///Deletes a device. ///@param id Device Id. @@ -1961,40 +2008,48 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes a device. ///@param id Device Id. - @Delete(path: '/Devices') + @DELETE(path: '/Devices') Future _devicesDelete({@Query('id') required String? id}); ///Get info for a device. ///@param id Device Id. - Future> devicesInfoGet( - {required String? id}) { + Future> devicesInfoGet({ + required String? id, + }) { generatedMapping.putIfAbsent( - DeviceInfoDto, () => DeviceInfoDto.fromJsonFactory); + DeviceInfoDto, + () => DeviceInfoDto.fromJsonFactory, + ); return _devicesInfoGet(id: id); } ///Get info for a device. ///@param id Device Id. - @Get(path: '/Devices/Info') - Future> _devicesInfoGet( - {@Query('id') required String? id}); + @GET(path: '/Devices/Info') + Future> _devicesInfoGet({ + @Query('id') required String? id, + }); ///Get options for a device. ///@param id Device Id. - Future> devicesOptionsGet( - {required String? id}) { + Future> devicesOptionsGet({ + required String? id, + }) { generatedMapping.putIfAbsent( - DeviceOptionsDto, () => DeviceOptionsDto.fromJsonFactory); + DeviceOptionsDto, + () => DeviceOptionsDto.fromJsonFactory, + ); return _devicesOptionsGet(id: id); } ///Get options for a device. ///@param id Device Id. - @Get(path: '/Devices/Options') - Future> _devicesOptionsGet( - {@Query('id') required String? id}); + @GET(path: '/Devices/Options') + Future> _devicesOptionsGet({ + @Query('id') required String? id, + }); ///Update device options. ///@param id Device Id. @@ -2007,10 +2062,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Update device options. ///@param id Device Id. - @Post( - path: '/Devices/Options', - optionalBody: true, - ) + @POST(path: '/Devices/Options', optionalBody: true) Future _devicesOptionsPost({ @Query('id') required String? id, @Body() required DeviceOptionsDto? body, @@ -2021,27 +2073,30 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId User id. ///@param client Client. Future> - displayPreferencesDisplayPreferencesIdGet({ + displayPreferencesDisplayPreferencesIdGet({ required String? displayPreferencesId, String? userId, required String? $client, }) { generatedMapping.putIfAbsent( - DisplayPreferencesDto, () => DisplayPreferencesDto.fromJsonFactory); + DisplayPreferencesDto, + () => DisplayPreferencesDto.fromJsonFactory, + ); return _displayPreferencesDisplayPreferencesIdGet( - displayPreferencesId: displayPreferencesId, - userId: userId, - $client: $client); + displayPreferencesId: displayPreferencesId, + userId: userId, + $client: $client, + ); } ///Get Display Preferences. ///@param displayPreferencesId Display preferences id. ///@param userId User id. ///@param client Client. - @Get(path: '/DisplayPreferences/{displayPreferencesId}') + @GET(path: '/DisplayPreferences/{displayPreferencesId}') Future> - _displayPreferencesDisplayPreferencesIdGet({ + _displayPreferencesDisplayPreferencesIdGet({ @Path('displayPreferencesId') required String? displayPreferencesId, @Query('userId') String? userId, @Query('client') required String? $client, @@ -2058,20 +2113,18 @@ abstract class JellyfinOpenApi extends ChopperService { required DisplayPreferencesDto? body, }) { return _displayPreferencesDisplayPreferencesIdPost( - displayPreferencesId: displayPreferencesId, - userId: userId, - $client: $client, - body: body); + displayPreferencesId: displayPreferencesId, + userId: userId, + $client: $client, + body: body, + ); } ///Update Display Preferences. ///@param displayPreferencesId Display preferences id. ///@param userId User Id. ///@param client Client. - @Post( - path: '/DisplayPreferences/{displayPreferencesId}', - optionalBody: true, - ) + @POST(path: '/DisplayPreferences/{displayPreferencesId}', optionalBody: true) Future _displayPreferencesDisplayPreferencesIdPost({ @Path('displayPreferencesId') required String? displayPreferencesId, @Query('userId') String? userId, @@ -2136,7 +2189,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. Future> - audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + audioItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -2175,7 +2228,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? videoBitRate, int? subtitleStreamIndex, enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - subtitleMethod, + subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -2195,61 +2248,62 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdHls1PlaylistIdSegmentIdContainerGet( - itemId: itemId, - playlistId: playlistId, - segmentId: segmentId, - container: container, - runtimeTicks: runtimeTicks, - actualSegmentLengthTicks: actualSegmentLengthTicks, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - maxStreamingBitrate: maxStreamingBitrate, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + playlistId: playlistId, + segmentId: segmentId, + container: container, + runtimeTicks: runtimeTicks, + actualSegmentLengthTicks: actualSegmentLengthTicks, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + maxStreamingBitrate: maxStreamingBitrate, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets a video stream using HTTP live streaming. @@ -2308,9 +2362,9 @@ 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. - @Get(path: '/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}') + @GET(path: '/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}') Future> - _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -2472,56 +2526,57 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdMainM3u8Get( - itemId: itemId, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - maxStreamingBitrate: maxStreamingBitrate, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + maxStreamingBitrate: maxStreamingBitrate, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets an audio stream using HTTP live streaming. @@ -2575,7 +2630,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. - @Get(path: '/Audio/{itemId}/main.m3u8') + @GET(path: '/Audio/{itemId}/main.m3u8') Future> _audioItemIdMainM3u8Get({ @Path('itemId') required String? itemId, @Query('static') bool? $static, @@ -2735,57 +2790,58 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdMasterM3u8Get( - itemId: itemId, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - maxStreamingBitrate: maxStreamingBitrate, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + maxStreamingBitrate: maxStreamingBitrate, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets an audio hls playlist stream. @@ -2840,7 +2896,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAdaptiveBitrateStreaming Enable adaptive bitrate streaming. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. - @Get(path: '/Audio/{itemId}/master.m3u8') + @GET(path: '/Audio/{itemId}/master.m3u8') Future> _audioItemIdMasterM3u8Get({ @Path('itemId') required String? itemId, @Query('static') bool? $static, @@ -3002,57 +3058,58 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _audioItemIdMasterM3u8Head( - itemId: itemId, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - maxStreamingBitrate: maxStreamingBitrate, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + maxStreamingBitrate: maxStreamingBitrate, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets an audio hls playlist stream. @@ -3107,7 +3164,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAdaptiveBitrateStreaming Enable adaptive bitrate streaming. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. - @Head(path: '/Audio/{itemId}/master.m3u8') + @HEAD(path: '/Audio/{itemId}/master.m3u8') Future> _audioItemIdMasterM3u8Head({ @Path('itemId') required String? itemId, @Query('static') bool? $static, @@ -3222,7 +3279,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. Future> - videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + videosItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -3262,7 +3319,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? videoBitRate, int? subtitleStreamIndex, enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - subtitleMethod, + subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -3283,64 +3340,64 @@ abstract class JellyfinOpenApi extends ChopperService { bool? alwaysBurnInSubtitleWhenTranscoding, }) { return _videosItemIdHls1PlaylistIdSegmentIdContainerGet( - itemId: itemId, - playlistId: playlistId, - segmentId: segmentId, - container: container, - runtimeTicks: runtimeTicks, - actualSegmentLengthTicks: actualSegmentLengthTicks, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding); + itemId: itemId, + playlistId: playlistId, + segmentId: segmentId, + container: container, + runtimeTicks: runtimeTicks, + actualSegmentLengthTicks: actualSegmentLengthTicks, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + alwaysBurnInSubtitleWhenTranscoding: alwaysBurnInSubtitleWhenTranscoding, + ); } ///Gets a video stream using HTTP live streaming. @@ -3401,9 +3458,9 @@ 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. - @Get(path: '/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}') + @GET(path: '/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}') Future> - _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -3576,61 +3633,61 @@ abstract class JellyfinOpenApi extends ChopperService { bool? alwaysBurnInSubtitleWhenTranscoding, }) { return _videosItemIdLiveM3u8Get( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - maxWidth: maxWidth, - maxHeight: maxHeight, - enableSubtitlesInManifest: enableSubtitlesInManifest, - enableAudioVbrEncoding: enableAudioVbrEncoding, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + maxWidth: maxWidth, + maxHeight: maxHeight, + enableSubtitlesInManifest: enableSubtitlesInManifest, + enableAudioVbrEncoding: enableAudioVbrEncoding, + alwaysBurnInSubtitleWhenTranscoding: alwaysBurnInSubtitleWhenTranscoding, + ); } ///Gets a hls live stream. @@ -3688,7 +3745,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableSubtitlesInManifest Optional. Whether to enable subtitles in the manifest. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. - @Get(path: '/Videos/{itemId}/live.m3u8') + @GET(path: '/Videos/{itemId}/live.m3u8') Future> _videosItemIdLiveM3u8Get({ @Path('itemId') required String? itemId, @Query('container') String? container, @@ -3855,59 +3912,59 @@ abstract class JellyfinOpenApi extends ChopperService { bool? alwaysBurnInSubtitleWhenTranscoding, }) { return _videosItemIdMainM3u8Get( - itemId: itemId, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding); + itemId: itemId, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + alwaysBurnInSubtitleWhenTranscoding: alwaysBurnInSubtitleWhenTranscoding, + ); } ///Gets a video stream using HTTP live streaming. @@ -3963,7 +4020,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. - @Get(path: '/Videos/{itemId}/main.m3u8') + @GET(path: '/Videos/{itemId}/main.m3u8') Future> _videosItemIdMainM3u8Get({ @Path('itemId') required String? itemId, @Query('static') bool? $static, @@ -4132,61 +4189,61 @@ abstract class JellyfinOpenApi extends ChopperService { bool? alwaysBurnInSubtitleWhenTranscoding, }) { return _videosItemIdMasterM3u8Get( - itemId: itemId, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, - enableTrickplay: enableTrickplay, - enableAudioVbrEncoding: enableAudioVbrEncoding, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding); + itemId: itemId, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, + enableTrickplay: enableTrickplay, + enableAudioVbrEncoding: enableAudioVbrEncoding, + alwaysBurnInSubtitleWhenTranscoding: alwaysBurnInSubtitleWhenTranscoding, + ); } ///Gets a video hls playlist stream. @@ -4244,7 +4301,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableTrickplay Enable trickplay image playlists being added to master playlist. ///@param enableAudioVbrEncoding Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. - @Get(path: '/Videos/{itemId}/master.m3u8') + @GET(path: '/Videos/{itemId}/master.m3u8') Future> _videosItemIdMasterM3u8Get({ @Path('itemId') required String? itemId, @Query('static') bool? $static, @@ -4416,61 +4473,61 @@ abstract class JellyfinOpenApi extends ChopperService { bool? alwaysBurnInSubtitleWhenTranscoding, }) { return _videosItemIdMasterM3u8Head( - itemId: itemId, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, - enableTrickplay: enableTrickplay, - enableAudioVbrEncoding: enableAudioVbrEncoding, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding); + itemId: itemId, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming, + enableTrickplay: enableTrickplay, + enableAudioVbrEncoding: enableAudioVbrEncoding, + alwaysBurnInSubtitleWhenTranscoding: alwaysBurnInSubtitleWhenTranscoding, + ); } ///Gets a video hls playlist stream. @@ -4528,7 +4585,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableTrickplay Enable trickplay image playlists being added to master playlist. ///@param enableAudioVbrEncoding Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. - @Head(path: '/Videos/{itemId}/master.m3u8') + @HEAD(path: '/Videos/{itemId}/master.m3u8') Future> _videosItemIdMasterM3u8Head({ @Path('itemId') required String? itemId, @Query('static') bool? $static, @@ -4590,44 +4647,49 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get Default directory browser. Future> - environmentDefaultDirectoryBrowserGet() { - generatedMapping.putIfAbsent(DefaultDirectoryBrowserInfoDto, - () => DefaultDirectoryBrowserInfoDto.fromJsonFactory); + environmentDefaultDirectoryBrowserGet() { + generatedMapping.putIfAbsent( + DefaultDirectoryBrowserInfoDto, + () => DefaultDirectoryBrowserInfoDto.fromJsonFactory, + ); return _environmentDefaultDirectoryBrowserGet(); } ///Get Default directory browser. - @Get(path: '/Environment/DefaultDirectoryBrowser') + @GET(path: '/Environment/DefaultDirectoryBrowser') Future> - _environmentDefaultDirectoryBrowserGet(); + _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({ + environmentDirectoryContentsGet({ required String? path, bool? includeFiles, bool? includeDirectories, }) { generatedMapping.putIfAbsent( - FileSystemEntryInfo, () => FileSystemEntryInfo.fromJsonFactory); + FileSystemEntryInfo, + () => FileSystemEntryInfo.fromJsonFactory, + ); return _environmentDirectoryContentsGet( - path: path, - includeFiles: includeFiles, - includeDirectories: includeDirectories); + path: path, + includeFiles: includeFiles, + includeDirectories: includeDirectories, + ); } ///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. - @Get(path: '/Environment/DirectoryContents') + @GET(path: '/Environment/DirectoryContents') Future>> - _environmentDirectoryContentsGet({ + _environmentDirectoryContentsGet({ @Query('path') required String? path, @Query('includeFiles') bool? includeFiles, @Query('includeDirectories') bool? includeDirectories, @@ -4636,57 +4698,62 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available drives from the server's file system. Future>> environmentDrivesGet() { generatedMapping.putIfAbsent( - FileSystemEntryInfo, () => FileSystemEntryInfo.fromJsonFactory); + FileSystemEntryInfo, + () => FileSystemEntryInfo.fromJsonFactory, + ); return _environmentDrivesGet(); } ///Gets available drives from the server's file system. - @Get(path: '/Environment/Drives') + @GET(path: '/Environment/Drives') Future>> _environmentDrivesGet(); ///Gets network paths. @deprecated Future>> - environmentNetworkSharesGet() { + environmentNetworkSharesGet() { generatedMapping.putIfAbsent( - FileSystemEntryInfo, () => FileSystemEntryInfo.fromJsonFactory); + FileSystemEntryInfo, + () => FileSystemEntryInfo.fromJsonFactory, + ); return _environmentNetworkSharesGet(); } ///Gets network paths. @deprecated - @Get(path: '/Environment/NetworkShares') + @GET(path: '/Environment/NetworkShares') Future>> - _environmentNetworkSharesGet(); + _environmentNetworkSharesGet(); ///Gets the parent path of a given path. ///@param path The path. - Future> environmentParentPathGet( - {required String? path}) { + Future> environmentParentPathGet({ + required String? path, + }) { return _environmentParentPathGet(path: path); } ///Gets the parent path of a given path. ///@param path The path. - @Get(path: '/Environment/ParentPath') - Future> _environmentParentPathGet( - {@Query('path') required String? path}); + @GET(path: '/Environment/ParentPath') + Future> _environmentParentPathGet({ + @Query('path') required String? path, + }); ///Validates path. - Future environmentValidatePathPost( - {required ValidatePathDto? body}) { + Future environmentValidatePathPost({ + required ValidatePathDto? body, + }) { return _environmentValidatePathPost(body: body); } ///Validates path. - @Post( - path: '/Environment/ValidatePath', - optionalBody: true, - ) - Future _environmentValidatePathPost( - {@Body() required ValidatePathDto? body}); + @POST(path: '/Environment/ValidatePath', optionalBody: true) + Future _environmentValidatePathPost({ + @Body() required ValidatePathDto? body, + }); ///Gets legacy query filters. ///@param userId Optional. User id. @@ -4700,13 +4767,16 @@ abstract class JellyfinOpenApi extends ChopperService { List? mediaTypes, }) { generatedMapping.putIfAbsent( - QueryFiltersLegacy, () => QueryFiltersLegacy.fromJsonFactory); + QueryFiltersLegacy, + () => QueryFiltersLegacy.fromJsonFactory, + ); return _itemsFiltersGet( - userId: userId, - parentId: parentId, - includeItemTypes: baseItemKindListToJson(includeItemTypes), - mediaTypes: mediaTypeListToJson(mediaTypes)); + userId: userId, + parentId: parentId, + includeItemTypes: baseItemKindListToJson(includeItemTypes), + mediaTypes: mediaTypeListToJson(mediaTypes), + ); } ///Gets legacy query filters. @@ -4714,7 +4784,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param parentId Optional. Parent id. ///@param includeItemTypes Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. ///@param mediaTypes Optional. Filter by MediaType. Allows multiple, comma delimited. - @Get(path: '/Items/Filters') + @GET(path: '/Items/Filters') Future> _itemsFiltersGet({ @Query('userId') String? userId, @Query('parentId') String? parentId, @@ -4746,19 +4816,22 @@ abstract class JellyfinOpenApi extends ChopperService { bool? recursive, }) { generatedMapping.putIfAbsent( - QueryFilters, () => QueryFilters.fromJsonFactory); + QueryFilters, + () => QueryFilters.fromJsonFactory, + ); return _itemsFilters2Get( - userId: userId, - parentId: parentId, - includeItemTypes: baseItemKindListToJson(includeItemTypes), - isAiring: isAiring, - isMovie: isMovie, - isSports: isSports, - isKids: isKids, - isNews: isNews, - isSeries: isSeries, - recursive: recursive); + userId: userId, + parentId: parentId, + includeItemTypes: baseItemKindListToJson(includeItemTypes), + isAiring: isAiring, + isMovie: isMovie, + isSports: isSports, + isKids: isKids, + isNews: isNews, + isSeries: isSeries, + recursive: recursive, + ); } ///Gets query filters. @@ -4772,7 +4845,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param isNews Optional. Is item news. ///@param isSeries Optional. Is item series. ///@param recursive Optional. Search recursive. - @Get(path: '/Items/Filters2') + @GET(path: '/Items/Filters2') Future> _itemsFilters2Get({ @Query('userId') String? userId, @Query('parentId') String? parentId, @@ -4826,27 +4899,30 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _genresGet( - startIndex: startIndex, - limit: limit, - searchTerm: searchTerm, - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - isFavorite: isFavorite, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - userId: userId, - nameStartsWithOrGreater: nameStartsWithOrGreater, - nameStartsWith: nameStartsWith, - nameLessThan: nameLessThan, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder), - enableImages: enableImages, - enableTotalRecordCount: enableTotalRecordCount); + startIndex: startIndex, + limit: limit, + searchTerm: searchTerm, + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + isFavorite: isFavorite, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + userId: userId, + nameStartsWithOrGreater: nameStartsWithOrGreater, + nameStartsWith: nameStartsWith, + nameLessThan: nameLessThan, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + enableImages: enableImages, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets all genres from a given item, folder, or the entire library. @@ -4868,7 +4944,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortOrder Sort Order - Ascending,Descending. ///@param enableImages Optional, include image information in output. ///@param enableTotalRecordCount Optional. Include total record count. - @Get(path: '/Genres') + @GET(path: '/Genres') Future> _genresGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -4898,7 +4974,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _genresGenreNameGet(genreName: genreName, userId: userId); } @@ -4906,7 +4984,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a genre, by name. ///@param genreName The genre name. ///@param userId The user id. - @Get(path: '/Genres/{genreName}') + @GET(path: '/Genres/{genreName}') Future> _genresGenreNameGet({ @Path('genreName') required String? genreName, @Query('userId') String? userId, @@ -4920,13 +4998,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? segmentId, }) { return _audioItemIdHlsSegmentIdStreamAacGet( - itemId: itemId, segmentId: segmentId); + itemId: itemId, + segmentId: segmentId, + ); } ///Gets the specified audio segment for an audio item. ///@param itemId The item id. ///@param segmentId The segment id. - @Get(path: '/Audio/{itemId}/hls/{segmentId}/stream.aac') + @GET(path: '/Audio/{itemId}/hls/{segmentId}/stream.aac') Future> _audioItemIdHlsSegmentIdStreamAacGet({ @Path('itemId') required String? itemId, @Path('segmentId') required String? segmentId, @@ -4940,13 +5020,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? segmentId, }) { return _audioItemIdHlsSegmentIdStreamMp3Get( - itemId: itemId, segmentId: segmentId); + itemId: itemId, + segmentId: segmentId, + ); } ///Gets the specified audio segment for an audio item. ///@param itemId The item id. ///@param segmentId The segment id. - @Get(path: '/Audio/{itemId}/hls/{segmentId}/stream.mp3') + @GET(path: '/Audio/{itemId}/hls/{segmentId}/stream.mp3') Future> _audioItemIdHlsSegmentIdStreamMp3Get({ @Path('itemId') required String? itemId, @Path('segmentId') required String? segmentId, @@ -4958,17 +5040,18 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param segmentId The segment id. ///@param segmentContainer The segment container. Future> - videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ required String? itemId, required String? playlistId, required String? segmentId, required String? segmentContainer, }) { return _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet( - itemId: itemId, - playlistId: playlistId, - segmentId: segmentId, - segmentContainer: segmentContainer); + itemId: itemId, + playlistId: playlistId, + segmentId: segmentId, + segmentContainer: segmentContainer, + ); } ///Gets a hls video segment. @@ -4976,9 +5059,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param playlistId The playlist id. ///@param segmentId The segment id. ///@param segmentContainer The segment container. - @Get(path: '/Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}') + @GET(path: '/Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}') Future> - _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required String? segmentId, @@ -4993,13 +5076,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? playlistId, }) { return _videosItemIdHlsPlaylistIdStreamM3u8Get( - itemId: itemId, playlistId: playlistId); + itemId: itemId, + playlistId: playlistId, + ); } ///Gets a hls video playlist. ///@param itemId The video id. ///@param playlistId The playlist id. - @Get(path: '/Videos/{itemId}/hls/{playlistId}/stream.m3u8') + @GET(path: '/Videos/{itemId}/hls/{playlistId}/stream.m3u8') Future> _videosItemIdHlsPlaylistIdStreamM3u8Get({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @@ -5013,13 +5098,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? playSessionId, }) { return _videosActiveEncodingsDelete( - deviceId: deviceId, playSessionId: playSessionId); + deviceId: deviceId, + playSessionId: playSessionId, + ); } ///Stops an active encoding. ///@param deviceId The device id of the client requesting. Used to stop encoding processes when needed. ///@param playSessionId The play session id. - @Delete(path: '/Videos/ActiveEncodings') + @DELETE(path: '/Videos/ActiveEncodings') Future _videosActiveEncodingsDelete({ @Query('deviceId') required String? deviceId, @Query('playSessionId') required String? playSessionId, @@ -5063,23 +5150,24 @@ abstract class JellyfinOpenApi extends ChopperService { required int? imageIndex, }) { return _artistsNameImagesImageTypeImageIndexGet( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get artist image by name. @@ -5100,7 +5188,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. ///@param imageIndex Image index. - @Get(path: '/Artists/{name}/Images/{imageType}/{imageIndex}') + @GET(path: '/Artists/{name}/Images/{imageType}/{imageIndex}') Future> _artistsNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -5159,23 +5247,24 @@ abstract class JellyfinOpenApi extends ChopperService { required int? imageIndex, }) { return _artistsNameImagesImageTypeImageIndexHead( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get artist image by name. @@ -5196,7 +5285,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. ///@param imageIndex Image index. - @Head(path: '/Artists/{name}/Images/{imageType}/{imageIndex}') + @HEAD(path: '/Artists/{name}/Images/{imageType}/{imageIndex}') Future> _artistsNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -5245,18 +5334,19 @@ abstract class JellyfinOpenApi extends ChopperService { int? quality, }) { return _brandingSplashscreenGet( - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - width: width, - height: height, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - quality: quality); + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + width: width, + height: height, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + quality: quality, + ); } ///Generates or gets the splashscreen. @@ -5272,7 +5362,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param backgroundColor Apply a background color for transparent images. ///@param foregroundLayer Apply a foreground layer on top of the image. ///@param quality Quality setting, from 0-100. - @Get(path: '/Branding/Splashscreen') + @GET(path: '/Branding/Splashscreen') Future> _brandingSplashscreenGet({ @Query('tag') String? tag, @Query('format') String? format, @@ -5296,12 +5386,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Uploads a custom splashscreen. ///The body is expected to the image contents base64 encoded. - @Post( - path: '/Branding/Splashscreen', - optionalBody: true, - ) - Future _brandingSplashscreenPost( - {@Body() required Object? body}); + @POST(path: '/Branding/Splashscreen', optionalBody: true) + Future _brandingSplashscreenPost({ + @Body() required Object? body, + }); ///Delete a custom splashscreen. Future brandingSplashscreenDelete() { @@ -5309,7 +5397,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Delete a custom splashscreen. - @Delete(path: '/Branding/Splashscreen') + @DELETE(path: '/Branding/Splashscreen') Future _brandingSplashscreenDelete(); ///Get genre image by name. @@ -5350,23 +5438,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _genresNameImagesImageTypeGet( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get genre image by name. @@ -5387,7 +5476,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. ///@param imageIndex Image index. - @Get(path: '/Genres/{name}/Images/{imageType}') + @GET(path: '/Genres/{name}/Images/{imageType}') Future> _genresNameImagesImageTypeGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -5446,23 +5535,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _genresNameImagesImageTypeHead( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get genre image by name. @@ -5483,7 +5573,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. ///@param imageIndex Image index. - @Head(path: '/Genres/{name}/Images/{imageType}') + @HEAD(path: '/Genres/{name}/Images/{imageType}') Future> _genresNameImagesImageTypeHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -5542,23 +5632,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _genresNameImagesImageTypeImageIndexGet( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get genre image by name. @@ -5579,7 +5670,7 @@ 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. - @Get(path: '/Genres/{name}/Images/{imageType}/{imageIndex}') + @GET(path: '/Genres/{name}/Images/{imageType}/{imageIndex}') Future> _genresNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -5638,23 +5729,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _genresNameImagesImageTypeImageIndexHead( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get genre image by name. @@ -5675,7 +5767,7 @@ 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. - @Head(path: '/Genres/{name}/Images/{imageType}/{imageIndex}') + @HEAD(path: '/Genres/{name}/Images/{imageType}/{imageIndex}') Future> _genresNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -5698,8 +5790,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get item image infos. ///@param itemId Item id. - Future>> itemsItemIdImagesGet( - {required String? itemId}) { + Future>> itemsItemIdImagesGet({ + required String? itemId, + }) { generatedMapping.putIfAbsent(ImageInfo, () => ImageInfo.fromJsonFactory); return _itemsItemIdImagesGet(itemId: itemId); @@ -5707,9 +5800,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get item image infos. ///@param itemId Item id. - @Get(path: '/Items/{itemId}/Images') - Future>> _itemsItemIdImagesGet( - {@Path('itemId') required String? itemId}); + @GET(path: '/Items/{itemId}/Images') + Future>> _itemsItemIdImagesGet({ + @Path('itemId') required String? itemId, + }); ///Delete an item's image. ///@param itemId Item id. @@ -5721,16 +5815,17 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _itemsItemIdImagesImageTypeDelete( - itemId: itemId, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex); + itemId: itemId, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + ); } ///Delete an item's image. ///@param itemId Item id. ///@param imageType Image type. ///@param imageIndex The image index. - @Delete(path: '/Items/{itemId}/Images/{imageType}') + @DELETE(path: '/Items/{itemId}/Images/{imageType}') Future _itemsItemIdImagesImageTypeDelete({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @@ -5746,16 +5841,16 @@ abstract class JellyfinOpenApi extends ChopperService { required Object? body, }) { return _itemsItemIdImagesImageTypePost( - itemId: itemId, imageType: imageType?.value?.toString(), body: body); + itemId: itemId, + imageType: imageType?.value?.toString(), + body: body, + ); } ///Set item image. ///@param itemId Item id. ///@param imageType Image type. - @Post( - path: '/Items/{itemId}/Images/{imageType}', - optionalBody: true, - ) + @POST(path: '/Items/{itemId}/Images/{imageType}', optionalBody: true) Future _itemsItemIdImagesImageTypePost({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @@ -5800,23 +5895,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _itemsItemIdImagesImageTypeGet( - itemId: itemId, - imageType: imageType?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - tag: tag, - format: format?.value?.toString(), - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + itemId: itemId, + imageType: imageType?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + tag: tag, + format: format?.value?.toString(), + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Gets the item's image. @@ -5837,7 +5933,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. ///@param imageIndex Image index. - @Get(path: '/Items/{itemId}/Images/{imageType}') + @GET(path: '/Items/{itemId}/Images/{imageType}') Future> _itemsItemIdImagesImageTypeGet({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @@ -5896,23 +5992,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _itemsItemIdImagesImageTypeHead( - itemId: itemId, - imageType: imageType?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - tag: tag, - format: format?.value?.toString(), - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + itemId: itemId, + imageType: imageType?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + tag: tag, + format: format?.value?.toString(), + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Gets the item's image. @@ -5933,7 +6030,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. ///@param imageIndex Image index. - @Head(path: '/Items/{itemId}/Images/{imageType}') + @HEAD(path: '/Items/{itemId}/Images/{imageType}') Future> _itemsItemIdImagesImageTypeHead({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @@ -5961,20 +6058,21 @@ abstract class JellyfinOpenApi extends ChopperService { Future itemsItemIdImagesImageTypeImageIndexDelete({ required String? itemId, required enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? - imageType, + imageType, required int? imageIndex, }) { return _itemsItemIdImagesImageTypeImageIndexDelete( - itemId: itemId, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex); + itemId: itemId, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + ); } ///Delete an item's image. ///@param itemId Item id. ///@param imageType Image type. ///@param imageIndex The image index. - @Delete(path: '/Items/{itemId}/Images/{imageType}/{imageIndex}') + @DELETE(path: '/Items/{itemId}/Images/{imageType}/{imageIndex}') Future _itemsItemIdImagesImageTypeImageIndexDelete({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @@ -5992,17 +6090,18 @@ abstract class JellyfinOpenApi extends ChopperService { required Object? body, }) { return _itemsItemIdImagesImageTypeImageIndexPost( - itemId: itemId, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - body: body); + itemId: itemId, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + body: body, + ); } ///Set item image. ///@param itemId Item id. ///@param imageType Image type. ///@param imageIndex (Unused) Image index. - @Post( + @POST( path: '/Items/{itemId}/Images/{imageType}/{imageIndex}', optionalBody: true, ) @@ -6051,23 +6150,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _itemsItemIdImagesImageTypeImageIndexGet( - itemId: itemId, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - maxWidth: maxWidth, - maxHeight: maxHeight, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - tag: tag, - format: format?.value?.toString(), - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + itemId: itemId, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + maxWidth: maxWidth, + maxHeight: maxHeight, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + tag: tag, + format: format?.value?.toString(), + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Gets the item's image. @@ -6088,7 +6188,7 @@ 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. - @Get(path: '/Items/{itemId}/Images/{imageType}/{imageIndex}') + @GET(path: '/Items/{itemId}/Images/{imageType}/{imageIndex}') Future> _itemsItemIdImagesImageTypeImageIndexGet({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @@ -6147,23 +6247,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _itemsItemIdImagesImageTypeImageIndexHead( - itemId: itemId, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - maxWidth: maxWidth, - maxHeight: maxHeight, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - tag: tag, - format: format?.value?.toString(), - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + itemId: itemId, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + maxWidth: maxWidth, + maxHeight: maxHeight, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + tag: tag, + format: format?.value?.toString(), + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Gets the item's image. @@ -6184,7 +6285,7 @@ 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. - @Head(path: '/Items/{itemId}/Images/{imageType}/{imageIndex}') + @HEAD(path: '/Items/{itemId}/Images/{imageType}/{imageIndex}') Future> _itemsItemIdImagesImageTypeImageIndexHead({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @@ -6224,11 +6325,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, + required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? + imageType, required int? maxWidth, required int? maxHeight, int? width, @@ -6237,9 +6337,8 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillWidth, int? fillHeight, required String? tag, - required enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - format, + required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6248,23 +6347,24 @@ abstract class JellyfinOpenApi extends ChopperService { required int? imageIndex, }) { return _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet( - itemId: itemId, - imageType: imageType?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - tag: tag, - format: format?.value?.toString(), - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + itemId: itemId, + imageType: imageType?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + tag: tag, + format: format?.value?.toString(), + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Gets the item's image. @@ -6285,11 +6385,12 @@ 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. ///@param imageIndex Image index. - @Get( - path: - '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}') + @GET( + path: + '/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, @@ -6328,11 +6429,10 @@ 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, @@ -6341,9 +6441,8 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillWidth, int? fillHeight, required String? tag, - required enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - format, + required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6352,23 +6451,24 @@ abstract class JellyfinOpenApi extends ChopperService { required int? imageIndex, }) { return _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead( - itemId: itemId, - imageType: imageType?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - tag: tag, - format: format?.value?.toString(), - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + itemId: itemId, + imageType: imageType?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + tag: tag, + format: format?.value?.toString(), + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Gets the item's image. @@ -6389,11 +6489,12 @@ 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. ///@param imageIndex Image index. - @Head( - path: - '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}') + @HEAD( + path: + '/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, @@ -6421,15 +6522,16 @@ abstract class JellyfinOpenApi extends ChopperService { Future itemsItemIdImagesImageTypeImageIndexIndexPost({ required String? itemId, required enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? - imageType, + imageType, required int? imageIndex, required int? newIndex, }) { return _itemsItemIdImagesImageTypeImageIndexIndexPost( - itemId: itemId, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - newIndex: newIndex); + itemId: itemId, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + newIndex: newIndex, + ); } ///Updates the index for an item image. @@ -6437,7 +6539,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageType Image type. ///@param imageIndex Old image index. ///@param newIndex New image index. - @Post( + @POST( path: '/Items/{itemId}/Images/{imageType}/{imageIndex}/Index', optionalBody: true, ) @@ -6486,23 +6588,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _musicGenresNameImagesImageTypeGet( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get music genre image by name. @@ -6523,7 +6626,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. ///@param imageIndex Image index. - @Get(path: '/MusicGenres/{name}/Images/{imageType}') + @GET(path: '/MusicGenres/{name}/Images/{imageType}') Future> _musicGenresNameImagesImageTypeGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -6582,23 +6685,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _musicGenresNameImagesImageTypeHead( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get music genre image by name. @@ -6619,7 +6723,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. ///@param imageIndex Image index. - @Head(path: '/MusicGenres/{name}/Images/{imageType}') + @HEAD(path: '/MusicGenres/{name}/Images/{imageType}') Future> _musicGenresNameImagesImageTypeHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -6661,7 +6765,7 @@ abstract class JellyfinOpenApi extends ChopperService { Future> musicGenresNameImagesImageTypeImageIndexGet({ required String? name, required enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? - imageType, + imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? format, @@ -6679,23 +6783,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _musicGenresNameImagesImageTypeImageIndexGet( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get music genre image by name. @@ -6716,9 +6821,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. - @Get(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') + @GET(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') Future> - _musicGenresNameImagesImageTypeImageIndexGet({ + _musicGenresNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -6757,10 +6862,10 @@ 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. Future> - musicGenresNameImagesImageTypeImageIndexHead({ + musicGenresNameImagesImageTypeImageIndexHead({ required String? name, required enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? - imageType, + imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? format, @@ -6778,23 +6883,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _musicGenresNameImagesImageTypeImageIndexHead( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get music genre image by name. @@ -6815,9 +6921,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. - @Head(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') + @HEAD(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') Future> - _musicGenresNameImagesImageTypeImageIndexHead({ + _musicGenresNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -6875,23 +6981,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _personsNameImagesImageTypeGet( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get person image by name. @@ -6912,7 +7019,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. ///@param imageIndex Image index. - @Get(path: '/Persons/{name}/Images/{imageType}') + @GET(path: '/Persons/{name}/Images/{imageType}') Future> _personsNameImagesImageTypeGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -6971,23 +7078,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _personsNameImagesImageTypeHead( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get person image by name. @@ -7008,7 +7116,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. ///@param imageIndex Image index. - @Head(path: '/Persons/{name}/Images/{imageType}') + @HEAD(path: '/Persons/{name}/Images/{imageType}') Future> _personsNameImagesImageTypeHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -7067,23 +7175,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _personsNameImagesImageTypeImageIndexGet( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get person image by name. @@ -7104,7 +7213,7 @@ 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. - @Get(path: '/Persons/{name}/Images/{imageType}/{imageIndex}') + @GET(path: '/Persons/{name}/Images/{imageType}/{imageIndex}') Future> _personsNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -7163,23 +7272,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _personsNameImagesImageTypeImageIndexHead( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get person image by name. @@ -7200,7 +7310,7 @@ 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. - @Head(path: '/Persons/{name}/Images/{imageType}/{imageIndex}') + @HEAD(path: '/Persons/{name}/Images/{imageType}/{imageIndex}') Future> _personsNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -7259,23 +7369,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _studiosNameImagesImageTypeGet( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get studio image by name. @@ -7296,7 +7407,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. ///@param imageIndex Image index. - @Get(path: '/Studios/{name}/Images/{imageType}') + @GET(path: '/Studios/{name}/Images/{imageType}') Future> _studiosNameImagesImageTypeGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -7355,23 +7466,24 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _studiosNameImagesImageTypeHead( - name: name, - imageType: imageType?.value?.toString(), - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + name: name, + imageType: imageType?.value?.toString(), + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get studio image by name. @@ -7392,7 +7504,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. ///@param imageIndex Image index. - @Head(path: '/Studios/{name}/Images/{imageType}') + @HEAD(path: '/Studios/{name}/Images/{imageType}') Future> _studiosNameImagesImageTypeHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -7451,23 +7563,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _studiosNameImagesImageTypeImageIndexGet( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get studio image by name. @@ -7488,7 +7601,7 @@ 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. - @Get(path: '/Studios/{name}/Images/{imageType}/{imageIndex}') + @GET(path: '/Studios/{name}/Images/{imageType}/{imageIndex}') Future> _studiosNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -7547,23 +7660,24 @@ abstract class JellyfinOpenApi extends ChopperService { String? foregroundLayer, }) { return _studiosNameImagesImageTypeImageIndexHead( - name: name, - imageType: imageType?.value?.toString(), - imageIndex: imageIndex, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer); + name: name, + imageType: imageType?.value?.toString(), + imageIndex: imageIndex, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + ); } ///Get studio image by name. @@ -7584,7 +7698,7 @@ 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. - @Head(path: '/Studios/{name}/Images/{imageType}/{imageIndex}') + @HEAD(path: '/Studios/{name}/Images/{imageType}/{imageIndex}') Future> _studiosNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @@ -7616,10 +7730,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Sets the user image. ///@param userId User Id. - @Post( - path: '/UserImage', - optionalBody: true, - ) + @POST(path: '/UserImage', optionalBody: true) Future _userImagePost({ @Query('userId') String? userId, @Body() required Object? body, @@ -7633,7 +7744,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Delete the user's image. ///@param userId User Id. - @Delete(path: '/UserImage') + @DELETE(path: '/UserImage') Future _userImageDelete({@Query('userId') String? userId}); ///Get user profile image. @@ -7672,22 +7783,23 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _userImageGet( - userId: userId, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + userId: userId, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get user profile image. @@ -7707,7 +7819,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. ///@param imageIndex Image index. - @Get(path: '/UserImage') + @GET(path: '/UserImage') Future> _userImageGet({ @Query('userId') String? userId, @Query('tag') String? tag, @@ -7763,22 +7875,23 @@ abstract class JellyfinOpenApi extends ChopperService { int? imageIndex, }) { return _userImageHead( - userId: userId, - tag: tag, - format: format?.value?.toString(), - maxWidth: maxWidth, - maxHeight: maxHeight, - percentPlayed: percentPlayed, - unplayedCount: unplayedCount, - width: width, - height: height, - quality: quality, - fillWidth: fillWidth, - fillHeight: fillHeight, - blur: blur, - backgroundColor: backgroundColor, - foregroundLayer: foregroundLayer, - imageIndex: imageIndex); + userId: userId, + tag: tag, + format: format?.value?.toString(), + maxWidth: maxWidth, + maxHeight: maxHeight, + percentPlayed: percentPlayed, + unplayedCount: unplayedCount, + width: width, + height: height, + quality: quality, + fillWidth: fillWidth, + fillHeight: fillHeight, + blur: blur, + backgroundColor: backgroundColor, + foregroundLayer: foregroundLayer, + imageIndex: imageIndex, + ); } ///Get user profile image. @@ -7798,7 +7911,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. ///@param imageIndex Image index. - @Head(path: '/UserImage') + @HEAD(path: '/UserImage') Future> _userImageHead({ @Query('userId') String? userId, @Query('tag') String? tag, @@ -7838,17 +7951,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _albumsItemIdInstantMixGet( - itemId: itemId, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + itemId: itemId, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given album. @@ -7860,7 +7976,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. - @Get(path: '/Albums/{itemId}/InstantMix') + @GET(path: '/Albums/{itemId}/InstantMix') Future> _albumsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -7892,17 +8008,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _artistsItemIdInstantMixGet( - itemId: itemId, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + itemId: itemId, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given artist. @@ -7914,7 +8033,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. - @Get(path: '/Artists/{itemId}/InstantMix') + @GET(path: '/Artists/{itemId}/InstantMix') Future> _artistsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -7947,17 +8066,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _artistsInstantMixGet( - id: id, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + id: id, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given artist. @@ -7970,7 +8092,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. @deprecated - @Get(path: '/Artists/InstantMix') + @GET(path: '/Artists/InstantMix') Future> _artistsInstantMixGet({ @Query('id') required String? id, @Query('userId') String? userId, @@ -8002,17 +8124,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _itemsItemIdInstantMixGet( - itemId: itemId, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + itemId: itemId, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given item. @@ -8024,7 +8149,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. - @Get(path: '/Items/{itemId}/InstantMix') + @GET(path: '/Items/{itemId}/InstantMix') Future> _itemsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -8046,7 +8171,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. Future> - musicGenresNameInstantMixGet({ + musicGenresNameInstantMixGet({ required String? name, String? userId, int? limit, @@ -8057,17 +8182,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _musicGenresNameInstantMixGet( - name: name, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + name: name, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given genre. @@ -8079,9 +8207,9 @@ 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. - @Get(path: '/MusicGenres/{name}/InstantMix') + @GET(path: '/MusicGenres/{name}/InstantMix') Future> - _musicGenresNameInstantMixGet({ + _musicGenresNameInstantMixGet({ @Path('name') required String? name, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8112,17 +8240,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _musicGenresInstantMixGet( - id: id, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + id: id, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given genre. @@ -8134,7 +8265,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. - @Get(path: '/MusicGenres/InstantMix') + @GET(path: '/MusicGenres/InstantMix') Future> _musicGenresInstantMixGet({ @Query('id') required String? id, @Query('userId') String? userId, @@ -8156,7 +8287,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. Future> - playlistsItemIdInstantMixGet({ + playlistsItemIdInstantMixGet({ required String? itemId, String? userId, int? limit, @@ -8167,17 +8298,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _playlistsItemIdInstantMixGet( - itemId: itemId, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + itemId: itemId, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given playlist. @@ -8189,9 +8323,9 @@ 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. - @Get(path: '/Playlists/{itemId}/InstantMix') + @GET(path: '/Playlists/{itemId}/InstantMix') Future> - _playlistsItemIdInstantMixGet({ + _playlistsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8222,17 +8356,20 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _songsItemIdInstantMixGet( - itemId: itemId, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + itemId: itemId, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Creates an instant playlist based on a given song. @@ -8244,7 +8381,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. - @Get(path: '/Songs/{itemId}/InstantMix') + @GET(path: '/Songs/{itemId}/InstantMix') Future> _songsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -8258,19 +8395,22 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get the item's external id info. ///@param itemId Item id. - Future>> itemsItemIdExternalIdInfosGet( - {required String? itemId}) { + Future>> itemsItemIdExternalIdInfosGet({ + required String? itemId, + }) { generatedMapping.putIfAbsent( - ExternalIdInfo, () => ExternalIdInfo.fromJsonFactory); + ExternalIdInfo, + () => ExternalIdInfo.fromJsonFactory, + ); return _itemsItemIdExternalIdInfosGet(itemId: itemId); } ///Get the item's external id info. ///@param itemId Item id. - @Get(path: '/Items/{itemId}/ExternalIdInfos') - Future>> _itemsItemIdExternalIdInfosGet( - {@Path('itemId') required String? itemId}); + @GET(path: '/Items/{itemId}/ExternalIdInfos') + Future>> + _itemsItemIdExternalIdInfosGet({@Path('itemId') required String? itemId}); ///Applies search criteria to an item and refreshes metadata. ///@param itemId Item id. @@ -8281,16 +8421,16 @@ abstract class JellyfinOpenApi extends ChopperService { required RemoteSearchResult? body, }) { return _itemsRemoteSearchApplyItemIdPost( - itemId: itemId, replaceAllImages: replaceAllImages, body: body); + itemId: itemId, + replaceAllImages: replaceAllImages, + body: body, + ); } ///Applies search criteria to an item and refreshes metadata. ///@param itemId Item id. ///@param replaceAllImages Optional. Whether or not to replace all images. Default: True. - @Post( - path: '/Items/RemoteSearch/Apply/{itemId}', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/Apply/{itemId}', optionalBody: true) Future _itemsRemoteSearchApplyItemIdPost({ @Path('itemId') required String? itemId, @Query('replaceAllImages') bool? replaceAllImages, @@ -8298,172 +8438,173 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Get book remote search. - Future>> itemsRemoteSearchBookPost( - {required BookInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchBookPost({ + required BookInfoRemoteSearchQuery? body, + }) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchBookPost(body: body); } ///Get book remote search. - @Post( - path: '/Items/RemoteSearch/Book', - optionalBody: true, - ) - Future>> _itemsRemoteSearchBookPost( - {@Body() required BookInfoRemoteSearchQuery? body}); + @POST(path: '/Items/RemoteSearch/Book', optionalBody: true) + Future>> + _itemsRemoteSearchBookPost({ + @Body() required BookInfoRemoteSearchQuery? body, + }); ///Get box set remote search. Future>> - itemsRemoteSearchBoxSetPost( - {required BoxSetInfoRemoteSearchQuery? body}) { + itemsRemoteSearchBoxSetPost({required BoxSetInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchBoxSetPost(body: body); } ///Get box set remote search. - @Post( - path: '/Items/RemoteSearch/BoxSet', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/BoxSet', optionalBody: true) Future>> - _itemsRemoteSearchBoxSetPost( - {@Body() required BoxSetInfoRemoteSearchQuery? body}); + _itemsRemoteSearchBoxSetPost({ + @Body() required BoxSetInfoRemoteSearchQuery? body, + }); ///Get movie remote search. - Future>> itemsRemoteSearchMoviePost( - {required MovieInfoRemoteSearchQuery? body}) { + Future>> + itemsRemoteSearchMoviePost({required MovieInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchMoviePost(body: body); } ///Get movie remote search. - @Post( - path: '/Items/RemoteSearch/Movie', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/Movie', optionalBody: true) Future>> - _itemsRemoteSearchMoviePost( - {@Body() required MovieInfoRemoteSearchQuery? body}); + _itemsRemoteSearchMoviePost({ + @Body() required MovieInfoRemoteSearchQuery? body, + }); ///Get music album remote search. Future>> - itemsRemoteSearchMusicAlbumPost( - {required AlbumInfoRemoteSearchQuery? body}) { + itemsRemoteSearchMusicAlbumPost({required AlbumInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchMusicAlbumPost(body: body); } ///Get music album remote search. - @Post( - path: '/Items/RemoteSearch/MusicAlbum', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/MusicAlbum', optionalBody: true) Future>> - _itemsRemoteSearchMusicAlbumPost( - {@Body() required AlbumInfoRemoteSearchQuery? body}); + _itemsRemoteSearchMusicAlbumPost({ + @Body() required AlbumInfoRemoteSearchQuery? body, + }); ///Get music artist remote search. Future>> - itemsRemoteSearchMusicArtistPost( - {required ArtistInfoRemoteSearchQuery? body}) { + itemsRemoteSearchMusicArtistPost({ + required ArtistInfoRemoteSearchQuery? body, + }) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchMusicArtistPost(body: body); } ///Get music artist remote search. - @Post( - path: '/Items/RemoteSearch/MusicArtist', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/MusicArtist', optionalBody: true) Future>> - _itemsRemoteSearchMusicArtistPost( - {@Body() required ArtistInfoRemoteSearchQuery? body}); + _itemsRemoteSearchMusicArtistPost({ + @Body() required ArtistInfoRemoteSearchQuery? body, + }); ///Get music video remote search. Future>> - itemsRemoteSearchMusicVideoPost( - {required MusicVideoInfoRemoteSearchQuery? body}) { + itemsRemoteSearchMusicVideoPost({ + required MusicVideoInfoRemoteSearchQuery? body, + }) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchMusicVideoPost(body: body); } ///Get music video remote search. - @Post( - path: '/Items/RemoteSearch/MusicVideo', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/MusicVideo', optionalBody: true) Future>> - _itemsRemoteSearchMusicVideoPost( - {@Body() required MusicVideoInfoRemoteSearchQuery? body}); + _itemsRemoteSearchMusicVideoPost({ + @Body() required MusicVideoInfoRemoteSearchQuery? body, + }); ///Get person remote search. Future>> - itemsRemoteSearchPersonPost( - {required PersonLookupInfoRemoteSearchQuery? body}) { + itemsRemoteSearchPersonPost({ + required PersonLookupInfoRemoteSearchQuery? body, + }) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchPersonPost(body: body); } ///Get person remote search. - @Post( - path: '/Items/RemoteSearch/Person', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/Person', optionalBody: true) Future>> - _itemsRemoteSearchPersonPost( - {@Body() required PersonLookupInfoRemoteSearchQuery? body}); + _itemsRemoteSearchPersonPost({ + @Body() required PersonLookupInfoRemoteSearchQuery? body, + }); ///Get series remote search. Future>> - itemsRemoteSearchSeriesPost( - {required SeriesInfoRemoteSearchQuery? body}) { + itemsRemoteSearchSeriesPost({required SeriesInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchSeriesPost(body: body); } ///Get series remote search. - @Post( - path: '/Items/RemoteSearch/Series', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/Series', optionalBody: true) Future>> - _itemsRemoteSearchSeriesPost( - {@Body() required SeriesInfoRemoteSearchQuery? body}); + _itemsRemoteSearchSeriesPost({ + @Body() required SeriesInfoRemoteSearchQuery? body, + }); ///Get trailer remote search. Future>> - itemsRemoteSearchTrailerPost( - {required TrailerInfoRemoteSearchQuery? body}) { + itemsRemoteSearchTrailerPost({required TrailerInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( - RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory); + RemoteSearchResult, + () => RemoteSearchResult.fromJsonFactory, + ); return _itemsRemoteSearchTrailerPost(body: body); } ///Get trailer remote search. - @Post( - path: '/Items/RemoteSearch/Trailer', - optionalBody: true, - ) + @POST(path: '/Items/RemoteSearch/Trailer', optionalBody: true) Future>> - _itemsRemoteSearchTrailerPost( - {@Body() required TrailerInfoRemoteSearchQuery? body}); + _itemsRemoteSearchTrailerPost({ + @Body() required TrailerInfoRemoteSearchQuery? body, + }); ///Refreshes metadata for an item. ///@param itemId Item id. @@ -8479,11 +8620,12 @@ abstract class JellyfinOpenApi extends ChopperService { bool? replaceAllImages, }) { return _itemsItemIdRefreshPost( - itemId: itemId, - metadataRefreshMode: metadataRefreshMode?.value?.toString(), - imageRefreshMode: imageRefreshMode?.value?.toString(), - replaceAllMetadata: replaceAllMetadata, - replaceAllImages: replaceAllImages); + itemId: itemId, + metadataRefreshMode: metadataRefreshMode?.value?.toString(), + imageRefreshMode: imageRefreshMode?.value?.toString(), + replaceAllMetadata: replaceAllMetadata, + replaceAllImages: replaceAllImages, + ); } ///Refreshes metadata for an item. @@ -8492,10 +8634,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageRefreshMode (Optional) Specifies the image refresh mode. ///@param replaceAllMetadata (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. ///@param replaceAllImages (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. - @Post( - path: '/Items/{itemId}/Refresh', - optionalBody: true, - ) + @POST(path: '/Items/{itemId}/Refresh', optionalBody: true) Future _itemsItemIdRefreshPost({ @Path('itemId') required String? itemId, @Query('metadataRefreshMode') String? metadataRefreshMode, @@ -8680,95 +8819,98 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableImages, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _itemsGet( - userId: userId, - maxOfficialRating: maxOfficialRating, - hasThemeSong: hasThemeSong, - hasThemeVideo: hasThemeVideo, - hasSubtitles: hasSubtitles, - hasSpecialFeature: hasSpecialFeature, - hasTrailer: hasTrailer, - adjacentTo: adjacentTo, - indexNumber: indexNumber, - parentIndexNumber: parentIndexNumber, - hasParentalRating: hasParentalRating, - isHd: isHd, - is4K: is4K, - locationTypes: locationTypeListToJson(locationTypes), - excludeLocationTypes: locationTypeListToJson(excludeLocationTypes), - isMissing: isMissing, - isUnaired: isUnaired, - minCommunityRating: minCommunityRating, - minCriticRating: minCriticRating, - minPremiereDate: minPremiereDate, - minDateLastSaved: minDateLastSaved, - minDateLastSavedForUser: minDateLastSavedForUser, - maxPremiereDate: maxPremiereDate, - hasOverview: hasOverview, - hasImdbId: hasImdbId, - hasTmdbId: hasTmdbId, - hasTvdbId: hasTvdbId, - isMovie: isMovie, - isSeries: isSeries, - isNews: isNews, - isKids: isKids, - isSports: isSports, - excludeItemIds: excludeItemIds, - startIndex: startIndex, - limit: limit, - recursive: recursive, - searchTerm: searchTerm, - sortOrder: sortOrderListToJson(sortOrder), - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - filters: itemFilterListToJson(filters), - isFavorite: isFavorite, - mediaTypes: mediaTypeListToJson(mediaTypes), - imageTypes: imageTypeListToJson(imageTypes), - sortBy: itemSortByListToJson(sortBy), - isPlayed: isPlayed, - genres: genres, - officialRatings: officialRatings, - tags: tags, - years: years, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - person: person, - personIds: personIds, - personTypes: personTypes, - studios: studios, - artists: artists, - excludeArtistIds: excludeArtistIds, - artistIds: artistIds, - albumArtistIds: albumArtistIds, - contributingArtistIds: contributingArtistIds, - albums: albums, - albumIds: albumIds, - ids: ids, - videoTypes: videoTypeListToJson(videoTypes), - minOfficialRating: minOfficialRating, - isLocked: isLocked, - isPlaceHolder: isPlaceHolder, - hasOfficialRating: hasOfficialRating, - collapseBoxSetItems: collapseBoxSetItems, - minWidth: minWidth, - minHeight: minHeight, - maxWidth: maxWidth, - maxHeight: maxHeight, - is3D: is3D, - seriesStatus: seriesStatusListToJson(seriesStatus), - nameStartsWithOrGreater: nameStartsWithOrGreater, - nameStartsWith: nameStartsWith, - nameLessThan: nameLessThan, - studioIds: studioIds, - genreIds: genreIds, - enableTotalRecordCount: enableTotalRecordCount, - enableImages: enableImages); + userId: userId, + maxOfficialRating: maxOfficialRating, + hasThemeSong: hasThemeSong, + hasThemeVideo: hasThemeVideo, + hasSubtitles: hasSubtitles, + hasSpecialFeature: hasSpecialFeature, + hasTrailer: hasTrailer, + adjacentTo: adjacentTo, + indexNumber: indexNumber, + parentIndexNumber: parentIndexNumber, + hasParentalRating: hasParentalRating, + isHd: isHd, + is4K: is4K, + locationTypes: locationTypeListToJson(locationTypes), + excludeLocationTypes: locationTypeListToJson(excludeLocationTypes), + isMissing: isMissing, + isUnaired: isUnaired, + minCommunityRating: minCommunityRating, + minCriticRating: minCriticRating, + minPremiereDate: minPremiereDate, + minDateLastSaved: minDateLastSaved, + minDateLastSavedForUser: minDateLastSavedForUser, + maxPremiereDate: maxPremiereDate, + hasOverview: hasOverview, + hasImdbId: hasImdbId, + hasTmdbId: hasTmdbId, + hasTvdbId: hasTvdbId, + isMovie: isMovie, + isSeries: isSeries, + isNews: isNews, + isKids: isKids, + isSports: isSports, + excludeItemIds: excludeItemIds, + startIndex: startIndex, + limit: limit, + recursive: recursive, + searchTerm: searchTerm, + sortOrder: sortOrderListToJson(sortOrder), + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + filters: itemFilterListToJson(filters), + isFavorite: isFavorite, + mediaTypes: mediaTypeListToJson(mediaTypes), + imageTypes: imageTypeListToJson(imageTypes), + sortBy: itemSortByListToJson(sortBy), + isPlayed: isPlayed, + genres: genres, + officialRatings: officialRatings, + tags: tags, + years: years, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + person: person, + personIds: personIds, + personTypes: personTypes, + studios: studios, + artists: artists, + excludeArtistIds: excludeArtistIds, + artistIds: artistIds, + albumArtistIds: albumArtistIds, + contributingArtistIds: contributingArtistIds, + albums: albums, + albumIds: albumIds, + ids: ids, + videoTypes: videoTypeListToJson(videoTypes), + minOfficialRating: minOfficialRating, + isLocked: isLocked, + isPlaceHolder: isPlaceHolder, + hasOfficialRating: hasOfficialRating, + collapseBoxSetItems: collapseBoxSetItems, + minWidth: minWidth, + minHeight: minHeight, + maxWidth: maxWidth, + maxHeight: maxHeight, + is3D: is3D, + seriesStatus: seriesStatusListToJson(seriesStatus), + nameStartsWithOrGreater: nameStartsWithOrGreater, + nameStartsWith: nameStartsWith, + nameLessThan: nameLessThan, + studioIds: studioIds, + genreIds: genreIds, + enableTotalRecordCount: enableTotalRecordCount, + enableImages: enableImages, + ); } ///Gets items based on a query. @@ -8858,7 +9000,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param genreIds Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. ///@param enableTotalRecordCount Optional. Enable the total record count. ///@param enableImages Optional, include image information in output. - @Get(path: '/Items') + @GET(path: '/Items') Future> _itemsGet({ @Query('userId') String? userId, @Query('maxOfficialRating') String? maxOfficialRating, @@ -8956,7 +9098,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes items from the library and filesystem. ///@param ids The item ids. - @Delete(path: '/Items') + @DELETE(path: '/Items') Future _itemsDelete({@Query('ids') List? ids}); ///Get Item User Data. @@ -8967,7 +9109,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userItemsItemIdUserDataGet(userId: userId, itemId: itemId); } @@ -8975,7 +9119,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get Item User Data. ///@param userId The user id. ///@param itemId The item id. - @Get(path: '/UserItems/{itemId}/UserData') + @GET(path: '/UserItems/{itemId}/UserData') Future> _userItemsItemIdUserDataGet({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -8990,19 +9134,21 @@ abstract class JellyfinOpenApi extends ChopperService { required UpdateUserItemDataDto? body, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userItemsItemIdUserDataPost( - userId: userId, itemId: itemId, body: body); + userId: userId, + itemId: itemId, + body: body, + ); } ///Update Item User Data. ///@param userId The user id. ///@param itemId The item id. - @Post( - path: '/UserItems/{itemId}/UserData', - optionalBody: true, - ) + @POST(path: '/UserItems/{itemId}/UserData', optionalBody: true) Future> _userItemsItemIdUserDataPost({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -9043,24 +9189,27 @@ abstract class JellyfinOpenApi extends ChopperService { bool? excludeActiveSessions, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _userItemsResumeGet( - userId: userId, - startIndex: startIndex, - limit: limit, - searchTerm: searchTerm, - parentId: parentId, - fields: itemFieldsListToJson(fields), - mediaTypes: mediaTypeListToJson(mediaTypes), - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - enableTotalRecordCount: enableTotalRecordCount, - enableImages: enableImages, - excludeActiveSessions: excludeActiveSessions); + userId: userId, + startIndex: startIndex, + limit: limit, + searchTerm: searchTerm, + parentId: parentId, + fields: itemFieldsListToJson(fields), + mediaTypes: mediaTypeListToJson(mediaTypes), + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + enableTotalRecordCount: enableTotalRecordCount, + enableImages: enableImages, + excludeActiveSessions: excludeActiveSessions, + ); } ///Gets items based on a query. @@ -9079,7 +9228,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableTotalRecordCount Optional. Enable the total record count. ///@param enableImages Optional. Include image information in output. ///@param excludeActiveSessions Optional. Whether to exclude the currently active sessions. - @Get(path: '/UserItems/Resume') + @GET(path: '/UserItems/Resume') Future> _userItemsResumeGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -9109,10 +9258,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates an item. ///@param itemId The item id. - @Post( - path: '/Items/{itemId}', - optionalBody: true, - ) + @POST(path: '/Items/{itemId}', optionalBody: true) Future _itemsItemIdPost({ @Path('itemId') required String? itemId, @Body() required BaseItemDto? body, @@ -9126,9 +9272,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes an item from the library and filesystem. ///@param itemId The item id. - @Delete(path: '/Items/{itemId}') - Future _itemsItemIdDelete( - {@Path('itemId') required String? itemId}); + @DELETE(path: '/Items/{itemId}') + Future _itemsItemIdDelete({ + @Path('itemId') required String? itemId, + }); ///Gets an item from a user's library. ///@param userId User id. @@ -9138,7 +9285,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _itemsItemIdGet(userId: userId, itemId: itemId); } @@ -9146,7 +9295,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets an item from a user's library. ///@param userId User id. ///@param itemId Item id. - @Get(path: '/Items/{itemId}') + @GET(path: '/Items/{itemId}') Future> _itemsItemIdGet({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -9160,16 +9309,15 @@ abstract class JellyfinOpenApi extends ChopperService { String? contentType, }) { return _itemsItemIdContentTypePost( - itemId: itemId, contentType: contentType); + itemId: itemId, + contentType: contentType, + ); } ///Updates an item's content type. ///@param itemId The item id. ///@param contentType The content type of the item. - @Post( - path: '/Items/{itemId}/ContentType', - optionalBody: true, - ) + @POST(path: '/Items/{itemId}/ContentType', optionalBody: true) Future _itemsItemIdContentTypePost({ @Path('itemId') required String? itemId, @Query('contentType') String? contentType, @@ -9177,19 +9325,23 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets metadata editor info for an item. ///@param itemId The item id. - Future> itemsItemIdMetadataEditorGet( - {required String? itemId}) { + Future> itemsItemIdMetadataEditorGet({ + required String? itemId, + }) { generatedMapping.putIfAbsent( - MetadataEditorInfo, () => MetadataEditorInfo.fromJsonFactory); + MetadataEditorInfo, + () => MetadataEditorInfo.fromJsonFactory, + ); return _itemsItemIdMetadataEditorGet(itemId: itemId); } ///Gets metadata editor info for an item. ///@param itemId The item id. - @Get(path: '/Items/{itemId}/MetadataEditor') - Future> _itemsItemIdMetadataEditorGet( - {@Path('itemId') required String? itemId}); + @GET(path: '/Items/{itemId}/MetadataEditor') + Future> _itemsItemIdMetadataEditorGet({ + @Path('itemId') required String? itemId, + }); ///Gets similar items. ///@param itemId The item id. @@ -9205,14 +9357,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? fields, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _albumsItemIdSimilarGet( - itemId: itemId, - excludeArtistIds: excludeArtistIds, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields)); + itemId: itemId, + excludeArtistIds: excludeArtistIds, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + ); } ///Gets similar items. @@ -9221,7 +9376,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId Optional. Filter by user id, and attach user data. ///@param limit Optional. The maximum number of records to return. ///@param fields Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. - @Get(path: '/Albums/{itemId}/Similar') + @GET(path: '/Albums/{itemId}/Similar') Future> _albumsItemIdSimilarGet({ @Path('itemId') required String? itemId, @Query('excludeArtistIds') List? excludeArtistIds, @@ -9244,14 +9399,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? fields, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _artistsItemIdSimilarGet( - itemId: itemId, - excludeArtistIds: excludeArtistIds, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields)); + itemId: itemId, + excludeArtistIds: excludeArtistIds, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + ); } ///Gets similar items. @@ -9260,7 +9418,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId Optional. Filter by user id, and attach user data. ///@param limit Optional. The maximum number of records to return. ///@param fields Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. - @Get(path: '/Artists/{itemId}/Similar') + @GET(path: '/Artists/{itemId}/Similar') Future> _artistsItemIdSimilarGet({ @Path('itemId') required String? itemId, @Query('excludeArtistIds') List? excludeArtistIds, @@ -9277,7 +9435,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _itemsItemIdAncestorsGet(itemId: itemId, userId: userId); } @@ -9285,7 +9445,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets all parents of an item. ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. - @Get(path: '/Items/{itemId}/Ancestors') + @GET(path: '/Items/{itemId}/Ancestors') Future>> _itemsItemIdAncestorsGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -9294,10 +9454,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets critic review for an item. ///@param itemId @deprecated - Future> itemsItemIdCriticReviewsGet( - {required String? itemId}) { + Future> itemsItemIdCriticReviewsGet({ + required String? itemId, + }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _itemsItemIdCriticReviewsGet(itemId: itemId); } @@ -9305,35 +9468,39 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets critic review for an item. ///@param itemId @deprecated - @Get(path: '/Items/{itemId}/CriticReviews') - Future> _itemsItemIdCriticReviewsGet( - {@Path('itemId') required String? itemId}); + @GET(path: '/Items/{itemId}/CriticReviews') + Future> + _itemsItemIdCriticReviewsGet({@Path('itemId') required String? itemId}); ///Downloads item media. ///@param itemId The item id. - Future> itemsItemIdDownloadGet( - {required String? itemId}) { + Future> itemsItemIdDownloadGet({ + required String? itemId, + }) { return _itemsItemIdDownloadGet(itemId: itemId); } ///Downloads item media. ///@param itemId The item id. - @Get(path: '/Items/{itemId}/Download') - Future> _itemsItemIdDownloadGet( - {@Path('itemId') required String? itemId}); + @GET(path: '/Items/{itemId}/Download') + Future> _itemsItemIdDownloadGet({ + @Path('itemId') required String? itemId, + }); ///Get the original file of an item. ///@param itemId The item id. - Future> itemsItemIdFileGet( - {required String? itemId}) { + Future> itemsItemIdFileGet({ + required String? itemId, + }) { return _itemsItemIdFileGet(itemId: itemId); } ///Get the original file of an item. ///@param itemId The item id. - @Get(path: '/Items/{itemId}/File') - Future> _itemsItemIdFileGet( - {@Path('itemId') required String? itemId}); + @GET(path: '/Items/{itemId}/File') + Future> _itemsItemIdFileGet({ + @Path('itemId') required String? itemId, + }); ///Gets similar items. ///@param itemId The item id. @@ -9349,14 +9516,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? fields, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _itemsItemIdSimilarGet( - itemId: itemId, - excludeArtistIds: excludeArtistIds, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields)); + itemId: itemId, + excludeArtistIds: excludeArtistIds, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + ); } ///Gets similar items. @@ -9365,7 +9535,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId Optional. Filter by user id, and attach user data. ///@param limit Optional. The maximum number of records to return. ///@param fields Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. - @Get(path: '/Items/{itemId}/Similar') + @GET(path: '/Items/{itemId}/Similar') Future> _itemsItemIdSimilarGet({ @Path('itemId') required String? itemId, @Query('excludeArtistIds') List? excludeArtistIds, @@ -9388,14 +9558,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? sortOrder, }) { generatedMapping.putIfAbsent( - AllThemeMediaResult, () => AllThemeMediaResult.fromJsonFactory); + AllThemeMediaResult, + () => AllThemeMediaResult.fromJsonFactory, + ); return _itemsItemIdThemeMediaGet( - itemId: itemId, - userId: userId, - inheritFromParent: inheritFromParent, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder)); + itemId: itemId, + userId: userId, + inheritFromParent: inheritFromParent, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + ); } ///Get theme songs and videos for an item. @@ -9404,7 +9577,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param inheritFromParent Optional. Determines whether or not parent items should be searched for theme media. ///@param sortBy Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. ///@param sortOrder Optional. Sort Order - Ascending, Descending. - @Get(path: '/Items/{itemId}/ThemeMedia') + @GET(path: '/Items/{itemId}/ThemeMedia') Future> _itemsItemIdThemeMediaGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -9427,14 +9600,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? sortOrder, }) { generatedMapping.putIfAbsent( - ThemeMediaResult, () => ThemeMediaResult.fromJsonFactory); + ThemeMediaResult, + () => ThemeMediaResult.fromJsonFactory, + ); return _itemsItemIdThemeSongsGet( - itemId: itemId, - userId: userId, - inheritFromParent: inheritFromParent, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder)); + itemId: itemId, + userId: userId, + inheritFromParent: inheritFromParent, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + ); } ///Get theme songs for an item. @@ -9443,7 +9619,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param inheritFromParent Optional. Determines whether or not parent items should be searched for theme media. ///@param sortBy Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. ///@param sortOrder Optional. Sort Order - Ascending, Descending. - @Get(path: '/Items/{itemId}/ThemeSongs') + @GET(path: '/Items/{itemId}/ThemeSongs') Future> _itemsItemIdThemeSongsGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -9466,14 +9642,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? sortOrder, }) { generatedMapping.putIfAbsent( - ThemeMediaResult, () => ThemeMediaResult.fromJsonFactory); + ThemeMediaResult, + () => ThemeMediaResult.fromJsonFactory, + ); return _itemsItemIdThemeVideosGet( - itemId: itemId, - userId: userId, - inheritFromParent: inheritFromParent, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder)); + itemId: itemId, + userId: userId, + inheritFromParent: inheritFromParent, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + ); } ///Get theme videos for an item. @@ -9482,7 +9661,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param inheritFromParent Optional. Determines whether or not parent items should be searched for theme media. ///@param sortBy Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. ///@param sortOrder Optional. Sort Order - Ascending, Descending. - @Get(path: '/Items/{itemId}/ThemeVideos') + @GET(path: '/Items/{itemId}/ThemeVideos') Future> _itemsItemIdThemeVideosGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -9506,7 +9685,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get item counts. ///@param userId Optional. Get counts from a specific user's library. ///@param isFavorite Optional. Get counts of favorite items. - @Get(path: '/Items/Counts') + @GET(path: '/Items/Counts') Future> _itemsCountsGet({ @Query('userId') String? userId, @Query('isFavorite') bool? isFavorite, @@ -9516,57 +9695,63 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. Future> - librariesAvailableOptionsGet({ + librariesAvailableOptionsGet({ enums.LibrariesAvailableOptionsGetLibraryContentType? libraryContentType, bool? isNewLibrary, }) { generatedMapping.putIfAbsent( - LibraryOptionsResultDto, () => LibraryOptionsResultDto.fromJsonFactory); + LibraryOptionsResultDto, + () => LibraryOptionsResultDto.fromJsonFactory, + ); return _librariesAvailableOptionsGet( - libraryContentType: libraryContentType?.value?.toString(), - isNewLibrary: isNewLibrary); + libraryContentType: libraryContentType?.value?.toString(), + isNewLibrary: isNewLibrary, + ); } ///Gets the library options info. ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. - @Get(path: '/Libraries/AvailableOptions') + @GET(path: '/Libraries/AvailableOptions') Future> - _librariesAvailableOptionsGet({ + _librariesAvailableOptionsGet({ @Query('libraryContentType') String? libraryContentType, @Query('isNewLibrary') bool? isNewLibrary, }); ///Reports that new movies have been added by an external source. - Future libraryMediaUpdatedPost( - {required MediaUpdateInfoDto? body}) { + Future libraryMediaUpdatedPost({ + required MediaUpdateInfoDto? body, + }) { return _libraryMediaUpdatedPost(body: body); } ///Reports that new movies have been added by an external source. - @Post( - path: '/Library/Media/Updated', - optionalBody: true, - ) - Future _libraryMediaUpdatedPost( - {@Body() required MediaUpdateInfoDto? body}); + @POST(path: '/Library/Media/Updated', optionalBody: true) + Future _libraryMediaUpdatedPost({ + @Body() required MediaUpdateInfoDto? body, + }); ///Gets all user media folders. ///@param isHidden Optional. Filter by folders that are marked hidden, or not. - Future> libraryMediaFoldersGet( - {bool? isHidden}) { + Future> libraryMediaFoldersGet({ + bool? isHidden, + }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _libraryMediaFoldersGet(isHidden: isHidden); } ///Gets all user media folders. ///@param isHidden Optional. Filter by folders that are marked hidden, or not. - @Get(path: '/Library/MediaFolders') - Future> _libraryMediaFoldersGet( - {@Query('isHidden') bool? isHidden}); + @GET(path: '/Library/MediaFolders') + Future> _libraryMediaFoldersGet({ + @Query('isHidden') bool? isHidden, + }); ///Reports that new movies have been added by an external source. ///@param tmdbId The tmdbId. @@ -9581,10 +9766,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Reports that new movies have been added by an external source. ///@param tmdbId The tmdbId. ///@param imdbId The imdbId. - @Post( - path: '/Library/Movies/Added', - optionalBody: true, - ) + @POST(path: '/Library/Movies/Added', optionalBody: true) Future _libraryMoviesAddedPost({ @Query('tmdbId') String? tmdbId, @Query('imdbId') String? imdbId, @@ -9603,10 +9785,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Reports that new movies have been added by an external source. ///@param tmdbId The tmdbId. ///@param imdbId The imdbId. - @Post( - path: '/Library/Movies/Updated', - optionalBody: true, - ) + @POST(path: '/Library/Movies/Updated', optionalBody: true) Future _libraryMoviesUpdatedPost({ @Query('tmdbId') String? tmdbId, @Query('imdbId') String? imdbId, @@ -9618,7 +9797,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets a list of physical paths from virtual folders. - @Get(path: '/Library/PhysicalPaths') + @GET(path: '/Library/PhysicalPaths') Future>> _libraryPhysicalPathsGet(); ///Starts a library scan. @@ -9627,10 +9806,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Starts a library scan. - @Post( - path: '/Library/Refresh', - optionalBody: true, - ) + @POST(path: '/Library/Refresh', optionalBody: true) Future _libraryRefreshPost(); ///Reports that new episodes of a series have been added by an external source. @@ -9641,12 +9817,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Reports that new episodes of a series have been added by an external source. ///@param tvdbId The tvdbId. - @Post( - path: '/Library/Series/Added', - optionalBody: true, - ) - Future _librarySeriesAddedPost( - {@Query('tvdbId') String? tvdbId}); + @POST(path: '/Library/Series/Added', optionalBody: true) + Future _librarySeriesAddedPost({ + @Query('tvdbId') String? tvdbId, + }); ///Reports that new episodes of a series have been added by an external source. ///@param tvdbId The tvdbId. @@ -9656,12 +9830,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Reports that new episodes of a series have been added by an external source. ///@param tvdbId The tvdbId. - @Post( - path: '/Library/Series/Updated', - optionalBody: true, - ) - Future _librarySeriesUpdatedPost( - {@Query('tvdbId') String? tvdbId}); + @POST(path: '/Library/Series/Updated', optionalBody: true) + Future _librarySeriesUpdatedPost({ + @Query('tvdbId') String? tvdbId, + }); ///Gets similar items. ///@param itemId The item id. @@ -9677,14 +9849,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? fields, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _moviesItemIdSimilarGet( - itemId: itemId, - excludeArtistIds: excludeArtistIds, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields)); + itemId: itemId, + excludeArtistIds: excludeArtistIds, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + ); } ///Gets similar items. @@ -9693,7 +9868,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId Optional. Filter by user id, and attach user data. ///@param limit Optional. The maximum number of records to return. ///@param fields Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. - @Get(path: '/Movies/{itemId}/Similar') + @GET(path: '/Movies/{itemId}/Similar') Future> _moviesItemIdSimilarGet({ @Path('itemId') required String? itemId, @Query('excludeArtistIds') List? excludeArtistIds, @@ -9716,14 +9891,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? fields, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _showsItemIdSimilarGet( - itemId: itemId, - excludeArtistIds: excludeArtistIds, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields)); + itemId: itemId, + excludeArtistIds: excludeArtistIds, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + ); } ///Gets similar items. @@ -9732,7 +9910,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId Optional. Filter by user id, and attach user data. ///@param limit Optional. The maximum number of records to return. ///@param fields Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. - @Get(path: '/Shows/{itemId}/Similar') + @GET(path: '/Shows/{itemId}/Similar') Future> _showsItemIdSimilarGet({ @Path('itemId') required String? itemId, @Query('excludeArtistIds') List? excludeArtistIds, @@ -9755,14 +9933,17 @@ abstract class JellyfinOpenApi extends ChopperService { List? fields, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _trailersItemIdSimilarGet( - itemId: itemId, - excludeArtistIds: excludeArtistIds, - userId: userId, - limit: limit, - fields: itemFieldsListToJson(fields)); + itemId: itemId, + excludeArtistIds: excludeArtistIds, + userId: userId, + limit: limit, + fields: itemFieldsListToJson(fields), + ); } ///Gets similar items. @@ -9771,7 +9952,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId Optional. Filter by user id, and attach user data. ///@param limit Optional. The maximum number of records to return. ///@param fields Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. - @Get(path: '/Trailers/{itemId}/Similar') + @GET(path: '/Trailers/{itemId}/Similar') Future> _trailersItemIdSimilarGet({ @Path('itemId') required String? itemId, @Query('excludeArtistIds') List? excludeArtistIds, @@ -9783,13 +9964,15 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets all virtual folders. Future>> libraryVirtualFoldersGet() { generatedMapping.putIfAbsent( - VirtualFolderInfo, () => VirtualFolderInfo.fromJsonFactory); + VirtualFolderInfo, + () => VirtualFolderInfo.fromJsonFactory, + ); return _libraryVirtualFoldersGet(); } ///Gets all virtual folders. - @Get(path: '/Library/VirtualFolders') + @GET(path: '/Library/VirtualFolders') Future>> _libraryVirtualFoldersGet(); ///Adds a virtual folder. @@ -9805,11 +9988,12 @@ abstract class JellyfinOpenApi extends ChopperService { required AddVirtualFolderDto? body, }) { return _libraryVirtualFoldersPost( - name: name, - collectionType: collectionType?.value?.toString(), - paths: paths, - refreshLibrary: refreshLibrary, - body: body); + name: name, + collectionType: collectionType?.value?.toString(), + paths: paths, + refreshLibrary: refreshLibrary, + body: body, + ); } ///Adds a virtual folder. @@ -9817,10 +10001,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param collectionType The type of the collection. ///@param paths The paths of the virtual folder. ///@param refreshLibrary Whether to refresh the library. - @Post( - path: '/Library/VirtualFolders', - optionalBody: true, - ) + @POST(path: '/Library/VirtualFolders', optionalBody: true) Future _libraryVirtualFoldersPost({ @Query('name') String? name, @Query('collectionType') String? collectionType, @@ -9837,31 +10018,32 @@ abstract class JellyfinOpenApi extends ChopperService { bool? refreshLibrary, }) { return _libraryVirtualFoldersDelete( - name: name, refreshLibrary: refreshLibrary); + name: name, + refreshLibrary: refreshLibrary, + ); } ///Removes a virtual folder. ///@param name The name of the folder. ///@param refreshLibrary Whether to refresh the library. - @Delete(path: '/Library/VirtualFolders') + @DELETE(path: '/Library/VirtualFolders') Future _libraryVirtualFoldersDelete({ @Query('name') String? name, @Query('refreshLibrary') bool? refreshLibrary, }); ///Update library options. - Future libraryVirtualFoldersLibraryOptionsPost( - {required UpdateLibraryOptionsDto? body}) { + Future libraryVirtualFoldersLibraryOptionsPost({ + required UpdateLibraryOptionsDto? body, + }) { return _libraryVirtualFoldersLibraryOptionsPost(body: body); } ///Update library options. - @Post( - path: '/Library/VirtualFolders/LibraryOptions', - optionalBody: true, - ) - Future _libraryVirtualFoldersLibraryOptionsPost( - {@Body() required UpdateLibraryOptionsDto? body}); + @POST(path: '/Library/VirtualFolders/LibraryOptions', optionalBody: true) + Future _libraryVirtualFoldersLibraryOptionsPost({ + @Body() required UpdateLibraryOptionsDto? body, + }); ///Renames a virtual folder. ///@param name The name of the virtual folder. @@ -9873,17 +10055,17 @@ abstract class JellyfinOpenApi extends ChopperService { bool? refreshLibrary, }) { return _libraryVirtualFoldersNamePost( - name: name, newName: newName, refreshLibrary: refreshLibrary); + name: name, + newName: newName, + refreshLibrary: refreshLibrary, + ); } ///Renames a virtual folder. ///@param name The name of the virtual folder. ///@param newName The new name. ///@param refreshLibrary Whether to refresh the library. - @Post( - path: '/Library/VirtualFolders/Name', - optionalBody: true, - ) + @POST(path: '/Library/VirtualFolders/Name', optionalBody: true) Future _libraryVirtualFoldersNamePost({ @Query('name') String? name, @Query('newName') String? newName, @@ -9897,15 +10079,14 @@ abstract class JellyfinOpenApi extends ChopperService { required MediaPathDto? body, }) { return _libraryVirtualFoldersPathsPost( - refreshLibrary: refreshLibrary, body: body); + refreshLibrary: refreshLibrary, + body: body, + ); } ///Add a media path to a library. ///@param refreshLibrary Whether to refresh the library. - @Post( - path: '/Library/VirtualFolders/Paths', - optionalBody: true, - ) + @POST(path: '/Library/VirtualFolders/Paths', optionalBody: true) Future _libraryVirtualFoldersPathsPost({ @Query('refreshLibrary') bool? refreshLibrary, @Body() required MediaPathDto? body, @@ -9921,14 +10102,17 @@ abstract class JellyfinOpenApi extends ChopperService { bool? refreshLibrary, }) { return _libraryVirtualFoldersPathsDelete( - name: name, path: path, refreshLibrary: refreshLibrary); + name: name, + path: path, + refreshLibrary: refreshLibrary, + ); } ///Remove a media path. ///@param name The name of the library. ///@param path The path to remove. ///@param refreshLibrary Whether to refresh the library. - @Delete(path: '/Library/VirtualFolders/Paths') + @DELETE(path: '/Library/VirtualFolders/Paths') Future _libraryVirtualFoldersPathsDelete({ @Query('name') String? name, @Query('path') String? path, @@ -9936,52 +10120,53 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Updates a media path. - Future libraryVirtualFoldersPathsUpdatePost( - {required UpdateMediaPathRequestDto? body}) { + Future libraryVirtualFoldersPathsUpdatePost({ + required UpdateMediaPathRequestDto? body, + }) { return _libraryVirtualFoldersPathsUpdatePost(body: body); } ///Updates a media path. - @Post( - path: '/Library/VirtualFolders/Paths/Update', - optionalBody: true, - ) - Future _libraryVirtualFoldersPathsUpdatePost( - {@Body() required UpdateMediaPathRequestDto? body}); + @POST(path: '/Library/VirtualFolders/Paths/Update', optionalBody: true) + Future _libraryVirtualFoldersPathsUpdatePost({ + @Body() required UpdateMediaPathRequestDto? body, + }); ///Get channel mapping options. ///@param providerId Provider id. Future> - liveTvChannelMappingOptionsGet({String? providerId}) { - generatedMapping.putIfAbsent(ChannelMappingOptionsDto, - () => ChannelMappingOptionsDto.fromJsonFactory); + liveTvChannelMappingOptionsGet({String? providerId}) { + generatedMapping.putIfAbsent( + ChannelMappingOptionsDto, + () => ChannelMappingOptionsDto.fromJsonFactory, + ); return _liveTvChannelMappingOptionsGet(providerId: providerId); } ///Get channel mapping options. ///@param providerId Provider id. - @Get(path: '/LiveTv/ChannelMappingOptions') + @GET(path: '/LiveTv/ChannelMappingOptions') Future> - _liveTvChannelMappingOptionsGet( - {@Query('providerId') String? providerId}); + _liveTvChannelMappingOptionsGet({@Query('providerId') String? providerId}); ///Set channel mappings. - Future> liveTvChannelMappingsPost( - {required SetChannelMappingDto? body}) { + Future> liveTvChannelMappingsPost({ + required SetChannelMappingDto? body, + }) { generatedMapping.putIfAbsent( - TunerChannelMapping, () => TunerChannelMapping.fromJsonFactory); + TunerChannelMapping, + () => TunerChannelMapping.fromJsonFactory, + ); return _liveTvChannelMappingsPost(body: body); } ///Set channel mappings. - @Post( - path: '/LiveTv/ChannelMappings', - optionalBody: true, - ) - Future> _liveTvChannelMappingsPost( - {@Body() required SetChannelMappingDto? body}); + @POST(path: '/LiveTv/ChannelMappings', optionalBody: true) + Future> _liveTvChannelMappingsPost({ + @Body() required SetChannelMappingDto? body, + }); ///Gets available live tv channels. ///@param type Optional. Filter by channel type. @@ -10029,30 +10214,33 @@ abstract class JellyfinOpenApi extends ChopperService { bool? addCurrentProgram, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvChannelsGet( - type: type?.value?.toString(), - userId: userId, - startIndex: startIndex, - isMovie: isMovie, - isSeries: isSeries, - isNews: isNews, - isKids: isKids, - isSports: isSports, - limit: limit, - isFavorite: isFavorite, - isLiked: isLiked, - isDisliked: isDisliked, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - fields: itemFieldsListToJson(fields), - enableUserData: enableUserData, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrder?.value?.toString(), - enableFavoriteSorting: enableFavoriteSorting, - addCurrentProgram: addCurrentProgram); + type: type?.value?.toString(), + userId: userId, + startIndex: startIndex, + isMovie: isMovie, + isSeries: isSeries, + isNews: isNews, + isKids: isKids, + isSports: isSports, + limit: limit, + isFavorite: isFavorite, + isLiked: isLiked, + isDisliked: isDisliked, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + fields: itemFieldsListToJson(fields), + enableUserData: enableUserData, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrder?.value?.toString(), + enableFavoriteSorting: enableFavoriteSorting, + addCurrentProgram: addCurrentProgram, + ); } ///Gets available live tv channels. @@ -10077,7 +10265,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortOrder Optional. Sort order. ///@param enableFavoriteSorting Optional. Incorporate favorite and like status into channel sorting. ///@param addCurrentProgram Optional. Adds current program info to each channel. - @Get(path: '/LiveTv/Channels') + @GET(path: '/LiveTv/Channels') Future> _liveTvChannelsGet({ @Query('type') String? type, @Query('userId') String? userId, @@ -10110,7 +10298,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _liveTvChannelsChannelIdGet(channelId: channelId, userId: userId); } @@ -10118,7 +10308,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a live tv channel. ///@param channelId Channel id. ///@param userId Optional. Attach user data. - @Get(path: '/LiveTv/Channels/{channelId}') + @GET(path: '/LiveTv/Channels/{channelId}') Future> _liveTvChannelsChannelIdGet({ @Path('channelId') required String? channelId, @Query('userId') String? userId, @@ -10132,7 +10322,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Get guid info. - @Get(path: '/LiveTv/GuideInfo') + @GET(path: '/LiveTv/GuideInfo') Future> _liveTvGuideInfoGet(); ///Gets available live tv services. @@ -10143,7 +10333,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets available live tv services. - @Get(path: '/LiveTv/Info') + @GET(path: '/LiveTv/Info') Future> _liveTvInfoGet(); ///Adds a listings provider. @@ -10157,23 +10347,23 @@ abstract class JellyfinOpenApi extends ChopperService { required ListingsProviderInfo? body, }) { generatedMapping.putIfAbsent( - ListingsProviderInfo, () => ListingsProviderInfo.fromJsonFactory); + ListingsProviderInfo, + () => ListingsProviderInfo.fromJsonFactory, + ); return _liveTvListingProvidersPost( - pw: pw, - validateListings: validateListings, - validateLogin: validateLogin, - body: body); + pw: pw, + validateListings: validateListings, + validateLogin: validateLogin, + body: body, + ); } ///Adds a listings provider. ///@param pw Password. ///@param validateListings Validate listings. ///@param validateLogin Validate login. - @Post( - path: '/LiveTv/ListingProviders', - optionalBody: true, - ) + @POST(path: '/LiveTv/ListingProviders', optionalBody: true) Future> _liveTvListingProvidersPost({ @Query('pw') String? pw, @Query('validateListings') bool? validateListings, @@ -10189,23 +10379,26 @@ abstract class JellyfinOpenApi extends ChopperService { ///Delete listing provider. ///@param id Listing provider id. - @Delete(path: '/LiveTv/ListingProviders') - Future _liveTvListingProvidersDelete( - {@Query('id') String? id}); + @DELETE(path: '/LiveTv/ListingProviders') + Future _liveTvListingProvidersDelete({ + @Query('id') String? id, + }); ///Gets default listings provider info. Future> - liveTvListingProvidersDefaultGet() { + liveTvListingProvidersDefaultGet() { generatedMapping.putIfAbsent( - ListingsProviderInfo, () => ListingsProviderInfo.fromJsonFactory); + ListingsProviderInfo, + () => ListingsProviderInfo.fromJsonFactory, + ); return _liveTvListingProvidersDefaultGet(); } ///Gets default listings provider info. - @Get(path: '/LiveTv/ListingProviders/Default') + @GET(path: '/LiveTv/ListingProviders/Default') Future> - _liveTvListingProvidersDefaultGet(); + _liveTvListingProvidersDefaultGet(); ///Gets available lineups. ///@param id Provider id. @@ -10221,7 +10414,11 @@ abstract class JellyfinOpenApi extends ChopperService { generatedMapping.putIfAbsent(NameIdPair, () => NameIdPair.fromJsonFactory); return _liveTvListingProvidersLineupsGet( - id: id, type: type, location: location, country: country); + id: id, + type: type, + location: location, + country: country, + ); } ///Gets available lineups. @@ -10229,7 +10426,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param type Provider type. ///@param location Location. ///@param country Country. - @Get(path: '/LiveTv/ListingProviders/Lineups') + @GET(path: '/LiveTv/ListingProviders/Lineups') Future>> _liveTvListingProvidersLineupsGet({ @Query('id') String? id, @Query('type') String? type, @@ -10239,46 +10436,50 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available countries. Future> - liveTvListingProvidersSchedulesDirectCountriesGet() { + liveTvListingProvidersSchedulesDirectCountriesGet() { return _liveTvListingProvidersSchedulesDirectCountriesGet(); } ///Gets available countries. - @Get(path: '/LiveTv/ListingProviders/SchedulesDirect/Countries') + @GET(path: '/LiveTv/ListingProviders/SchedulesDirect/Countries') Future> - _liveTvListingProvidersSchedulesDirectCountriesGet(); + _liveTvListingProvidersSchedulesDirectCountriesGet(); ///Gets a live tv recording stream. ///@param recordingId Recording id. - Future> liveTvLiveRecordingsRecordingIdStreamGet( - {required String? recordingId}) { + Future> liveTvLiveRecordingsRecordingIdStreamGet({ + required String? recordingId, + }) { return _liveTvLiveRecordingsRecordingIdStreamGet(recordingId: recordingId); } ///Gets a live tv recording stream. ///@param recordingId Recording id. - @Get(path: '/LiveTv/LiveRecordings/{recordingId}/stream') - Future> _liveTvLiveRecordingsRecordingIdStreamGet( - {@Path('recordingId') required String? recordingId}); + @GET(path: '/LiveTv/LiveRecordings/{recordingId}/stream') + Future> _liveTvLiveRecordingsRecordingIdStreamGet({ + @Path('recordingId') required String? recordingId, + }); ///Gets a live tv channel stream. ///@param streamId Stream id. ///@param container Container type. Future> - liveTvLiveStreamFilesStreamIdStreamContainerGet({ + liveTvLiveStreamFilesStreamIdStreamContainerGet({ required String? streamId, required String? container, }) { return _liveTvLiveStreamFilesStreamIdStreamContainerGet( - streamId: streamId, container: container); + streamId: streamId, + container: container, + ); } ///Gets a live tv channel stream. ///@param streamId Stream id. ///@param container Container type. - @Get(path: '/LiveTv/LiveStreamFiles/{streamId}/stream.{container}') + @GET(path: '/LiveTv/LiveStreamFiles/{streamId}/stream.{container}') Future> - _liveTvLiveStreamFilesStreamIdStreamContainerGet({ + _liveTvLiveStreamFilesStreamIdStreamContainerGet({ @Path('streamId') required String? streamId, @Path('container') required String? container, }); @@ -10341,36 +10542,39 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvProgramsGet( - channelIds: channelIds, - userId: userId, - minStartDate: minStartDate, - hasAired: hasAired, - isAiring: isAiring, - maxStartDate: maxStartDate, - minEndDate: minEndDate, - maxEndDate: maxEndDate, - isMovie: isMovie, - isSeries: isSeries, - isNews: isNews, - isKids: isKids, - isSports: isSports, - startIndex: startIndex, - limit: limit, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder), - genres: genres, - genreIds: genreIds, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - enableUserData: enableUserData, - seriesTimerId: seriesTimerId, - librarySeriesId: librarySeriesId, - fields: itemFieldsListToJson(fields), - enableTotalRecordCount: enableTotalRecordCount); + channelIds: channelIds, + userId: userId, + minStartDate: minStartDate, + hasAired: hasAired, + isAiring: isAiring, + maxStartDate: maxStartDate, + minEndDate: minEndDate, + maxEndDate: maxEndDate, + isMovie: isMovie, + isSeries: isSeries, + isNews: isNews, + isKids: isKids, + isSports: isSports, + startIndex: startIndex, + limit: limit, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + genres: genres, + genreIds: genreIds, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + enableUserData: enableUserData, + seriesTimerId: seriesTimerId, + librarySeriesId: librarySeriesId, + fields: itemFieldsListToJson(fields), + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets available live tv epgs. @@ -10401,7 +10605,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param librarySeriesId Optional. Filter by library series id. ///@param fields Optional. Specify additional fields of information to return in the output. ///@param enableTotalRecordCount Retrieve total record count. - @Get(path: '/LiveTv/Programs') + @GET(path: '/LiveTv/Programs') Future> _liveTvProgramsGet({ @Query('channelIds') List? channelIds, @Query('userId') String? userId, @@ -10433,21 +10637,22 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets available live tv epgs. - Future> liveTvProgramsPost( - {required GetProgramsDto? body}) { + Future> liveTvProgramsPost({ + required GetProgramsDto? body, + }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvProgramsPost(body: body); } ///Gets available live tv epgs. - @Post( - path: '/LiveTv/Programs', - optionalBody: true, - ) - Future> _liveTvProgramsPost( - {@Body() required GetProgramsDto? body}); + @POST(path: '/LiveTv/Programs', optionalBody: true) + Future> _liveTvProgramsPost({ + @Body() required GetProgramsDto? body, + }); ///Gets a live tv program. ///@param programId Program id. @@ -10457,7 +10662,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _liveTvProgramsProgramIdGet(programId: programId, userId: userId); } @@ -10465,7 +10672,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a live tv program. ///@param programId Program id. ///@param userId Optional. Attach user data. - @Get(path: '/LiveTv/Programs/{programId}') + @GET(path: '/LiveTv/Programs/{programId}') Future> _liveTvProgramsProgramIdGet({ @Path('programId') required String? programId, @Query('userId') String? userId, @@ -10489,7 +10696,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. include user data. ///@param enableTotalRecordCount Retrieve total record count. Future> - liveTvProgramsRecommendedGet({ + liveTvProgramsRecommendedGet({ String? userId, int? limit, bool? isAiring, @@ -10508,25 +10715,28 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvProgramsRecommendedGet( - userId: userId, - limit: limit, - isAiring: isAiring, - hasAired: hasAired, - isSeries: isSeries, - isMovie: isMovie, - isNews: isNews, - isKids: isKids, - isSports: isSports, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - genreIds: genreIds, - fields: itemFieldsListToJson(fields), - enableUserData: enableUserData, - enableTotalRecordCount: enableTotalRecordCount); + userId: userId, + limit: limit, + isAiring: isAiring, + hasAired: hasAired, + isSeries: isSeries, + isMovie: isMovie, + isNews: isNews, + isKids: isKids, + isSports: isSports, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + genreIds: genreIds, + fields: itemFieldsListToJson(fields), + enableUserData: enableUserData, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets recommended live tv epgs. @@ -10546,9 +10756,9 @@ 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. - @Get(path: '/LiveTv/Programs/Recommended') + @GET(path: '/LiveTv/Programs/Recommended') Future> - _liveTvProgramsRecommendedGet({ + _liveTvProgramsRecommendedGet({ @Query('userId') String? userId, @Query('limit') int? limit, @Query('isAiring') bool? isAiring, @@ -10609,28 +10819,31 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvRecordingsGet( - channelId: channelId, - userId: userId, - startIndex: startIndex, - limit: limit, - status: status?.value?.toString(), - isInProgress: isInProgress, - seriesTimerId: seriesTimerId, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - fields: itemFieldsListToJson(fields), - enableUserData: enableUserData, - isMovie: isMovie, - isSeries: isSeries, - isKids: isKids, - isSports: isSports, - isNews: isNews, - isLibraryItem: isLibraryItem, - enableTotalRecordCount: enableTotalRecordCount); + channelId: channelId, + userId: userId, + startIndex: startIndex, + limit: limit, + status: status?.value?.toString(), + isInProgress: isInProgress, + seriesTimerId: seriesTimerId, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + fields: itemFieldsListToJson(fields), + enableUserData: enableUserData, + isMovie: isMovie, + isSeries: isSeries, + isKids: isKids, + isSports: isSports, + isNews: isNews, + isLibraryItem: isLibraryItem, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets live tv recordings. @@ -10653,7 +10866,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param isNews Optional. Filter for news. ///@param isLibraryItem Optional. Filter for is library item. ///@param enableTotalRecordCount Optional. Return total record count. - @Get(path: '/LiveTv/Recordings') + @GET(path: '/LiveTv/Recordings') Future> _liveTvRecordingsGet({ @Query('channelId') String? channelId, @Query('userId') String? userId, @@ -10684,16 +10897,20 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _liveTvRecordingsRecordingIdGet( - recordingId: recordingId, userId: userId); + recordingId: recordingId, + userId: userId, + ); } ///Gets a live tv recording. ///@param recordingId Recording id. ///@param userId Optional. Attach user data. - @Get(path: '/LiveTv/Recordings/{recordingId}') + @GET(path: '/LiveTv/Recordings/{recordingId}') Future> _liveTvRecordingsRecordingIdGet({ @Path('recordingId') required String? recordingId, @Query('userId') String? userId, @@ -10701,40 +10918,49 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes a live tv recording. ///@param recordingId Recording id. - Future liveTvRecordingsRecordingIdDelete( - {required String? recordingId}) { + Future liveTvRecordingsRecordingIdDelete({ + required String? recordingId, + }) { return _liveTvRecordingsRecordingIdDelete(recordingId: recordingId); } ///Deletes a live tv recording. ///@param recordingId Recording id. - @Delete(path: '/LiveTv/Recordings/{recordingId}') - Future _liveTvRecordingsRecordingIdDelete( - {@Path('recordingId') required String? recordingId}); + @DELETE(path: '/LiveTv/Recordings/{recordingId}') + Future _liveTvRecordingsRecordingIdDelete({ + @Path('recordingId') required String? recordingId, + }); ///Gets recording folders. ///@param userId Optional. Filter by user and attach user data. - Future> liveTvRecordingsFoldersGet( - {String? userId}) { + Future> liveTvRecordingsFoldersGet({ + String? userId, + }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvRecordingsFoldersGet(userId: userId); } ///Gets recording folders. ///@param userId Optional. Filter by user and attach user data. - @Get(path: '/LiveTv/Recordings/Folders') - Future> _liveTvRecordingsFoldersGet( - {@Query('userId') String? userId}); + @GET(path: '/LiveTv/Recordings/Folders') + Future> _liveTvRecordingsFoldersGet({ + @Query('userId') String? userId, + }); ///Gets live tv recording groups. ///@param userId Optional. Filter by user and attach user data. @deprecated - Future> liveTvRecordingsGroupsGet( - {String? userId}) { + Future> liveTvRecordingsGroupsGet({ + String? userId, + }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvRecordingsGroupsGet(userId: userId); } @@ -10742,24 +10968,27 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets live tv recording groups. ///@param userId Optional. Filter by user and attach user data. @deprecated - @Get(path: '/LiveTv/Recordings/Groups') - Future> _liveTvRecordingsGroupsGet( - {@Query('userId') String? userId}); + @GET(path: '/LiveTv/Recordings/Groups') + Future> _liveTvRecordingsGroupsGet({ + @Query('userId') String? userId, + }); ///Get recording group. ///@param groupId Group id. @deprecated - Future liveTvRecordingsGroupsGroupIdGet( - {required String? groupId}) { + Future liveTvRecordingsGroupsGroupIdGet({ + required String? groupId, + }) { return _liveTvRecordingsGroupsGroupIdGet(groupId: groupId); } ///Get recording group. ///@param groupId Group id. @deprecated - @Get(path: '/LiveTv/Recordings/Groups/{groupId}') - Future _liveTvRecordingsGroupsGroupIdGet( - {@Path('groupId') required String? groupId}); + @GET(path: '/LiveTv/Recordings/Groups/{groupId}') + Future _liveTvRecordingsGroupsGroupIdGet({ + @Path('groupId') required String? groupId, + }); ///Gets live tv recording series. ///@param channelId Optional. Filter by channel id. @@ -10794,23 +11023,26 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _liveTvRecordingsSeriesGet( - channelId: channelId, - userId: userId, - groupId: groupId, - startIndex: startIndex, - limit: limit, - status: status?.value?.toString(), - isInProgress: isInProgress, - seriesTimerId: seriesTimerId, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - fields: itemFieldsListToJson(fields), - enableUserData: enableUserData, - enableTotalRecordCount: enableTotalRecordCount); + channelId: channelId, + userId: userId, + groupId: groupId, + startIndex: startIndex, + limit: limit, + status: status?.value?.toString(), + isInProgress: isInProgress, + seriesTimerId: seriesTimerId, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + fields: itemFieldsListToJson(fields), + enableUserData: enableUserData, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets live tv recording series. @@ -10829,7 +11061,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. Include user data. ///@param enableTotalRecordCount Optional. Return total record count. @deprecated - @Get(path: '/LiveTv/Recordings/Series') + @GET(path: '/LiveTv/Recordings/Series') Future> _liveTvRecordingsSeriesGet({ @Query('channelId') String? channelId, @Query('userId') String? userId, @@ -10851,69 +11083,78 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. Future> - liveTvSeriesTimersGet({ + liveTvSeriesTimersGet({ String? sortBy, enums.LiveTvSeriesTimersGetSortOrder? sortOrder, }) { - generatedMapping.putIfAbsent(SeriesTimerInfoDtoQueryResult, - () => SeriesTimerInfoDtoQueryResult.fromJsonFactory); + generatedMapping.putIfAbsent( + SeriesTimerInfoDtoQueryResult, + () => SeriesTimerInfoDtoQueryResult.fromJsonFactory, + ); return _liveTvSeriesTimersGet( - sortBy: sortBy, sortOrder: sortOrder?.value?.toString()); + sortBy: sortBy, + sortOrder: sortOrder?.value?.toString(), + ); } ///Gets live tv series timers. ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. - @Get(path: '/LiveTv/SeriesTimers') + @GET(path: '/LiveTv/SeriesTimers') Future> - _liveTvSeriesTimersGet({ + _liveTvSeriesTimersGet({ @Query('sortBy') String? sortBy, @Query('sortOrder') String? sortOrder, }); ///Creates a live tv series timer. - Future liveTvSeriesTimersPost( - {required SeriesTimerInfoDto? body}) { + Future liveTvSeriesTimersPost({ + required SeriesTimerInfoDto? body, + }) { return _liveTvSeriesTimersPost(body: body); } ///Creates a live tv series timer. - @Post( - path: '/LiveTv/SeriesTimers', - optionalBody: true, - ) - Future _liveTvSeriesTimersPost( - {@Body() required SeriesTimerInfoDto? body}); + @POST(path: '/LiveTv/SeriesTimers', optionalBody: true) + Future _liveTvSeriesTimersPost({ + @Body() required SeriesTimerInfoDto? body, + }); ///Gets a live tv series timer. ///@param timerId Timer id. - Future> liveTvSeriesTimersTimerIdGet( - {required String? timerId}) { + Future> liveTvSeriesTimersTimerIdGet({ + required String? timerId, + }) { generatedMapping.putIfAbsent( - SeriesTimerInfoDto, () => SeriesTimerInfoDto.fromJsonFactory); + SeriesTimerInfoDto, + () => SeriesTimerInfoDto.fromJsonFactory, + ); return _liveTvSeriesTimersTimerIdGet(timerId: timerId); } ///Gets a live tv series timer. ///@param timerId Timer id. - @Get(path: '/LiveTv/SeriesTimers/{timerId}') - Future> _liveTvSeriesTimersTimerIdGet( - {@Path('timerId') required String? timerId}); + @GET(path: '/LiveTv/SeriesTimers/{timerId}') + Future> _liveTvSeriesTimersTimerIdGet({ + @Path('timerId') required String? timerId, + }); ///Cancels a live tv series timer. ///@param timerId Timer id. - Future liveTvSeriesTimersTimerIdDelete( - {required String? timerId}) { + Future liveTvSeriesTimersTimerIdDelete({ + required String? timerId, + }) { return _liveTvSeriesTimersTimerIdDelete(timerId: timerId); } ///Cancels a live tv series timer. ///@param timerId Timer id. - @Delete(path: '/LiveTv/SeriesTimers/{timerId}') - Future _liveTvSeriesTimersTimerIdDelete( - {@Path('timerId') required String? timerId}); + @DELETE(path: '/LiveTv/SeriesTimers/{timerId}') + Future _liveTvSeriesTimersTimerIdDelete({ + @Path('timerId') required String? timerId, + }); ///Updates a live tv series timer. ///@param timerId Timer id. @@ -10926,10 +11167,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates a live tv series timer. ///@param timerId Timer id. - @Post( - path: '/LiveTv/SeriesTimers/{timerId}', - optionalBody: true, - ) + @POST(path: '/LiveTv/SeriesTimers/{timerId}', optionalBody: true) Future _liveTvSeriesTimersTimerIdPost({ @Path('timerId') required String? timerId, @Body() required SeriesTimerInfoDto? body, @@ -10947,13 +11185,16 @@ abstract class JellyfinOpenApi extends ChopperService { bool? isScheduled, }) { generatedMapping.putIfAbsent( - TimerInfoDtoQueryResult, () => TimerInfoDtoQueryResult.fromJsonFactory); + TimerInfoDtoQueryResult, + () => TimerInfoDtoQueryResult.fromJsonFactory, + ); return _liveTvTimersGet( - channelId: channelId, - seriesTimerId: seriesTimerId, - isActive: isActive, - isScheduled: isScheduled); + channelId: channelId, + seriesTimerId: seriesTimerId, + isActive: isActive, + isScheduled: isScheduled, + ); } ///Gets the live tv timers. @@ -10961,7 +11202,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param seriesTimerId Optional. Filter by timers belonging to a series timer. ///@param isActive Optional. Filter by timers that are active. ///@param isScheduled Optional. Filter by timers that are scheduled. - @Get(path: '/LiveTv/Timers') + @GET(path: '/LiveTv/Timers') Future> _liveTvTimersGet({ @Query('channelId') String? channelId, @Query('seriesTimerId') String? seriesTimerId, @@ -10975,41 +11216,45 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Creates a live tv timer. - @Post( - path: '/LiveTv/Timers', - optionalBody: true, - ) - Future _liveTvTimersPost( - {@Body() required TimerInfoDto? body}); + @POST(path: '/LiveTv/Timers', optionalBody: true) + Future _liveTvTimersPost({ + @Body() required TimerInfoDto? body, + }); ///Gets a timer. ///@param timerId Timer id. - Future> liveTvTimersTimerIdGet( - {required String? timerId}) { + Future> liveTvTimersTimerIdGet({ + required String? timerId, + }) { generatedMapping.putIfAbsent( - TimerInfoDto, () => TimerInfoDto.fromJsonFactory); + TimerInfoDto, + () => TimerInfoDto.fromJsonFactory, + ); return _liveTvTimersTimerIdGet(timerId: timerId); } ///Gets a timer. ///@param timerId Timer id. - @Get(path: '/LiveTv/Timers/{timerId}') - Future> _liveTvTimersTimerIdGet( - {@Path('timerId') required String? timerId}); + @GET(path: '/LiveTv/Timers/{timerId}') + Future> _liveTvTimersTimerIdGet({ + @Path('timerId') required String? timerId, + }); ///Cancels a live tv timer. ///@param timerId Timer id. - Future liveTvTimersTimerIdDelete( - {required String? timerId}) { + Future liveTvTimersTimerIdDelete({ + required String? timerId, + }) { return _liveTvTimersTimerIdDelete(timerId: timerId); } ///Cancels a live tv timer. ///@param timerId Timer id. - @Delete(path: '/LiveTv/Timers/{timerId}') - Future _liveTvTimersTimerIdDelete( - {@Path('timerId') required String? timerId}); + @DELETE(path: '/LiveTv/Timers/{timerId}') + Future _liveTvTimersTimerIdDelete({ + @Path('timerId') required String? timerId, + }); ///Updates a live tv timer. ///@param timerId Timer id. @@ -11022,10 +11267,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates a live tv timer. ///@param timerId Timer id. - @Post( - path: '/LiveTv/Timers/{timerId}', - optionalBody: true, - ) + @POST(path: '/LiveTv/Timers/{timerId}', optionalBody: true) Future _liveTvTimersTimerIdPost({ @Path('timerId') required String? timerId, @Body() required TimerInfoDto? body, @@ -11033,36 +11275,41 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the default values for a new timer. ///@param programId Optional. To attach default values based on a program. - Future> liveTvTimersDefaultsGet( - {String? programId}) { + Future> liveTvTimersDefaultsGet({ + String? programId, + }) { generatedMapping.putIfAbsent( - SeriesTimerInfoDto, () => SeriesTimerInfoDto.fromJsonFactory); + SeriesTimerInfoDto, + () => SeriesTimerInfoDto.fromJsonFactory, + ); return _liveTvTimersDefaultsGet(programId: programId); } ///Gets the default values for a new timer. ///@param programId Optional. To attach default values based on a program. - @Get(path: '/LiveTv/Timers/Defaults') - Future> _liveTvTimersDefaultsGet( - {@Query('programId') String? programId}); + @GET(path: '/LiveTv/Timers/Defaults') + Future> _liveTvTimersDefaultsGet({ + @Query('programId') String? programId, + }); ///Adds a tuner host. - Future> liveTvTunerHostsPost( - {required TunerHostInfo? body}) { + Future> liveTvTunerHostsPost({ + required TunerHostInfo? body, + }) { generatedMapping.putIfAbsent( - TunerHostInfo, () => TunerHostInfo.fromJsonFactory); + TunerHostInfo, + () => TunerHostInfo.fromJsonFactory, + ); return _liveTvTunerHostsPost(body: body); } ///Adds a tuner host. - @Post( - path: '/LiveTv/TunerHosts', - optionalBody: true, - ) - Future> _liveTvTunerHostsPost( - {@Body() required TunerHostInfo? body}); + @POST(path: '/LiveTv/TunerHosts', optionalBody: true) + Future> _liveTvTunerHostsPost({ + @Body() required TunerHostInfo? body, + }); ///Deletes a tuner host. ///@param id Tuner host id. @@ -11072,7 +11319,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes a tuner host. ///@param id Tuner host id. - @Delete(path: '/LiveTv/TunerHosts') + @DELETE(path: '/LiveTv/TunerHosts') Future _liveTvTunerHostsDelete({@Query('id') String? id}); ///Get tuner host types. @@ -11083,67 +11330,76 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Get tuner host types. - @Get(path: '/LiveTv/TunerHosts/Types') + @GET(path: '/LiveTv/TunerHosts/Types') Future>> _liveTvTunerHostsTypesGet(); ///Resets a tv tuner. ///@param tunerId Tuner id. - Future liveTvTunersTunerIdResetPost( - {required String? tunerId}) { + Future liveTvTunersTunerIdResetPost({ + required String? tunerId, + }) { return _liveTvTunersTunerIdResetPost(tunerId: tunerId); } ///Resets a tv tuner. ///@param tunerId Tuner id. - @Post( - path: '/LiveTv/Tuners/{tunerId}/Reset', - optionalBody: true, - ) - Future _liveTvTunersTunerIdResetPost( - {@Path('tunerId') required String? tunerId}); + @POST(path: '/LiveTv/Tuners/{tunerId}/Reset', optionalBody: true) + Future _liveTvTunersTunerIdResetPost({ + @Path('tunerId') required String? tunerId, + }); ///Discover tuners. ///@param newDevicesOnly Only discover new tuners. - Future>> liveTvTunersDiscoverGet( - {bool? newDevicesOnly}) { + Future>> liveTvTunersDiscoverGet({ + bool? newDevicesOnly, + }) { generatedMapping.putIfAbsent( - TunerHostInfo, () => TunerHostInfo.fromJsonFactory); + TunerHostInfo, + () => TunerHostInfo.fromJsonFactory, + ); return _liveTvTunersDiscoverGet(newDevicesOnly: newDevicesOnly); } ///Discover tuners. ///@param newDevicesOnly Only discover new tuners. - @Get(path: '/LiveTv/Tuners/Discover') - Future>> _liveTvTunersDiscoverGet( - {@Query('newDevicesOnly') bool? newDevicesOnly}); + @GET(path: '/LiveTv/Tuners/Discover') + Future>> _liveTvTunersDiscoverGet({ + @Query('newDevicesOnly') bool? newDevicesOnly, + }); ///Discover tuners. ///@param newDevicesOnly Only discover new tuners. - Future>> liveTvTunersDiscvoverGet( - {bool? newDevicesOnly}) { + Future>> liveTvTunersDiscvoverGet({ + bool? newDevicesOnly, + }) { generatedMapping.putIfAbsent( - TunerHostInfo, () => TunerHostInfo.fromJsonFactory); + TunerHostInfo, + () => TunerHostInfo.fromJsonFactory, + ); return _liveTvTunersDiscvoverGet(newDevicesOnly: newDevicesOnly); } ///Discover tuners. ///@param newDevicesOnly Only discover new tuners. - @Get(path: '/LiveTv/Tuners/Discvover') - Future>> _liveTvTunersDiscvoverGet( - {@Query('newDevicesOnly') bool? newDevicesOnly}); + @GET(path: '/LiveTv/Tuners/Discvover') + Future>> _liveTvTunersDiscvoverGet({ + @Query('newDevicesOnly') bool? newDevicesOnly, + }); ///Gets known countries. Future>> localizationCountriesGet() { generatedMapping.putIfAbsent( - CountryInfo, () => CountryInfo.fromJsonFactory); + CountryInfo, + () => CountryInfo.fromJsonFactory, + ); return _localizationCountriesGet(); } ///Gets known countries. - @Get(path: '/Localization/Countries') + @GET(path: '/Localization/Countries') Future>> _localizationCountriesGet(); ///Gets known cultures. @@ -11154,39 +11410,44 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets known cultures. - @Get(path: '/Localization/Cultures') + @GET(path: '/Localization/Cultures') Future>> _localizationCulturesGet(); ///Gets localization options. Future>> localizationOptionsGet() { generatedMapping.putIfAbsent( - LocalizationOption, () => LocalizationOption.fromJsonFactory); + LocalizationOption, + () => LocalizationOption.fromJsonFactory, + ); return _localizationOptionsGet(); } ///Gets localization options. - @Get(path: '/Localization/Options') + @GET(path: '/Localization/Options') Future>> _localizationOptionsGet(); ///Gets known parental ratings. Future>> - localizationParentalRatingsGet() { + localizationParentalRatingsGet() { generatedMapping.putIfAbsent( - ParentalRating, () => ParentalRating.fromJsonFactory); + ParentalRating, + () => ParentalRating.fromJsonFactory, + ); return _localizationParentalRatingsGet(); } ///Gets known parental ratings. - @Get(path: '/Localization/ParentalRatings') + @GET(path: '/Localization/ParentalRatings') Future>> - _localizationParentalRatingsGet(); + _localizationParentalRatingsGet(); ///Gets an item's lyrics. ///@param itemId Item id. - Future> audioItemIdLyricsGet( - {required String? itemId}) { + Future> audioItemIdLyricsGet({ + required String? itemId, + }) { generatedMapping.putIfAbsent(LyricDto, () => LyricDto.fromJsonFactory); return _audioItemIdLyricsGet(itemId: itemId); @@ -11194,9 +11455,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets an item's lyrics. ///@param itemId Item id. - @Get(path: '/Audio/{itemId}/Lyrics') - Future> _audioItemIdLyricsGet( - {@Path('itemId') required String? itemId}); + @GET(path: '/Audio/{itemId}/Lyrics') + Future> _audioItemIdLyricsGet({ + @Path('itemId') required String? itemId, + }); ///Upload an external lyric file. ///@param itemId The item the lyric belongs to. @@ -11209,16 +11471,16 @@ abstract class JellyfinOpenApi extends ChopperService { generatedMapping.putIfAbsent(LyricDto, () => LyricDto.fromJsonFactory); return _audioItemIdLyricsPost( - itemId: itemId, fileName: fileName, body: body); + itemId: itemId, + fileName: fileName, + body: body, + ); } ///Upload an external lyric file. ///@param itemId The item the lyric belongs to. ///@param fileName Name of the file being uploaded. - @Post( - path: '/Audio/{itemId}/Lyrics', - optionalBody: true, - ) + @POST(path: '/Audio/{itemId}/Lyrics', optionalBody: true) Future> _audioItemIdLyricsPost({ @Path('itemId') required String? itemId, @Query('fileName') required String? fileName, @@ -11233,26 +11495,28 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes an external lyric file. ///@param itemId The item id. - @Delete(path: '/Audio/{itemId}/Lyrics') - Future _audioItemIdLyricsDelete( - {@Path('itemId') required String? itemId}); + @DELETE(path: '/Audio/{itemId}/Lyrics') + Future _audioItemIdLyricsDelete({ + @Path('itemId') required String? itemId, + }); ///Search remote lyrics. ///@param itemId The item id. Future>> - audioItemIdRemoteSearchLyricsGet({required String? itemId}) { + audioItemIdRemoteSearchLyricsGet({required String? itemId}) { generatedMapping.putIfAbsent( - RemoteLyricInfoDto, () => RemoteLyricInfoDto.fromJsonFactory); + RemoteLyricInfoDto, + () => RemoteLyricInfoDto.fromJsonFactory, + ); return _audioItemIdRemoteSearchLyricsGet(itemId: itemId); } ///Search remote lyrics. ///@param itemId The item id. - @Get(path: '/Audio/{itemId}/RemoteSearch/Lyrics') + @GET(path: '/Audio/{itemId}/RemoteSearch/Lyrics') Future>> - _audioItemIdRemoteSearchLyricsGet( - {@Path('itemId') required String? itemId}); + _audioItemIdRemoteSearchLyricsGet({@Path('itemId') required String? itemId}); ///Downloads a remote lyric. ///@param itemId The item id. @@ -11264,13 +11528,15 @@ abstract class JellyfinOpenApi extends ChopperService { generatedMapping.putIfAbsent(LyricDto, () => LyricDto.fromJsonFactory); return _audioItemIdRemoteSearchLyricsLyricIdPost( - itemId: itemId, lyricId: lyricId); + itemId: itemId, + lyricId: lyricId, + ); } ///Downloads a remote lyric. ///@param itemId The item id. ///@param lyricId The lyric id. - @Post( + @POST( path: '/Audio/{itemId}/RemoteSearch/Lyrics/{lyricId}', optionalBody: true, ) @@ -11281,8 +11547,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the remote lyrics. ///@param lyricId The remote provider item id. - Future> providersLyricsLyricIdGet( - {required String? lyricId}) { + Future> providersLyricsLyricIdGet({ + required String? lyricId, + }) { generatedMapping.putIfAbsent(LyricDto, () => LyricDto.fromJsonFactory); return _providersLyricsLyricIdGet(lyricId: lyricId); @@ -11290,9 +11557,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the remote lyrics. ///@param lyricId The remote provider item id. - @Get(path: '/Providers/Lyrics/{lyricId}') - Future> _providersLyricsLyricIdGet( - {@Path('lyricId') required String? lyricId}); + @GET(path: '/Providers/Lyrics/{lyricId}') + Future> _providersLyricsLyricIdGet({ + @Path('lyricId') required String? lyricId, + }); ///Gets live playback media info for an item. ///@param itemId The item id. @@ -11302,7 +11570,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - PlaybackInfoResponse, () => PlaybackInfoResponse.fromJsonFactory); + PlaybackInfoResponse, + () => PlaybackInfoResponse.fromJsonFactory, + ); return _itemsItemIdPlaybackInfoGet(itemId: itemId, userId: userId); } @@ -11310,7 +11580,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets live playback media info for an item. ///@param itemId The item id. ///@param userId The user id. - @Get(path: '/Items/{itemId}/PlaybackInfo') + @GET(path: '/Items/{itemId}/PlaybackInfo') Future> _itemsItemIdPlaybackInfoGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -11351,25 +11621,28 @@ abstract class JellyfinOpenApi extends ChopperService { required PlaybackInfoDto? body, }) { generatedMapping.putIfAbsent( - PlaybackInfoResponse, () => PlaybackInfoResponse.fromJsonFactory); + PlaybackInfoResponse, + () => PlaybackInfoResponse.fromJsonFactory, + ); return _itemsItemIdPlaybackInfoPost( - itemId: itemId, - userId: userId, - maxStreamingBitrate: maxStreamingBitrate, - startTimeTicks: startTimeTicks, - audioStreamIndex: audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex, - maxAudioChannels: maxAudioChannels, - mediaSourceId: mediaSourceId, - liveStreamId: liveStreamId, - autoOpenLiveStream: autoOpenLiveStream, - enableDirectPlay: enableDirectPlay, - enableDirectStream: enableDirectStream, - enableTranscoding: enableTranscoding, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - body: body); + itemId: itemId, + userId: userId, + maxStreamingBitrate: maxStreamingBitrate, + startTimeTicks: startTimeTicks, + audioStreamIndex: audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex, + maxAudioChannels: maxAudioChannels, + mediaSourceId: mediaSourceId, + liveStreamId: liveStreamId, + autoOpenLiveStream: autoOpenLiveStream, + enableDirectPlay: enableDirectPlay, + enableDirectStream: enableDirectStream, + enableTranscoding: enableTranscoding, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + body: body, + ); } ///Gets live playback media info for an item. @@ -11388,10 +11661,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableTranscoding Whether to enable transcoding. Default: true. ///@param allowVideoStreamCopy Whether to allow to copy the video stream. Default: true. ///@param allowAudioStreamCopy Whether to allow to copy the audio stream. Default: true. - @Post( - path: '/Items/{itemId}/PlaybackInfo', - optionalBody: true, - ) + @POST(path: '/Items/{itemId}/PlaybackInfo', optionalBody: true) Future> _itemsItemIdPlaybackInfoPost({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @@ -11413,19 +11683,18 @@ abstract class JellyfinOpenApi extends ChopperService { ///Closes a media source. ///@param liveStreamId The livestream id. - Future liveStreamsClosePost( - {required String? liveStreamId}) { + Future liveStreamsClosePost({ + required String? liveStreamId, + }) { return _liveStreamsClosePost(liveStreamId: liveStreamId); } ///Closes a media source. ///@param liveStreamId The livestream id. - @Post( - path: '/LiveStreams/Close', - optionalBody: true, - ) - Future _liveStreamsClosePost( - {@Query('liveStreamId') required String? liveStreamId}); + @POST(path: '/LiveStreams/Close', optionalBody: true) + Future _liveStreamsClosePost({ + @Query('liveStreamId') required String? liveStreamId, + }); ///Opens a media source. ///@param openToken The open token. @@ -11456,23 +11725,25 @@ abstract class JellyfinOpenApi extends ChopperService { required OpenLiveStreamDto? body, }) { generatedMapping.putIfAbsent( - LiveStreamResponse, () => LiveStreamResponse.fromJsonFactory); + LiveStreamResponse, + () => LiveStreamResponse.fromJsonFactory, + ); return _liveStreamsOpenPost( - openToken: openToken, - userId: userId, - playSessionId: playSessionId, - maxStreamingBitrate: maxStreamingBitrate, - startTimeTicks: startTimeTicks, - audioStreamIndex: audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex, - maxAudioChannels: maxAudioChannels, - itemId: itemId, - enableDirectPlay: enableDirectPlay, - enableDirectStream: enableDirectStream, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding, - body: body); + openToken: openToken, + userId: userId, + playSessionId: playSessionId, + maxStreamingBitrate: maxStreamingBitrate, + startTimeTicks: startTimeTicks, + audioStreamIndex: audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex, + maxAudioChannels: maxAudioChannels, + itemId: itemId, + enableDirectPlay: enableDirectPlay, + enableDirectStream: enableDirectStream, + alwaysBurnInSubtitleWhenTranscoding: alwaysBurnInSubtitleWhenTranscoding, + body: body, + ); } ///Opens a media source. @@ -11488,10 +11759,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableDirectPlay Whether to enable direct play. Default: true. ///@param enableDirectStream Whether to enable direct stream. Default: true. ///@param alwaysBurnInSubtitleWhenTranscoding Always burn-in subtitle when transcoding. - @Post( - path: '/LiveStreams/Open', - optionalBody: true, - ) + @POST(path: '/LiveStreams/Open', optionalBody: true) Future> _liveStreamsOpenPost({ @Query('openToken') String? openToken, @Query('userId') String? userId, @@ -11517,9 +11785,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Tests the network with a request with the size of the bitrate. ///@param size The bitrate. Defaults to 102400. - @Get(path: '/Playback/BitrateTest') - Future> _playbackBitrateTestGet( - {@Query('size') int? size}); + @GET(path: '/Playback/BitrateTest') + Future> _playbackBitrateTestGet({ + @Query('size') int? size, + }); ///Gets all media segments based on an itemId. ///@param itemId The ItemId. @@ -11528,18 +11797,21 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, List? includeSegmentTypes, }) { - generatedMapping.putIfAbsent(MediaSegmentDtoQueryResult, - () => MediaSegmentDtoQueryResult.fromJsonFactory); + generatedMapping.putIfAbsent( + MediaSegmentDtoQueryResult, + () => MediaSegmentDtoQueryResult.fromJsonFactory, + ); return _mediaSegmentsItemIdGet( - itemId: itemId, - includeSegmentTypes: mediaSegmentTypeListToJson(includeSegmentTypes)); + itemId: itemId, + includeSegmentTypes: mediaSegmentTypeListToJson(includeSegmentTypes), + ); } ///Gets all media segments based on an itemId. ///@param itemId The ItemId. ///@param includeSegmentTypes Optional filter of requested segment types. - @Get(path: '/MediaSegments/{itemId}') + @GET(path: '/MediaSegments/{itemId}') Future> _mediaSegmentsItemIdGet({ @Path('itemId') required String? itemId, @Query('includeSegmentTypes') List? includeSegmentTypes, @@ -11559,14 +11831,17 @@ abstract class JellyfinOpenApi extends ChopperService { int? itemLimit, }) { generatedMapping.putIfAbsent( - RecommendationDto, () => RecommendationDto.fromJsonFactory); + RecommendationDto, + () => RecommendationDto.fromJsonFactory, + ); return _moviesRecommendationsGet( - userId: userId, - parentId: parentId, - fields: itemFieldsListToJson(fields), - categoryLimit: categoryLimit, - itemLimit: itemLimit); + userId: userId, + parentId: parentId, + fields: itemFieldsListToJson(fields), + categoryLimit: categoryLimit, + itemLimit: itemLimit, + ); } ///Gets movie recommendations. @@ -11575,7 +11850,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param fields Optional. The fields to return. ///@param categoryLimit The max number of categories to return. ///@param itemLimit The max number of items to return per category. - @Get(path: '/Movies/Recommendations') + @GET(path: '/Movies/Recommendations') Future>> _moviesRecommendationsGet({ @Query('userId') String? userId, @Query('parentId') String? parentId, @@ -11625,27 +11900,30 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _musicGenresGet( - startIndex: startIndex, - limit: limit, - searchTerm: searchTerm, - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - isFavorite: isFavorite, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - userId: userId, - nameStartsWithOrGreater: nameStartsWithOrGreater, - nameStartsWith: nameStartsWith, - nameLessThan: nameLessThan, - sortBy: itemSortByListToJson(sortBy), - sortOrder: sortOrderListToJson(sortOrder), - enableImages: enableImages, - enableTotalRecordCount: enableTotalRecordCount); + startIndex: startIndex, + limit: limit, + searchTerm: searchTerm, + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + isFavorite: isFavorite, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + userId: userId, + nameStartsWithOrGreater: nameStartsWithOrGreater, + nameStartsWith: nameStartsWith, + nameLessThan: nameLessThan, + sortBy: itemSortByListToJson(sortBy), + sortOrder: sortOrderListToJson(sortOrder), + enableImages: enableImages, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets all music genres from a given item, folder, or the entire library. @@ -11668,7 +11946,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableImages Optional, include image information in output. ///@param enableTotalRecordCount Optional. Include total record count. @deprecated - @Get(path: '/MusicGenres') + @GET(path: '/MusicGenres') Future> _musicGenresGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -11698,7 +11976,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _musicGenresGenreNameGet(genreName: genreName, userId: userId); } @@ -11706,7 +11986,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a music genre, by name. ///@param genreName The genre name. ///@param userId Optional. Filter by user id, and attach user data. - @Get(path: '/MusicGenres/{genreName}') + @GET(path: '/MusicGenres/{genreName}') Future> _musicGenresGenreNameGet({ @Path('genreName') required String? genreName, @Query('userId') String? userId, @@ -11715,13 +11995,15 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available packages. Future>> packagesGet() { generatedMapping.putIfAbsent( - PackageInfo, () => PackageInfo.fromJsonFactory); + PackageInfo, + () => PackageInfo.fromJsonFactory, + ); return _packagesGet(); } ///Gets available packages. - @Get(path: '/Packages') + @GET(path: '/Packages') Future>> _packagesGet(); ///Gets a package by name or assembly GUID. @@ -11732,7 +12014,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? assemblyGuid, }) { generatedMapping.putIfAbsent( - PackageInfo, () => PackageInfo.fromJsonFactory); + PackageInfo, + () => PackageInfo.fromJsonFactory, + ); return _packagesNameGet(name: name, assemblyGuid: assemblyGuid); } @@ -11740,7 +12024,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a package by name or assembly GUID. ///@param name The name of the package. ///@param assemblyGuid The GUID of the associated assembly. - @Get(path: '/Packages/{name}') + @GET(path: '/Packages/{name}') Future> _packagesNameGet({ @Path('name') required String? name, @Query('assemblyGuid') String? assemblyGuid, @@ -11758,10 +12042,11 @@ abstract class JellyfinOpenApi extends ChopperService { String? repositoryUrl, }) { return _packagesInstalledNamePost( - name: name, - assemblyGuid: assemblyGuid, - version: version, - repositoryUrl: repositoryUrl); + name: name, + assemblyGuid: assemblyGuid, + version: version, + repositoryUrl: repositoryUrl, + ); } ///Installs a package. @@ -11769,10 +12054,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param assemblyGuid GUID of the associated assembly. ///@param version Optional version. Defaults to latest version. ///@param repositoryUrl Optional. Specify the repository to install from. - @Post( - path: '/Packages/Installed/{name}', - optionalBody: true, - ) + @POST(path: '/Packages/Installed/{name}', optionalBody: true) Future _packagesInstalledNamePost({ @Path('name') required String? name, @Query('assemblyGuid') String? assemblyGuid, @@ -11782,42 +12064,45 @@ abstract class JellyfinOpenApi extends ChopperService { ///Cancels a package installation. ///@param packageId Installation Id. - Future packagesInstallingPackageIdDelete( - {required String? packageId}) { + Future packagesInstallingPackageIdDelete({ + required String? packageId, + }) { return _packagesInstallingPackageIdDelete(packageId: packageId); } ///Cancels a package installation. ///@param packageId Installation Id. - @Delete(path: '/Packages/Installing/{packageId}') - Future _packagesInstallingPackageIdDelete( - {@Path('packageId') required String? packageId}); + @DELETE(path: '/Packages/Installing/{packageId}') + Future _packagesInstallingPackageIdDelete({ + @Path('packageId') required String? packageId, + }); ///Gets all package repositories. Future>> repositoriesGet() { generatedMapping.putIfAbsent( - RepositoryInfo, () => RepositoryInfo.fromJsonFactory); + RepositoryInfo, + () => RepositoryInfo.fromJsonFactory, + ); return _repositoriesGet(); } ///Gets all package repositories. - @Get(path: '/Repositories') + @GET(path: '/Repositories') Future>> _repositoriesGet(); ///Sets the enabled and existing package repositories. - Future repositoriesPost( - {required List? body}) { + Future repositoriesPost({ + required List? body, + }) { return _repositoriesPost(body: body); } ///Sets the enabled and existing package repositories. - @Post( - path: '/Repositories', - optionalBody: true, - ) - Future _repositoriesPost( - {@Body() required List? body}); + @POST(path: '/Repositories', optionalBody: true) + Future _repositoriesPost({ + @Body() required List? body, + }); ///Gets all persons. ///@param limit Optional. The maximum number of records to return. @@ -11849,22 +12134,25 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableImages, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _personsGet( - limit: limit, - searchTerm: searchTerm, - fields: itemFieldsListToJson(fields), - filters: itemFilterListToJson(filters), - isFavorite: isFavorite, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - excludePersonTypes: excludePersonTypes, - personTypes: personTypes, - appearsInItemId: appearsInItemId, - userId: userId, - enableImages: enableImages); + limit: limit, + searchTerm: searchTerm, + fields: itemFieldsListToJson(fields), + filters: itemFilterListToJson(filters), + isFavorite: isFavorite, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + excludePersonTypes: excludePersonTypes, + personTypes: personTypes, + appearsInItemId: appearsInItemId, + userId: userId, + enableImages: enableImages, + ); } ///Gets all persons. @@ -11881,7 +12169,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param appearsInItemId Optional. If specified, person results will be filtered on items related to said persons. ///@param userId User id. ///@param enableImages Optional, include image information in output. - @Get(path: '/Persons') + @GET(path: '/Persons') Future> _personsGet({ @Query('limit') int? limit, @Query('searchTerm') String? searchTerm, @@ -11906,7 +12194,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _personsNameGet(name: name, userId: userId); } @@ -11914,7 +12204,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get person by name. ///@param name Person name. ///@param userId Optional. Filter by user id, and attach user data. - @Get(path: '/Persons/{name}') + @GET(path: '/Persons/{name}') Future> _personsNameGet({ @Path('name') required String? name, @Query('userId') String? userId, @@ -11933,14 +12223,17 @@ abstract class JellyfinOpenApi extends ChopperService { required CreatePlaylistDto? body, }) { generatedMapping.putIfAbsent( - PlaylistCreationResult, () => PlaylistCreationResult.fromJsonFactory); + PlaylistCreationResult, + () => PlaylistCreationResult.fromJsonFactory, + ); return _playlistsPost( - name: name, - ids: ids, - userId: userId, - mediaType: mediaType?.value?.toString(), - body: body); + name: name, + ids: ids, + userId: userId, + mediaType: mediaType?.value?.toString(), + body: body, + ); } ///Creates a new playlist. @@ -11948,10 +12241,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param ids The item ids. ///@param userId The user id. ///@param mediaType The media type. - @Post( - path: '/Playlists', - optionalBody: true, - ) + @POST(path: '/Playlists', optionalBody: true) Future> _playlistsPost({ @Query('name') String? name, @Query('ids') List? ids, @@ -11971,10 +12261,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates a playlist. ///@param playlistId The playlist id. - @Post( - path: '/Playlists/{playlistId}', - optionalBody: true, - ) + @POST(path: '/Playlists/{playlistId}', optionalBody: true) Future _playlistsPlaylistIdPost({ @Path('playlistId') required String? playlistId, @Body() required UpdatePlaylistDto? body, @@ -11982,19 +12269,23 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist. ///@param playlistId The playlist id. - Future> playlistsPlaylistIdGet( - {required String? playlistId}) { + Future> playlistsPlaylistIdGet({ + required String? playlistId, + }) { generatedMapping.putIfAbsent( - PlaylistDto, () => PlaylistDto.fromJsonFactory); + PlaylistDto, + () => PlaylistDto.fromJsonFactory, + ); return _playlistsPlaylistIdGet(playlistId: playlistId); } ///Get a playlist. ///@param playlistId The playlist id. - @Get(path: '/Playlists/{playlistId}') - Future> _playlistsPlaylistIdGet( - {@Path('playlistId') required String? playlistId}); + @GET(path: '/Playlists/{playlistId}') + Future> _playlistsPlaylistIdGet({ + @Path('playlistId') required String? playlistId, + }); ///Adds items to a playlist. ///@param playlistId The playlist id. @@ -12006,17 +12297,17 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { return _playlistsPlaylistIdItemsPost( - playlistId: playlistId, ids: ids, userId: userId); + playlistId: playlistId, + ids: ids, + userId: userId, + ); } ///Adds items to a playlist. ///@param playlistId The playlist id. ///@param ids Item id, comma delimited. ///@param userId The userId. - @Post( - path: '/Playlists/{playlistId}/Items', - optionalBody: true, - ) + @POST(path: '/Playlists/{playlistId}/Items', optionalBody: true) Future _playlistsPlaylistIdItemsPost({ @Path('playlistId') required String? playlistId, @Query('ids') List? ids, @@ -12031,13 +12322,15 @@ abstract class JellyfinOpenApi extends ChopperService { List? entryIds, }) { return _playlistsPlaylistIdItemsDelete( - playlistId: playlistId, entryIds: entryIds); + playlistId: playlistId, + entryIds: entryIds, + ); } ///Removes items from a playlist. ///@param playlistId The playlist id. ///@param entryIds The item ids, comma delimited. - @Delete(path: '/Playlists/{playlistId}/Items') + @DELETE(path: '/Playlists/{playlistId}/Items') Future _playlistsPlaylistIdItemsDelete({ @Path('playlistId') required String? playlistId, @Query('entryIds') List? entryIds, @@ -12065,18 +12358,21 @@ abstract class JellyfinOpenApi extends ChopperService { List? enableImageTypes, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _playlistsPlaylistIdItemsGet( - playlistId: playlistId, - userId: userId, - startIndex: startIndex, - limit: limit, - fields: itemFieldsListToJson(fields), - enableImages: enableImages, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes)); + playlistId: playlistId, + userId: userId, + startIndex: startIndex, + limit: limit, + fields: itemFieldsListToJson(fields), + enableImages: enableImages, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + ); } ///Gets the original items of a playlist. @@ -12089,9 +12385,9 @@ 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. - @Get(path: '/Playlists/{playlistId}/Items') + @GET(path: '/Playlists/{playlistId}/Items') Future> - _playlistsPlaylistIdItemsGet({ + _playlistsPlaylistIdItemsGet({ @Path('playlistId') required String? playlistId, @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -12113,14 +12409,17 @@ abstract class JellyfinOpenApi extends ChopperService { required int? newIndex, }) { return _playlistsPlaylistIdItemsItemIdMoveNewIndexPost( - playlistId: playlistId, itemId: itemId, newIndex: newIndex); + playlistId: playlistId, + itemId: itemId, + newIndex: newIndex, + ); } ///Moves a playlist item. ///@param playlistId The playlist id. ///@param itemId The item id. ///@param newIndex The new index. - @Post( + @POST( path: '/Playlists/{playlistId}/Items/{itemId}/Move/{newIndex}', optionalBody: true, ) @@ -12133,41 +12432,48 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist's users. ///@param playlistId The playlist id. Future>> - playlistsPlaylistIdUsersGet({required String? playlistId}) { + playlistsPlaylistIdUsersGet({required String? playlistId}) { generatedMapping.putIfAbsent( - PlaylistUserPermissions, () => PlaylistUserPermissions.fromJsonFactory); + PlaylistUserPermissions, + () => PlaylistUserPermissions.fromJsonFactory, + ); return _playlistsPlaylistIdUsersGet(playlistId: playlistId); } ///Get a playlist's users. ///@param playlistId The playlist id. - @Get(path: '/Playlists/{playlistId}/Users') + @GET(path: '/Playlists/{playlistId}/Users') Future>> - _playlistsPlaylistIdUsersGet( - {@Path('playlistId') required String? playlistId}); + _playlistsPlaylistIdUsersGet({ + @Path('playlistId') required String? playlistId, + }); ///Get a playlist user. ///@param playlistId The playlist id. ///@param userId The user id. Future> - playlistsPlaylistIdUsersUserIdGet({ + playlistsPlaylistIdUsersUserIdGet({ required String? playlistId, required String? userId, }) { generatedMapping.putIfAbsent( - PlaylistUserPermissions, () => PlaylistUserPermissions.fromJsonFactory); + PlaylistUserPermissions, + () => PlaylistUserPermissions.fromJsonFactory, + ); return _playlistsPlaylistIdUsersUserIdGet( - playlistId: playlistId, userId: userId); + playlistId: playlistId, + userId: userId, + ); } ///Get a playlist user. ///@param playlistId The playlist id. ///@param userId The user id. - @Get(path: '/Playlists/{playlistId}/Users/{userId}') + @GET(path: '/Playlists/{playlistId}/Users/{userId}') Future> - _playlistsPlaylistIdUsersUserIdGet({ + _playlistsPlaylistIdUsersUserIdGet({ @Path('playlistId') required String? playlistId, @Path('userId') required String? userId, }); @@ -12181,16 +12487,16 @@ abstract class JellyfinOpenApi extends ChopperService { required UpdatePlaylistUserDto? body, }) { return _playlistsPlaylistIdUsersUserIdPost( - playlistId: playlistId, userId: userId, body: body); + playlistId: playlistId, + userId: userId, + body: body, + ); } ///Modify a user of a playlist's users. ///@param playlistId The playlist id. ///@param userId The user id. - @Post( - path: '/Playlists/{playlistId}/Users/{userId}', - optionalBody: true, - ) + @POST(path: '/Playlists/{playlistId}/Users/{userId}', optionalBody: true) Future _playlistsPlaylistIdUsersUserIdPost({ @Path('playlistId') required String? playlistId, @Path('userId') required String? userId, @@ -12205,13 +12511,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? userId, }) { return _playlistsPlaylistIdUsersUserIdDelete( - playlistId: playlistId, userId: userId); + playlistId: playlistId, + userId: userId, + ); } ///Remove a user from a playlist's users. ///@param playlistId The playlist id. ///@param userId The user id. - @Delete(path: '/Playlists/{playlistId}/Users/{userId}') + @DELETE(path: '/Playlists/{playlistId}/Users/{userId}') Future _playlistsPlaylistIdUsersUserIdDelete({ @Path('playlistId') required String? playlistId, @Path('userId') required String? userId, @@ -12237,14 +12545,15 @@ abstract class JellyfinOpenApi extends ChopperService { bool? canSeek, }) { return _playingItemsItemIdPost( - itemId: itemId, - mediaSourceId: mediaSourceId, - audioStreamIndex: audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex, - playMethod: playMethod?.value?.toString(), - liveStreamId: liveStreamId, - playSessionId: playSessionId, - canSeek: canSeek); + itemId: itemId, + mediaSourceId: mediaSourceId, + audioStreamIndex: audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex, + playMethod: playMethod?.value?.toString(), + liveStreamId: liveStreamId, + playSessionId: playSessionId, + canSeek: canSeek, + ); } ///Reports that a session has begun playing an item. @@ -12256,10 +12565,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param liveStreamId The live stream id. ///@param playSessionId The play session id. ///@param canSeek Indicates if the client can seek. - @Post( - path: '/PlayingItems/{itemId}', - optionalBody: true, - ) + @POST(path: '/PlayingItems/{itemId}', optionalBody: true) Future _playingItemsItemIdPost({ @Path('itemId') required String? itemId, @Query('mediaSourceId') String? mediaSourceId, @@ -12287,12 +12593,13 @@ abstract class JellyfinOpenApi extends ChopperService { String? playSessionId, }) { return _playingItemsItemIdDelete( - itemId: itemId, - mediaSourceId: mediaSourceId, - nextMediaType: nextMediaType, - positionTicks: positionTicks, - liveStreamId: liveStreamId, - playSessionId: playSessionId); + itemId: itemId, + mediaSourceId: mediaSourceId, + nextMediaType: nextMediaType, + positionTicks: positionTicks, + liveStreamId: liveStreamId, + playSessionId: playSessionId, + ); } ///Reports that a session has stopped playing an item. @@ -12302,7 +12609,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param positionTicks Optional. The position, in ticks, where playback stopped. 1 tick = 10000 ms. ///@param liveStreamId The live stream id. ///@param playSessionId The play session id. - @Delete(path: '/PlayingItems/{itemId}') + @DELETE(path: '/PlayingItems/{itemId}') Future _playingItemsItemIdDelete({ @Path('itemId') required String? itemId, @Query('mediaSourceId') String? mediaSourceId, @@ -12340,18 +12647,19 @@ abstract class JellyfinOpenApi extends ChopperService { bool? isMuted, }) { return _playingItemsItemIdProgressPost( - itemId: itemId, - mediaSourceId: mediaSourceId, - positionTicks: positionTicks, - audioStreamIndex: audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex, - volumeLevel: volumeLevel, - playMethod: playMethod?.value?.toString(), - liveStreamId: liveStreamId, - playSessionId: playSessionId, - repeatMode: repeatMode?.value?.toString(), - isPaused: isPaused, - isMuted: isMuted); + itemId: itemId, + mediaSourceId: mediaSourceId, + positionTicks: positionTicks, + audioStreamIndex: audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex, + volumeLevel: volumeLevel, + playMethod: playMethod?.value?.toString(), + liveStreamId: liveStreamId, + playSessionId: playSessionId, + repeatMode: repeatMode?.value?.toString(), + isPaused: isPaused, + isMuted: isMuted, + ); } ///Reports a session's playback progress. @@ -12367,10 +12675,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param repeatMode The repeat mode. ///@param isPaused Indicates if the player is paused. ///@param isMuted Indicates if the player is muted. - @Post( - path: '/PlayingItems/{itemId}/Progress', - optionalBody: true, - ) + @POST(path: '/PlayingItems/{itemId}/Progress', optionalBody: true) Future _playingItemsItemIdProgressPost({ @Path('itemId') required String? itemId, @Query('mediaSourceId') String? mediaSourceId, @@ -12387,62 +12692,58 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Reports playback has started within a session. - Future sessionsPlayingPost( - {required PlaybackStartInfo? body}) { + Future sessionsPlayingPost({ + required PlaybackStartInfo? body, + }) { return _sessionsPlayingPost(body: body); } ///Reports playback has started within a session. - @Post( - path: '/Sessions/Playing', - optionalBody: true, - ) - Future _sessionsPlayingPost( - {@Body() required PlaybackStartInfo? body}); + @POST(path: '/Sessions/Playing', optionalBody: true) + Future _sessionsPlayingPost({ + @Body() required PlaybackStartInfo? body, + }); ///Pings a playback session. ///@param playSessionId Playback session id. - Future sessionsPlayingPingPost( - {required String? playSessionId}) { + Future sessionsPlayingPingPost({ + required String? playSessionId, + }) { return _sessionsPlayingPingPost(playSessionId: playSessionId); } ///Pings a playback session. ///@param playSessionId Playback session id. - @Post( - path: '/Sessions/Playing/Ping', - optionalBody: true, - ) - Future _sessionsPlayingPingPost( - {@Query('playSessionId') required String? playSessionId}); + @POST(path: '/Sessions/Playing/Ping', optionalBody: true) + Future _sessionsPlayingPingPost({ + @Query('playSessionId') required String? playSessionId, + }); ///Reports playback progress within a session. - Future sessionsPlayingProgressPost( - {required PlaybackProgressInfo? body}) { + Future sessionsPlayingProgressPost({ + required PlaybackProgressInfo? body, + }) { return _sessionsPlayingProgressPost(body: body); } ///Reports playback progress within a session. - @Post( - path: '/Sessions/Playing/Progress', - optionalBody: true, - ) - Future _sessionsPlayingProgressPost( - {@Body() required PlaybackProgressInfo? body}); + @POST(path: '/Sessions/Playing/Progress', optionalBody: true) + Future _sessionsPlayingProgressPost({ + @Body() required PlaybackProgressInfo? body, + }); ///Reports playback has stopped within a session. - Future sessionsPlayingStoppedPost( - {required PlaybackStopInfo? body}) { + Future sessionsPlayingStoppedPost({ + required PlaybackStopInfo? body, + }) { return _sessionsPlayingStoppedPost(body: body); } ///Reports playback has stopped within a session. - @Post( - path: '/Sessions/Playing/Stopped', - optionalBody: true, - ) - Future _sessionsPlayingStoppedPost( - {@Body() required PlaybackStopInfo? body}); + @POST(path: '/Sessions/Playing/Stopped', optionalBody: true) + Future _sessionsPlayingStoppedPost({ + @Body() required PlaybackStopInfo? body, + }); ///Marks an item as played for user. ///@param userId User id. @@ -12454,20 +12755,22 @@ abstract class JellyfinOpenApi extends ChopperService { DateTime? datePlayed, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userPlayedItemsItemIdPost( - userId: userId, itemId: itemId, datePlayed: datePlayed); + userId: userId, + itemId: itemId, + datePlayed: datePlayed, + ); } ///Marks an item as played for user. ///@param userId User id. ///@param itemId Item id. ///@param datePlayed Optional. The date the item was played. - @Post( - path: '/UserPlayedItems/{itemId}', - optionalBody: true, - ) + @POST(path: '/UserPlayedItems/{itemId}', optionalBody: true) Future> _userPlayedItemsItemIdPost({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -12482,7 +12785,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userPlayedItemsItemIdDelete(userId: userId, itemId: itemId); } @@ -12490,7 +12795,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Marks an item as unplayed for user. ///@param userId User id. ///@param itemId Item id. - @Delete(path: '/UserPlayedItems/{itemId}') + @DELETE(path: '/UserPlayedItems/{itemId}') Future> _userPlayedItemsItemIdDelete({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -12504,7 +12809,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets a list of currently installed plugins. - @Get(path: '/Plugins') + @GET(path: '/Plugins') Future>> _pluginsGet(); ///Uninstalls a plugin. @@ -12517,9 +12822,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Uninstalls a plugin. ///@param pluginId Plugin id. @deprecated - @Delete(path: '/Plugins/{pluginId}') - Future _pluginsPluginIdDelete( - {@Path('pluginId') required String? pluginId}); + @DELETE(path: '/Plugins/{pluginId}') + Future _pluginsPluginIdDelete({ + @Path('pluginId') required String? pluginId, + }); ///Uninstalls a plugin by version. ///@param pluginId Plugin id. @@ -12534,7 +12840,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Uninstalls a plugin by version. ///@param pluginId Plugin id. ///@param version Plugin version. - @Delete(path: '/Plugins/{pluginId}/{version}') + @DELETE(path: '/Plugins/{pluginId}/{version}') Future _pluginsPluginIdVersionDelete({ @Path('pluginId') required String? pluginId, @Path('version') required String? version, @@ -12548,16 +12854,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? version, }) { return _pluginsPluginIdVersionDisablePost( - pluginId: pluginId, version: version); + pluginId: pluginId, + version: version, + ); } ///Disable a plugin. ///@param pluginId Plugin id. ///@param version Plugin version. - @Post( - path: '/Plugins/{pluginId}/{version}/Disable', - optionalBody: true, - ) + @POST(path: '/Plugins/{pluginId}/{version}/Disable', optionalBody: true) Future _pluginsPluginIdVersionDisablePost({ @Path('pluginId') required String? pluginId, @Path('version') required String? version, @@ -12571,16 +12876,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? version, }) { return _pluginsPluginIdVersionEnablePost( - pluginId: pluginId, version: version); + pluginId: pluginId, + version: version, + ); } ///Enables a disabled plugin. ///@param pluginId Plugin id. ///@param version Plugin version. - @Post( - path: '/Plugins/{pluginId}/{version}/Enable', - optionalBody: true, - ) + @POST(path: '/Plugins/{pluginId}/{version}/Enable', optionalBody: true) Future _pluginsPluginIdVersionEnablePost({ @Path('pluginId') required String? pluginId, @Path('version') required String? version, @@ -12594,13 +12898,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? version, }) { return _pluginsPluginIdVersionImageGet( - pluginId: pluginId, version: version); + pluginId: pluginId, + version: version, + ); } ///Gets a plugin's image. ///@param pluginId Plugin id. ///@param version Plugin version. - @Get(path: '/Plugins/{pluginId}/{version}/Image') + @GET(path: '/Plugins/{pluginId}/{version}/Image') Future> _pluginsPluginIdVersionImageGet({ @Path('pluginId') required String? pluginId, @Path('version') required String? version, @@ -12609,51 +12915,52 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets plugin configuration. ///@param pluginId Plugin id. Future> - pluginsPluginIdConfigurationGet({required String? pluginId}) { + pluginsPluginIdConfigurationGet({required String? pluginId}) { generatedMapping.putIfAbsent( - BasePluginConfiguration, () => BasePluginConfiguration.fromJsonFactory); + BasePluginConfiguration, + () => BasePluginConfiguration.fromJsonFactory, + ); return _pluginsPluginIdConfigurationGet(pluginId: pluginId); } ///Gets plugin configuration. ///@param pluginId Plugin id. - @Get(path: '/Plugins/{pluginId}/Configuration') + @GET(path: '/Plugins/{pluginId}/Configuration') Future> - _pluginsPluginIdConfigurationGet( - {@Path('pluginId') required String? pluginId}); + _pluginsPluginIdConfigurationGet({ + @Path('pluginId') required String? pluginId, + }); ///Updates plugin configuration. ///@param pluginId Plugin id. - Future pluginsPluginIdConfigurationPost( - {required String? pluginId}) { + Future pluginsPluginIdConfigurationPost({ + required String? pluginId, + }) { return _pluginsPluginIdConfigurationPost(pluginId: pluginId); } ///Updates plugin configuration. ///@param pluginId Plugin id. - @Post( - path: '/Plugins/{pluginId}/Configuration', - optionalBody: true, - ) - Future _pluginsPluginIdConfigurationPost( - {@Path('pluginId') required String? pluginId}); + @POST(path: '/Plugins/{pluginId}/Configuration', optionalBody: true) + Future _pluginsPluginIdConfigurationPost({ + @Path('pluginId') required String? pluginId, + }); ///Gets a plugin's manifest. ///@param pluginId Plugin id. - Future pluginsPluginIdManifestPost( - {required String? pluginId}) { + Future pluginsPluginIdManifestPost({ + required String? pluginId, + }) { return _pluginsPluginIdManifestPost(pluginId: pluginId); } ///Gets a plugin's manifest. ///@param pluginId Plugin id. - @Post( - path: '/Plugins/{pluginId}/Manifest', - optionalBody: true, - ) - Future _pluginsPluginIdManifestPost( - {@Path('pluginId') required String? pluginId}); + @POST(path: '/Plugins/{pluginId}/Manifest', optionalBody: true) + Future _pluginsPluginIdManifestPost({ + @Path('pluginId') required String? pluginId, + }); ///Authorizes a pending quick connect request. ///@param code Quick connect code to authorize. @@ -12668,10 +12975,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Authorizes a pending quick connect request. ///@param code Quick connect code to authorize. ///@param userId The user the authorize. Access to the requested user is required. - @Post( - path: '/QuickConnect/Authorize', - optionalBody: true, - ) + @POST(path: '/QuickConnect/Authorize', optionalBody: true) Future> _quickConnectAuthorizePost({ @Query('code') required String? code, @Query('userId') String? userId, @@ -12679,19 +12983,23 @@ abstract class JellyfinOpenApi extends ChopperService { ///Attempts to retrieve authentication information. ///@param secret Secret previously returned from the Initiate endpoint. - Future> quickConnectConnectGet( - {required String? secret}) { + Future> quickConnectConnectGet({ + required String? secret, + }) { generatedMapping.putIfAbsent( - QuickConnectResult, () => QuickConnectResult.fromJsonFactory); + QuickConnectResult, + () => QuickConnectResult.fromJsonFactory, + ); return _quickConnectConnectGet(secret: secret); } ///Attempts to retrieve authentication information. ///@param secret Secret previously returned from the Initiate endpoint. - @Get(path: '/QuickConnect/Connect') - Future> _quickConnectConnectGet( - {@Query('secret') required String? secret}); + @GET(path: '/QuickConnect/Connect') + Future> _quickConnectConnectGet({ + @Query('secret') required String? secret, + }); ///Gets the current quick connect state. Future> quickConnectEnabledGet() { @@ -12699,22 +13007,21 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets the current quick connect state. - @Get(path: '/QuickConnect/Enabled') + @GET(path: '/QuickConnect/Enabled') Future> _quickConnectEnabledGet(); ///Initiate a new quick connect request. Future> quickConnectInitiatePost() { generatedMapping.putIfAbsent( - QuickConnectResult, () => QuickConnectResult.fromJsonFactory); + QuickConnectResult, + () => QuickConnectResult.fromJsonFactory, + ); return _quickConnectInitiatePost(); } ///Initiate a new quick connect request. - @Post( - path: '/QuickConnect/Initiate', - optionalBody: true, - ) + @POST(path: '/QuickConnect/Initiate', optionalBody: true) Future> _quickConnectInitiatePost(); ///Gets available remote images for an item. @@ -12733,15 +13040,18 @@ abstract class JellyfinOpenApi extends ChopperService { bool? includeAllLanguages, }) { generatedMapping.putIfAbsent( - RemoteImageResult, () => RemoteImageResult.fromJsonFactory); + RemoteImageResult, + () => RemoteImageResult.fromJsonFactory, + ); return _itemsItemIdRemoteImagesGet( - itemId: itemId, - type: type?.value?.toString(), - startIndex: startIndex, - limit: limit, - providerName: providerName, - includeAllLanguages: includeAllLanguages); + itemId: itemId, + type: type?.value?.toString(), + startIndex: startIndex, + limit: limit, + providerName: providerName, + includeAllLanguages: includeAllLanguages, + ); } ///Gets available remote images for an item. @@ -12751,7 +13061,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param limit Optional. The maximum number of records to return. ///@param providerName Optional. The image provider to use. ///@param includeAllLanguages Optional. Include all languages. - @Get(path: '/Items/{itemId}/RemoteImages') + @GET(path: '/Items/{itemId}/RemoteImages') Future> _itemsItemIdRemoteImagesGet({ @Path('itemId') required String? itemId, @Query('type') String? type, @@ -12771,17 +13081,17 @@ abstract class JellyfinOpenApi extends ChopperService { String? imageUrl, }) { return _itemsItemIdRemoteImagesDownloadPost( - itemId: itemId, type: type?.value?.toString(), imageUrl: imageUrl); + itemId: itemId, + type: type?.value?.toString(), + imageUrl: imageUrl, + ); } ///Downloads a remote image for an item. ///@param itemId Item Id. ///@param type The image type. ///@param imageUrl The image url. - @Post( - path: '/Items/{itemId}/RemoteImages/Download', - optionalBody: true, - ) + @POST(path: '/Items/{itemId}/RemoteImages/Download', optionalBody: true) Future _itemsItemIdRemoteImagesDownloadPost({ @Path('itemId') required String? itemId, @Query('type') required String? type, @@ -12791,19 +13101,22 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available remote image providers for an item. ///@param itemId Item Id. Future>> - itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { + itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { generatedMapping.putIfAbsent( - ImageProviderInfo, () => ImageProviderInfo.fromJsonFactory); + ImageProviderInfo, + () => ImageProviderInfo.fromJsonFactory, + ); return _itemsItemIdRemoteImagesProvidersGet(itemId: itemId); } ///Gets available remote image providers for an item. ///@param itemId Item Id. - @Get(path: '/Items/{itemId}/RemoteImages/Providers') + @GET(path: '/Items/{itemId}/RemoteImages/Providers') Future>> - _itemsItemIdRemoteImagesProvidersGet( - {@Path('itemId') required String? itemId}); + _itemsItemIdRemoteImagesProvidersGet({ + @Path('itemId') required String? itemId, + }); ///Get tasks. ///@param isHidden Optional filter tasks that are hidden, or not. @@ -12820,7 +13133,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get tasks. ///@param isHidden Optional filter tasks that are hidden, or not. ///@param isEnabled Optional filter tasks that are enabled, or not. - @Get(path: '/ScheduledTasks') + @GET(path: '/ScheduledTasks') Future>> _scheduledTasksGet({ @Query('isHidden') bool? isHidden, @Query('isEnabled') bool? isEnabled, @@ -12828,8 +13141,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get task by id. ///@param taskId Task Id. - Future> scheduledTasksTaskIdGet( - {required String? taskId}) { + Future> scheduledTasksTaskIdGet({ + required String? taskId, + }) { generatedMapping.putIfAbsent(TaskInfo, () => TaskInfo.fromJsonFactory); return _scheduledTasksTaskIdGet(taskId: taskId); @@ -12837,9 +13151,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get task by id. ///@param taskId Task Id. - @Get(path: '/ScheduledTasks/{taskId}') - Future> _scheduledTasksTaskIdGet( - {@Path('taskId') required String? taskId}); + @GET(path: '/ScheduledTasks/{taskId}') + Future> _scheduledTasksTaskIdGet({ + @Path('taskId') required String? taskId, + }); ///Update specified task triggers. ///@param taskId Task Id. @@ -12852,10 +13167,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Update specified task triggers. ///@param taskId Task Id. - @Post( - path: '/ScheduledTasks/{taskId}/Triggers', - optionalBody: true, - ) + @POST(path: '/ScheduledTasks/{taskId}/Triggers', optionalBody: true) Future _scheduledTasksTaskIdTriggersPost({ @Path('taskId') required String? taskId, @Body() required List? body, @@ -12863,32 +13175,33 @@ abstract class JellyfinOpenApi extends ChopperService { ///Start specified task. ///@param taskId Task Id. - Future scheduledTasksRunningTaskIdPost( - {required String? taskId}) { + Future scheduledTasksRunningTaskIdPost({ + required String? taskId, + }) { return _scheduledTasksRunningTaskIdPost(taskId: taskId); } ///Start specified task. ///@param taskId Task Id. - @Post( - path: '/ScheduledTasks/Running/{taskId}', - optionalBody: true, - ) - Future _scheduledTasksRunningTaskIdPost( - {@Path('taskId') required String? taskId}); + @POST(path: '/ScheduledTasks/Running/{taskId}', optionalBody: true) + Future _scheduledTasksRunningTaskIdPost({ + @Path('taskId') required String? taskId, + }); ///Stop specified task. ///@param taskId Task Id. - Future scheduledTasksRunningTaskIdDelete( - {required String? taskId}) { + Future scheduledTasksRunningTaskIdDelete({ + required String? taskId, + }) { return _scheduledTasksRunningTaskIdDelete(taskId: taskId); } ///Stop specified task. ///@param taskId Task Id. - @Delete(path: '/ScheduledTasks/Running/{taskId}') - Future _scheduledTasksRunningTaskIdDelete( - {@Path('taskId') required String? taskId}); + @DELETE(path: '/ScheduledTasks/Running/{taskId}') + Future _scheduledTasksRunningTaskIdDelete({ + @Path('taskId') required String? taskId, + }); ///Gets the search hint result. ///@param startIndex Optional. The record index to start at. All items with a lower index will be dropped from the results. @@ -12930,27 +13243,30 @@ abstract class JellyfinOpenApi extends ChopperService { bool? includeArtists, }) { generatedMapping.putIfAbsent( - SearchHintResult, () => SearchHintResult.fromJsonFactory); + SearchHintResult, + () => SearchHintResult.fromJsonFactory, + ); return _searchHintsGet( - startIndex: startIndex, - limit: limit, - userId: userId, - searchTerm: searchTerm, - includeItemTypes: baseItemKindListToJson(includeItemTypes), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - mediaTypes: mediaTypeListToJson(mediaTypes), - parentId: parentId, - isMovie: isMovie, - isSeries: isSeries, - isNews: isNews, - isKids: isKids, - isSports: isSports, - includePeople: includePeople, - includeMedia: includeMedia, - includeGenres: includeGenres, - includeStudios: includeStudios, - includeArtists: includeArtists); + startIndex: startIndex, + limit: limit, + userId: userId, + searchTerm: searchTerm, + includeItemTypes: baseItemKindListToJson(includeItemTypes), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + mediaTypes: mediaTypeListToJson(mediaTypes), + parentId: parentId, + isMovie: isMovie, + isSeries: isSeries, + isNews: isNews, + isKids: isKids, + isSports: isSports, + includePeople: includePeople, + includeMedia: includeMedia, + includeGenres: includeGenres, + includeStudios: includeStudios, + includeArtists: includeArtists, + ); } ///Gets the search hint result. @@ -12972,7 +13288,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param includeGenres Optional filter whether to include genres. ///@param includeStudios Optional filter whether to include studios. ///@param includeArtists Optional filter whether to include artists. - @Get(path: '/Search/Hints') + @GET(path: '/Search/Hints') Future> _searchHintsGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -13002,7 +13318,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Get all password reset providers. - @Get(path: '/Auth/PasswordResetProviders') + @GET(path: '/Auth/PasswordResetProviders') Future>> _authPasswordResetProvidersGet(); ///Get all auth providers. @@ -13013,7 +13329,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Get all auth providers. - @Get(path: '/Auth/Providers') + @GET(path: '/Auth/Providers') Future>> _authProvidersGet(); ///Gets a list of sessions. @@ -13026,19 +13342,22 @@ abstract class JellyfinOpenApi extends ChopperService { int? activeWithinSeconds, }) { generatedMapping.putIfAbsent( - SessionInfoDto, () => SessionInfoDto.fromJsonFactory); + SessionInfoDto, + () => SessionInfoDto.fromJsonFactory, + ); return _sessionsGet( - controllableByUserId: controllableByUserId, - deviceId: deviceId, - activeWithinSeconds: activeWithinSeconds); + controllableByUserId: controllableByUserId, + deviceId: deviceId, + activeWithinSeconds: activeWithinSeconds, + ); } ///Gets a list of sessions. ///@param controllableByUserId Filter by sessions that a given user is allowed to remote control. ///@param deviceId Filter by device Id. ///@param activeWithinSeconds Optional. Filter by sessions that were active in the last n seconds. - @Get(path: '/Sessions') + @GET(path: '/Sessions') Future>> _sessionsGet({ @Query('controllableByUserId') String? controllableByUserId, @Query('deviceId') String? deviceId, @@ -13056,10 +13375,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Issues a full general command to a client. ///@param sessionId The session id. - @Post( - path: '/Sessions/{sessionId}/Command', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/Command', optionalBody: true) Future _sessionsSessionIdCommandPost({ @Path('sessionId') required String? sessionId, @Body() required GeneralCommand? body, @@ -13073,16 +13389,15 @@ abstract class JellyfinOpenApi extends ChopperService { required enums.SessionsSessionIdCommandCommandPostCommand? command, }) { return _sessionsSessionIdCommandCommandPost( - sessionId: sessionId, command: command?.value?.toString()); + sessionId: sessionId, + command: command?.value?.toString(), + ); } ///Issues a general command to a client. ///@param sessionId The session id. ///@param command The command to send. - @Post( - path: '/Sessions/{sessionId}/Command/{command}', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/Command/{command}', optionalBody: true) Future _sessionsSessionIdCommandCommandPost({ @Path('sessionId') required String? sessionId, @Path('command') required String? command, @@ -13099,10 +13414,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Issues a command to a client to display a message to the user. ///@param sessionId The session id. - @Post( - path: '/Sessions/{sessionId}/Message', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/Message', optionalBody: true) Future _sessionsSessionIdMessagePost({ @Path('sessionId') required String? sessionId, @Body() required MessageCommand? body, @@ -13128,14 +13440,15 @@ abstract class JellyfinOpenApi extends ChopperService { int? startIndex, }) { return _sessionsSessionIdPlayingPost( - sessionId: sessionId, - playCommand: playCommand?.value?.toString(), - itemIds: itemIds, - startPositionTicks: startPositionTicks, - mediaSourceId: mediaSourceId, - audioStreamIndex: audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex, - startIndex: startIndex); + sessionId: sessionId, + playCommand: playCommand?.value?.toString(), + itemIds: itemIds, + startPositionTicks: startPositionTicks, + mediaSourceId: mediaSourceId, + audioStreamIndex: audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex, + startIndex: startIndex, + ); } ///Instructs a session to play an item. @@ -13147,10 +13460,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param audioStreamIndex Optional. The index of the audio stream to play. ///@param subtitleStreamIndex Optional. The index of the subtitle stream to play. ///@param startIndex Optional. The start index. - @Post( - path: '/Sessions/{sessionId}/Playing', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/Playing', optionalBody: true) Future _sessionsSessionIdPlayingPost({ @Path('sessionId') required String? sessionId, @Query('playCommand') required String? playCommand, @@ -13174,10 +13484,11 @@ abstract class JellyfinOpenApi extends ChopperService { String? controllingUserId, }) { return _sessionsSessionIdPlayingCommandPost( - sessionId: sessionId, - command: command?.value?.toString(), - seekPositionTicks: seekPositionTicks, - controllingUserId: controllingUserId); + sessionId: sessionId, + command: command?.value?.toString(), + seekPositionTicks: seekPositionTicks, + controllingUserId: controllingUserId, + ); } ///Issues a playstate command to a client. @@ -13185,10 +13496,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param command The MediaBrowser.Model.Session.PlaystateCommand. ///@param seekPositionTicks The optional position ticks. ///@param controllingUserId The optional controlling user id. - @Post( - path: '/Sessions/{sessionId}/Playing/{command}', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/Playing/{command}', optionalBody: true) Future _sessionsSessionIdPlayingCommandPost({ @Path('sessionId') required String? sessionId, @Path('command') required String? command, @@ -13204,16 +13512,15 @@ abstract class JellyfinOpenApi extends ChopperService { required enums.SessionsSessionIdSystemCommandPostCommand? command, }) { return _sessionsSessionIdSystemCommandPost( - sessionId: sessionId, command: command?.value?.toString()); + sessionId: sessionId, + command: command?.value?.toString(), + ); } ///Issues a system command to a client. ///@param sessionId The session id. ///@param command The command to send. - @Post( - path: '/Sessions/{sessionId}/System/{command}', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/System/{command}', optionalBody: true) Future _sessionsSessionIdSystemCommandPost({ @Path('sessionId') required String? sessionId, @Path('command') required String? command, @@ -13227,16 +13534,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? userId, }) { return _sessionsSessionIdUserUserIdPost( - sessionId: sessionId, userId: userId); + sessionId: sessionId, + userId: userId, + ); } ///Adds an additional user to a session. ///@param sessionId The session id. ///@param userId The user id. - @Post( - path: '/Sessions/{sessionId}/User/{userId}', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/User/{userId}', optionalBody: true) Future _sessionsSessionIdUserUserIdPost({ @Path('sessionId') required String? sessionId, @Path('userId') required String? userId, @@ -13250,13 +13556,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? userId, }) { return _sessionsSessionIdUserUserIdDelete( - sessionId: sessionId, userId: userId); + sessionId: sessionId, + userId: userId, + ); } ///Removes an additional user from a session. ///@param sessionId The session id. ///@param userId The user id. - @Delete(path: '/Sessions/{sessionId}/User/{userId}') + @DELETE(path: '/Sessions/{sessionId}/User/{userId}') Future _sessionsSessionIdUserUserIdDelete({ @Path('sessionId') required String? sessionId, @Path('userId') required String? userId, @@ -13274,10 +13582,11 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemName, }) { return _sessionsSessionIdViewingPost( - sessionId: sessionId, - itemType: itemType?.value?.toString(), - itemId: itemId, - itemName: itemName); + sessionId: sessionId, + itemType: itemType?.value?.toString(), + itemId: itemId, + itemName: itemName, + ); } ///Instructs a session to browse to an item or view. @@ -13285,10 +13594,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemType The type of item to browse to. ///@param itemId The Id of the item. ///@param itemName The name of the item. - @Post( - path: '/Sessions/{sessionId}/Viewing', - optionalBody: true, - ) + @POST(path: '/Sessions/{sessionId}/Viewing', optionalBody: true) Future _sessionsSessionIdViewingPost({ @Path('sessionId') required String? sessionId, @Query('itemType') required String? itemType, @@ -13310,11 +13616,12 @@ abstract class JellyfinOpenApi extends ChopperService { bool? supportsPersistentIdentifier, }) { return _sessionsCapabilitiesPost( - id: id, - playableMediaTypes: mediaTypeListToJson(playableMediaTypes), - supportedCommands: generalCommandTypeListToJson(supportedCommands), - supportsMediaControl: supportsMediaControl, - supportsPersistentIdentifier: supportsPersistentIdentifier); + id: id, + playableMediaTypes: mediaTypeListToJson(playableMediaTypes), + supportedCommands: generalCommandTypeListToJson(supportedCommands), + supportsMediaControl: supportsMediaControl, + supportsPersistentIdentifier: supportsPersistentIdentifier, + ); } ///Updates capabilities for a device. @@ -13323,10 +13630,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param supportedCommands A list of supported remote control commands, comma delimited. ///@param supportsMediaControl Determines whether media can be played remotely.. ///@param supportsPersistentIdentifier Determines whether the device supports a unique identifier. - @Post( - path: '/Sessions/Capabilities', - optionalBody: true, - ) + @POST(path: '/Sessions/Capabilities', optionalBody: true) Future _sessionsCapabilitiesPost({ @Query('id') String? id, @Query('playableMediaTypes') List? playableMediaTypes, @@ -13346,10 +13650,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates capabilities for a device. ///@param id The session id. - @Post( - path: '/Sessions/Capabilities/Full', - optionalBody: true, - ) + @POST(path: '/Sessions/Capabilities/Full', optionalBody: true) Future _sessionsCapabilitiesFullPost({ @Query('id') String? id, @Body() required ClientCapabilitiesDto? body, @@ -13361,10 +13662,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Reports that a session has ended. - @Post( - path: '/Sessions/Logout', - optionalBody: true, - ) + @POST(path: '/Sessions/Logout', optionalBody: true) Future _sessionsLogoutPost(); ///Reports that a session is viewing an item. @@ -13380,10 +13678,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Reports that a session is viewing an item. ///@param sessionId The session id. ///@param itemId The item id. - @Post( - path: '/Sessions/Viewing', - optionalBody: true, - ) + @POST(path: '/Sessions/Viewing', optionalBody: true) Future _sessionsViewingPost({ @Query('sessionId') String? sessionId, @Query('itemId') required String? itemId, @@ -13395,74 +13690,75 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Completes the startup wizard. - @Post( - path: '/Startup/Complete', - optionalBody: true, - ) + @POST(path: '/Startup/Complete', optionalBody: true) Future _startupCompletePost(); ///Gets the initial startup wizard configuration. Future> startupConfigurationGet() { generatedMapping.putIfAbsent( - StartupConfigurationDto, () => StartupConfigurationDto.fromJsonFactory); + StartupConfigurationDto, + () => StartupConfigurationDto.fromJsonFactory, + ); return _startupConfigurationGet(); } ///Gets the initial startup wizard configuration. - @Get(path: '/Startup/Configuration') + @GET(path: '/Startup/Configuration') Future> _startupConfigurationGet(); ///Sets the initial startup wizard configuration. - Future startupConfigurationPost( - {required StartupConfigurationDto? body}) { + Future startupConfigurationPost({ + required StartupConfigurationDto? body, + }) { return _startupConfigurationPost(body: body); } ///Sets the initial startup wizard configuration. - @Post( - path: '/Startup/Configuration', - optionalBody: true, - ) - Future _startupConfigurationPost( - {@Body() required StartupConfigurationDto? body}); + @POST(path: '/Startup/Configuration', optionalBody: true) + Future _startupConfigurationPost({ + @Body() required StartupConfigurationDto? body, + }); ///Gets the first user. Future> startupFirstUserGet() { generatedMapping.putIfAbsent( - StartupUserDto, () => StartupUserDto.fromJsonFactory); + StartupUserDto, + () => StartupUserDto.fromJsonFactory, + ); return _startupFirstUserGet(); } ///Gets the first user. - @Get(path: '/Startup/FirstUser') + @GET(path: '/Startup/FirstUser') Future> _startupFirstUserGet(); ///Sets remote access and UPnP. - Future startupRemoteAccessPost( - {required StartupRemoteAccessDto? body}) { + Future startupRemoteAccessPost({ + required StartupRemoteAccessDto? body, + }) { return _startupRemoteAccessPost(body: body); } ///Sets remote access and UPnP. - @Post( - path: '/Startup/RemoteAccess', - optionalBody: true, - ) - Future _startupRemoteAccessPost( - {@Body() required StartupRemoteAccessDto? body}); + @POST(path: '/Startup/RemoteAccess', optionalBody: true) + Future _startupRemoteAccessPost({ + @Body() required StartupRemoteAccessDto? body, + }); ///Gets the first user. Future> startupUserGet() { generatedMapping.putIfAbsent( - StartupUserDto, () => StartupUserDto.fromJsonFactory); + StartupUserDto, + () => StartupUserDto.fromJsonFactory, + ); return _startupUserGet(); } ///Gets the first user. - @Get(path: '/Startup/User') + @GET(path: '/Startup/User') Future> _startupUserGet(); ///Sets the user name and password. @@ -13471,12 +13767,10 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Sets the user name and password. - @Post( - path: '/Startup/User', - optionalBody: true, - ) - Future _startupUserPost( - {@Body() required StartupUserDto? body}); + @POST(path: '/Startup/User', optionalBody: true) + Future _startupUserPost({ + @Body() required StartupUserDto? body, + }); ///Gets all studios from a given item, folder, or the entire library. ///@param startIndex Optional. The record index to start at. All items with a lower index will be dropped from the results. @@ -13516,26 +13810,29 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _studiosGet( - startIndex: startIndex, - limit: limit, - searchTerm: searchTerm, - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - isFavorite: isFavorite, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - userId: userId, - nameStartsWithOrGreater: nameStartsWithOrGreater, - nameStartsWith: nameStartsWith, - nameLessThan: nameLessThan, - enableImages: enableImages, - enableTotalRecordCount: enableTotalRecordCount); + startIndex: startIndex, + limit: limit, + searchTerm: searchTerm, + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + isFavorite: isFavorite, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + userId: userId, + nameStartsWithOrGreater: nameStartsWithOrGreater, + nameStartsWith: nameStartsWith, + nameLessThan: nameLessThan, + enableImages: enableImages, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets all studios from a given item, folder, or the entire library. @@ -13556,7 +13853,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param nameLessThan Optional filter by items whose name is equally or lesser than a given input string. ///@param enableImages Optional, include image information in output. ///@param enableTotalRecordCount Total record count. - @Get(path: '/Studios') + @GET(path: '/Studios') Future> _studiosGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -13585,7 +13882,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _studiosNameGet(name: name, userId: userId); } @@ -13593,7 +13892,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a studio by name. ///@param name Studio name. ///@param userId Optional. Filter by user id, and attach user data. - @Get(path: '/Studios/{name}') + @GET(path: '/Studios/{name}') Future> _studiosNameGet({ @Path('name') required String? name, @Query('userId') String? userId, @@ -13607,46 +13906,53 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets a list of available fallback font files. - @Get(path: '/FallbackFont/Fonts') + @GET(path: '/FallbackFont/Fonts') Future>> _fallbackFontFontsGet(); ///Gets a fallback font file. ///@param name The name of the fallback font file to get. - Future> fallbackFontFontsNameGet( - {required String? name}) { + Future> fallbackFontFontsNameGet({ + required String? name, + }) { return _fallbackFontFontsNameGet(name: name); } ///Gets a fallback font file. ///@param name The name of the fallback font file to get. - @Get(path: '/FallbackFont/Fonts/{name}') - Future> _fallbackFontFontsNameGet( - {@Path('name') required String? name}); + @GET(path: '/FallbackFont/Fonts/{name}') + Future> _fallbackFontFontsNameGet({ + @Path('name') required String? name, + }); ///Search remote subtitles. ///@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({ + itemsItemIdRemoteSearchSubtitlesLanguageGet({ required String? itemId, required String? language, bool? isPerfectMatch, }) { generatedMapping.putIfAbsent( - RemoteSubtitleInfo, () => RemoteSubtitleInfo.fromJsonFactory); + RemoteSubtitleInfo, + () => RemoteSubtitleInfo.fromJsonFactory, + ); return _itemsItemIdRemoteSearchSubtitlesLanguageGet( - itemId: itemId, language: language, isPerfectMatch: isPerfectMatch); + itemId: itemId, + language: language, + isPerfectMatch: isPerfectMatch, + ); } ///Search remote subtitles. ///@param itemId The item id. ///@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}') + @GET(path: '/Items/{itemId}/RemoteSearch/Subtitles/{language}') Future>> - _itemsItemIdRemoteSearchSubtitlesLanguageGet({ + _itemsItemIdRemoteSearchSubtitlesLanguageGet({ @Path('itemId') required String? itemId, @Path('language') required String? language, @Query('isPerfectMatch') bool? isPerfectMatch, @@ -13660,13 +13966,15 @@ abstract class JellyfinOpenApi extends ChopperService { required String? subtitleId, }) { return _itemsItemIdRemoteSearchSubtitlesSubtitleIdPost( - itemId: itemId, subtitleId: subtitleId); + itemId: itemId, + subtitleId: subtitleId, + ); } ///Downloads a remote subtitle. ///@param itemId The item id. ///@param subtitleId The subtitle id. - @Post( + @POST( path: '/Items/{itemId}/RemoteSearch/Subtitles/{subtitleId}', optionalBody: true, ) @@ -13677,16 +13985,18 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the remote subtitles. ///@param subtitleId The item id. - Future> providersSubtitlesSubtitlesSubtitleIdGet( - {required String? subtitleId}) { + Future> providersSubtitlesSubtitlesSubtitleIdGet({ + required String? subtitleId, + }) { return _providersSubtitlesSubtitlesSubtitleIdGet(subtitleId: subtitleId); } ///Gets the remote subtitles. ///@param subtitleId The item id. - @Get(path: '/Providers/Subtitles/Subtitles/{subtitleId}') - Future> _providersSubtitlesSubtitlesSubtitleIdGet( - {@Path('subtitleId') required String? subtitleId}); + @GET(path: '/Providers/Subtitles/Subtitles/{subtitleId}') + Future> _providersSubtitlesSubtitlesSubtitleIdGet({ + @Path('subtitleId') required String? subtitleId, + }); ///Gets an HLS subtitle playlist. ///@param itemId The item id. @@ -13694,17 +14004,18 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param mediaSourceId The media source id. ///@param segmentLength The subtitle segment length. Future> - videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ required String? itemId, required int? index, required String? mediaSourceId, required int? segmentLength, }) { return _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get( - itemId: itemId, - index: index, - mediaSourceId: mediaSourceId, - segmentLength: segmentLength); + itemId: itemId, + index: index, + mediaSourceId: mediaSourceId, + segmentLength: segmentLength, + ); } ///Gets an HLS subtitle playlist. @@ -13712,10 +14023,11 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param index The subtitle stream index. ///@param mediaSourceId The media source id. ///@param segmentLength The subtitle segment length. - @Get( - path: '/Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8') + @GET( + path: '/Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8', + ) Future> - _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ @Path('itemId') required String? itemId, @Path('index') required int? index, @Path('mediaSourceId') required String? mediaSourceId, @@ -13733,10 +14045,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Upload an external subtitle file. ///@param itemId The item the subtitle belongs to. - @Post( - path: '/Videos/{itemId}/Subtitles', - optionalBody: true, - ) + @POST(path: '/Videos/{itemId}/Subtitles', optionalBody: true) Future _videosItemIdSubtitlesPost({ @Path('itemId') required String? itemId, @Body() required UploadSubtitleDto? body, @@ -13755,7 +14064,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes an external subtitle file. ///@param itemId The item id. ///@param index The index of the subtitle file. - @Delete(path: '/Videos/{itemId}/Subtitles/{index}') + @DELETE(path: '/Videos/{itemId}/Subtitles/{index}') Future _videosItemIdSubtitlesIndexDelete({ @Path('itemId') required String? itemId, @Path('index') required int? index, @@ -13776,7 +14085,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, @@ -13792,19 +14101,20 @@ abstract class JellyfinOpenApi extends ChopperService { bool? addVttTimeMap, }) { return _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet( - routeItemId: routeItemId, - routeMediaSourceId: routeMediaSourceId, - routeIndex: routeIndex, - routeStartPositionTicks: routeStartPositionTicks, - routeFormat: routeFormat, - itemId: itemId, - mediaSourceId: mediaSourceId, - index: index, - startPositionTicks: startPositionTicks, - format: format, - endPositionTicks: endPositionTicks, - copyTimestamps: copyTimestamps, - addVttTimeMap: addVttTimeMap); + routeItemId: routeItemId, + routeMediaSourceId: routeMediaSourceId, + routeIndex: routeIndex, + routeStartPositionTicks: routeStartPositionTicks, + routeFormat: routeFormat, + itemId: itemId, + mediaSourceId: mediaSourceId, + index: index, + startPositionTicks: startPositionTicks, + format: format, + endPositionTicks: endPositionTicks, + copyTimestamps: copyTimestamps, + addVttTimeMap: addVttTimeMap, + ); } ///Gets subtitles in a specified format. @@ -13821,11 +14131,12 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param endPositionTicks Optional. The end position of the subtitle in ticks. ///@param copyTimestamps Optional. Whether to copy the timestamps. ///@param addVttTimeMap Optional. Whether to add a VTT time map. - @Get( - path: - '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/{routeStartPositionTicks}/Stream.{routeFormat}') + @GET( + path: + '/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, @@ -13855,7 +14166,7 @@ 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. Future> - videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -13870,18 +14181,19 @@ abstract class JellyfinOpenApi extends ChopperService { int? startPositionTicks, }) { return _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet( - routeItemId: routeItemId, - routeMediaSourceId: routeMediaSourceId, - routeIndex: routeIndex, - routeFormat: routeFormat, - itemId: itemId, - mediaSourceId: mediaSourceId, - index: index, - format: format, - endPositionTicks: endPositionTicks, - copyTimestamps: copyTimestamps, - addVttTimeMap: addVttTimeMap, - startPositionTicks: startPositionTicks); + routeItemId: routeItemId, + routeMediaSourceId: routeMediaSourceId, + routeIndex: routeIndex, + routeFormat: routeFormat, + itemId: itemId, + mediaSourceId: mediaSourceId, + index: index, + format: format, + endPositionTicks: endPositionTicks, + copyTimestamps: copyTimestamps, + addVttTimeMap: addVttTimeMap, + startPositionTicks: startPositionTicks, + ); } ///Gets subtitles in a specified format. @@ -13897,11 +14209,12 @@ 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. - @Get( - path: - '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}') + @GET( + path: + '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}', + ) Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ @Path('routeItemId') required String? routeItemId, @Path('routeMediaSourceId') required String? routeMediaSourceId, @Path('routeIndex') required int? routeIndex, @@ -13932,15 +14245,18 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableTotalRecordCount, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _itemsSuggestionsGet( - userId: userId, - mediaType: mediaTypeListToJson(mediaType), - type: baseItemKindListToJson(type), - startIndex: startIndex, - limit: limit, - enableTotalRecordCount: enableTotalRecordCount); + userId: userId, + mediaType: mediaTypeListToJson(mediaType), + type: baseItemKindListToJson(type), + startIndex: startIndex, + limit: limit, + enableTotalRecordCount: enableTotalRecordCount, + ); } ///Gets suggestions. @@ -13950,7 +14266,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param startIndex Optional. The start index. ///@param limit Optional. The limit. ///@param enableTotalRecordCount Whether to enable the total record count. - @Get(path: '/Items/Suggestions') + @GET(path: '/Items/Suggestions') Future> _itemsSuggestionsGet({ @Query('userId') String? userId, @Query('mediaType') List? mediaType, @@ -13961,32 +14277,30 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Notify SyncPlay group that member is buffering. - Future syncPlayBufferingPost( - {required BufferRequestDto? body}) { + Future syncPlayBufferingPost({ + required BufferRequestDto? body, + }) { return _syncPlayBufferingPost(body: body); } ///Notify SyncPlay group that member is buffering. - @Post( - path: '/SyncPlay/Buffering', - optionalBody: true, - ) - Future _syncPlayBufferingPost( - {@Body() required BufferRequestDto? body}); + @POST(path: '/SyncPlay/Buffering', optionalBody: true) + Future _syncPlayBufferingPost({ + @Body() required BufferRequestDto? body, + }); ///Join an existing SyncPlay group. - Future syncPlayJoinPost( - {required JoinGroupRequestDto? body}) { + Future syncPlayJoinPost({ + required JoinGroupRequestDto? body, + }) { return _syncPlayJoinPost(body: body); } ///Join an existing SyncPlay group. - @Post( - path: '/SyncPlay/Join', - optionalBody: true, - ) - Future _syncPlayJoinPost( - {@Body() required JoinGroupRequestDto? body}); + @POST(path: '/SyncPlay/Join', optionalBody: true) + Future _syncPlayJoinPost({ + @Body() required JoinGroupRequestDto? body, + }); ///Leave the joined SyncPlay group. Future syncPlayLeavePost() { @@ -13994,65 +14308,61 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Leave the joined SyncPlay group. - @Post( - path: '/SyncPlay/Leave', - optionalBody: true, - ) + @POST(path: '/SyncPlay/Leave', optionalBody: true) Future _syncPlayLeavePost(); ///Gets all SyncPlay groups. Future>> syncPlayListGet() { generatedMapping.putIfAbsent( - GroupInfoDto, () => GroupInfoDto.fromJsonFactory); + GroupInfoDto, + () => GroupInfoDto.fromJsonFactory, + ); return _syncPlayListGet(); } ///Gets all SyncPlay groups. - @Get(path: '/SyncPlay/List') + @GET(path: '/SyncPlay/List') Future>> _syncPlayListGet(); ///Request to move an item in the playlist in SyncPlay group. - Future syncPlayMovePlaylistItemPost( - {required MovePlaylistItemRequestDto? body}) { + Future syncPlayMovePlaylistItemPost({ + required MovePlaylistItemRequestDto? body, + }) { return _syncPlayMovePlaylistItemPost(body: body); } ///Request to move an item in the playlist in SyncPlay group. - @Post( - path: '/SyncPlay/MovePlaylistItem', - optionalBody: true, - ) - Future _syncPlayMovePlaylistItemPost( - {@Body() required MovePlaylistItemRequestDto? body}); + @POST(path: '/SyncPlay/MovePlaylistItem', optionalBody: true) + Future _syncPlayMovePlaylistItemPost({ + @Body() required MovePlaylistItemRequestDto? body, + }); ///Create a new SyncPlay group. - Future syncPlayNewPost( - {required NewGroupRequestDto? body}) { + Future syncPlayNewPost({ + required NewGroupRequestDto? body, + }) { return _syncPlayNewPost(body: body); } ///Create a new SyncPlay group. - @Post( - path: '/SyncPlay/New', - optionalBody: true, - ) - Future _syncPlayNewPost( - {@Body() required NewGroupRequestDto? body}); + @POST(path: '/SyncPlay/New', optionalBody: true) + Future _syncPlayNewPost({ + @Body() required NewGroupRequestDto? body, + }); ///Request next item in SyncPlay group. - Future syncPlayNextItemPost( - {required NextItemRequestDto? body}) { + Future syncPlayNextItemPost({ + required NextItemRequestDto? body, + }) { return _syncPlayNextItemPost(body: body); } ///Request next item in SyncPlay group. - @Post( - path: '/SyncPlay/NextItem', - optionalBody: true, - ) - Future _syncPlayNextItemPost( - {@Body() required NextItemRequestDto? body}); + @POST(path: '/SyncPlay/NextItem', optionalBody: true) + Future _syncPlayNextItemPost({ + @Body() required NextItemRequestDto? body, + }); ///Request pause in SyncPlay group. Future syncPlayPausePost() { @@ -14060,10 +14370,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Request pause in SyncPlay group. - @Post( - path: '/SyncPlay/Pause', - optionalBody: true, - ) + @POST(path: '/SyncPlay/Pause', optionalBody: true) Future _syncPlayPausePost(); ///Update session ping. @@ -14072,26 +14379,23 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Update session ping. - @Post( - path: '/SyncPlay/Ping', - optionalBody: true, - ) - Future _syncPlayPingPost( - {@Body() required PingRequestDto? body}); + @POST(path: '/SyncPlay/Ping', optionalBody: true) + Future _syncPlayPingPost({ + @Body() required PingRequestDto? body, + }); ///Request previous item in SyncPlay group. - Future syncPlayPreviousItemPost( - {required PreviousItemRequestDto? body}) { + Future syncPlayPreviousItemPost({ + required PreviousItemRequestDto? body, + }) { return _syncPlayPreviousItemPost(body: body); } ///Request previous item in SyncPlay group. - @Post( - path: '/SyncPlay/PreviousItem', - optionalBody: true, - ) - Future _syncPlayPreviousItemPost( - {@Body() required PreviousItemRequestDto? body}); + @POST(path: '/SyncPlay/PreviousItem', optionalBody: true) + Future _syncPlayPreviousItemPost({ + @Body() required PreviousItemRequestDto? body, + }); ///Request to queue items to the playlist of a SyncPlay group. Future syncPlayQueuePost({required QueueRequestDto? body}) { @@ -14099,12 +14403,10 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Request to queue items to the playlist of a SyncPlay group. - @Post( - path: '/SyncPlay/Queue', - optionalBody: true, - ) - Future _syncPlayQueuePost( - {@Body() required QueueRequestDto? body}); + @POST(path: '/SyncPlay/Queue', optionalBody: true) + Future _syncPlayQueuePost({ + @Body() required QueueRequestDto? body, + }); ///Notify SyncPlay group that member is ready for playback. Future syncPlayReadyPost({required ReadyRequestDto? body}) { @@ -14112,26 +14414,23 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Notify SyncPlay group that member is ready for playback. - @Post( - path: '/SyncPlay/Ready', - optionalBody: true, - ) - Future _syncPlayReadyPost( - {@Body() required ReadyRequestDto? body}); + @POST(path: '/SyncPlay/Ready', optionalBody: true) + Future _syncPlayReadyPost({ + @Body() required ReadyRequestDto? body, + }); ///Request to remove items from the playlist in SyncPlay group. - Future syncPlayRemoveFromPlaylistPost( - {required RemoveFromPlaylistRequestDto? body}) { + Future syncPlayRemoveFromPlaylistPost({ + required RemoveFromPlaylistRequestDto? body, + }) { return _syncPlayRemoveFromPlaylistPost(body: body); } ///Request to remove items from the playlist in SyncPlay group. - @Post( - path: '/SyncPlay/RemoveFromPlaylist', - optionalBody: true, - ) - Future _syncPlayRemoveFromPlaylistPost( - {@Body() required RemoveFromPlaylistRequestDto? body}); + @POST(path: '/SyncPlay/RemoveFromPlaylist', optionalBody: true) + Future _syncPlayRemoveFromPlaylistPost({ + @Body() required RemoveFromPlaylistRequestDto? body, + }); ///Request seek in SyncPlay group. Future syncPlaySeekPost({required SeekRequestDto? body}) { @@ -14139,82 +14438,75 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Request seek in SyncPlay group. - @Post( - path: '/SyncPlay/Seek', - optionalBody: true, - ) - Future _syncPlaySeekPost( - {@Body() required SeekRequestDto? body}); + @POST(path: '/SyncPlay/Seek', optionalBody: true) + Future _syncPlaySeekPost({ + @Body() required SeekRequestDto? body, + }); ///Request SyncPlay group to ignore member during group-wait. - Future syncPlaySetIgnoreWaitPost( - {required IgnoreWaitRequestDto? body}) { + Future syncPlaySetIgnoreWaitPost({ + required IgnoreWaitRequestDto? body, + }) { return _syncPlaySetIgnoreWaitPost(body: body); } ///Request SyncPlay group to ignore member during group-wait. - @Post( - path: '/SyncPlay/SetIgnoreWait', - optionalBody: true, - ) - Future _syncPlaySetIgnoreWaitPost( - {@Body() required IgnoreWaitRequestDto? body}); + @POST(path: '/SyncPlay/SetIgnoreWait', optionalBody: true) + Future _syncPlaySetIgnoreWaitPost({ + @Body() required IgnoreWaitRequestDto? body, + }); ///Request to set new playlist in SyncPlay group. - Future syncPlaySetNewQueuePost( - {required PlayRequestDto? body}) { + Future syncPlaySetNewQueuePost({ + required PlayRequestDto? body, + }) { return _syncPlaySetNewQueuePost(body: body); } ///Request to set new playlist in SyncPlay group. - @Post( - path: '/SyncPlay/SetNewQueue', - optionalBody: true, - ) - Future _syncPlaySetNewQueuePost( - {@Body() required PlayRequestDto? body}); + @POST(path: '/SyncPlay/SetNewQueue', optionalBody: true) + Future _syncPlaySetNewQueuePost({ + @Body() required PlayRequestDto? body, + }); ///Request to change playlist item in SyncPlay group. - Future syncPlaySetPlaylistItemPost( - {required SetPlaylistItemRequestDto? body}) { + Future syncPlaySetPlaylistItemPost({ + required SetPlaylistItemRequestDto? body, + }) { return _syncPlaySetPlaylistItemPost(body: body); } ///Request to change playlist item in SyncPlay group. - @Post( - path: '/SyncPlay/SetPlaylistItem', - optionalBody: true, - ) - Future _syncPlaySetPlaylistItemPost( - {@Body() required SetPlaylistItemRequestDto? body}); + @POST(path: '/SyncPlay/SetPlaylistItem', optionalBody: true) + Future _syncPlaySetPlaylistItemPost({ + @Body() required SetPlaylistItemRequestDto? body, + }); ///Request to set repeat mode in SyncPlay group. - Future syncPlaySetRepeatModePost( - {required SetRepeatModeRequestDto? body}) { + Future syncPlaySetRepeatModePost({ + required SetRepeatModeRequestDto? body, + }) { return _syncPlaySetRepeatModePost(body: body); } ///Request to set repeat mode in SyncPlay group. - @Post( - path: '/SyncPlay/SetRepeatMode', - optionalBody: true, - ) - Future _syncPlaySetRepeatModePost( - {@Body() required SetRepeatModeRequestDto? body}); + @POST(path: '/SyncPlay/SetRepeatMode', optionalBody: true) + Future _syncPlaySetRepeatModePost({ + @Body() required SetRepeatModeRequestDto? body, + }); ///Request to set shuffle mode in SyncPlay group. - Future syncPlaySetShuffleModePost( - {required SetShuffleModeRequestDto? body}) { + Future syncPlaySetShuffleModePost({ + required SetShuffleModeRequestDto? body, + }) { return _syncPlaySetShuffleModePost(body: body); } ///Request to set shuffle mode in SyncPlay group. - @Post( - path: '/SyncPlay/SetShuffleMode', - optionalBody: true, - ) - Future _syncPlaySetShuffleModePost( - {@Body() required SetShuffleModeRequestDto? body}); + @POST(path: '/SyncPlay/SetShuffleMode', optionalBody: true) + Future _syncPlaySetShuffleModePost({ + @Body() required SetShuffleModeRequestDto? body, + }); ///Request stop in SyncPlay group. Future syncPlayStopPost() { @@ -14222,10 +14514,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Request stop in SyncPlay group. - @Post( - path: '/SyncPlay/Stop', - optionalBody: true, - ) + @POST(path: '/SyncPlay/Stop', optionalBody: true) Future _syncPlayStopPost(); ///Request unpause in SyncPlay group. @@ -14234,22 +14523,21 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Request unpause in SyncPlay group. - @Post( - path: '/SyncPlay/Unpause', - optionalBody: true, - ) + @POST(path: '/SyncPlay/Unpause', optionalBody: true) Future _syncPlayUnpausePost(); ///Gets information about the request endpoint. Future> systemEndpointGet() { generatedMapping.putIfAbsent( - EndPointInfo, () => EndPointInfo.fromJsonFactory); + EndPointInfo, + () => EndPointInfo.fromJsonFactory, + ); return _systemEndpointGet(); } ///Gets information about the request endpoint. - @Get(path: '/System/Endpoint') + @GET(path: '/System/Endpoint') Future> _systemEndpointGet(); ///Gets information about the server. @@ -14260,19 +14548,21 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets information about the server. - @Get(path: '/System/Info') + @GET(path: '/System/Info') Future> _systemInfoGet(); ///Gets public information about the server. Future> systemInfoPublicGet() { generatedMapping.putIfAbsent( - PublicSystemInfo, () => PublicSystemInfo.fromJsonFactory); + PublicSystemInfo, + () => PublicSystemInfo.fromJsonFactory, + ); return _systemInfoPublicGet(); } ///Gets public information about the server. - @Get(path: '/System/Info/Public') + @GET(path: '/System/Info/Public') Future> _systemInfoPublicGet(); ///Gets a list of available server log files. @@ -14283,7 +14573,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets a list of available server log files. - @Get(path: '/System/Logs') + @GET(path: '/System/Logs') Future>> _systemLogsGet(); ///Gets a log file. @@ -14294,9 +14584,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a log file. ///@param name The name of the log file to get. - @Get(path: '/System/Logs/Log') - Future> _systemLogsLogGet( - {@Query('name') required String? name}); + @GET(path: '/System/Logs/Log') + Future> _systemLogsLogGet({ + @Query('name') required String? name, + }); ///Pings the system. Future> systemPingGet() { @@ -14304,7 +14595,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Pings the system. - @Get(path: '/System/Ping') + @GET(path: '/System/Ping') Future> _systemPingGet(); ///Pings the system. @@ -14313,10 +14604,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Pings the system. - @Post( - path: '/System/Ping', - optionalBody: true, - ) + @POST(path: '/System/Ping', optionalBody: true) Future> _systemPingPost(); ///Restarts the application. @@ -14325,10 +14613,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Restarts the application. - @Post( - path: '/System/Restart', - optionalBody: true, - ) + @POST(path: '/System/Restart', optionalBody: true) Future _systemRestartPost(); ///Shuts down the application. @@ -14337,48 +14622,51 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Shuts down the application. - @Post( - path: '/System/Shutdown', - optionalBody: true, - ) + @POST(path: '/System/Shutdown', optionalBody: true) Future _systemShutdownPost(); ///Gets wake on lan information. @deprecated Future>> systemWakeOnLanInfoGet() { generatedMapping.putIfAbsent( - WakeOnLanInfo, () => WakeOnLanInfo.fromJsonFactory); + WakeOnLanInfo, + () => WakeOnLanInfo.fromJsonFactory, + ); return _systemWakeOnLanInfoGet(); } ///Gets wake on lan information. @deprecated - @Get(path: '/System/WakeOnLanInfo') + @GET(path: '/System/WakeOnLanInfo') Future>> _systemWakeOnLanInfoGet(); ///Gets the current UTC time. Future> getUtcTimeGet() { generatedMapping.putIfAbsent( - UtcTimeResponse, () => UtcTimeResponse.fromJsonFactory); + UtcTimeResponse, + () => UtcTimeResponse.fromJsonFactory, + ); return _getUtcTimeGet(); } ///Gets the current UTC time. - @Get(path: '/GetUtcTime') + @GET(path: '/GetUtcTime') Future> _getUtcTimeGet(); ///Gets the TMDb image configuration options. Future> tmdbClientConfigurationGet() { generatedMapping.putIfAbsent( - ConfigImageTypes, () => ConfigImageTypes.fromJsonFactory); + ConfigImageTypes, + () => ConfigImageTypes.fromJsonFactory, + ); return _tmdbClientConfigurationGet(); } ///Gets the TMDb image configuration options. - @Get(path: '/Tmdb/ClientConfiguration') + @GET(path: '/Tmdb/ClientConfiguration') Future> _tmdbClientConfigurationGet(); ///Finds movies and trailers similar to a given trailer. @@ -14553,93 +14841,96 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableImages, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _trailersGet( - userId: userId, - maxOfficialRating: maxOfficialRating, - hasThemeSong: hasThemeSong, - hasThemeVideo: hasThemeVideo, - hasSubtitles: hasSubtitles, - hasSpecialFeature: hasSpecialFeature, - hasTrailer: hasTrailer, - adjacentTo: adjacentTo, - parentIndexNumber: parentIndexNumber, - hasParentalRating: hasParentalRating, - isHd: isHd, - is4K: is4K, - locationTypes: locationTypeListToJson(locationTypes), - excludeLocationTypes: locationTypeListToJson(excludeLocationTypes), - isMissing: isMissing, - isUnaired: isUnaired, - minCommunityRating: minCommunityRating, - minCriticRating: minCriticRating, - minPremiereDate: minPremiereDate, - minDateLastSaved: minDateLastSaved, - minDateLastSavedForUser: minDateLastSavedForUser, - maxPremiereDate: maxPremiereDate, - hasOverview: hasOverview, - hasImdbId: hasImdbId, - hasTmdbId: hasTmdbId, - hasTvdbId: hasTvdbId, - isMovie: isMovie, - isSeries: isSeries, - isNews: isNews, - isKids: isKids, - isSports: isSports, - excludeItemIds: excludeItemIds, - startIndex: startIndex, - limit: limit, - recursive: recursive, - searchTerm: searchTerm, - sortOrder: sortOrderListToJson(sortOrder), - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - filters: itemFilterListToJson(filters), - isFavorite: isFavorite, - mediaTypes: mediaTypeListToJson(mediaTypes), - imageTypes: imageTypeListToJson(imageTypes), - sortBy: itemSortByListToJson(sortBy), - isPlayed: isPlayed, - genres: genres, - officialRatings: officialRatings, - tags: tags, - years: years, - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - person: person, - personIds: personIds, - personTypes: personTypes, - studios: studios, - artists: artists, - excludeArtistIds: excludeArtistIds, - artistIds: artistIds, - albumArtistIds: albumArtistIds, - contributingArtistIds: contributingArtistIds, - albums: albums, - albumIds: albumIds, - ids: ids, - videoTypes: videoTypeListToJson(videoTypes), - minOfficialRating: minOfficialRating, - isLocked: isLocked, - isPlaceHolder: isPlaceHolder, - hasOfficialRating: hasOfficialRating, - collapseBoxSetItems: collapseBoxSetItems, - minWidth: minWidth, - minHeight: minHeight, - maxWidth: maxWidth, - maxHeight: maxHeight, - is3D: is3D, - seriesStatus: seriesStatusListToJson(seriesStatus), - nameStartsWithOrGreater: nameStartsWithOrGreater, - nameStartsWith: nameStartsWith, - nameLessThan: nameLessThan, - studioIds: studioIds, - genreIds: genreIds, - enableTotalRecordCount: enableTotalRecordCount, - enableImages: enableImages); + userId: userId, + maxOfficialRating: maxOfficialRating, + hasThemeSong: hasThemeSong, + hasThemeVideo: hasThemeVideo, + hasSubtitles: hasSubtitles, + hasSpecialFeature: hasSpecialFeature, + hasTrailer: hasTrailer, + adjacentTo: adjacentTo, + parentIndexNumber: parentIndexNumber, + hasParentalRating: hasParentalRating, + isHd: isHd, + is4K: is4K, + locationTypes: locationTypeListToJson(locationTypes), + excludeLocationTypes: locationTypeListToJson(excludeLocationTypes), + isMissing: isMissing, + isUnaired: isUnaired, + minCommunityRating: minCommunityRating, + minCriticRating: minCriticRating, + minPremiereDate: minPremiereDate, + minDateLastSaved: minDateLastSaved, + minDateLastSavedForUser: minDateLastSavedForUser, + maxPremiereDate: maxPremiereDate, + hasOverview: hasOverview, + hasImdbId: hasImdbId, + hasTmdbId: hasTmdbId, + hasTvdbId: hasTvdbId, + isMovie: isMovie, + isSeries: isSeries, + isNews: isNews, + isKids: isKids, + isSports: isSports, + excludeItemIds: excludeItemIds, + startIndex: startIndex, + limit: limit, + recursive: recursive, + searchTerm: searchTerm, + sortOrder: sortOrderListToJson(sortOrder), + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + filters: itemFilterListToJson(filters), + isFavorite: isFavorite, + mediaTypes: mediaTypeListToJson(mediaTypes), + imageTypes: imageTypeListToJson(imageTypes), + sortBy: itemSortByListToJson(sortBy), + isPlayed: isPlayed, + genres: genres, + officialRatings: officialRatings, + tags: tags, + years: years, + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + person: person, + personIds: personIds, + personTypes: personTypes, + studios: studios, + artists: artists, + excludeArtistIds: excludeArtistIds, + artistIds: artistIds, + albumArtistIds: albumArtistIds, + contributingArtistIds: contributingArtistIds, + albums: albums, + albumIds: albumIds, + ids: ids, + videoTypes: videoTypeListToJson(videoTypes), + minOfficialRating: minOfficialRating, + isLocked: isLocked, + isPlaceHolder: isPlaceHolder, + hasOfficialRating: hasOfficialRating, + collapseBoxSetItems: collapseBoxSetItems, + minWidth: minWidth, + minHeight: minHeight, + maxWidth: maxWidth, + maxHeight: maxHeight, + is3D: is3D, + seriesStatus: seriesStatusListToJson(seriesStatus), + nameStartsWithOrGreater: nameStartsWithOrGreater, + nameStartsWith: nameStartsWith, + nameLessThan: nameLessThan, + studioIds: studioIds, + genreIds: genreIds, + enableTotalRecordCount: enableTotalRecordCount, + enableImages: enableImages, + ); } ///Finds movies and trailers similar to a given trailer. @@ -14727,7 +15018,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param genreIds Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. ///@param enableTotalRecordCount Optional. Enable the total record count. ///@param enableImages Optional, include image information in output. - @Get(path: '/Trailers') + @GET(path: '/Trailers') Future> _trailersGet({ @Query('userId') String? userId, @Query('maxOfficialRating') String? maxOfficialRating, @@ -14827,10 +15118,11 @@ abstract class JellyfinOpenApi extends ChopperService { String? mediaSourceId, }) { return _videosItemIdTrickplayWidthIndexJpgGet( - itemId: itemId, - width: width, - index: index, - mediaSourceId: mediaSourceId); + itemId: itemId, + width: width, + index: index, + mediaSourceId: mediaSourceId, + ); } ///Gets a trickplay tile image. @@ -14838,7 +15130,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param width The width of a single tile. ///@param index The index of the desired tile. ///@param mediaSourceId The media version id, if using an alternate version. - @Get(path: '/Videos/{itemId}/Trickplay/{width}/{index}.jpg') + @GET(path: '/Videos/{itemId}/Trickplay/{width}/{index}.jpg') Future> _videosItemIdTrickplayWidthIndexJpgGet({ @Path('itemId') required String? itemId, @Path('width') required int? width, @@ -14856,14 +15148,17 @@ abstract class JellyfinOpenApi extends ChopperService { String? mediaSourceId, }) { return _videosItemIdTrickplayWidthTilesM3u8Get( - itemId: itemId, width: width, mediaSourceId: mediaSourceId); + itemId: itemId, + width: width, + mediaSourceId: mediaSourceId, + ); } ///Gets an image tiles playlist for trickplay. ///@param itemId The item id. ///@param width The width of a single tile. ///@param mediaSourceId The media version id, if using an alternate version. - @Get(path: '/Videos/{itemId}/Trickplay/{width}/tiles.m3u8') + @GET(path: '/Videos/{itemId}/Trickplay/{width}/tiles.m3u8') Future> _videosItemIdTrickplayWidthTilesM3u8Get({ @Path('itemId') required String? itemId, @Path('width') required int? width, @@ -14904,24 +15199,27 @@ abstract class JellyfinOpenApi extends ChopperService { enums.ShowsSeriesIdEpisodesGetSortBy? sortBy, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _showsSeriesIdEpisodesGet( - seriesId: seriesId, - userId: userId, - fields: itemFieldsListToJson(fields), - season: season, - seasonId: seasonId, - isMissing: isMissing, - adjacentTo: adjacentTo, - startItemId: startItemId, - startIndex: startIndex, - limit: limit, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - enableUserData: enableUserData, - sortBy: sortBy?.value?.toString()); + seriesId: seriesId, + userId: userId, + fields: itemFieldsListToJson(fields), + season: season, + seasonId: seasonId, + isMissing: isMissing, + adjacentTo: adjacentTo, + startItemId: startItemId, + startIndex: startIndex, + limit: limit, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + enableUserData: enableUserData, + sortBy: sortBy?.value?.toString(), + ); } ///Gets episodes for a tv season. @@ -14940,7 +15238,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableImageTypes Optional. The image types to include in the output. ///@param enableUserData Optional. Include user data. ///@param sortBy Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. - @Get(path: '/Shows/{seriesId}/Episodes') + @GET(path: '/Shows/{seriesId}/Episodes') Future> _showsSeriesIdEpisodesGet({ @Path('seriesId') required String? seriesId, @Query('userId') String? userId, @@ -14983,19 +15281,22 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableUserData, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _showsSeriesIdSeasonsGet( - seriesId: seriesId, - userId: userId, - fields: itemFieldsListToJson(fields), - isSpecialSeason: isSpecialSeason, - isMissing: isMissing, - adjacentTo: adjacentTo, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - enableUserData: enableUserData); + seriesId: seriesId, + userId: userId, + fields: itemFieldsListToJson(fields), + isSpecialSeason: isSpecialSeason, + isMissing: isMissing, + adjacentTo: adjacentTo, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + enableUserData: enableUserData, + ); } ///Gets seasons for a tv series. @@ -15009,7 +15310,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. ///@param enableUserData Optional. Include user data. - @Get(path: '/Shows/{seriesId}/Seasons') + @GET(path: '/Shows/{seriesId}/Seasons') Future> _showsSeriesIdSeasonsGet({ @Path('seriesId') required String? seriesId, @Query('userId') String? userId, @@ -15057,24 +15358,27 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableRewatching, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _showsNextUpGet( - userId: userId, - startIndex: startIndex, - limit: limit, - fields: itemFieldsListToJson(fields), - seriesId: seriesId, - parentId: parentId, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - enableUserData: enableUserData, - nextUpDateCutoff: nextUpDateCutoff, - enableTotalRecordCount: enableTotalRecordCount, - disableFirstEpisode: disableFirstEpisode, - enableResumable: enableResumable, - enableRewatching: enableRewatching); + userId: userId, + startIndex: startIndex, + limit: limit, + fields: itemFieldsListToJson(fields), + seriesId: seriesId, + parentId: parentId, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + enableUserData: enableUserData, + nextUpDateCutoff: nextUpDateCutoff, + enableTotalRecordCount: enableTotalRecordCount, + disableFirstEpisode: disableFirstEpisode, + enableResumable: enableResumable, + enableRewatching: enableRewatching, + ); } ///Gets a list of next up episodes. @@ -15093,7 +15397,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param disableFirstEpisode Whether to disable sending the first episode in a series as next up. ///@param enableResumable Whether to include resumable episodes in next up results. ///@param enableRewatching Whether to include watched episodes in next up results. - @Get(path: '/Shows/NextUp') + @GET(path: '/Shows/NextUp') Future> _showsNextUpGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -15134,18 +15438,21 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableUserData, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _showsUpcomingGet( - userId: userId, - startIndex: startIndex, - limit: limit, - fields: itemFieldsListToJson(fields), - parentId: parentId, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - enableUserData: enableUserData); + userId: userId, + startIndex: startIndex, + limit: limit, + fields: itemFieldsListToJson(fields), + parentId: parentId, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + enableUserData: enableUserData, + ); } ///Gets a list of upcoming episodes. @@ -15158,7 +15465,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. ///@param enableUserData Optional. Include user data. - @Get(path: '/Shows/Upcoming') + @GET(path: '/Shows/Upcoming') Future> _showsUpcomingGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -15213,25 +15520,26 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableRedirection, }) { return _audioItemIdUniversalGet( - itemId: itemId, - container: container, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - userId: userId, - audioCodec: audioCodec, - maxAudioChannels: maxAudioChannels, - transcodingAudioChannels: transcodingAudioChannels, - maxStreamingBitrate: maxStreamingBitrate, - audioBitRate: audioBitRate, - startTimeTicks: startTimeTicks, - transcodingContainer: transcodingContainer, - transcodingProtocol: transcodingProtocol?.value?.toString(), - maxAudioSampleRate: maxAudioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - enableRemoteMedia: enableRemoteMedia, - enableAudioVbrEncoding: enableAudioVbrEncoding, - breakOnNonKeyFrames: breakOnNonKeyFrames, - enableRedirection: enableRedirection); + itemId: itemId, + container: container, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + userId: userId, + audioCodec: audioCodec, + maxAudioChannels: maxAudioChannels, + transcodingAudioChannels: transcodingAudioChannels, + maxStreamingBitrate: maxStreamingBitrate, + audioBitRate: audioBitRate, + startTimeTicks: startTimeTicks, + transcodingContainer: transcodingContainer, + transcodingProtocol: transcodingProtocol?.value?.toString(), + maxAudioSampleRate: maxAudioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + enableRemoteMedia: enableRemoteMedia, + enableAudioVbrEncoding: enableAudioVbrEncoding, + breakOnNonKeyFrames: breakOnNonKeyFrames, + enableRedirection: enableRedirection, + ); } ///Gets an audio stream. @@ -15254,7 +15562,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param breakOnNonKeyFrames Optional. Whether to break on non key frames. ///@param enableRedirection Whether to enable redirection. Defaults to true. - @Get(path: '/Audio/{itemId}/universal') + @GET(path: '/Audio/{itemId}/universal') Future> _audioItemIdUniversalGet({ @Path('itemId') required String? itemId, @Query('container') List? container, @@ -15319,25 +15627,26 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableRedirection, }) { return _audioItemIdUniversalHead( - itemId: itemId, - container: container, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - userId: userId, - audioCodec: audioCodec, - maxAudioChannels: maxAudioChannels, - transcodingAudioChannels: transcodingAudioChannels, - maxStreamingBitrate: maxStreamingBitrate, - audioBitRate: audioBitRate, - startTimeTicks: startTimeTicks, - transcodingContainer: transcodingContainer, - transcodingProtocol: transcodingProtocol?.value?.toString(), - maxAudioSampleRate: maxAudioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - enableRemoteMedia: enableRemoteMedia, - enableAudioVbrEncoding: enableAudioVbrEncoding, - breakOnNonKeyFrames: breakOnNonKeyFrames, - enableRedirection: enableRedirection); + itemId: itemId, + container: container, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + userId: userId, + audioCodec: audioCodec, + maxAudioChannels: maxAudioChannels, + transcodingAudioChannels: transcodingAudioChannels, + maxStreamingBitrate: maxStreamingBitrate, + audioBitRate: audioBitRate, + startTimeTicks: startTimeTicks, + transcodingContainer: transcodingContainer, + transcodingProtocol: transcodingProtocol?.value?.toString(), + maxAudioSampleRate: maxAudioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + enableRemoteMedia: enableRemoteMedia, + enableAudioVbrEncoding: enableAudioVbrEncoding, + breakOnNonKeyFrames: breakOnNonKeyFrames, + enableRedirection: enableRedirection, + ); } ///Gets an audio stream. @@ -15360,7 +15669,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param breakOnNonKeyFrames Optional. Whether to break on non key frames. ///@param enableRedirection Whether to enable redirection. Defaults to true. - @Head(path: '/Audio/{itemId}/universal') + @HEAD(path: '/Audio/{itemId}/universal') Future> _audioItemIdUniversalHead({ @Path('itemId') required String? itemId, @Query('container') List? container, @@ -15398,7 +15707,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a list of users. ///@param isHidden Optional filter by IsHidden=true or false. ///@param isDisabled Optional filter by IsDisabled=true or false. - @Get(path: '/Users') + @GET(path: '/Users') Future>> _usersGet({ @Query('isHidden') bool? isHidden, @Query('isDisabled') bool? isDisabled, @@ -15406,19 +15715,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates a user. ///@param userId The user id. - Future usersPost({ - String? userId, - required UserDto? body, - }) { + Future usersPost({String? userId, required UserDto? body}) { return _usersPost(userId: userId, body: body); } ///Updates a user. ///@param userId The user id. - @Post( - path: '/Users', - optionalBody: true, - ) + @POST(path: '/Users', optionalBody: true) Future _usersPost({ @Query('userId') String? userId, @Body() required UserDto? body, @@ -15434,9 +15737,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a user by Id. ///@param userId The user id. - @Get(path: '/Users/{userId}') - Future> _usersUserIdGet( - {@Path('userId') required String? userId}); + @GET(path: '/Users/{userId}') + Future> _usersUserIdGet({ + @Path('userId') required String? userId, + }); ///Deletes a user. ///@param userId The user id. @@ -15446,9 +15750,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes a user. ///@param userId The user id. - @Delete(path: '/Users/{userId}') - Future _usersUserIdDelete( - {@Path('userId') required String? userId}); + @DELETE(path: '/Users/{userId}') + Future _usersUserIdDelete({ + @Path('userId') required String? userId, + }); ///Updates a user policy. ///@param userId The user id. @@ -15461,49 +15766,47 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates a user policy. ///@param userId The user id. - @Post( - path: '/Users/{userId}/Policy', - optionalBody: true, - ) + @POST(path: '/Users/{userId}/Policy', optionalBody: true) Future _usersUserIdPolicyPost({ @Path('userId') required String? userId, @Body() required UserPolicy? body, }); ///Authenticates a user by name. - Future> usersAuthenticateByNamePost( - {required AuthenticateUserByName? body}) { + Future> usersAuthenticateByNamePost({ + required AuthenticateUserByName? body, + }) { generatedMapping.putIfAbsent( - AuthenticationResult, () => AuthenticationResult.fromJsonFactory); + AuthenticationResult, + () => AuthenticationResult.fromJsonFactory, + ); return _usersAuthenticateByNamePost(body: body); } ///Authenticates a user by name. - @Post( - path: '/Users/AuthenticateByName', - optionalBody: true, - ) - Future> _usersAuthenticateByNamePost( - {@Body() required AuthenticateUserByName? body}); + @POST(path: '/Users/AuthenticateByName', optionalBody: true) + Future> _usersAuthenticateByNamePost({ + @Body() required AuthenticateUserByName? body, + }); ///Authenticates a user with quick connect. Future> - usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { + usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { generatedMapping.putIfAbsent( - AuthenticationResult, () => AuthenticationResult.fromJsonFactory); + AuthenticationResult, + () => AuthenticationResult.fromJsonFactory, + ); return _usersAuthenticateWithQuickConnectPost(body: body); } ///Authenticates a user with quick connect. - @Post( - path: '/Users/AuthenticateWithQuickConnect', - optionalBody: true, - ) + @POST(path: '/Users/AuthenticateWithQuickConnect', optionalBody: true) Future> - _usersAuthenticateWithQuickConnectPost( - {@Body() required QuickConnectDto? body}); + _usersAuthenticateWithQuickConnectPost({ + @Body() required QuickConnectDto? body, + }); ///Updates a user configuration. ///@param userId The user id. @@ -15516,48 +15819,47 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates a user configuration. ///@param userId The user id. - @Post( - path: '/Users/Configuration', - optionalBody: true, - ) + @POST(path: '/Users/Configuration', optionalBody: true) Future _usersConfigurationPost({ @Query('userId') String? userId, @Body() required UserConfiguration? body, }); ///Initiates the forgot password process for a local user. - Future> usersForgotPasswordPost( - {required ForgotPasswordDto? body}) { + Future> usersForgotPasswordPost({ + required ForgotPasswordDto? body, + }) { generatedMapping.putIfAbsent( - ForgotPasswordResult, () => ForgotPasswordResult.fromJsonFactory); + ForgotPasswordResult, + () => ForgotPasswordResult.fromJsonFactory, + ); return _usersForgotPasswordPost(body: body); } ///Initiates the forgot password process for a local user. - @Post( - path: '/Users/ForgotPassword', - optionalBody: true, - ) - Future> _usersForgotPasswordPost( - {@Body() required ForgotPasswordDto? body}); + @POST(path: '/Users/ForgotPassword', optionalBody: true) + Future> _usersForgotPasswordPost({ + @Body() required ForgotPasswordDto? body, + }); ///Redeems a forgot password pin. - Future> usersForgotPasswordPinPost( - {required ForgotPasswordPinDto? body}) { + Future> usersForgotPasswordPinPost({ + required ForgotPasswordPinDto? body, + }) { generatedMapping.putIfAbsent( - PinRedeemResult, () => PinRedeemResult.fromJsonFactory); + PinRedeemResult, + () => PinRedeemResult.fromJsonFactory, + ); return _usersForgotPasswordPinPost(body: body); } ///Redeems a forgot password pin. - @Post( - path: '/Users/ForgotPassword/Pin', - optionalBody: true, - ) - Future> _usersForgotPasswordPinPost( - {@Body() required ForgotPasswordPinDto? body}); + @POST(path: '/Users/ForgotPassword/Pin', optionalBody: true) + Future> _usersForgotPasswordPinPost({ + @Body() required ForgotPasswordPinDto? body, + }); ///Gets the user based on auth token. Future> usersMeGet() { @@ -15567,24 +15869,23 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets the user based on auth token. - @Get(path: '/Users/Me') + @GET(path: '/Users/Me') Future> _usersMeGet(); ///Creates a user. - Future> usersNewPost( - {required CreateUserByName? body}) { + Future> usersNewPost({ + required CreateUserByName? body, + }) { generatedMapping.putIfAbsent(UserDto, () => UserDto.fromJsonFactory); return _usersNewPost(body: body); } ///Creates a user. - @Post( - path: '/Users/New', - optionalBody: true, - ) - Future> _usersNewPost( - {@Body() required CreateUserByName? body}); + @POST(path: '/Users/New', optionalBody: true) + Future> _usersNewPost({ + @Body() required CreateUserByName? body, + }); ///Updates a user's password. ///@param userId The user id. @@ -15597,10 +15898,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Updates a user's password. ///@param userId The user id. - @Post( - path: '/Users/Password', - optionalBody: true, - ) + @POST(path: '/Users/Password', optionalBody: true) Future _usersPasswordPost({ @Query('userId') String? userId, @Body() required UpdateUserPassword? body, @@ -15614,7 +15912,7 @@ abstract class JellyfinOpenApi extends ChopperService { } ///Gets a list of publicly visible users for display on a login screen. - @Get(path: '/Users/Public') + @GET(path: '/Users/Public') Future>> _usersPublicGet(); ///Gets intros to play before the main media item plays. @@ -15625,7 +15923,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _itemsItemIdIntrosGet(userId: userId, itemId: itemId); } @@ -15633,7 +15933,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets intros to play before the main media item plays. ///@param userId User id. ///@param itemId Item id. - @Get(path: '/Items/{itemId}/Intros') + @GET(path: '/Items/{itemId}/Intros') Future> _itemsItemIdIntrosGet({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -15647,7 +15947,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _itemsItemIdLocalTrailersGet(userId: userId, itemId: itemId); } @@ -15655,7 +15957,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets local trailers for an item. ///@param userId User id. ///@param itemId Item id. - @Get(path: '/Items/{itemId}/LocalTrailers') + @GET(path: '/Items/{itemId}/LocalTrailers') Future>> _itemsItemIdLocalTrailersGet({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -15669,7 +15971,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _itemsItemIdSpecialFeaturesGet(userId: userId, itemId: itemId); } @@ -15677,7 +15981,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets special features for an item. ///@param userId User id. ///@param itemId Item id. - @Get(path: '/Items/{itemId}/SpecialFeatures') + @GET(path: '/Items/{itemId}/SpecialFeatures') Future>> _itemsItemIdSpecialFeaturesGet({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -15709,20 +16013,23 @@ abstract class JellyfinOpenApi extends ChopperService { bool? groupItems, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _itemsLatestGet( - userId: userId, - parentId: parentId, - fields: itemFieldsListToJson(fields), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - isPlayed: isPlayed, - enableImages: enableImages, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - enableUserData: enableUserData, - limit: limit, - groupItems: groupItems); + userId: userId, + parentId: parentId, + fields: itemFieldsListToJson(fields), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + isPlayed: isPlayed, + enableImages: enableImages, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + enableUserData: enableUserData, + limit: limit, + groupItems: groupItems, + ); } ///Gets latest media. @@ -15737,7 +16044,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. include user data. ///@param limit Return item limit. ///@param groupItems Whether or not to group items into a parent container. - @Get(path: '/Items/Latest') + @GET(path: '/Items/Latest') Future>> _itemsLatestGet({ @Query('userId') String? userId, @Query('parentId') String? parentId, @@ -15756,16 +16063,19 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId User id. Future> itemsRootGet({String? userId}) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _itemsRootGet(userId: userId); } ///Gets the root folder from a user's library. ///@param userId User id. - @Get(path: '/Items/Root') - Future> _itemsRootGet( - {@Query('userId') String? userId}); + @GET(path: '/Items/Root') + Future> _itemsRootGet({ + @Query('userId') String? userId, + }); ///Marks an item as a favorite. ///@param userId User id. @@ -15775,7 +16085,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userFavoriteItemsItemIdPost(userId: userId, itemId: itemId); } @@ -15783,10 +16095,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Marks an item as a favorite. ///@param userId User id. ///@param itemId Item id. - @Post( - path: '/UserFavoriteItems/{itemId}', - optionalBody: true, - ) + @POST(path: '/UserFavoriteItems/{itemId}', optionalBody: true) Future> _userFavoriteItemsItemIdPost({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -15800,7 +16109,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userFavoriteItemsItemIdDelete(userId: userId, itemId: itemId); } @@ -15808,7 +16119,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Unmarks item as a favorite. ///@param userId User id. ///@param itemId Item id. - @Delete(path: '/UserFavoriteItems/{itemId}') + @DELETE(path: '/UserFavoriteItems/{itemId}') Future> _userFavoriteItemsItemIdDelete({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -15822,7 +16133,9 @@ abstract class JellyfinOpenApi extends ChopperService { required String? itemId, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userItemsItemIdRatingDelete(userId: userId, itemId: itemId); } @@ -15830,7 +16143,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Deletes a user's saved personal rating for an item. ///@param userId User id. ///@param itemId Item id. - @Delete(path: '/UserItems/{itemId}/Rating') + @DELETE(path: '/UserItems/{itemId}/Rating') Future> _userItemsItemIdRatingDelete({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -15846,20 +16159,22 @@ abstract class JellyfinOpenApi extends ChopperService { bool? likes, }) { generatedMapping.putIfAbsent( - UserItemDataDto, () => UserItemDataDto.fromJsonFactory); + UserItemDataDto, + () => UserItemDataDto.fromJsonFactory, + ); return _userItemsItemIdRatingPost( - userId: userId, itemId: itemId, likes: likes); + userId: userId, + itemId: itemId, + likes: likes, + ); } ///Updates a user's rating for an item. ///@param userId User id. ///@param itemId Item id. ///@param likes Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes. - @Post( - path: '/UserItems/{itemId}/Rating', - optionalBody: true, - ) + @POST(path: '/UserItems/{itemId}/Rating', optionalBody: true) Future> _userItemsItemIdRatingPost({ @Query('userId') String? userId, @Path('itemId') required String? itemId, @@ -15878,13 +16193,16 @@ abstract class JellyfinOpenApi extends ChopperService { bool? includeHidden, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _userViewsGet( - userId: userId, - includeExternalContent: includeExternalContent, - presetViews: collectionTypeListToJson(presetViews), - includeHidden: includeHidden); + userId: userId, + includeExternalContent: includeExternalContent, + presetViews: collectionTypeListToJson(presetViews), + includeHidden: includeHidden, + ); } ///Get user views. @@ -15892,7 +16210,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param includeExternalContent Whether or not to include external views such as channels or live tv. ///@param presetViews Preset views. ///@param includeHidden Whether or not to include hidden content. - @Get(path: '/UserViews') + @GET(path: '/UserViews') Future> _userViewsGet({ @Query('userId') String? userId, @Query('includeExternalContent') bool? includeExternalContent, @@ -15903,40 +16221,45 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get user view grouping options. ///@param userId User id. Future>> - userViewsGroupingOptionsGet({String? userId}) { + userViewsGroupingOptionsGet({String? userId}) { generatedMapping.putIfAbsent( - SpecialViewOptionDto, () => SpecialViewOptionDto.fromJsonFactory); + SpecialViewOptionDto, + () => SpecialViewOptionDto.fromJsonFactory, + ); return _userViewsGroupingOptionsGet(userId: userId); } ///Get user view grouping options. ///@param userId User id. - @Get(path: '/UserViews/GroupingOptions') + @GET(path: '/UserViews/GroupingOptions') Future>> - _userViewsGroupingOptionsGet({@Query('userId') String? userId}); + _userViewsGroupingOptionsGet({@Query('userId') String? userId}); ///Get video attachment. ///@param videoId Video ID. ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. Future> - videosVideoIdMediaSourceIdAttachmentsIndexGet({ + videosVideoIdMediaSourceIdAttachmentsIndexGet({ required String? videoId, required String? mediaSourceId, required int? index, }) { return _videosVideoIdMediaSourceIdAttachmentsIndexGet( - videoId: videoId, mediaSourceId: mediaSourceId, index: index); + videoId: videoId, + mediaSourceId: mediaSourceId, + index: index, + ); } ///Get video attachment. ///@param videoId Video ID. ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. - @Get(path: '/Videos/{videoId}/{mediaSourceId}/Attachments/{index}') + @GET(path: '/Videos/{videoId}/{mediaSourceId}/Attachments/{index}') Future> - _videosVideoIdMediaSourceIdAttachmentsIndexGet({ + _videosVideoIdMediaSourceIdAttachmentsIndexGet({ @Path('videoId') required String? videoId, @Path('mediaSourceId') required String? mediaSourceId, @Path('index') required int? index, @@ -15946,12 +16269,11 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. Future> - videosItemIdAdditionalPartsGet({ - required String? itemId, - String? userId, - }) { + videosItemIdAdditionalPartsGet({required String? itemId, String? userId}) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _videosItemIdAdditionalPartsGet(itemId: itemId, userId: userId); } @@ -15959,25 +16281,27 @@ 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. - @Get(path: '/Videos/{itemId}/AdditionalParts') + @GET(path: '/Videos/{itemId}/AdditionalParts') Future> - _videosItemIdAdditionalPartsGet({ + _videosItemIdAdditionalPartsGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, }); ///Removes alternate video sources. ///@param itemId The item id. - Future videosItemIdAlternateSourcesDelete( - {required String? itemId}) { + Future videosItemIdAlternateSourcesDelete({ + required String? itemId, + }) { return _videosItemIdAlternateSourcesDelete(itemId: itemId); } ///Removes alternate video sources. ///@param itemId The item id. - @Delete(path: '/Videos/{itemId}/AlternateSources') - Future _videosItemIdAlternateSourcesDelete( - {@Path('itemId') required String? itemId}); + @DELETE(path: '/Videos/{itemId}/AlternateSources') + Future _videosItemIdAlternateSourcesDelete({ + @Path('itemId') required String? itemId, + }); ///Gets a video stream. ///@param itemId The item id. @@ -16087,58 +16411,59 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _videosItemIdStreamGet( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets a video stream. @@ -16194,7 +16519,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. - @Get(path: '/Videos/{itemId}/stream') + @GET(path: '/Videos/{itemId}/stream') Future> _videosItemIdStreamGet({ @Path('itemId') required String? itemId, @Query('container') String? container, @@ -16358,58 +16683,59 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _videosItemIdStreamHead( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets a video stream. @@ -16465,7 +16791,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. - @Head(path: '/Videos/{itemId}/stream') + @HEAD(path: '/Videos/{itemId}/stream') Future> _videosItemIdStreamHead({ @Path('itemId') required String? itemId, @Query('container') String? container, @@ -16629,58 +16955,59 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _videosItemIdStreamContainerGet( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets a video stream. @@ -16736,7 +17063,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. - @Get(path: '/Videos/{itemId}/stream.{container}') + @GET(path: '/Videos/{itemId}/stream.{container}') Future> _videosItemIdStreamContainerGet({ @Path('itemId') required String? itemId, @Path('container') required String? container, @@ -16900,58 +17227,59 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableAudioVbrEncoding, }) { return _videosItemIdStreamContainerHead( - itemId: itemId, - container: container, - $static: $static, - params: params, - tag: tag, - deviceProfileId: deviceProfileId, - playSessionId: playSessionId, - segmentContainer: segmentContainer, - segmentLength: segmentLength, - minSegments: minSegments, - mediaSourceId: mediaSourceId, - deviceId: deviceId, - audioCodec: audioCodec, - enableAutoStreamCopy: enableAutoStreamCopy, - allowVideoStreamCopy: allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy, - breakOnNonKeyFrames: breakOnNonKeyFrames, - audioSampleRate: audioSampleRate, - maxAudioBitDepth: maxAudioBitDepth, - audioBitRate: audioBitRate, - audioChannels: audioChannels, - maxAudioChannels: maxAudioChannels, - profile: profile, - level: level, - framerate: framerate, - maxFramerate: maxFramerate, - copyTimestamps: copyTimestamps, - startTimeTicks: startTimeTicks, - width: width, - height: height, - maxWidth: maxWidth, - maxHeight: maxHeight, - videoBitRate: videoBitRate, - subtitleStreamIndex: subtitleStreamIndex, - subtitleMethod: subtitleMethod?.value?.toString(), - maxRefFrames: maxRefFrames, - maxVideoBitDepth: maxVideoBitDepth, - requireAvc: requireAvc, - deInterlace: deInterlace, - requireNonAnamorphic: requireNonAnamorphic, - transcodingMaxAudioChannels: transcodingMaxAudioChannels, - cpuCoreLimit: cpuCoreLimit, - liveStreamId: liveStreamId, - enableMpegtsM2TsMode: enableMpegtsM2TsMode, - videoCodec: videoCodec, - subtitleCodec: subtitleCodec, - transcodeReasons: transcodeReasons, - audioStreamIndex: audioStreamIndex, - videoStreamIndex: videoStreamIndex, - context: context?.value?.toString(), - streamOptions: streamOptions, - enableAudioVbrEncoding: enableAudioVbrEncoding); + itemId: itemId, + container: container, + $static: $static, + params: params, + tag: tag, + deviceProfileId: deviceProfileId, + playSessionId: playSessionId, + segmentContainer: segmentContainer, + segmentLength: segmentLength, + minSegments: minSegments, + mediaSourceId: mediaSourceId, + deviceId: deviceId, + audioCodec: audioCodec, + enableAutoStreamCopy: enableAutoStreamCopy, + allowVideoStreamCopy: allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy, + breakOnNonKeyFrames: breakOnNonKeyFrames, + audioSampleRate: audioSampleRate, + maxAudioBitDepth: maxAudioBitDepth, + audioBitRate: audioBitRate, + audioChannels: audioChannels, + maxAudioChannels: maxAudioChannels, + profile: profile, + level: level, + framerate: framerate, + maxFramerate: maxFramerate, + copyTimestamps: copyTimestamps, + startTimeTicks: startTimeTicks, + width: width, + height: height, + maxWidth: maxWidth, + maxHeight: maxHeight, + videoBitRate: videoBitRate, + subtitleStreamIndex: subtitleStreamIndex, + subtitleMethod: subtitleMethod?.value?.toString(), + maxRefFrames: maxRefFrames, + maxVideoBitDepth: maxVideoBitDepth, + requireAvc: requireAvc, + deInterlace: deInterlace, + requireNonAnamorphic: requireNonAnamorphic, + transcodingMaxAudioChannels: transcodingMaxAudioChannels, + cpuCoreLimit: cpuCoreLimit, + liveStreamId: liveStreamId, + enableMpegtsM2TsMode: enableMpegtsM2TsMode, + videoCodec: videoCodec, + subtitleCodec: subtitleCodec, + transcodeReasons: transcodeReasons, + audioStreamIndex: audioStreamIndex, + videoStreamIndex: videoStreamIndex, + context: context?.value?.toString(), + streamOptions: streamOptions, + enableAudioVbrEncoding: enableAudioVbrEncoding, + ); } ///Gets a video stream. @@ -17007,7 +17335,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. - @Head(path: '/Videos/{itemId}/stream.{container}') + @HEAD(path: '/Videos/{itemId}/stream.{container}') Future> _videosItemIdStreamContainerHead({ @Path('itemId') required String? itemId, @Path('container') required String? container, @@ -17065,19 +17393,18 @@ abstract class JellyfinOpenApi extends ChopperService { ///Merges videos into a single record. ///@param ids Item id list. This allows multiple, comma delimited. - Future videosMergeVersionsPost( - {required List? ids}) { + Future videosMergeVersionsPost({ + required List? ids, + }) { return _videosMergeVersionsPost(ids: ids); } ///Merges videos into a single record. ///@param ids Item id list. This allows multiple, comma delimited. - @Post( - path: '/Videos/MergeVersions', - optionalBody: true, - ) - Future _videosMergeVersionsPost( - {@Query('ids') required List? ids}); + @POST(path: '/Videos/MergeVersions', optionalBody: true) + Future _videosMergeVersionsPost({ + @Query('ids') required List? ids, + }); ///Get years. ///@param startIndex Skips over a given number of items within the results. Use for paging. @@ -17113,24 +17440,27 @@ abstract class JellyfinOpenApi extends ChopperService { bool? enableImages, }) { generatedMapping.putIfAbsent( - BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory); + BaseItemDtoQueryResult, + () => BaseItemDtoQueryResult.fromJsonFactory, + ); return _yearsGet( - startIndex: startIndex, - limit: limit, - sortOrder: sortOrderListToJson(sortOrder), - parentId: parentId, - fields: itemFieldsListToJson(fields), - excludeItemTypes: baseItemKindListToJson(excludeItemTypes), - includeItemTypes: baseItemKindListToJson(includeItemTypes), - mediaTypes: mediaTypeListToJson(mediaTypes), - sortBy: itemSortByListToJson(sortBy), - enableUserData: enableUserData, - imageTypeLimit: imageTypeLimit, - enableImageTypes: imageTypeListToJson(enableImageTypes), - userId: userId, - recursive: recursive, - enableImages: enableImages); + startIndex: startIndex, + limit: limit, + sortOrder: sortOrderListToJson(sortOrder), + parentId: parentId, + fields: itemFieldsListToJson(fields), + excludeItemTypes: baseItemKindListToJson(excludeItemTypes), + includeItemTypes: baseItemKindListToJson(includeItemTypes), + mediaTypes: mediaTypeListToJson(mediaTypes), + sortBy: itemSortByListToJson(sortBy), + enableUserData: enableUserData, + imageTypeLimit: imageTypeLimit, + enableImageTypes: imageTypeListToJson(enableImageTypes), + userId: userId, + recursive: recursive, + enableImages: enableImages, + ); } ///Get years. @@ -17149,7 +17479,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId User Id. ///@param recursive Search recursively. ///@param enableImages Optional. Include image information in output. - @Get(path: '/Years') + @GET(path: '/Years') Future> _yearsGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -17176,7 +17506,9 @@ abstract class JellyfinOpenApi extends ChopperService { String? userId, }) { generatedMapping.putIfAbsent( - BaseItemDto, () => BaseItemDto.fromJsonFactory); + BaseItemDto, + () => BaseItemDto.fromJsonFactory, + ); return _yearsYearGet(year: year, userId: userId); } @@ -17184,7 +17516,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a year. ///@param year The year. ///@param userId Optional. Filter by user id, and attach user data. - @Get(path: '/Years/{year}') + @GET(path: '/Years/{year}') Future> _yearsYearGet({ @Path('year') required int? year, @Query('userId') String? userId, @@ -17233,11 +17565,15 @@ class AccessSchedule { (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.dayOfWeek, dayOfWeek) || - const DeepCollectionEquality() - .equals(other.dayOfWeek, dayOfWeek)) && + const DeepCollectionEquality().equals( + other.dayOfWeek, + dayOfWeek, + )) && (identical(other.startHour, startHour) || - const DeepCollectionEquality() - .equals(other.startHour, startHour)) && + const DeepCollectionEquality().equals( + other.startHour, + startHour, + )) && (identical(other.endHour, endHour) || const DeepCollectionEquality().equals(other.endHour, endHour))); } @@ -17256,32 +17592,36 @@ class AccessSchedule { } extension $AccessScheduleExtension on AccessSchedule { - AccessSchedule copyWith( - {int? id, - String? userId, - enums.DynamicDayOfWeek? dayOfWeek, - double? startHour, - double? endHour}) { + AccessSchedule copyWith({ + int? id, + String? userId, + enums.DynamicDayOfWeek? dayOfWeek, + double? startHour, + double? endHour, + }) { return AccessSchedule( - id: id ?? this.id, - userId: userId ?? this.userId, - dayOfWeek: dayOfWeek ?? this.dayOfWeek, - startHour: startHour ?? this.startHour, - endHour: endHour ?? this.endHour); + id: id ?? this.id, + userId: userId ?? this.userId, + dayOfWeek: dayOfWeek ?? this.dayOfWeek, + startHour: startHour ?? this.startHour, + endHour: endHour ?? this.endHour, + ); } - AccessSchedule copyWithWrapped( - {Wrapped? id, - Wrapped? userId, - Wrapped? dayOfWeek, - Wrapped? startHour, - Wrapped? endHour}) { + AccessSchedule copyWithWrapped({ + Wrapped? id, + Wrapped? userId, + Wrapped? dayOfWeek, + Wrapped? startHour, + Wrapped? endHour, + }) { return AccessSchedule( - id: (id != null ? id.value : this.id), - userId: (userId != null ? userId.value : this.userId), - dayOfWeek: (dayOfWeek != null ? dayOfWeek.value : this.dayOfWeek), - startHour: (startHour != null ? startHour.value : this.startHour), - endHour: (endHour != null ? endHour.value : this.endHour)); + id: (id != null ? id.value : this.id), + userId: (userId != null ? userId.value : this.userId), + dayOfWeek: (dayOfWeek != null ? dayOfWeek.value : this.dayOfWeek), + startHour: (startHour != null ? startHour.value : this.startHour), + endHour: (endHour != null ? endHour.value : this.endHour), + ); } } @@ -17343,11 +17683,15 @@ class ActivityLogEntry { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || - const DeepCollectionEquality() - .equals(other.overview, overview)) && + const DeepCollectionEquality().equals( + other.overview, + overview, + )) && (identical(other.shortOverview, shortOverview) || - const DeepCollectionEquality() - .equals(other.shortOverview, shortOverview)) && + const DeepCollectionEquality().equals( + other.shortOverview, + shortOverview, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.itemId, itemId) || @@ -17357,11 +17701,15 @@ class ActivityLogEntry { (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userPrimaryImageTag, userPrimaryImageTag) || - const DeepCollectionEquality() - .equals(other.userPrimaryImageTag, userPrimaryImageTag)) && + const DeepCollectionEquality().equals( + other.userPrimaryImageTag, + userPrimaryImageTag, + )) && (identical(other.severity, severity) || - const DeepCollectionEquality() - .equals(other.severity, severity))); + const DeepCollectionEquality().equals( + other.severity, + severity, + ))); } @override @@ -17383,65 +17731,66 @@ class ActivityLogEntry { } extension $ActivityLogEntryExtension on ActivityLogEntry { - ActivityLogEntry copyWith( - {int? id, - String? name, - String? overview, - String? shortOverview, - String? type, - String? itemId, - DateTime? date, - String? userId, - String? userPrimaryImageTag, - enums.LogLevel? severity}) { + ActivityLogEntry copyWith({ + int? id, + String? name, + String? overview, + String? shortOverview, + String? type, + String? itemId, + DateTime? date, + String? userId, + String? userPrimaryImageTag, + enums.LogLevel? severity, + }) { return ActivityLogEntry( - id: id ?? this.id, - name: name ?? this.name, - overview: overview ?? this.overview, - shortOverview: shortOverview ?? this.shortOverview, - type: type ?? this.type, - itemId: itemId ?? this.itemId, - date: date ?? this.date, - userId: userId ?? this.userId, - userPrimaryImageTag: userPrimaryImageTag ?? this.userPrimaryImageTag, - severity: severity ?? this.severity); + id: id ?? this.id, + name: name ?? this.name, + overview: overview ?? this.overview, + shortOverview: shortOverview ?? this.shortOverview, + type: type ?? this.type, + itemId: itemId ?? this.itemId, + date: date ?? this.date, + userId: userId ?? this.userId, + userPrimaryImageTag: userPrimaryImageTag ?? this.userPrimaryImageTag, + severity: severity ?? this.severity, + ); } - ActivityLogEntry copyWithWrapped( - {Wrapped? id, - Wrapped? name, - Wrapped? overview, - Wrapped? shortOverview, - Wrapped? type, - Wrapped? itemId, - Wrapped? date, - Wrapped? userId, - Wrapped? userPrimaryImageTag, - Wrapped? severity}) { + ActivityLogEntry copyWithWrapped({ + Wrapped? id, + Wrapped? name, + Wrapped? overview, + Wrapped? shortOverview, + Wrapped? type, + Wrapped? itemId, + Wrapped? date, + Wrapped? userId, + Wrapped? userPrimaryImageTag, + Wrapped? severity, + }) { return 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), - 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), - severity: (severity != null ? severity.value : this.severity)); + 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), + 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), + severity: (severity != null ? severity.value : this.severity), + ); } } @JsonSerializable(explicitToJson: true) class ActivityLogEntryMessage { - const ActivityLogEntryMessage({ - this.data, - this.messageId, - this.messageType, - }); + const ActivityLogEntryMessage({this.data, this.messageId, this.messageType}); factory ActivityLogEntryMessage.fromJson(Map json) => _$ActivityLogEntryMessageFromJson(json); @@ -17450,7 +17799,10 @@ class ActivityLogEntryMessage { Map toJson() => _$ActivityLogEntryMessageToJson(this); @JsonKey( - name: 'Data', includeIfNull: false, defaultValue: []) + name: 'Data', + includeIfNull: false, + defaultValue: [], + ) final List? data; @JsonKey(name: 'MessageId', includeIfNull: false) final String? messageId; @@ -17462,9 +17814,11 @@ class ActivityLogEntryMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.activitylogentry); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.activitylogentry, + ); static const fromJsonFactory = _$ActivityLogEntryMessageFromJson; @@ -17475,11 +17829,15 @@ class ActivityLogEntryMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -17494,25 +17852,28 @@ class ActivityLogEntryMessage { } extension $ActivityLogEntryMessageExtension on ActivityLogEntryMessage { - ActivityLogEntryMessage copyWith( - {List? data, - String? messageId, - enums.SessionMessageType? messageType}) { + ActivityLogEntryMessage copyWith({ + List? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return ActivityLogEntryMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - ActivityLogEntryMessage copyWithWrapped( - {Wrapped?>? data, - Wrapped? messageId, - Wrapped? messageType}) { + ActivityLogEntryMessage copyWithWrapped({ + Wrapped?>? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return ActivityLogEntryMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -17531,7 +17892,10 @@ class ActivityLogEntryQueryResult { Map toJson() => _$ActivityLogEntryQueryResultToJson(this); @JsonKey( - name: 'Items', includeIfNull: false, defaultValue: []) + name: 'Items', + includeIfNull: false, + defaultValue: [], + ) final List? items; @JsonKey(name: 'TotalRecordCount', includeIfNull: false) final int? totalRecordCount; @@ -17546,11 +17910,15 @@ class ActivityLogEntryQueryResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -17565,33 +17933,36 @@ class ActivityLogEntryQueryResult { } extension $ActivityLogEntryQueryResultExtension on ActivityLogEntryQueryResult { - ActivityLogEntryQueryResult copyWith( - {List? items, int? totalRecordCount, int? startIndex}) { + ActivityLogEntryQueryResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + }) { return ActivityLogEntryQueryResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ); } - ActivityLogEntryQueryResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex}) { + ActivityLogEntryQueryResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + }) { return ActivityLogEntryQueryResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @JsonSerializable(explicitToJson: true) class ActivityLogEntryStartMessage { - const ActivityLogEntryStartMessage({ - this.data, - this.messageType, - }); + const ActivityLogEntryStartMessage({this.data, this.messageType}); factory ActivityLogEntryStartMessage.fromJson(Map json) => _$ActivityLogEntryStartMessageFromJson(json); @@ -17609,9 +17980,11 @@ class ActivityLogEntryStartMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.activitylogentrystart); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.activitylogentrystart, + ); static const fromJsonFactory = _$ActivityLogEntryStartMessageFromJson; @@ -17622,8 +17995,10 @@ class ActivityLogEntryStartMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -17638,27 +18013,30 @@ class ActivityLogEntryStartMessage { extension $ActivityLogEntryStartMessageExtension on ActivityLogEntryStartMessage { - ActivityLogEntryStartMessage copyWith( - {String? data, enums.SessionMessageType? messageType}) { + ActivityLogEntryStartMessage copyWith({ + String? data, + enums.SessionMessageType? messageType, + }) { return ActivityLogEntryStartMessage( - data: data ?? this.data, messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageType: messageType ?? this.messageType, + ); } - ActivityLogEntryStartMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageType}) { + ActivityLogEntryStartMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageType, + }) { return ActivityLogEntryStartMessage( - data: (data != null ? data.value : this.data), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class ActivityLogEntryStopMessage { - const ActivityLogEntryStopMessage({ - this.messageType, - }); + const ActivityLogEntryStopMessage({this.messageType}); factory ActivityLogEntryStopMessage.fromJson(Map json) => _$ActivityLogEntryStopMessageFromJson(json); @@ -17674,9 +18052,11 @@ class ActivityLogEntryStopMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.activitylogentrystop); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.activitylogentrystop, + ); static const fromJsonFactory = _$ActivityLogEntryStopMessageFromJson; @@ -17685,8 +18065,10 @@ class ActivityLogEntryStopMessage { return identical(this, other) || (other is ActivityLogEntryStopMessage && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -17698,25 +18080,26 @@ class ActivityLogEntryStopMessage { } extension $ActivityLogEntryStopMessageExtension on ActivityLogEntryStopMessage { - ActivityLogEntryStopMessage copyWith( - {enums.SessionMessageType? messageType}) { + ActivityLogEntryStopMessage copyWith({ + enums.SessionMessageType? messageType, + }) { return ActivityLogEntryStopMessage( - messageType: messageType ?? this.messageType); + messageType: messageType ?? this.messageType, + ); } - ActivityLogEntryStopMessage copyWithWrapped( - {Wrapped? messageType}) { + ActivityLogEntryStopMessage copyWithWrapped({ + Wrapped? messageType, + }) { return ActivityLogEntryStopMessage( - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class AddVirtualFolderDto { - const AddVirtualFolderDto({ - this.libraryOptions, - }); + const AddVirtualFolderDto({this.libraryOptions}); factory AddVirtualFolderDto.fromJson(Map json) => _$AddVirtualFolderDtoFromJson(json); @@ -17733,8 +18116,10 @@ class AddVirtualFolderDto { return identical(this, other) || (other is AddVirtualFolderDto && (identical(other.libraryOptions, libraryOptions) || - const DeepCollectionEquality() - .equals(other.libraryOptions, libraryOptions))); + const DeepCollectionEquality().equals( + other.libraryOptions, + libraryOptions, + ))); } @override @@ -17749,15 +18134,18 @@ class AddVirtualFolderDto { extension $AddVirtualFolderDtoExtension on AddVirtualFolderDto { AddVirtualFolderDto copyWith({LibraryOptions? libraryOptions}) { return AddVirtualFolderDto( - libraryOptions: libraryOptions ?? this.libraryOptions); + libraryOptions: libraryOptions ?? this.libraryOptions, + ); } - AddVirtualFolderDto copyWithWrapped( - {Wrapped? libraryOptions}) { + AddVirtualFolderDto copyWithWrapped({ + Wrapped? libraryOptions, + }) { return AddVirtualFolderDto( - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions)); + libraryOptions: (libraryOptions != null + ? libraryOptions.value + : this.libraryOptions), + ); } } @@ -17823,42 +18211,64 @@ class AlbumInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated)) && + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + )) && (identical(other.albumArtists, albumArtists) || - const DeepCollectionEquality() - .equals(other.albumArtists, albumArtists)) && + const DeepCollectionEquality().equals( + other.albumArtists, + albumArtists, + )) && (identical(other.artistProviderIds, artistProviderIds) || - const DeepCollectionEquality() - .equals(other.artistProviderIds, artistProviderIds)) && + const DeepCollectionEquality().equals( + other.artistProviderIds, + artistProviderIds, + )) && (identical(other.songInfos, songInfos) || - const DeepCollectionEquality() - .equals(other.songInfos, songInfos))); + const DeepCollectionEquality().equals( + other.songInfos, + songInfos, + ))); } @override @@ -17884,82 +18294,86 @@ class AlbumInfo { } extension $AlbumInfoExtension on AlbumInfo { - AlbumInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated, - List? albumArtists, - Map? artistProviderIds, - List? songInfos}) { + AlbumInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + List? albumArtists, + Map? artistProviderIds, + List? songInfos, + }) { return AlbumInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated, - albumArtists: albumArtists ?? this.albumArtists, - artistProviderIds: artistProviderIds ?? this.artistProviderIds, - songInfos: songInfos ?? this.songInfos); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + albumArtists: albumArtists ?? this.albumArtists, + artistProviderIds: artistProviderIds ?? this.artistProviderIds, + songInfos: songInfos ?? this.songInfos, + ); } - AlbumInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated, - Wrapped?>? albumArtists, - Wrapped?>? artistProviderIds, - Wrapped?>? songInfos}) { + AlbumInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + Wrapped?>? albumArtists, + Wrapped?>? artistProviderIds, + Wrapped?>? songInfos, + }) { return AlbumInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: - (albumArtists != null ? albumArtists.value : this.albumArtists), - artistProviderIds: (artistProviderIds != null - ? artistProviderIds.value - : this.artistProviderIds), - songInfos: (songInfos != null ? songInfos.value : this.songInfos)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + albumArtists: (albumArtists != null + ? albumArtists.value + : this.albumArtists), + artistProviderIds: (artistProviderIds != null + ? artistProviderIds.value + : this.artistProviderIds), + songInfos: (songInfos != null ? songInfos.value : this.songInfos), + ); } } @@ -17993,17 +18407,25 @@ class AlbumInfoRemoteSearchQuery { return identical(this, other) || (other is AlbumInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -18019,33 +18441,37 @@ class AlbumInfoRemoteSearchQuery { } extension $AlbumInfoRemoteSearchQueryExtension on AlbumInfoRemoteSearchQuery { - AlbumInfoRemoteSearchQuery copyWith( - {AlbumInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + AlbumInfoRemoteSearchQuery copyWith({ + AlbumInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return AlbumInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - AlbumInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + AlbumInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @@ -18076,14 +18502,20 @@ class AllThemeMediaResult { return identical(this, other) || (other is AllThemeMediaResult && (identical(other.themeVideosResult, themeVideosResult) || - const DeepCollectionEquality() - .equals(other.themeVideosResult, themeVideosResult)) && + const DeepCollectionEquality().equals( + other.themeVideosResult, + themeVideosResult, + )) && (identical(other.themeSongsResult, themeSongsResult) || - const DeepCollectionEquality() - .equals(other.themeSongsResult, themeSongsResult)) && + const DeepCollectionEquality().equals( + other.themeSongsResult, + themeSongsResult, + )) && (identical(other.soundtrackSongsResult, soundtrackSongsResult) || const DeepCollectionEquality().equals( - other.soundtrackSongsResult, soundtrackSongsResult))); + other.soundtrackSongsResult, + soundtrackSongsResult, + ))); } @override @@ -18098,31 +18530,35 @@ class AllThemeMediaResult { } extension $AllThemeMediaResultExtension on AllThemeMediaResult { - AllThemeMediaResult copyWith( - {ThemeMediaResult? themeVideosResult, - ThemeMediaResult? themeSongsResult, - ThemeMediaResult? soundtrackSongsResult}) { + AllThemeMediaResult copyWith({ + ThemeMediaResult? themeVideosResult, + ThemeMediaResult? themeSongsResult, + ThemeMediaResult? soundtrackSongsResult, + }) { return AllThemeMediaResult( - themeVideosResult: themeVideosResult ?? this.themeVideosResult, - themeSongsResult: themeSongsResult ?? this.themeSongsResult, - soundtrackSongsResult: - soundtrackSongsResult ?? this.soundtrackSongsResult); + themeVideosResult: themeVideosResult ?? this.themeVideosResult, + themeSongsResult: themeSongsResult ?? this.themeSongsResult, + soundtrackSongsResult: + soundtrackSongsResult ?? this.soundtrackSongsResult, + ); } - AllThemeMediaResult copyWithWrapped( - {Wrapped? themeVideosResult, - Wrapped? themeSongsResult, - Wrapped? soundtrackSongsResult}) { + AllThemeMediaResult copyWithWrapped({ + Wrapped? themeVideosResult, + Wrapped? themeSongsResult, + 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), + ); } } @@ -18182,36 +18618,54 @@ class ArtistInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated)) && + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + )) && (identical(other.songInfos, songInfos) || - const DeepCollectionEquality() - .equals(other.songInfos, songInfos))); + const DeepCollectionEquality().equals( + other.songInfos, + songInfos, + ))); } @override @@ -18235,71 +18689,74 @@ class ArtistInfo { } extension $ArtistInfoExtension on ArtistInfo { - ArtistInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated, - List? songInfos}) { + ArtistInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + List? songInfos, + }) { return ArtistInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated, - songInfos: songInfos ?? this.songInfos); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + songInfos: songInfos ?? this.songInfos, + ); } - ArtistInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated, - Wrapped?>? songInfos}) { + ArtistInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + Wrapped?>? songInfos, + }) { return ArtistInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated), - songInfos: (songInfos != null ? songInfos.value : this.songInfos)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + songInfos: (songInfos != null ? songInfos.value : this.songInfos), + ); } } @@ -18333,17 +18790,25 @@ class ArtistInfoRemoteSearchQuery { return identical(this, other) || (other is ArtistInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -18359,42 +18824,43 @@ class ArtistInfoRemoteSearchQuery { } extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { - ArtistInfoRemoteSearchQuery copyWith( - {ArtistInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + ArtistInfoRemoteSearchQuery copyWith({ + ArtistInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return ArtistInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - ArtistInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + ArtistInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class AuthenticateUserByName { - const AuthenticateUserByName({ - this.username, - this.pw, - }); + const AuthenticateUserByName({this.username, this.pw}); factory AuthenticateUserByName.fromJson(Map json) => _$AuthenticateUserByNameFromJson(json); @@ -18413,8 +18879,10 @@ class AuthenticateUserByName { return identical(this, other) || (other is AuthenticateUserByName && (identical(other.username, username) || - const DeepCollectionEquality() - .equals(other.username, username)) && + const DeepCollectionEquality().equals( + other.username, + username, + )) && (identical(other.pw, pw) || const DeepCollectionEquality().equals(other.pw, pw))); } @@ -18432,14 +18900,19 @@ class AuthenticateUserByName { extension $AuthenticateUserByNameExtension on AuthenticateUserByName { AuthenticateUserByName copyWith({String? username, String? pw}) { return AuthenticateUserByName( - username: username ?? this.username, pw: pw ?? this.pw); + username: username ?? this.username, + pw: pw ?? this.pw, + ); } - AuthenticateUserByName copyWithWrapped( - {Wrapped? username, Wrapped? pw}) { + AuthenticateUserByName copyWithWrapped({ + Wrapped? username, + Wrapped? pw, + }) { return AuthenticateUserByName( - username: (username != null ? username.value : this.username), - pw: (pw != null ? pw.value : this.pw)); + username: (username != null ? username.value : this.username), + pw: (pw != null ? pw.value : this.pw), + ); } } @@ -18499,37 +18972,57 @@ class AuthenticationInfo { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.accessToken, accessToken) || - const DeepCollectionEquality() - .equals(other.accessToken, accessToken)) && + const DeepCollectionEquality().equals( + other.accessToken, + accessToken, + )) && (identical(other.deviceId, deviceId) || - const DeepCollectionEquality() - .equals(other.deviceId, deviceId)) && + const DeepCollectionEquality().equals( + other.deviceId, + deviceId, + )) && (identical(other.appName, appName) || - const DeepCollectionEquality() - .equals(other.appName, appName)) && + const DeepCollectionEquality().equals( + other.appName, + appName, + )) && (identical(other.appVersion, appVersion) || - const DeepCollectionEquality() - .equals(other.appVersion, appVersion)) && + const DeepCollectionEquality().equals( + other.appVersion, + appVersion, + )) && (identical(other.deviceName, deviceName) || - const DeepCollectionEquality() - .equals(other.deviceName, deviceName)) && + const DeepCollectionEquality().equals( + other.deviceName, + deviceName, + )) && (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.isActive, isActive) || - const DeepCollectionEquality() - .equals(other.isActive, isActive)) && + const DeepCollectionEquality().equals( + other.isActive, + isActive, + )) && (identical(other.dateCreated, dateCreated) || - const DeepCollectionEquality() - .equals(other.dateCreated, dateCreated)) && + const DeepCollectionEquality().equals( + other.dateCreated, + dateCreated, + )) && (identical(other.dateRevoked, dateRevoked) || - const DeepCollectionEquality() - .equals(other.dateRevoked, dateRevoked)) && + const DeepCollectionEquality().equals( + other.dateRevoked, + dateRevoked, + )) && (identical(other.dateLastActivity, dateLastActivity) || - const DeepCollectionEquality() - .equals(other.dateLastActivity, dateLastActivity)) && + const DeepCollectionEquality().equals( + other.dateLastActivity, + dateLastActivity, + )) && (identical(other.userName, userName) || - const DeepCollectionEquality() - .equals(other.userName, userName))); + const DeepCollectionEquality().equals( + other.userName, + userName, + ))); } @override @@ -18553,65 +19046,66 @@ class AuthenticationInfo { } extension $AuthenticationInfoExtension on AuthenticationInfo { - AuthenticationInfo copyWith( - {int? id, - String? accessToken, - String? deviceId, - String? appName, - String? appVersion, - String? deviceName, - String? userId, - bool? isActive, - DateTime? dateCreated, - DateTime? dateRevoked, - DateTime? dateLastActivity, - String? userName}) { + AuthenticationInfo copyWith({ + int? id, + String? accessToken, + String? deviceId, + String? appName, + String? appVersion, + String? deviceName, + String? userId, + bool? isActive, + DateTime? dateCreated, + DateTime? dateRevoked, + DateTime? dateLastActivity, + String? userName, + }) { return AuthenticationInfo( - id: id ?? this.id, - accessToken: accessToken ?? this.accessToken, - deviceId: deviceId ?? this.deviceId, - appName: appName ?? this.appName, - appVersion: appVersion ?? this.appVersion, - deviceName: deviceName ?? this.deviceName, - userId: userId ?? this.userId, - isActive: isActive ?? this.isActive, - dateCreated: dateCreated ?? this.dateCreated, - dateRevoked: dateRevoked ?? this.dateRevoked, - dateLastActivity: dateLastActivity ?? this.dateLastActivity, - userName: userName ?? this.userName); + id: id ?? this.id, + accessToken: accessToken ?? this.accessToken, + deviceId: deviceId ?? this.deviceId, + appName: appName ?? this.appName, + appVersion: appVersion ?? this.appVersion, + deviceName: deviceName ?? this.deviceName, + userId: userId ?? this.userId, + isActive: isActive ?? this.isActive, + dateCreated: dateCreated ?? this.dateCreated, + dateRevoked: dateRevoked ?? this.dateRevoked, + dateLastActivity: dateLastActivity ?? this.dateLastActivity, + userName: userName ?? this.userName, + ); } - AuthenticationInfo copyWithWrapped( - {Wrapped? id, - Wrapped? accessToken, - Wrapped? deviceId, - Wrapped? appName, - Wrapped? appVersion, - Wrapped? deviceName, - Wrapped? userId, - Wrapped? isActive, - Wrapped? dateCreated, - Wrapped? dateRevoked, - Wrapped? dateLastActivity, - Wrapped? userName}) { + AuthenticationInfo copyWithWrapped({ + Wrapped? id, + Wrapped? accessToken, + Wrapped? deviceId, + Wrapped? appName, + Wrapped? appVersion, + Wrapped? deviceName, + Wrapped? userId, + Wrapped? isActive, + Wrapped? dateCreated, + Wrapped? dateRevoked, + Wrapped? dateLastActivity, + Wrapped? userName, + }) { return AuthenticationInfo( - id: (id != null ? id.value : this.id), - accessToken: - (accessToken != null ? accessToken.value : this.accessToken), - deviceId: (deviceId != null ? deviceId.value : this.deviceId), - appName: (appName != null ? appName.value : this.appName), - appVersion: (appVersion != null ? appVersion.value : this.appVersion), - deviceName: (deviceName != null ? deviceName.value : this.deviceName), - userId: (userId != null ? userId.value : this.userId), - 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), - userName: (userName != null ? userName.value : this.userName)); + id: (id != null ? id.value : this.id), + accessToken: (accessToken != null ? accessToken.value : this.accessToken), + deviceId: (deviceId != null ? deviceId.value : this.deviceId), + appName: (appName != null ? appName.value : this.appName), + appVersion: (appVersion != null ? appVersion.value : this.appVersion), + deviceName: (deviceName != null ? deviceName.value : this.deviceName), + userId: (userId != null ? userId.value : this.userId), + 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), + userName: (userName != null ? userName.value : this.userName), + ); } } @@ -18630,7 +19124,10 @@ class AuthenticationInfoQueryResult { Map toJson() => _$AuthenticationInfoQueryResultToJson(this); @JsonKey( - name: 'Items', includeIfNull: false, defaultValue: []) + name: 'Items', + includeIfNull: false, + defaultValue: [], + ) final List? items; @JsonKey(name: 'TotalRecordCount', includeIfNull: false) final int? totalRecordCount; @@ -18645,11 +19142,15 @@ class AuthenticationInfoQueryResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -18665,26 +19166,30 @@ class AuthenticationInfoQueryResult { extension $AuthenticationInfoQueryResultExtension on AuthenticationInfoQueryResult { - AuthenticationInfoQueryResult copyWith( - {List? items, - int? totalRecordCount, - int? startIndex}) { + AuthenticationInfoQueryResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + }) { return AuthenticationInfoQueryResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ); } - AuthenticationInfoQueryResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex}) { + AuthenticationInfoQueryResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + }) { return AuthenticationInfoQueryResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @@ -18720,14 +19225,20 @@ class AuthenticationResult { (identical(other.user, user) || const DeepCollectionEquality().equals(other.user, user)) && (identical(other.sessionInfo, sessionInfo) || - const DeepCollectionEquality() - .equals(other.sessionInfo, sessionInfo)) && + const DeepCollectionEquality().equals( + other.sessionInfo, + sessionInfo, + )) && (identical(other.accessToken, accessToken) || - const DeepCollectionEquality() - .equals(other.accessToken, accessToken)) && + const DeepCollectionEquality().equals( + other.accessToken, + accessToken, + )) && (identical(other.serverId, serverId) || - const DeepCollectionEquality() - .equals(other.serverId, serverId))); + const DeepCollectionEquality().equals( + other.serverId, + serverId, + ))); } @override @@ -18743,30 +19254,32 @@ class AuthenticationResult { } extension $AuthenticationResultExtension on AuthenticationResult { - AuthenticationResult copyWith( - {UserDto? user, - SessionInfoDto? sessionInfo, - String? accessToken, - String? serverId}) { + AuthenticationResult copyWith({ + UserDto? user, + SessionInfoDto? sessionInfo, + String? accessToken, + String? serverId, + }) { return AuthenticationResult( - user: user ?? this.user, - sessionInfo: sessionInfo ?? this.sessionInfo, - accessToken: accessToken ?? this.accessToken, - serverId: serverId ?? this.serverId); + user: user ?? this.user, + sessionInfo: sessionInfo ?? this.sessionInfo, + accessToken: accessToken ?? this.accessToken, + serverId: serverId ?? this.serverId, + ); } - AuthenticationResult copyWithWrapped( - {Wrapped? user, - Wrapped? sessionInfo, - Wrapped? accessToken, - Wrapped? serverId}) { + AuthenticationResult copyWithWrapped({ + Wrapped? user, + Wrapped? sessionInfo, + Wrapped? accessToken, + Wrapped? serverId, + }) { return AuthenticationResult( - user: (user != null ? user.value : this.user), - sessionInfo: - (sessionInfo != null ? sessionInfo.value : this.sessionInfo), - accessToken: - (accessToken != null ? accessToken.value : this.accessToken), - serverId: (serverId != null ? serverId.value : this.serverId)); + user: (user != null ? user.value : this.user), + sessionInfo: (sessionInfo != null ? sessionInfo.value : this.sessionInfo), + accessToken: (accessToken != null ? accessToken.value : this.accessToken), + serverId: (serverId != null ? serverId.value : this.serverId), + ); } } @@ -18993,19 +19506,24 @@ class BaseItemDto { @JsonKey(name: 'PremiereDate', includeIfNull: false) final DateTime? premiereDate; @JsonKey( - name: 'ExternalUrls', includeIfNull: false, defaultValue: []) + name: 'ExternalUrls', + includeIfNull: false, + defaultValue: [], + ) final List? externalUrls; @JsonKey( - name: 'MediaSources', - includeIfNull: false, - defaultValue: []) + name: 'MediaSources', + includeIfNull: false, + defaultValue: [], + ) final List? mediaSources; @JsonKey(name: 'CriticRating', includeIfNull: false) final double? criticRating; @JsonKey( - name: 'ProductionLocations', - includeIfNull: false, - defaultValue: []) + name: 'ProductionLocations', + includeIfNull: false, + defaultValue: [], + ) final List? productionLocations; @JsonKey(name: 'Path', includeIfNull: false) final String? path; @@ -19055,7 +19573,10 @@ class BaseItemDto { @JsonKey(name: 'ParentIndexNumber', includeIfNull: false) final int? parentIndexNumber; @JsonKey( - name: 'RemoteTrailers', includeIfNull: false, defaultValue: []) + name: 'RemoteTrailers', + includeIfNull: false, + defaultValue: [], + ) final List? remoteTrailers; @JsonKey(name: 'ProviderIds', includeIfNull: false) final Map? providerIds; @@ -19073,22 +19594,32 @@ class BaseItemDto { ) final enums.BaseItemKind? type; @JsonKey( - name: 'People', includeIfNull: false, defaultValue: []) + name: 'People', + includeIfNull: false, + defaultValue: [], + ) final List? people; @JsonKey( - name: 'Studios', includeIfNull: false, defaultValue: []) + name: 'Studios', + includeIfNull: false, + defaultValue: [], + ) final List? studios; @JsonKey( - name: 'GenreItems', includeIfNull: false, defaultValue: []) + name: 'GenreItems', + includeIfNull: false, + defaultValue: [], + ) final List? genreItems; @JsonKey(name: 'ParentLogoItemId', includeIfNull: false) final String? parentLogoItemId; @JsonKey(name: 'ParentBackdropItemId', includeIfNull: false) final String? parentBackdropItemId; @JsonKey( - name: 'ParentBackdropImageTags', - includeIfNull: false, - defaultValue: []) + name: 'ParentBackdropImageTags', + includeIfNull: false, + defaultValue: [], + ) final List? parentBackdropImageTags; @JsonKey(name: 'LocalTrailerCount', includeIfNull: false) final int? localTrailerCount; @@ -19126,7 +19657,10 @@ class BaseItemDto { @JsonKey(name: 'Artists', includeIfNull: false, defaultValue: []) final List? artists; @JsonKey( - name: 'ArtistItems', includeIfNull: false, defaultValue: []) + name: 'ArtistItems', + includeIfNull: false, + defaultValue: [], + ) final List? artistItems; @JsonKey(name: 'Album', includeIfNull: false) final String? album; @@ -19148,14 +19682,18 @@ class BaseItemDto { @JsonKey(name: 'AlbumArtist', includeIfNull: false) final String? albumArtist; @JsonKey( - name: 'AlbumArtists', - includeIfNull: false, - defaultValue: []) + name: 'AlbumArtists', + includeIfNull: false, + defaultValue: [], + ) final List? albumArtists; @JsonKey(name: 'SeasonName', includeIfNull: false) final String? seasonName; @JsonKey( - name: 'MediaStreams', includeIfNull: false, defaultValue: []) + name: 'MediaStreams', + includeIfNull: false, + defaultValue: [], + ) final List? mediaStreams; @JsonKey( name: 'VideoType', @@ -19171,12 +19709,16 @@ class BaseItemDto { @JsonKey(name: 'ImageTags', includeIfNull: false) final Map? imageTags; @JsonKey( - name: 'BackdropImageTags', includeIfNull: false, defaultValue: []) + name: 'BackdropImageTags', + includeIfNull: false, + defaultValue: [], + ) final List? backdropImageTags; @JsonKey( - name: 'ScreenshotImageTags', - includeIfNull: false, - defaultValue: []) + name: 'ScreenshotImageTags', + includeIfNull: false, + defaultValue: [], + ) final List? screenshotImageTags; @JsonKey(name: 'ParentLogoImageTag', includeIfNull: false) final String? parentLogoImageTag; @@ -19199,7 +19741,10 @@ class BaseItemDto { @JsonKey(name: 'ParentPrimaryImageTag', includeIfNull: false) final String? parentPrimaryImageTag; @JsonKey( - name: 'Chapters', includeIfNull: false, defaultValue: []) + name: 'Chapters', + includeIfNull: false, + defaultValue: [], + ) final List? chapters; @JsonKey(name: 'Trickplay', includeIfNull: false) final Map? trickplay; @@ -19343,193 +19888,735 @@ class BaseItemDto { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.serverId, serverId) || - const DeepCollectionEquality() - .equals(other.serverId, serverId)) && + const DeepCollectionEquality().equals( + 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.sourceType, sourceType) || - const DeepCollectionEquality() - .equals(other.sourceType, sourceType)) && + const DeepCollectionEquality().equals( + other.sourceType, + sourceType, + )) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId)) && + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + )) && (identical(other.dateCreated, dateCreated) || - const DeepCollectionEquality() - .equals(other.dateCreated, dateCreated)) && + const DeepCollectionEquality().equals( + other.dateCreated, + dateCreated, + )) && (identical(other.dateLastMediaAdded, dateLastMediaAdded) || - const DeepCollectionEquality() - .equals(other.dateLastMediaAdded, dateLastMediaAdded)) && + const DeepCollectionEquality().equals( + other.dateLastMediaAdded, + dateLastMediaAdded, + )) && (identical(other.extraType, extraType) || - const DeepCollectionEquality() - .equals(other.extraType, extraType)) && + const DeepCollectionEquality().equals( + other.extraType, + extraType, + )) && (identical(other.airsBeforeSeasonNumber, airsBeforeSeasonNumber) || const DeepCollectionEquality().equals( - other.airsBeforeSeasonNumber, airsBeforeSeasonNumber)) && + other.airsBeforeSeasonNumber, + airsBeforeSeasonNumber, + )) && (identical(other.airsAfterSeasonNumber, airsAfterSeasonNumber) || const DeepCollectionEquality().equals( - other.airsAfterSeasonNumber, airsAfterSeasonNumber)) && - (identical(other.airsBeforeEpisodeNumber, airsBeforeEpisodeNumber) || + other.airsAfterSeasonNumber, + airsAfterSeasonNumber, + )) && + (identical( + other.airsBeforeEpisodeNumber, + airsBeforeEpisodeNumber, + ) || const DeepCollectionEquality().equals( - other.airsBeforeEpisodeNumber, airsBeforeEpisodeNumber)) && + other.airsBeforeEpisodeNumber, + airsBeforeEpisodeNumber, + )) && (identical(other.canDelete, canDelete) || - const DeepCollectionEquality() - .equals(other.canDelete, canDelete)) && + const DeepCollectionEquality().equals( + other.canDelete, + canDelete, + )) && (identical(other.canDownload, canDownload) || - const DeepCollectionEquality() - .equals(other.canDownload, canDownload)) && + const DeepCollectionEquality().equals( + other.canDownload, + canDownload, + )) && (identical(other.hasLyrics, hasLyrics) || - const DeepCollectionEquality() - .equals(other.hasLyrics, hasLyrics)) && + const DeepCollectionEquality().equals( + other.hasLyrics, + hasLyrics, + )) && (identical(other.hasSubtitles, hasSubtitles) || - const DeepCollectionEquality() - .equals(other.hasSubtitles, hasSubtitles)) && - (identical(other.preferredMetadataLanguage, preferredMetadataLanguage) || const DeepCollectionEquality().equals( - other.preferredMetadataLanguage, - preferredMetadataLanguage)) && - (identical(other.preferredMetadataCountryCode, preferredMetadataCountryCode) || + other.hasSubtitles, + hasSubtitles, + )) && + (identical( + other.preferredMetadataLanguage, + preferredMetadataLanguage, + ) || const DeepCollectionEquality().equals( - other.preferredMetadataCountryCode, - preferredMetadataCountryCode)) && - (identical(other.container, container) || const DeepCollectionEquality().equals(other.container, container)) && - (identical(other.sortName, sortName) || const DeepCollectionEquality().equals(other.sortName, sortName)) && - (identical(other.forcedSortName, forcedSortName) || const DeepCollectionEquality().equals(other.forcedSortName, forcedSortName)) && - (identical(other.video3DFormat, video3DFormat) || const DeepCollectionEquality().equals(other.video3DFormat, video3DFormat)) && - (identical(other.premiereDate, premiereDate) || const DeepCollectionEquality().equals(other.premiereDate, premiereDate)) && - (identical(other.externalUrls, externalUrls) || const DeepCollectionEquality().equals(other.externalUrls, externalUrls)) && - (identical(other.mediaSources, mediaSources) || const DeepCollectionEquality().equals(other.mediaSources, mediaSources)) && - (identical(other.criticRating, criticRating) || const DeepCollectionEquality().equals(other.criticRating, criticRating)) && - (identical(other.productionLocations, productionLocations) || const DeepCollectionEquality().equals(other.productionLocations, productionLocations)) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.enableMediaSourceDisplay, enableMediaSourceDisplay) || const DeepCollectionEquality().equals(other.enableMediaSourceDisplay, enableMediaSourceDisplay)) && - (identical(other.officialRating, officialRating) || const DeepCollectionEquality().equals(other.officialRating, officialRating)) && - (identical(other.customRating, customRating) || const DeepCollectionEquality().equals(other.customRating, customRating)) && - (identical(other.channelId, channelId) || const DeepCollectionEquality().equals(other.channelId, channelId)) && - (identical(other.channelName, channelName) || const DeepCollectionEquality().equals(other.channelName, channelName)) && - (identical(other.overview, overview) || const DeepCollectionEquality().equals(other.overview, overview)) && - (identical(other.taglines, taglines) || const DeepCollectionEquality().equals(other.taglines, taglines)) && - (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && - (identical(other.communityRating, communityRating) || const DeepCollectionEquality().equals(other.communityRating, communityRating)) && - (identical(other.cumulativeRunTimeTicks, cumulativeRunTimeTicks) || const DeepCollectionEquality().equals(other.cumulativeRunTimeTicks, cumulativeRunTimeTicks)) && - (identical(other.runTimeTicks, runTimeTicks) || const DeepCollectionEquality().equals(other.runTimeTicks, runTimeTicks)) && - (identical(other.playAccess, playAccess) || const DeepCollectionEquality().equals(other.playAccess, playAccess)) && - (identical(other.aspectRatio, aspectRatio) || const DeepCollectionEquality().equals(other.aspectRatio, aspectRatio)) && - (identical(other.productionYear, productionYear) || const DeepCollectionEquality().equals(other.productionYear, productionYear)) && - (identical(other.isPlaceHolder, isPlaceHolder) || const DeepCollectionEquality().equals(other.isPlaceHolder, isPlaceHolder)) && - (identical(other.number, number) || const DeepCollectionEquality().equals(other.number, number)) && - (identical(other.channelNumber, channelNumber) || const DeepCollectionEquality().equals(other.channelNumber, channelNumber)) && - (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals(other.indexNumber, indexNumber)) && - (identical(other.indexNumberEnd, indexNumberEnd) || const DeepCollectionEquality().equals(other.indexNumberEnd, indexNumberEnd)) && - (identical(other.parentIndexNumber, parentIndexNumber) || const DeepCollectionEquality().equals(other.parentIndexNumber, parentIndexNumber)) && - (identical(other.remoteTrailers, remoteTrailers) || const DeepCollectionEquality().equals(other.remoteTrailers, remoteTrailers)) && - (identical(other.providerIds, providerIds) || const DeepCollectionEquality().equals(other.providerIds, providerIds)) && - (identical(other.isHD, isHD) || const DeepCollectionEquality().equals(other.isHD, isHD)) && - (identical(other.isFolder, isFolder) || const DeepCollectionEquality().equals(other.isFolder, isFolder)) && - (identical(other.parentId, parentId) || const DeepCollectionEquality().equals(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.studios, studios) || const DeepCollectionEquality().equals(other.studios, studios)) && - (identical(other.genreItems, genreItems) || const DeepCollectionEquality().equals(other.genreItems, genreItems)) && - (identical(other.parentLogoItemId, parentLogoItemId) || const DeepCollectionEquality().equals(other.parentLogoItemId, parentLogoItemId)) && - (identical(other.parentBackdropItemId, parentBackdropItemId) || const DeepCollectionEquality().equals(other.parentBackdropItemId, parentBackdropItemId)) && - (identical(other.parentBackdropImageTags, parentBackdropImageTags) || const DeepCollectionEquality().equals(other.parentBackdropImageTags, parentBackdropImageTags)) && - (identical(other.localTrailerCount, localTrailerCount) || const DeepCollectionEquality().equals(other.localTrailerCount, localTrailerCount)) && - (identical(other.userData, userData) || const DeepCollectionEquality().equals(other.userData, userData)) && - (identical(other.recursiveItemCount, recursiveItemCount) || const DeepCollectionEquality().equals(other.recursiveItemCount, recursiveItemCount)) && - (identical(other.childCount, childCount) || const DeepCollectionEquality().equals(other.childCount, childCount)) && - (identical(other.seriesName, seriesName) || const DeepCollectionEquality().equals(other.seriesName, seriesName)) && - (identical(other.seriesId, seriesId) || const DeepCollectionEquality().equals(other.seriesId, seriesId)) && - (identical(other.seasonId, seasonId) || const DeepCollectionEquality().equals(other.seasonId, seasonId)) && - (identical(other.specialFeatureCount, specialFeatureCount) || const DeepCollectionEquality().equals(other.specialFeatureCount, specialFeatureCount)) && - (identical(other.displayPreferencesId, displayPreferencesId) || const DeepCollectionEquality().equals(other.displayPreferencesId, displayPreferencesId)) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.airTime, airTime) || const DeepCollectionEquality().equals(other.airTime, airTime)) && - (identical(other.airDays, airDays) || const DeepCollectionEquality().equals(other.airDays, airDays)) && - (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && - (identical(other.primaryImageAspectRatio, primaryImageAspectRatio) || const DeepCollectionEquality().equals(other.primaryImageAspectRatio, primaryImageAspectRatio)) && - (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists)) && - (identical(other.artistItems, artistItems) || const DeepCollectionEquality().equals(other.artistItems, artistItems)) && - (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && - (identical(other.collectionType, collectionType) || const DeepCollectionEquality().equals(other.collectionType, collectionType)) && - (identical(other.displayOrder, displayOrder) || const DeepCollectionEquality().equals(other.displayOrder, displayOrder)) && - (identical(other.albumId, albumId) || const DeepCollectionEquality().equals(other.albumId, albumId)) && - (identical(other.albumPrimaryImageTag, albumPrimaryImageTag) || const DeepCollectionEquality().equals(other.albumPrimaryImageTag, albumPrimaryImageTag)) && - (identical(other.seriesPrimaryImageTag, seriesPrimaryImageTag) || const DeepCollectionEquality().equals(other.seriesPrimaryImageTag, seriesPrimaryImageTag)) && - (identical(other.albumArtist, albumArtist) || const DeepCollectionEquality().equals(other.albumArtist, albumArtist)) && - (identical(other.albumArtists, albumArtists) || const DeepCollectionEquality().equals(other.albumArtists, albumArtists)) && - (identical(other.seasonName, seasonName) || const DeepCollectionEquality().equals(other.seasonName, seasonName)) && - (identical(other.mediaStreams, mediaStreams) || const DeepCollectionEquality().equals(other.mediaStreams, mediaStreams)) && - (identical(other.videoType, videoType) || const DeepCollectionEquality().equals(other.videoType, videoType)) && - (identical(other.partCount, partCount) || const DeepCollectionEquality().equals(other.partCount, partCount)) && - (identical(other.mediaSourceCount, mediaSourceCount) || const DeepCollectionEquality().equals(other.mediaSourceCount, mediaSourceCount)) && - (identical(other.imageTags, imageTags) || const DeepCollectionEquality().equals(other.imageTags, imageTags)) && - (identical(other.backdropImageTags, backdropImageTags) || const DeepCollectionEquality().equals(other.backdropImageTags, backdropImageTags)) && - (identical(other.screenshotImageTags, screenshotImageTags) || const DeepCollectionEquality().equals(other.screenshotImageTags, screenshotImageTags)) && - (identical(other.parentLogoImageTag, parentLogoImageTag) || const DeepCollectionEquality().equals(other.parentLogoImageTag, parentLogoImageTag)) && - (identical(other.parentArtItemId, parentArtItemId) || const DeepCollectionEquality().equals(other.parentArtItemId, parentArtItemId)) && - (identical(other.parentArtImageTag, parentArtImageTag) || const DeepCollectionEquality().equals(other.parentArtImageTag, parentArtImageTag)) && - (identical(other.seriesThumbImageTag, seriesThumbImageTag) || const DeepCollectionEquality().equals(other.seriesThumbImageTag, seriesThumbImageTag)) && - (identical(other.imageBlurHashes, imageBlurHashes) || const DeepCollectionEquality().equals(other.imageBlurHashes, imageBlurHashes)) && - (identical(other.seriesStudio, seriesStudio) || const DeepCollectionEquality().equals(other.seriesStudio, seriesStudio)) && - (identical(other.parentThumbItemId, parentThumbItemId) || const DeepCollectionEquality().equals(other.parentThumbItemId, parentThumbItemId)) && - (identical(other.parentThumbImageTag, parentThumbImageTag) || const DeepCollectionEquality().equals(other.parentThumbImageTag, parentThumbImageTag)) && - (identical(other.parentPrimaryImageItemId, parentPrimaryImageItemId) || const DeepCollectionEquality().equals(other.parentPrimaryImageItemId, parentPrimaryImageItemId)) && - (identical(other.parentPrimaryImageTag, parentPrimaryImageTag) || const DeepCollectionEquality().equals(other.parentPrimaryImageTag, parentPrimaryImageTag)) && - (identical(other.chapters, chapters) || const DeepCollectionEquality().equals(other.chapters, chapters)) && - (identical(other.trickplay, trickplay) || const DeepCollectionEquality().equals(other.trickplay, trickplay)) && - (identical(other.locationType, locationType) || const DeepCollectionEquality().equals(other.locationType, locationType)) && - (identical(other.isoType, isoType) || const DeepCollectionEquality().equals(other.isoType, isoType)) && - (identical(other.mediaType, mediaType) || const DeepCollectionEquality().equals(other.mediaType, mediaType)) && - (identical(other.endDate, endDate) || const DeepCollectionEquality().equals(other.endDate, endDate)) && - (identical(other.lockedFields, lockedFields) || const DeepCollectionEquality().equals(other.lockedFields, lockedFields)) && - (identical(other.trailerCount, trailerCount) || const DeepCollectionEquality().equals(other.trailerCount, trailerCount)) && - (identical(other.movieCount, movieCount) || const DeepCollectionEquality().equals(other.movieCount, movieCount)) && - (identical(other.seriesCount, seriesCount) || const DeepCollectionEquality().equals(other.seriesCount, seriesCount)) && - (identical(other.programCount, programCount) || const DeepCollectionEquality().equals(other.programCount, programCount)) && - (identical(other.episodeCount, episodeCount) || const DeepCollectionEquality().equals(other.episodeCount, episodeCount)) && - (identical(other.songCount, songCount) || const DeepCollectionEquality().equals(other.songCount, songCount)) && - (identical(other.albumCount, albumCount) || const DeepCollectionEquality().equals(other.albumCount, albumCount)) && - (identical(other.artistCount, artistCount) || const DeepCollectionEquality().equals(other.artistCount, artistCount)) && - (identical(other.musicVideoCount, musicVideoCount) || const DeepCollectionEquality().equals(other.musicVideoCount, musicVideoCount)) && - (identical(other.lockData, lockData) || const DeepCollectionEquality().equals(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.cameraMake, cameraMake) || const DeepCollectionEquality().equals(other.cameraMake, cameraMake)) && - (identical(other.cameraModel, cameraModel) || const DeepCollectionEquality().equals(other.cameraModel, cameraModel)) && - (identical(other.software, software) || const DeepCollectionEquality().equals(other.software, software)) && - (identical(other.exposureTime, exposureTime) || const DeepCollectionEquality().equals(other.exposureTime, exposureTime)) && - (identical(other.focalLength, focalLength) || const DeepCollectionEquality().equals(other.focalLength, focalLength)) && - (identical(other.imageOrientation, imageOrientation) || const DeepCollectionEquality().equals(other.imageOrientation, imageOrientation)) && - (identical(other.aperture, aperture) || const DeepCollectionEquality().equals(other.aperture, aperture)) && - (identical(other.shutterSpeed, shutterSpeed) || const DeepCollectionEquality().equals(other.shutterSpeed, shutterSpeed)) && - (identical(other.latitude, latitude) || const DeepCollectionEquality().equals(other.latitude, latitude)) && - (identical(other.longitude, longitude) || const DeepCollectionEquality().equals(other.longitude, longitude)) && - (identical(other.altitude, altitude) || const DeepCollectionEquality().equals(other.altitude, altitude)) && - (identical(other.isoSpeedRating, isoSpeedRating) || const DeepCollectionEquality().equals(other.isoSpeedRating, isoSpeedRating)) && - (identical(other.seriesTimerId, seriesTimerId) || const DeepCollectionEquality().equals(other.seriesTimerId, seriesTimerId)) && - (identical(other.programId, programId) || const DeepCollectionEquality().equals(other.programId, programId)) && - (identical(other.channelPrimaryImageTag, channelPrimaryImageTag) || const DeepCollectionEquality().equals(other.channelPrimaryImageTag, channelPrimaryImageTag)) && - (identical(other.startDate, startDate) || const DeepCollectionEquality().equals(other.startDate, startDate)) && - (identical(other.completionPercentage, completionPercentage) || const DeepCollectionEquality().equals(other.completionPercentage, completionPercentage)) && - (identical(other.isRepeat, isRepeat) || const DeepCollectionEquality().equals(other.isRepeat, isRepeat)) && - (identical(other.episodeTitle, episodeTitle) || const DeepCollectionEquality().equals(other.episodeTitle, episodeTitle)) && - (identical(other.channelType, channelType) || const DeepCollectionEquality().equals(other.channelType, channelType)) && - (identical(other.audio, audio) || const DeepCollectionEquality().equals(other.audio, audio)) && - (identical(other.isMovie, isMovie) || const DeepCollectionEquality().equals(other.isMovie, isMovie)) && - (identical(other.isSports, isSports) || const DeepCollectionEquality().equals(other.isSports, isSports)) && - (identical(other.isSeries, isSeries) || const DeepCollectionEquality().equals(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.isPremiere, isPremiere) || const DeepCollectionEquality().equals(other.isPremiere, isPremiere)) && - (identical(other.timerId, timerId) || const DeepCollectionEquality().equals(other.timerId, timerId)) && - (identical(other.normalizationGain, normalizationGain) || const DeepCollectionEquality().equals(other.normalizationGain, normalizationGain)) && - (identical(other.currentProgram, currentProgram) || const DeepCollectionEquality().equals(other.currentProgram, currentProgram))); + other.preferredMetadataLanguage, + preferredMetadataLanguage, + )) && + (identical( + other.preferredMetadataCountryCode, + preferredMetadataCountryCode, + ) || + const DeepCollectionEquality().equals( + other.preferredMetadataCountryCode, + preferredMetadataCountryCode, + )) && + (identical(other.container, container) || + const DeepCollectionEquality().equals( + other.container, + container, + )) && + (identical(other.sortName, sortName) || + const DeepCollectionEquality().equals( + other.sortName, + sortName, + )) && + (identical(other.forcedSortName, forcedSortName) || + const DeepCollectionEquality().equals( + other.forcedSortName, + forcedSortName, + )) && + (identical(other.video3DFormat, video3DFormat) || + const DeepCollectionEquality().equals( + other.video3DFormat, + video3DFormat, + )) && + (identical(other.premiereDate, premiereDate) || + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && + (identical(other.externalUrls, externalUrls) || + const DeepCollectionEquality().equals( + other.externalUrls, + externalUrls, + )) && + (identical(other.mediaSources, mediaSources) || + const DeepCollectionEquality().equals( + other.mediaSources, + mediaSources, + )) && + (identical(other.criticRating, criticRating) || + const DeepCollectionEquality().equals( + other.criticRating, + criticRating, + )) && + (identical(other.productionLocations, productionLocations) || + const DeepCollectionEquality().equals( + other.productionLocations, + productionLocations, + )) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && + (identical( + other.enableMediaSourceDisplay, + enableMediaSourceDisplay, + ) || + const DeepCollectionEquality().equals( + other.enableMediaSourceDisplay, + enableMediaSourceDisplay, + )) && + (identical(other.officialRating, officialRating) || + const DeepCollectionEquality().equals( + other.officialRating, + officialRating, + )) && + (identical(other.customRating, customRating) || + const DeepCollectionEquality().equals( + other.customRating, + customRating, + )) && + (identical(other.channelId, channelId) || + const DeepCollectionEquality().equals( + other.channelId, + channelId, + )) && + (identical(other.channelName, channelName) || + const DeepCollectionEquality().equals( + other.channelName, + channelName, + )) && + (identical(other.overview, overview) || + const DeepCollectionEquality().equals( + other.overview, + overview, + )) && + (identical(other.taglines, taglines) || + const DeepCollectionEquality().equals( + other.taglines, + taglines, + )) && + (identical(other.genres, genres) || + const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.communityRating, communityRating) || + const DeepCollectionEquality().equals( + other.communityRating, + communityRating, + )) && + (identical(other.cumulativeRunTimeTicks, cumulativeRunTimeTicks) || + const DeepCollectionEquality().equals( + other.cumulativeRunTimeTicks, + cumulativeRunTimeTicks, + )) && + (identical(other.runTimeTicks, runTimeTicks) || + const DeepCollectionEquality().equals( + other.runTimeTicks, + runTimeTicks, + )) && + (identical(other.playAccess, playAccess) || + const DeepCollectionEquality().equals( + other.playAccess, + playAccess, + )) && + (identical(other.aspectRatio, aspectRatio) || + const DeepCollectionEquality().equals( + other.aspectRatio, + aspectRatio, + )) && + (identical(other.productionYear, productionYear) || + const DeepCollectionEquality().equals( + other.productionYear, + productionYear, + )) && + (identical(other.isPlaceHolder, isPlaceHolder) || + const DeepCollectionEquality().equals( + other.isPlaceHolder, + isPlaceHolder, + )) && + (identical(other.number, number) || + const DeepCollectionEquality().equals(other.number, number)) && + (identical(other.channelNumber, channelNumber) || + const DeepCollectionEquality().equals( + other.channelNumber, + channelNumber, + )) && + (identical(other.indexNumber, indexNumber) || + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && + (identical(other.indexNumberEnd, indexNumberEnd) || + const DeepCollectionEquality().equals( + other.indexNumberEnd, + indexNumberEnd, + )) && + (identical(other.parentIndexNumber, parentIndexNumber) || + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && + (identical(other.remoteTrailers, remoteTrailers) || + const DeepCollectionEquality().equals( + other.remoteTrailers, + remoteTrailers, + )) && + (identical(other.providerIds, providerIds) || + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && + (identical(other.isHD, isHD) || + const DeepCollectionEquality().equals(other.isHD, isHD)) && + (identical(other.isFolder, isFolder) || + const DeepCollectionEquality().equals( + other.isFolder, + isFolder, + )) && + (identical(other.parentId, parentId) || + const DeepCollectionEquality().equals( + 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.studios, studios) || + const DeepCollectionEquality().equals( + other.studios, + studios, + )) && + (identical(other.genreItems, genreItems) || + const DeepCollectionEquality().equals( + other.genreItems, + genreItems, + )) && + (identical(other.parentLogoItemId, parentLogoItemId) || + const DeepCollectionEquality().equals( + other.parentLogoItemId, + parentLogoItemId, + )) && + (identical(other.parentBackdropItemId, parentBackdropItemId) || + const DeepCollectionEquality().equals( + other.parentBackdropItemId, + parentBackdropItemId, + )) && + (identical( + other.parentBackdropImageTags, + parentBackdropImageTags, + ) || + const DeepCollectionEquality().equals( + other.parentBackdropImageTags, + parentBackdropImageTags, + )) && + (identical(other.localTrailerCount, localTrailerCount) || + const DeepCollectionEquality().equals( + other.localTrailerCount, + localTrailerCount, + )) && + (identical(other.userData, userData) || + const DeepCollectionEquality().equals( + other.userData, + userData, + )) && + (identical(other.recursiveItemCount, recursiveItemCount) || + const DeepCollectionEquality().equals( + other.recursiveItemCount, + recursiveItemCount, + )) && + (identical(other.childCount, childCount) || + const DeepCollectionEquality().equals( + other.childCount, + childCount, + )) && + (identical(other.seriesName, seriesName) || + const DeepCollectionEquality().equals( + other.seriesName, + seriesName, + )) && + (identical(other.seriesId, seriesId) || + const DeepCollectionEquality().equals( + other.seriesId, + seriesId, + )) && + (identical(other.seasonId, seasonId) || + const DeepCollectionEquality().equals( + other.seasonId, + seasonId, + )) && + (identical(other.specialFeatureCount, specialFeatureCount) || + const DeepCollectionEquality().equals( + other.specialFeatureCount, + specialFeatureCount, + )) && + (identical(other.displayPreferencesId, displayPreferencesId) || + const DeepCollectionEquality().equals( + other.displayPreferencesId, + displayPreferencesId, + )) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.airTime, airTime) || + const DeepCollectionEquality().equals( + other.airTime, + airTime, + )) && + (identical(other.airDays, airDays) || + const DeepCollectionEquality().equals( + other.airDays, + airDays, + )) && + (identical(other.tags, tags) || + const DeepCollectionEquality().equals(other.tags, tags)) && + (identical( + other.primaryImageAspectRatio, + primaryImageAspectRatio, + ) || + const DeepCollectionEquality().equals( + other.primaryImageAspectRatio, + primaryImageAspectRatio, + )) && + (identical(other.artists, artists) || + const DeepCollectionEquality().equals( + other.artists, + artists, + )) && + (identical(other.artistItems, artistItems) || + const DeepCollectionEquality().equals( + other.artistItems, + artistItems, + )) && + (identical(other.album, album) || + const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.collectionType, collectionType) || + const DeepCollectionEquality().equals( + other.collectionType, + collectionType, + )) && + (identical(other.displayOrder, displayOrder) || + const DeepCollectionEquality().equals( + other.displayOrder, + displayOrder, + )) && + (identical(other.albumId, albumId) || + const DeepCollectionEquality().equals( + other.albumId, + albumId, + )) && + (identical(other.albumPrimaryImageTag, albumPrimaryImageTag) || + const DeepCollectionEquality().equals( + other.albumPrimaryImageTag, + albumPrimaryImageTag, + )) && + (identical(other.seriesPrimaryImageTag, seriesPrimaryImageTag) || + const DeepCollectionEquality().equals( + other.seriesPrimaryImageTag, + seriesPrimaryImageTag, + )) && + (identical(other.albumArtist, albumArtist) || + const DeepCollectionEquality().equals( + other.albumArtist, + albumArtist, + )) && + (identical(other.albumArtists, albumArtists) || + const DeepCollectionEquality().equals( + other.albumArtists, + albumArtists, + )) && + (identical(other.seasonName, seasonName) || + const DeepCollectionEquality().equals( + other.seasonName, + seasonName, + )) && + (identical(other.mediaStreams, mediaStreams) || + const DeepCollectionEquality().equals( + other.mediaStreams, + mediaStreams, + )) && + (identical(other.videoType, videoType) || + const DeepCollectionEquality().equals( + other.videoType, + videoType, + )) && + (identical(other.partCount, partCount) || + const DeepCollectionEquality().equals( + other.partCount, + partCount, + )) && + (identical(other.mediaSourceCount, mediaSourceCount) || + const DeepCollectionEquality().equals( + other.mediaSourceCount, + mediaSourceCount, + )) && + (identical(other.imageTags, imageTags) || + const DeepCollectionEquality().equals( + other.imageTags, + imageTags, + )) && + (identical(other.backdropImageTags, backdropImageTags) || + const DeepCollectionEquality().equals( + other.backdropImageTags, + backdropImageTags, + )) && + (identical(other.screenshotImageTags, screenshotImageTags) || + const DeepCollectionEquality().equals( + other.screenshotImageTags, + screenshotImageTags, + )) && + (identical(other.parentLogoImageTag, parentLogoImageTag) || + const DeepCollectionEquality().equals( + other.parentLogoImageTag, + parentLogoImageTag, + )) && + (identical(other.parentArtItemId, parentArtItemId) || + const DeepCollectionEquality().equals( + other.parentArtItemId, + parentArtItemId, + )) && + (identical(other.parentArtImageTag, parentArtImageTag) || + const DeepCollectionEquality().equals( + other.parentArtImageTag, + parentArtImageTag, + )) && + (identical(other.seriesThumbImageTag, seriesThumbImageTag) || + const DeepCollectionEquality().equals( + other.seriesThumbImageTag, + seriesThumbImageTag, + )) && + (identical(other.imageBlurHashes, imageBlurHashes) || + const DeepCollectionEquality().equals( + other.imageBlurHashes, + imageBlurHashes, + )) && + (identical(other.seriesStudio, seriesStudio) || + const DeepCollectionEquality().equals( + other.seriesStudio, + seriesStudio, + )) && + (identical(other.parentThumbItemId, parentThumbItemId) || + const DeepCollectionEquality().equals( + other.parentThumbItemId, + parentThumbItemId, + )) && + (identical(other.parentThumbImageTag, parentThumbImageTag) || + const DeepCollectionEquality().equals( + other.parentThumbImageTag, + parentThumbImageTag, + )) && + (identical( + other.parentPrimaryImageItemId, + parentPrimaryImageItemId, + ) || + const DeepCollectionEquality().equals( + other.parentPrimaryImageItemId, + parentPrimaryImageItemId, + )) && + (identical(other.parentPrimaryImageTag, parentPrimaryImageTag) || + const DeepCollectionEquality().equals( + other.parentPrimaryImageTag, + parentPrimaryImageTag, + )) && + (identical(other.chapters, chapters) || + const DeepCollectionEquality().equals( + other.chapters, + chapters, + )) && + (identical(other.trickplay, trickplay) || + const DeepCollectionEquality().equals( + other.trickplay, + trickplay, + )) && + (identical(other.locationType, locationType) || + const DeepCollectionEquality().equals( + other.locationType, + locationType, + )) && + (identical(other.isoType, isoType) || + const DeepCollectionEquality().equals( + other.isoType, + isoType, + )) && + (identical(other.mediaType, mediaType) || + const DeepCollectionEquality().equals( + other.mediaType, + mediaType, + )) && + (identical(other.endDate, endDate) || + const DeepCollectionEquality().equals( + other.endDate, + endDate, + )) && + (identical(other.lockedFields, lockedFields) || + const DeepCollectionEquality().equals( + other.lockedFields, + lockedFields, + )) && + (identical(other.trailerCount, trailerCount) || + const DeepCollectionEquality().equals( + other.trailerCount, + trailerCount, + )) && + (identical(other.movieCount, movieCount) || + const DeepCollectionEquality().equals( + other.movieCount, + movieCount, + )) && + (identical(other.seriesCount, seriesCount) || + const DeepCollectionEquality().equals( + other.seriesCount, + seriesCount, + )) && + (identical(other.programCount, programCount) || + const DeepCollectionEquality().equals( + other.programCount, + programCount, + )) && + (identical(other.episodeCount, episodeCount) || + const DeepCollectionEquality().equals( + other.episodeCount, + episodeCount, + )) && + (identical(other.songCount, songCount) || + const DeepCollectionEquality().equals( + other.songCount, + songCount, + )) && + (identical(other.albumCount, albumCount) || + const DeepCollectionEquality().equals( + other.albumCount, + albumCount, + )) && + (identical(other.artistCount, artistCount) || + const DeepCollectionEquality().equals( + other.artistCount, + artistCount, + )) && + (identical(other.musicVideoCount, musicVideoCount) || + const DeepCollectionEquality().equals( + other.musicVideoCount, + musicVideoCount, + )) && + (identical(other.lockData, lockData) || + const DeepCollectionEquality().equals( + 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.cameraMake, cameraMake) || + const DeepCollectionEquality().equals( + other.cameraMake, + cameraMake, + )) && + (identical(other.cameraModel, cameraModel) || + const DeepCollectionEquality().equals( + other.cameraModel, + cameraModel, + )) && + (identical(other.software, software) || + const DeepCollectionEquality().equals( + other.software, + software, + )) && + (identical(other.exposureTime, exposureTime) || + const DeepCollectionEquality().equals( + other.exposureTime, + exposureTime, + )) && + (identical(other.focalLength, focalLength) || + const DeepCollectionEquality().equals( + other.focalLength, + focalLength, + )) && + (identical(other.imageOrientation, imageOrientation) || + const DeepCollectionEquality().equals( + other.imageOrientation, + imageOrientation, + )) && + (identical(other.aperture, aperture) || + const DeepCollectionEquality().equals( + other.aperture, + aperture, + )) && + (identical(other.shutterSpeed, shutterSpeed) || + const DeepCollectionEquality().equals( + other.shutterSpeed, + shutterSpeed, + )) && + (identical(other.latitude, latitude) || + const DeepCollectionEquality().equals( + other.latitude, + latitude, + )) && + (identical(other.longitude, longitude) || + const DeepCollectionEquality().equals( + other.longitude, + longitude, + )) && + (identical(other.altitude, altitude) || + const DeepCollectionEquality().equals( + other.altitude, + altitude, + )) && + (identical(other.isoSpeedRating, isoSpeedRating) || + const DeepCollectionEquality().equals( + other.isoSpeedRating, + isoSpeedRating, + )) && + (identical(other.seriesTimerId, seriesTimerId) || + const DeepCollectionEquality().equals( + other.seriesTimerId, + seriesTimerId, + )) && + (identical(other.programId, programId) || + const DeepCollectionEquality().equals( + other.programId, + programId, + )) && + (identical(other.channelPrimaryImageTag, channelPrimaryImageTag) || + const DeepCollectionEquality().equals( + other.channelPrimaryImageTag, + channelPrimaryImageTag, + )) && + (identical(other.startDate, startDate) || + const DeepCollectionEquality().equals( + other.startDate, + startDate, + )) && + (identical(other.completionPercentage, completionPercentage) || + const DeepCollectionEquality().equals( + other.completionPercentage, + completionPercentage, + )) && + (identical(other.isRepeat, isRepeat) || + const DeepCollectionEquality().equals( + other.isRepeat, + isRepeat, + )) && + (identical(other.episodeTitle, episodeTitle) || + const DeepCollectionEquality().equals( + other.episodeTitle, + episodeTitle, + )) && + (identical(other.channelType, channelType) || + const DeepCollectionEquality().equals( + other.channelType, + channelType, + )) && + (identical(other.audio, audio) || + const DeepCollectionEquality().equals(other.audio, audio)) && + (identical(other.isMovie, isMovie) || + const DeepCollectionEquality().equals( + other.isMovie, + isMovie, + )) && + (identical(other.isSports, isSports) || + const DeepCollectionEquality().equals( + other.isSports, + isSports, + )) && + (identical(other.isSeries, isSeries) || + const DeepCollectionEquality().equals( + 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.isPremiere, isPremiere) || + const DeepCollectionEquality().equals( + other.isPremiere, + isPremiere, + )) && + (identical(other.timerId, timerId) || + const DeepCollectionEquality().equals( + other.timerId, + timerId, + )) && + (identical(other.normalizationGain, normalizationGain) || + const DeepCollectionEquality().equals( + other.normalizationGain, + normalizationGain, + )) && + (identical(other.currentProgram, currentProgram) || + const DeepCollectionEquality().equals( + other.currentProgram, + currentProgram, + ))); } @override @@ -19694,732 +20781,783 @@ class BaseItemDto { } extension $BaseItemDtoExtension on BaseItemDto { - BaseItemDto copyWith( - {String? name, - String? originalTitle, - String? serverId, - String? id, - String? etag, - String? sourceType, - String? playlistItemId, - DateTime? dateCreated, - DateTime? dateLastMediaAdded, - enums.ExtraType? extraType, - int? airsBeforeSeasonNumber, - int? airsAfterSeasonNumber, - int? airsBeforeEpisodeNumber, - bool? canDelete, - bool? canDownload, - bool? hasLyrics, - bool? hasSubtitles, - String? preferredMetadataLanguage, - String? preferredMetadataCountryCode, - String? container, - String? sortName, - String? forcedSortName, - enums.Video3DFormat? video3DFormat, - DateTime? premiereDate, - List? externalUrls, - List? mediaSources, - double? criticRating, - List? productionLocations, - String? path, - bool? enableMediaSourceDisplay, - String? officialRating, - String? customRating, - String? channelId, - String? channelName, - String? overview, - List? taglines, - List? genres, - double? communityRating, - int? cumulativeRunTimeTicks, - int? runTimeTicks, - enums.PlayAccess? playAccess, - String? aspectRatio, - int? productionYear, - bool? isPlaceHolder, - String? number, - String? channelNumber, - int? indexNumber, - int? indexNumberEnd, - int? parentIndexNumber, - List? remoteTrailers, - Map? providerIds, - bool? isHD, - bool? isFolder, - String? parentId, - enums.BaseItemKind? type, - List? people, - List? studios, - List? genreItems, - String? parentLogoItemId, - String? parentBackdropItemId, - List? parentBackdropImageTags, - int? localTrailerCount, - UserItemDataDto? userData, - int? recursiveItemCount, - int? childCount, - String? seriesName, - String? seriesId, - String? seasonId, - int? specialFeatureCount, - String? displayPreferencesId, - String? status, - String? airTime, - List? airDays, - List? tags, - double? primaryImageAspectRatio, - List? artists, - List? artistItems, - String? album, - enums.CollectionType? collectionType, - String? displayOrder, - String? albumId, - String? albumPrimaryImageTag, - String? seriesPrimaryImageTag, - String? albumArtist, - List? albumArtists, - String? seasonName, - List? mediaStreams, - enums.VideoType? videoType, - int? partCount, - int? mediaSourceCount, - Map? imageTags, - List? backdropImageTags, - List? screenshotImageTags, - String? parentLogoImageTag, - String? parentArtItemId, - String? parentArtImageTag, - String? seriesThumbImageTag, - BaseItemDto$ImageBlurHashes? imageBlurHashes, - String? seriesStudio, - String? parentThumbItemId, - String? parentThumbImageTag, - String? parentPrimaryImageItemId, - String? parentPrimaryImageTag, - List? chapters, - Map? trickplay, - enums.LocationType? locationType, - enums.IsoType? isoType, - enums.MediaType? mediaType, - DateTime? endDate, - List? lockedFields, - int? trailerCount, - int? movieCount, - int? seriesCount, - int? programCount, - int? episodeCount, - int? songCount, - int? albumCount, - int? artistCount, - int? musicVideoCount, - bool? lockData, - int? width, - int? height, - String? cameraMake, - String? cameraModel, - String? software, - double? exposureTime, - double? focalLength, - enums.ImageOrientation? imageOrientation, - double? aperture, - double? shutterSpeed, - double? latitude, - double? longitude, - double? altitude, - int? isoSpeedRating, - String? seriesTimerId, - String? programId, - String? channelPrimaryImageTag, - DateTime? startDate, - double? completionPercentage, - bool? isRepeat, - String? episodeTitle, - enums.ChannelType? channelType, - enums.ProgramAudio? audio, - bool? isMovie, - bool? isSports, - bool? isSeries, - bool? isLive, - bool? isNews, - bool? isKids, - bool? isPremiere, - String? timerId, - double? normalizationGain, - BaseItemDto? currentProgram}) { + BaseItemDto copyWith({ + String? name, + String? originalTitle, + String? serverId, + String? id, + String? etag, + String? sourceType, + String? playlistItemId, + DateTime? dateCreated, + DateTime? dateLastMediaAdded, + enums.ExtraType? extraType, + int? airsBeforeSeasonNumber, + int? airsAfterSeasonNumber, + int? airsBeforeEpisodeNumber, + bool? canDelete, + bool? canDownload, + bool? hasLyrics, + bool? hasSubtitles, + String? preferredMetadataLanguage, + String? preferredMetadataCountryCode, + String? container, + String? sortName, + String? forcedSortName, + enums.Video3DFormat? video3DFormat, + DateTime? premiereDate, + List? externalUrls, + List? mediaSources, + double? criticRating, + List? productionLocations, + String? path, + bool? enableMediaSourceDisplay, + String? officialRating, + String? customRating, + String? channelId, + String? channelName, + String? overview, + List? taglines, + List? genres, + double? communityRating, + int? cumulativeRunTimeTicks, + int? runTimeTicks, + enums.PlayAccess? playAccess, + String? aspectRatio, + int? productionYear, + bool? isPlaceHolder, + String? number, + String? channelNumber, + int? indexNumber, + int? indexNumberEnd, + int? parentIndexNumber, + List? remoteTrailers, + Map? providerIds, + bool? isHD, + bool? isFolder, + String? parentId, + enums.BaseItemKind? type, + List? people, + List? studios, + List? genreItems, + String? parentLogoItemId, + String? parentBackdropItemId, + List? parentBackdropImageTags, + int? localTrailerCount, + UserItemDataDto? userData, + int? recursiveItemCount, + int? childCount, + String? seriesName, + String? seriesId, + String? seasonId, + int? specialFeatureCount, + String? displayPreferencesId, + String? status, + String? airTime, + List? airDays, + List? tags, + double? primaryImageAspectRatio, + List? artists, + List? artistItems, + String? album, + enums.CollectionType? collectionType, + String? displayOrder, + String? albumId, + String? albumPrimaryImageTag, + String? seriesPrimaryImageTag, + String? albumArtist, + List? albumArtists, + String? seasonName, + List? mediaStreams, + enums.VideoType? videoType, + int? partCount, + int? mediaSourceCount, + Map? imageTags, + List? backdropImageTags, + List? screenshotImageTags, + String? parentLogoImageTag, + String? parentArtItemId, + String? parentArtImageTag, + String? seriesThumbImageTag, + BaseItemDto$ImageBlurHashes? imageBlurHashes, + String? seriesStudio, + String? parentThumbItemId, + String? parentThumbImageTag, + String? parentPrimaryImageItemId, + String? parentPrimaryImageTag, + List? chapters, + Map? trickplay, + enums.LocationType? locationType, + enums.IsoType? isoType, + enums.MediaType? mediaType, + DateTime? endDate, + List? lockedFields, + int? trailerCount, + int? movieCount, + int? seriesCount, + int? programCount, + int? episodeCount, + int? songCount, + int? albumCount, + int? artistCount, + int? musicVideoCount, + bool? lockData, + int? width, + int? height, + String? cameraMake, + String? cameraModel, + String? software, + double? exposureTime, + double? focalLength, + enums.ImageOrientation? imageOrientation, + double? aperture, + double? shutterSpeed, + double? latitude, + double? longitude, + double? altitude, + int? isoSpeedRating, + String? seriesTimerId, + String? programId, + String? channelPrimaryImageTag, + DateTime? startDate, + double? completionPercentage, + bool? isRepeat, + String? episodeTitle, + enums.ChannelType? channelType, + enums.ProgramAudio? audio, + bool? isMovie, + bool? isSports, + bool? isSeries, + bool? isLive, + bool? isNews, + bool? isKids, + bool? isPremiere, + String? timerId, + double? normalizationGain, + BaseItemDto? currentProgram, + }) { return BaseItemDto( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - serverId: serverId ?? this.serverId, - id: id ?? this.id, - etag: etag ?? this.etag, - sourceType: sourceType ?? this.sourceType, - playlistItemId: playlistItemId ?? this.playlistItemId, - dateCreated: dateCreated ?? this.dateCreated, - dateLastMediaAdded: dateLastMediaAdded ?? this.dateLastMediaAdded, - extraType: extraType ?? this.extraType, - 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, - container: container ?? this.container, - sortName: sortName ?? this.sortName, - forcedSortName: forcedSortName ?? this.forcedSortName, - video3DFormat: video3DFormat ?? this.video3DFormat, - premiereDate: premiereDate ?? this.premiereDate, - externalUrls: externalUrls ?? this.externalUrls, - mediaSources: mediaSources ?? this.mediaSources, - criticRating: criticRating ?? this.criticRating, - productionLocations: productionLocations ?? this.productionLocations, - path: path ?? this.path, - enableMediaSourceDisplay: - enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, - officialRating: officialRating ?? this.officialRating, - customRating: customRating ?? this.customRating, - channelId: channelId ?? this.channelId, - channelName: channelName ?? this.channelName, - overview: overview ?? this.overview, - taglines: taglines ?? this.taglines, - genres: genres ?? this.genres, - communityRating: communityRating ?? this.communityRating, - cumulativeRunTimeTicks: - cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, - runTimeTicks: runTimeTicks ?? this.runTimeTicks, - playAccess: playAccess ?? this.playAccess, - aspectRatio: aspectRatio ?? this.aspectRatio, - productionYear: productionYear ?? this.productionYear, - isPlaceHolder: isPlaceHolder ?? this.isPlaceHolder, - number: number ?? this.number, - channelNumber: channelNumber ?? this.channelNumber, - indexNumber: indexNumber ?? this.indexNumber, - indexNumberEnd: indexNumberEnd ?? this.indexNumberEnd, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - remoteTrailers: remoteTrailers ?? this.remoteTrailers, - providerIds: providerIds ?? this.providerIds, - isHD: isHD ?? this.isHD, - isFolder: isFolder ?? this.isFolder, - parentId: parentId ?? this.parentId, - type: type ?? this.type, - people: people ?? this.people, - studios: studios ?? this.studios, - genreItems: genreItems ?? this.genreItems, - parentLogoItemId: parentLogoItemId ?? this.parentLogoItemId, - parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, - localTrailerCount: localTrailerCount ?? this.localTrailerCount, - userData: userData ?? this.userData, - recursiveItemCount: recursiveItemCount ?? this.recursiveItemCount, - childCount: childCount ?? this.childCount, - seriesName: seriesName ?? this.seriesName, - seriesId: seriesId ?? this.seriesId, - seasonId: seasonId ?? this.seasonId, - specialFeatureCount: specialFeatureCount ?? this.specialFeatureCount, - displayPreferencesId: displayPreferencesId ?? this.displayPreferencesId, - status: status ?? this.status, - airTime: airTime ?? this.airTime, - airDays: airDays ?? this.airDays, - tags: tags ?? this.tags, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio, - artists: artists ?? this.artists, - artistItems: artistItems ?? this.artistItems, - album: album ?? this.album, - collectionType: collectionType ?? this.collectionType, - displayOrder: displayOrder ?? this.displayOrder, - albumId: albumId ?? this.albumId, - albumPrimaryImageTag: albumPrimaryImageTag ?? this.albumPrimaryImageTag, - seriesPrimaryImageTag: - seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, - albumArtist: albumArtist ?? this.albumArtist, - albumArtists: albumArtists ?? this.albumArtists, - seasonName: seasonName ?? this.seasonName, - mediaStreams: mediaStreams ?? this.mediaStreams, - videoType: videoType ?? this.videoType, - partCount: partCount ?? this.partCount, - mediaSourceCount: mediaSourceCount ?? this.mediaSourceCount, - imageTags: imageTags ?? this.imageTags, - backdropImageTags: backdropImageTags ?? this.backdropImageTags, - screenshotImageTags: screenshotImageTags ?? this.screenshotImageTags, - parentLogoImageTag: parentLogoImageTag ?? this.parentLogoImageTag, - parentArtItemId: parentArtItemId ?? this.parentArtItemId, - parentArtImageTag: parentArtImageTag ?? this.parentArtImageTag, - seriesThumbImageTag: seriesThumbImageTag ?? this.seriesThumbImageTag, - imageBlurHashes: imageBlurHashes ?? this.imageBlurHashes, - seriesStudio: seriesStudio ?? this.seriesStudio, - parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, - parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: - parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: - parentPrimaryImageTag ?? this.parentPrimaryImageTag, - chapters: chapters ?? this.chapters, - trickplay: trickplay ?? this.trickplay, - locationType: locationType ?? this.locationType, - isoType: isoType ?? this.isoType, - mediaType: mediaType ?? this.mediaType, - endDate: endDate ?? this.endDate, - lockedFields: lockedFields ?? this.lockedFields, - trailerCount: trailerCount ?? this.trailerCount, - movieCount: movieCount ?? this.movieCount, - seriesCount: seriesCount ?? this.seriesCount, - programCount: programCount ?? this.programCount, - episodeCount: episodeCount ?? this.episodeCount, - songCount: songCount ?? this.songCount, - albumCount: albumCount ?? this.albumCount, - artistCount: artistCount ?? this.artistCount, - musicVideoCount: musicVideoCount ?? this.musicVideoCount, - lockData: lockData ?? this.lockData, - width: width ?? this.width, - height: height ?? this.height, - cameraMake: cameraMake ?? this.cameraMake, - cameraModel: cameraModel ?? this.cameraModel, - software: software ?? this.software, - exposureTime: exposureTime ?? this.exposureTime, - focalLength: focalLength ?? this.focalLength, - imageOrientation: imageOrientation ?? this.imageOrientation, - aperture: aperture ?? this.aperture, - shutterSpeed: shutterSpeed ?? this.shutterSpeed, - latitude: latitude ?? this.latitude, - longitude: longitude ?? this.longitude, - altitude: altitude ?? this.altitude, - isoSpeedRating: isoSpeedRating ?? this.isoSpeedRating, - seriesTimerId: seriesTimerId ?? this.seriesTimerId, - programId: programId ?? this.programId, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, - startDate: startDate ?? this.startDate, - completionPercentage: completionPercentage ?? this.completionPercentage, - isRepeat: isRepeat ?? this.isRepeat, - episodeTitle: episodeTitle ?? this.episodeTitle, - channelType: channelType ?? this.channelType, - audio: audio ?? this.audio, - isMovie: isMovie ?? this.isMovie, - isSports: isSports ?? this.isSports, - isSeries: isSeries ?? this.isSeries, - isLive: isLive ?? this.isLive, - isNews: isNews ?? this.isNews, - isKids: isKids ?? this.isKids, - isPremiere: isPremiere ?? this.isPremiere, - timerId: timerId ?? this.timerId, - normalizationGain: normalizationGain ?? this.normalizationGain, - currentProgram: currentProgram ?? this.currentProgram); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + serverId: serverId ?? this.serverId, + id: id ?? this.id, + etag: etag ?? this.etag, + sourceType: sourceType ?? this.sourceType, + playlistItemId: playlistItemId ?? this.playlistItemId, + dateCreated: dateCreated ?? this.dateCreated, + dateLastMediaAdded: dateLastMediaAdded ?? this.dateLastMediaAdded, + extraType: extraType ?? this.extraType, + 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, + container: container ?? this.container, + sortName: sortName ?? this.sortName, + forcedSortName: forcedSortName ?? this.forcedSortName, + video3DFormat: video3DFormat ?? this.video3DFormat, + premiereDate: premiereDate ?? this.premiereDate, + externalUrls: externalUrls ?? this.externalUrls, + mediaSources: mediaSources ?? this.mediaSources, + criticRating: criticRating ?? this.criticRating, + productionLocations: productionLocations ?? this.productionLocations, + path: path ?? this.path, + enableMediaSourceDisplay: + enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, + officialRating: officialRating ?? this.officialRating, + customRating: customRating ?? this.customRating, + channelId: channelId ?? this.channelId, + channelName: channelName ?? this.channelName, + overview: overview ?? this.overview, + taglines: taglines ?? this.taglines, + genres: genres ?? this.genres, + communityRating: communityRating ?? this.communityRating, + cumulativeRunTimeTicks: + cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, + runTimeTicks: runTimeTicks ?? this.runTimeTicks, + playAccess: playAccess ?? this.playAccess, + aspectRatio: aspectRatio ?? this.aspectRatio, + productionYear: productionYear ?? this.productionYear, + isPlaceHolder: isPlaceHolder ?? this.isPlaceHolder, + number: number ?? this.number, + channelNumber: channelNumber ?? this.channelNumber, + indexNumber: indexNumber ?? this.indexNumber, + indexNumberEnd: indexNumberEnd ?? this.indexNumberEnd, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + remoteTrailers: remoteTrailers ?? this.remoteTrailers, + providerIds: providerIds ?? this.providerIds, + isHD: isHD ?? this.isHD, + isFolder: isFolder ?? this.isFolder, + parentId: parentId ?? this.parentId, + type: type ?? this.type, + people: people ?? this.people, + studios: studios ?? this.studios, + genreItems: genreItems ?? this.genreItems, + parentLogoItemId: parentLogoItemId ?? this.parentLogoItemId, + parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, + parentBackdropImageTags: + parentBackdropImageTags ?? this.parentBackdropImageTags, + localTrailerCount: localTrailerCount ?? this.localTrailerCount, + userData: userData ?? this.userData, + recursiveItemCount: recursiveItemCount ?? this.recursiveItemCount, + childCount: childCount ?? this.childCount, + seriesName: seriesName ?? this.seriesName, + seriesId: seriesId ?? this.seriesId, + seasonId: seasonId ?? this.seasonId, + specialFeatureCount: specialFeatureCount ?? this.specialFeatureCount, + displayPreferencesId: displayPreferencesId ?? this.displayPreferencesId, + status: status ?? this.status, + airTime: airTime ?? this.airTime, + airDays: airDays ?? this.airDays, + tags: tags ?? this.tags, + primaryImageAspectRatio: + primaryImageAspectRatio ?? this.primaryImageAspectRatio, + artists: artists ?? this.artists, + artistItems: artistItems ?? this.artistItems, + album: album ?? this.album, + collectionType: collectionType ?? this.collectionType, + displayOrder: displayOrder ?? this.displayOrder, + albumId: albumId ?? this.albumId, + albumPrimaryImageTag: albumPrimaryImageTag ?? this.albumPrimaryImageTag, + seriesPrimaryImageTag: + seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, + albumArtist: albumArtist ?? this.albumArtist, + albumArtists: albumArtists ?? this.albumArtists, + seasonName: seasonName ?? this.seasonName, + mediaStreams: mediaStreams ?? this.mediaStreams, + videoType: videoType ?? this.videoType, + partCount: partCount ?? this.partCount, + mediaSourceCount: mediaSourceCount ?? this.mediaSourceCount, + imageTags: imageTags ?? this.imageTags, + backdropImageTags: backdropImageTags ?? this.backdropImageTags, + screenshotImageTags: screenshotImageTags ?? this.screenshotImageTags, + parentLogoImageTag: parentLogoImageTag ?? this.parentLogoImageTag, + parentArtItemId: parentArtItemId ?? this.parentArtItemId, + parentArtImageTag: parentArtImageTag ?? this.parentArtImageTag, + seriesThumbImageTag: seriesThumbImageTag ?? this.seriesThumbImageTag, + imageBlurHashes: imageBlurHashes ?? this.imageBlurHashes, + seriesStudio: seriesStudio ?? this.seriesStudio, + parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, + parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, + parentPrimaryImageItemId: + parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: + parentPrimaryImageTag ?? this.parentPrimaryImageTag, + chapters: chapters ?? this.chapters, + trickplay: trickplay ?? this.trickplay, + locationType: locationType ?? this.locationType, + isoType: isoType ?? this.isoType, + mediaType: mediaType ?? this.mediaType, + endDate: endDate ?? this.endDate, + lockedFields: lockedFields ?? this.lockedFields, + trailerCount: trailerCount ?? this.trailerCount, + movieCount: movieCount ?? this.movieCount, + seriesCount: seriesCount ?? this.seriesCount, + programCount: programCount ?? this.programCount, + episodeCount: episodeCount ?? this.episodeCount, + songCount: songCount ?? this.songCount, + albumCount: albumCount ?? this.albumCount, + artistCount: artistCount ?? this.artistCount, + musicVideoCount: musicVideoCount ?? this.musicVideoCount, + lockData: lockData ?? this.lockData, + width: width ?? this.width, + height: height ?? this.height, + cameraMake: cameraMake ?? this.cameraMake, + cameraModel: cameraModel ?? this.cameraModel, + software: software ?? this.software, + exposureTime: exposureTime ?? this.exposureTime, + focalLength: focalLength ?? this.focalLength, + imageOrientation: imageOrientation ?? this.imageOrientation, + aperture: aperture ?? this.aperture, + shutterSpeed: shutterSpeed ?? this.shutterSpeed, + latitude: latitude ?? this.latitude, + longitude: longitude ?? this.longitude, + altitude: altitude ?? this.altitude, + isoSpeedRating: isoSpeedRating ?? this.isoSpeedRating, + seriesTimerId: seriesTimerId ?? this.seriesTimerId, + programId: programId ?? this.programId, + channelPrimaryImageTag: + channelPrimaryImageTag ?? this.channelPrimaryImageTag, + startDate: startDate ?? this.startDate, + completionPercentage: completionPercentage ?? this.completionPercentage, + isRepeat: isRepeat ?? this.isRepeat, + episodeTitle: episodeTitle ?? this.episodeTitle, + channelType: channelType ?? this.channelType, + audio: audio ?? this.audio, + isMovie: isMovie ?? this.isMovie, + isSports: isSports ?? this.isSports, + isSeries: isSeries ?? this.isSeries, + isLive: isLive ?? this.isLive, + isNews: isNews ?? this.isNews, + isKids: isKids ?? this.isKids, + isPremiere: isPremiere ?? this.isPremiere, + timerId: timerId ?? this.timerId, + normalizationGain: normalizationGain ?? this.normalizationGain, + currentProgram: currentProgram ?? this.currentProgram, + ); } - BaseItemDto copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? serverId, - Wrapped? id, - Wrapped? etag, - Wrapped? sourceType, - Wrapped? playlistItemId, - Wrapped? dateCreated, - Wrapped? dateLastMediaAdded, - Wrapped? extraType, - Wrapped? airsBeforeSeasonNumber, - Wrapped? airsAfterSeasonNumber, - Wrapped? airsBeforeEpisodeNumber, - Wrapped? canDelete, - Wrapped? canDownload, - Wrapped? hasLyrics, - Wrapped? hasSubtitles, - Wrapped? preferredMetadataLanguage, - Wrapped? preferredMetadataCountryCode, - Wrapped? container, - Wrapped? sortName, - Wrapped? forcedSortName, - Wrapped? video3DFormat, - Wrapped? premiereDate, - Wrapped?>? externalUrls, - Wrapped?>? mediaSources, - Wrapped? criticRating, - Wrapped?>? productionLocations, - Wrapped? path, - Wrapped? enableMediaSourceDisplay, - Wrapped? officialRating, - Wrapped? customRating, - Wrapped? channelId, - Wrapped? channelName, - Wrapped? overview, - Wrapped?>? taglines, - Wrapped?>? genres, - Wrapped? communityRating, - Wrapped? cumulativeRunTimeTicks, - Wrapped? runTimeTicks, - Wrapped? playAccess, - Wrapped? aspectRatio, - Wrapped? productionYear, - Wrapped? isPlaceHolder, - Wrapped? number, - Wrapped? channelNumber, - Wrapped? indexNumber, - Wrapped? indexNumberEnd, - Wrapped? parentIndexNumber, - Wrapped?>? remoteTrailers, - Wrapped?>? providerIds, - Wrapped? isHD, - Wrapped? isFolder, - Wrapped? parentId, - Wrapped? type, - Wrapped?>? people, - Wrapped?>? studios, - Wrapped?>? genreItems, - Wrapped? parentLogoItemId, - Wrapped? parentBackdropItemId, - Wrapped?>? parentBackdropImageTags, - Wrapped? localTrailerCount, - Wrapped? userData, - Wrapped? recursiveItemCount, - Wrapped? childCount, - Wrapped? seriesName, - Wrapped? seriesId, - Wrapped? seasonId, - Wrapped? specialFeatureCount, - Wrapped? displayPreferencesId, - Wrapped? status, - Wrapped? airTime, - Wrapped?>? airDays, - Wrapped?>? tags, - Wrapped? primaryImageAspectRatio, - Wrapped?>? artists, - Wrapped?>? artistItems, - Wrapped? album, - Wrapped? collectionType, - Wrapped? displayOrder, - Wrapped? albumId, - Wrapped? albumPrimaryImageTag, - Wrapped? seriesPrimaryImageTag, - Wrapped? albumArtist, - Wrapped?>? albumArtists, - Wrapped? seasonName, - Wrapped?>? mediaStreams, - Wrapped? videoType, - Wrapped? partCount, - Wrapped? mediaSourceCount, - Wrapped?>? imageTags, - Wrapped?>? backdropImageTags, - Wrapped?>? screenshotImageTags, - Wrapped? parentLogoImageTag, - Wrapped? parentArtItemId, - Wrapped? parentArtImageTag, - Wrapped? seriesThumbImageTag, - Wrapped? imageBlurHashes, - Wrapped? seriesStudio, - Wrapped? parentThumbItemId, - Wrapped? parentThumbImageTag, - Wrapped? parentPrimaryImageItemId, - Wrapped? parentPrimaryImageTag, - Wrapped?>? chapters, - Wrapped?>? trickplay, - Wrapped? locationType, - Wrapped? isoType, - Wrapped? mediaType, - Wrapped? endDate, - Wrapped?>? lockedFields, - Wrapped? trailerCount, - Wrapped? movieCount, - Wrapped? seriesCount, - Wrapped? programCount, - Wrapped? episodeCount, - Wrapped? songCount, - Wrapped? albumCount, - Wrapped? artistCount, - Wrapped? musicVideoCount, - Wrapped? lockData, - Wrapped? width, - Wrapped? height, - Wrapped? cameraMake, - Wrapped? cameraModel, - Wrapped? software, - Wrapped? exposureTime, - Wrapped? focalLength, - Wrapped? imageOrientation, - Wrapped? aperture, - Wrapped? shutterSpeed, - Wrapped? latitude, - Wrapped? longitude, - Wrapped? altitude, - Wrapped? isoSpeedRating, - Wrapped? seriesTimerId, - Wrapped? programId, - Wrapped? channelPrimaryImageTag, - Wrapped? startDate, - Wrapped? completionPercentage, - Wrapped? isRepeat, - Wrapped? episodeTitle, - Wrapped? channelType, - Wrapped? audio, - Wrapped? isMovie, - Wrapped? isSports, - Wrapped? isSeries, - Wrapped? isLive, - Wrapped? isNews, - Wrapped? isKids, - Wrapped? isPremiere, - Wrapped? timerId, - Wrapped? normalizationGain, - Wrapped? currentProgram}) { + BaseItemDto copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? serverId, + Wrapped? id, + Wrapped? etag, + Wrapped? sourceType, + Wrapped? playlistItemId, + Wrapped? dateCreated, + Wrapped? dateLastMediaAdded, + Wrapped? extraType, + Wrapped? airsBeforeSeasonNumber, + Wrapped? airsAfterSeasonNumber, + Wrapped? airsBeforeEpisodeNumber, + Wrapped? canDelete, + Wrapped? canDownload, + Wrapped? hasLyrics, + Wrapped? hasSubtitles, + Wrapped? preferredMetadataLanguage, + Wrapped? preferredMetadataCountryCode, + Wrapped? container, + Wrapped? sortName, + Wrapped? forcedSortName, + Wrapped? video3DFormat, + Wrapped? premiereDate, + Wrapped?>? externalUrls, + Wrapped?>? mediaSources, + Wrapped? criticRating, + Wrapped?>? productionLocations, + Wrapped? path, + Wrapped? enableMediaSourceDisplay, + Wrapped? officialRating, + Wrapped? customRating, + Wrapped? channelId, + Wrapped? channelName, + Wrapped? overview, + Wrapped?>? taglines, + Wrapped?>? genres, + Wrapped? communityRating, + Wrapped? cumulativeRunTimeTicks, + Wrapped? runTimeTicks, + Wrapped? playAccess, + Wrapped? aspectRatio, + Wrapped? productionYear, + Wrapped? isPlaceHolder, + Wrapped? number, + Wrapped? channelNumber, + Wrapped? indexNumber, + Wrapped? indexNumberEnd, + Wrapped? parentIndexNumber, + Wrapped?>? remoteTrailers, + Wrapped?>? providerIds, + Wrapped? isHD, + Wrapped? isFolder, + Wrapped? parentId, + Wrapped? type, + Wrapped?>? people, + Wrapped?>? studios, + Wrapped?>? genreItems, + Wrapped? parentLogoItemId, + Wrapped? parentBackdropItemId, + Wrapped?>? parentBackdropImageTags, + Wrapped? localTrailerCount, + Wrapped? userData, + Wrapped? recursiveItemCount, + Wrapped? childCount, + Wrapped? seriesName, + Wrapped? seriesId, + Wrapped? seasonId, + Wrapped? specialFeatureCount, + Wrapped? displayPreferencesId, + Wrapped? status, + Wrapped? airTime, + Wrapped?>? airDays, + Wrapped?>? tags, + Wrapped? primaryImageAspectRatio, + Wrapped?>? artists, + Wrapped?>? artistItems, + Wrapped? album, + Wrapped? collectionType, + Wrapped? displayOrder, + Wrapped? albumId, + Wrapped? albumPrimaryImageTag, + Wrapped? seriesPrimaryImageTag, + Wrapped? albumArtist, + Wrapped?>? albumArtists, + Wrapped? seasonName, + Wrapped?>? mediaStreams, + Wrapped? videoType, + Wrapped? partCount, + Wrapped? mediaSourceCount, + Wrapped?>? imageTags, + Wrapped?>? backdropImageTags, + Wrapped?>? screenshotImageTags, + Wrapped? parentLogoImageTag, + Wrapped? parentArtItemId, + Wrapped? parentArtImageTag, + Wrapped? seriesThumbImageTag, + Wrapped? imageBlurHashes, + Wrapped? seriesStudio, + Wrapped? parentThumbItemId, + Wrapped? parentThumbImageTag, + Wrapped? parentPrimaryImageItemId, + Wrapped? parentPrimaryImageTag, + Wrapped?>? chapters, + Wrapped?>? trickplay, + Wrapped? locationType, + Wrapped? isoType, + Wrapped? mediaType, + Wrapped? endDate, + Wrapped?>? lockedFields, + Wrapped? trailerCount, + Wrapped? movieCount, + Wrapped? seriesCount, + Wrapped? programCount, + Wrapped? episodeCount, + Wrapped? songCount, + Wrapped? albumCount, + Wrapped? artistCount, + Wrapped? musicVideoCount, + Wrapped? lockData, + Wrapped? width, + Wrapped? height, + Wrapped? cameraMake, + Wrapped? cameraModel, + Wrapped? software, + Wrapped? exposureTime, + Wrapped? focalLength, + Wrapped? imageOrientation, + Wrapped? aperture, + Wrapped? shutterSpeed, + Wrapped? latitude, + Wrapped? longitude, + Wrapped? altitude, + Wrapped? isoSpeedRating, + Wrapped? seriesTimerId, + Wrapped? programId, + Wrapped? channelPrimaryImageTag, + Wrapped? startDate, + Wrapped? completionPercentage, + Wrapped? isRepeat, + Wrapped? episodeTitle, + Wrapped? channelType, + Wrapped? audio, + Wrapped? isMovie, + Wrapped? isSports, + Wrapped? isSeries, + Wrapped? isLive, + Wrapped? isNews, + Wrapped? isKids, + Wrapped? isPremiere, + Wrapped? timerId, + Wrapped? normalizationGain, + Wrapped? currentProgram, + }) { return BaseItemDto( - name: (name != null ? name.value : this.name), - 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), - dateCreated: - (dateCreated != null ? dateCreated.value : this.dateCreated), - 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), - 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), - 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), - 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), - 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), - 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), - number: (number != null ? number.value : this.number), - 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), - providerIds: - (providerIds != null ? providerIds.value : this.providerIds), - isHD: (isHD != null ? isHD.value : this.isHD), - isFolder: (isFolder != null ? isFolder.value : this.isFolder), - parentId: (parentId != null ? parentId.value : this.parentId), - type: (type != null ? type.value : this.type), - 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), - userData: (userData != null ? userData.value : this.userData), - 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), - 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), - 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), - albumId: (albumId != null ? albumId.value : this.albumId), - 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), - seasonName: (seasonName != null ? seasonName.value : this.seasonName), - 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), - 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), - chapters: (chapters != null ? chapters.value : this.chapters), - trickplay: (trickplay != null ? trickplay.value : this.trickplay), - 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), - 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), - 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), - 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), - focalLength: (focalLength != null ? focalLength.value : this.focalLength), - imageOrientation: (imageOrientation != null ? imageOrientation.value : this.imageOrientation), - aperture: (aperture != null ? aperture.value : this.aperture), - 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), - programId: (programId != null ? programId.value : this.programId), - channelPrimaryImageTag: (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), - startDate: (startDate != null ? startDate.value : this.startDate), - completionPercentage: (completionPercentage != null ? completionPercentage.value : this.completionPercentage), - isRepeat: (isRepeat != null ? isRepeat.value : this.isRepeat), - 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), - isSports: (isSports != null ? isSports.value : this.isSports), - isSeries: (isSeries != null ? isSeries.value : this.isSeries), - isLive: (isLive != null ? isLive.value : this.isLive), - isNews: (isNews != null ? isNews.value : this.isNews), - 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)); + name: (name != null ? name.value : this.name), + 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), + dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), + 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), + 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), + 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), + 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), + 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), + 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), + number: (number != null ? number.value : this.number), + 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), + providerIds: (providerIds != null ? providerIds.value : this.providerIds), + isHD: (isHD != null ? isHD.value : this.isHD), + isFolder: (isFolder != null ? isFolder.value : this.isFolder), + parentId: (parentId != null ? parentId.value : this.parentId), + type: (type != null ? type.value : this.type), + 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), + userData: (userData != null ? userData.value : this.userData), + 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), + 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), + 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), + albumId: (albumId != null ? albumId.value : this.albumId), + 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), + seasonName: (seasonName != null ? seasonName.value : this.seasonName), + 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), + 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), + chapters: (chapters != null ? chapters.value : this.chapters), + trickplay: (trickplay != null ? trickplay.value : this.trickplay), + 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), + 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), + 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), + 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), + focalLength: (focalLength != null ? focalLength.value : this.focalLength), + imageOrientation: (imageOrientation != null + ? imageOrientation.value + : this.imageOrientation), + aperture: (aperture != null ? aperture.value : this.aperture), + 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), + programId: (programId != null ? programId.value : this.programId), + channelPrimaryImageTag: (channelPrimaryImageTag != null + ? channelPrimaryImageTag.value + : this.channelPrimaryImageTag), + startDate: (startDate != null ? startDate.value : this.startDate), + completionPercentage: (completionPercentage != null + ? completionPercentage.value + : this.completionPercentage), + isRepeat: (isRepeat != null ? isRepeat.value : this.isRepeat), + 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), + isSports: (isSports != null ? isSports.value : this.isSports), + isSeries: (isSeries != null ? isSeries.value : this.isSeries), + isLive: (isLive != null ? isLive.value : this.isLive), + isNews: (isNews != null ? isNews.value : this.isNews), + 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), + ); } } @@ -20452,11 +21590,15 @@ class BaseItemDtoQueryResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -20471,24 +21613,30 @@ class BaseItemDtoQueryResult { } extension $BaseItemDtoQueryResultExtension on BaseItemDtoQueryResult { - BaseItemDtoQueryResult copyWith( - {List? items, int? totalRecordCount, int? startIndex}) { + BaseItemDtoQueryResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + }) { return BaseItemDtoQueryResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ); } - BaseItemDtoQueryResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex}) { + BaseItemDtoQueryResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + }) { return BaseItemDtoQueryResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @@ -20541,11 +21689,15 @@ class BaseItemPerson { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.primaryImageTag, primaryImageTag) || - const DeepCollectionEquality() - .equals(other.primaryImageTag, primaryImageTag)) && + const DeepCollectionEquality().equals( + other.primaryImageTag, + primaryImageTag, + )) && (identical(other.imageBlurHashes, imageBlurHashes) || - const DeepCollectionEquality() - .equals(other.imageBlurHashes, imageBlurHashes))); + const DeepCollectionEquality().equals( + other.imageBlurHashes, + imageBlurHashes, + ))); } @override @@ -20563,40 +21715,44 @@ class BaseItemPerson { } extension $BaseItemPersonExtension on BaseItemPerson { - BaseItemPerson copyWith( - {String? name, - String? id, - String? role, - enums.PersonKind? type, - String? primaryImageTag, - BaseItemPerson$ImageBlurHashes? imageBlurHashes}) { + BaseItemPerson copyWith({ + String? name, + String? id, + String? role, + enums.PersonKind? type, + String? primaryImageTag, + BaseItemPerson$ImageBlurHashes? imageBlurHashes, + }) { return BaseItemPerson( - name: name ?? this.name, - id: id ?? this.id, - role: role ?? this.role, - type: type ?? this.type, - primaryImageTag: primaryImageTag ?? this.primaryImageTag, - imageBlurHashes: imageBlurHashes ?? this.imageBlurHashes); + name: name ?? this.name, + id: id ?? this.id, + role: role ?? this.role, + type: type ?? this.type, + primaryImageTag: primaryImageTag ?? this.primaryImageTag, + imageBlurHashes: imageBlurHashes ?? this.imageBlurHashes, + ); } - BaseItemPerson copyWithWrapped( - {Wrapped? name, - Wrapped? id, - Wrapped? role, - Wrapped? type, - Wrapped? primaryImageTag, - Wrapped? imageBlurHashes}) { + BaseItemPerson copyWithWrapped({ + Wrapped? name, + Wrapped? id, + Wrapped? role, + Wrapped? type, + Wrapped? primaryImageTag, + Wrapped? imageBlurHashes, + }) { return BaseItemPerson( - name: (name != null ? name.value : this.name), - 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)); + name: (name != null ? name.value : this.name), + 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), + ); } } @@ -20675,36 +21831,54 @@ class BookInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated)) && + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + )) && (identical(other.seriesName, seriesName) || - const DeepCollectionEquality() - .equals(other.seriesName, seriesName))); + const DeepCollectionEquality().equals( + other.seriesName, + seriesName, + ))); } @override @@ -20728,71 +21902,74 @@ class BookInfo { } extension $BookInfoExtension on BookInfo { - BookInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated, - String? seriesName}) { + BookInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + String? seriesName, + }) { return BookInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated, - seriesName: seriesName ?? this.seriesName); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + seriesName: seriesName ?? this.seriesName, + ); } - BookInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated, - Wrapped? seriesName}) { + BookInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + Wrapped? seriesName, + }) { return BookInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated), - seriesName: (seriesName != null ? seriesName.value : this.seriesName)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + seriesName: (seriesName != null ? seriesName.value : this.seriesName), + ); } } @@ -20826,17 +22003,25 @@ class BookInfoRemoteSearchQuery { return identical(this, other) || (other is BookInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -20852,33 +22037,37 @@ class BookInfoRemoteSearchQuery { } extension $BookInfoRemoteSearchQueryExtension on BookInfoRemoteSearchQuery { - BookInfoRemoteSearchQuery copyWith( - {BookInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + BookInfoRemoteSearchQuery copyWith({ + BookInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return BookInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - BookInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + BookInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @@ -20935,33 +22124,49 @@ class BoxSetInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated))); + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + ))); } @override @@ -20984,67 +22189,70 @@ class BoxSetInfo { } extension $BoxSetInfoExtension on BoxSetInfo { - BoxSetInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated}) { + BoxSetInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + }) { return BoxSetInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + ); } - BoxSetInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated}) { + BoxSetInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + }) { return BoxSetInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + ); } } @@ -21078,17 +22286,25 @@ class BoxSetInfoRemoteSearchQuery { return identical(this, other) || (other is BoxSetInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -21104,33 +22320,37 @@ class BoxSetInfoRemoteSearchQuery { } extension $BoxSetInfoRemoteSearchQueryExtension on BoxSetInfoRemoteSearchQuery { - BoxSetInfoRemoteSearchQuery copyWith( - {BoxSetInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + BoxSetInfoRemoteSearchQuery copyWith({ + BoxSetInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return BoxSetInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - BoxSetInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + BoxSetInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @@ -21161,14 +22381,20 @@ class BrandingOptions { return identical(this, other) || (other is BrandingOptions && (identical(other.loginDisclaimer, loginDisclaimer) || - const DeepCollectionEquality() - .equals(other.loginDisclaimer, loginDisclaimer)) && + const DeepCollectionEquality().equals( + other.loginDisclaimer, + loginDisclaimer, + )) && (identical(other.customCss, customCss) || - const DeepCollectionEquality() - .equals(other.customCss, customCss)) && + const DeepCollectionEquality().equals( + other.customCss, + customCss, + )) && (identical(other.splashscreenEnabled, splashscreenEnabled) || - const DeepCollectionEquality() - .equals(other.splashscreenEnabled, splashscreenEnabled))); + const DeepCollectionEquality().equals( + other.splashscreenEnabled, + splashscreenEnabled, + ))); } @override @@ -21183,26 +22409,32 @@ class BrandingOptions { } extension $BrandingOptionsExtension on BrandingOptions { - BrandingOptions copyWith( - {String? loginDisclaimer, String? customCss, bool? splashscreenEnabled}) { + BrandingOptions copyWith({ + String? loginDisclaimer, + String? customCss, + bool? splashscreenEnabled, + }) { return BrandingOptions( - loginDisclaimer: loginDisclaimer ?? this.loginDisclaimer, - customCss: customCss ?? this.customCss, - splashscreenEnabled: splashscreenEnabled ?? this.splashscreenEnabled); + loginDisclaimer: loginDisclaimer ?? this.loginDisclaimer, + customCss: customCss ?? this.customCss, + splashscreenEnabled: splashscreenEnabled ?? this.splashscreenEnabled, + ); } - BrandingOptions copyWithWrapped( - {Wrapped? loginDisclaimer, - Wrapped? customCss, - Wrapped? splashscreenEnabled}) { + BrandingOptions copyWithWrapped({ + Wrapped? loginDisclaimer, + Wrapped? customCss, + Wrapped? splashscreenEnabled, + }) { return BrandingOptions( - loginDisclaimer: (loginDisclaimer != null - ? loginDisclaimer.value - : this.loginDisclaimer), - customCss: (customCss != null ? customCss.value : this.customCss), - splashscreenEnabled: (splashscreenEnabled != null - ? splashscreenEnabled.value - : this.splashscreenEnabled)); + loginDisclaimer: (loginDisclaimer != null + ? loginDisclaimer.value + : this.loginDisclaimer), + customCss: (customCss != null ? customCss.value : this.customCss), + splashscreenEnabled: (splashscreenEnabled != null + ? splashscreenEnabled.value + : this.splashscreenEnabled), + ); } } @@ -21238,14 +22470,20 @@ class BufferRequestDto { (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks)) && + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + )) && (identical(other.isPlaying, isPlaying) || - const DeepCollectionEquality() - .equals(other.isPlaying, isPlaying)) && + const DeepCollectionEquality().equals( + other.isPlaying, + isPlaying, + )) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -21261,40 +22499,42 @@ class BufferRequestDto { } extension $BufferRequestDtoExtension on BufferRequestDto { - BufferRequestDto copyWith( - {DateTime? when, - int? positionTicks, - bool? isPlaying, - String? playlistItemId}) { + BufferRequestDto copyWith({ + DateTime? when, + int? positionTicks, + bool? isPlaying, + String? playlistItemId, + }) { return BufferRequestDto( - when: when ?? this.when, - positionTicks: positionTicks ?? this.positionTicks, - isPlaying: isPlaying ?? this.isPlaying, - playlistItemId: playlistItemId ?? this.playlistItemId); + when: when ?? this.when, + positionTicks: positionTicks ?? this.positionTicks, + isPlaying: isPlaying ?? this.isPlaying, + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } - BufferRequestDto copyWithWrapped( - {Wrapped? when, - Wrapped? positionTicks, - Wrapped? isPlaying, - Wrapped? playlistItemId}) { + BufferRequestDto copyWithWrapped({ + Wrapped? when, + Wrapped? positionTicks, + Wrapped? isPlaying, + Wrapped? playlistItemId, + }) { return BufferRequestDto( - when: (when != null ? when.value : this.when), - positionTicks: - (positionTicks != null ? positionTicks.value : this.positionTicks), - isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId)); + when: (when != null ? when.value : this.when), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), + isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + ); } } @JsonSerializable(explicitToJson: true) class CastReceiverApplication { - const CastReceiverApplication({ - this.id, - this.name, - }); + const CastReceiverApplication({this.id, this.name}); factory CastReceiverApplication.fromJson(Map json) => _$CastReceiverApplicationFromJson(json); @@ -21333,11 +22573,14 @@ extension $CastReceiverApplicationExtension on CastReceiverApplication { return CastReceiverApplication(id: id ?? this.id, name: name ?? this.name); } - CastReceiverApplication copyWithWrapped( - {Wrapped? id, Wrapped? name}) { + CastReceiverApplication copyWithWrapped({ + Wrapped? id, + Wrapped? name, + }) { return CastReceiverApplication( - id: (id != null ? id.value : this.id), - name: (name != null ? name.value : this.name)); + id: (id != null ? id.value : this.id), + name: (name != null ? name.value : this.name), + ); } } @@ -21414,38 +22657,61 @@ class ChannelFeatures { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canSearch, canSearch) || - const DeepCollectionEquality() - .equals(other.canSearch, canSearch)) && + const DeepCollectionEquality().equals( + other.canSearch, + canSearch, + )) && (identical(other.mediaTypes, mediaTypes) || - const DeepCollectionEquality() - .equals(other.mediaTypes, mediaTypes)) && + const DeepCollectionEquality().equals( + other.mediaTypes, + mediaTypes, + )) && (identical(other.contentTypes, contentTypes) || - const DeepCollectionEquality() - .equals(other.contentTypes, contentTypes)) && + const DeepCollectionEquality().equals( + other.contentTypes, + contentTypes, + )) && (identical(other.maxPageSize, maxPageSize) || - const DeepCollectionEquality() - .equals(other.maxPageSize, maxPageSize)) && + const DeepCollectionEquality().equals( + other.maxPageSize, + maxPageSize, + )) && (identical(other.autoRefreshLevels, autoRefreshLevels) || - const DeepCollectionEquality() - .equals(other.autoRefreshLevels, autoRefreshLevels)) && + const DeepCollectionEquality().equals( + other.autoRefreshLevels, + autoRefreshLevels, + )) && (identical(other.defaultSortFields, defaultSortFields) || - const DeepCollectionEquality() - .equals(other.defaultSortFields, defaultSortFields)) && + const DeepCollectionEquality().equals( + other.defaultSortFields, + defaultSortFields, + )) && (identical( - other.supportsSortOrderToggle, supportsSortOrderToggle) || + other.supportsSortOrderToggle, + supportsSortOrderToggle, + ) || const DeepCollectionEquality().equals( - other.supportsSortOrderToggle, supportsSortOrderToggle)) && + other.supportsSortOrderToggle, + supportsSortOrderToggle, + )) && (identical(other.supportsLatestMedia, supportsLatestMedia) || - const DeepCollectionEquality() - .equals(other.supportsLatestMedia, supportsLatestMedia)) && - (identical(other.canFilter, canFilter) || - const DeepCollectionEquality() - .equals(other.canFilter, canFilter)) && - (identical(other.supportsContentDownloading, - supportsContentDownloading) || const DeepCollectionEquality().equals( - other.supportsContentDownloading, - supportsContentDownloading))); + other.supportsLatestMedia, + supportsLatestMedia, + )) && + (identical(other.canFilter, canFilter) || + const DeepCollectionEquality().equals( + other.canFilter, + canFilter, + )) && + (identical( + other.supportsContentDownloading, + supportsContentDownloading, + ) || + const DeepCollectionEquality().equals( + other.supportsContentDownloading, + supportsContentDownloading, + ))); } @override @@ -21469,74 +22735,78 @@ class ChannelFeatures { } extension $ChannelFeaturesExtension on ChannelFeatures { - ChannelFeatures copyWith( - {String? name, - String? id, - bool? canSearch, - List? mediaTypes, - List? contentTypes, - int? maxPageSize, - int? autoRefreshLevels, - List? defaultSortFields, - bool? supportsSortOrderToggle, - bool? supportsLatestMedia, - bool? canFilter, - bool? supportsContentDownloading}) { + ChannelFeatures copyWith({ + String? name, + String? id, + bool? canSearch, + List? mediaTypes, + List? contentTypes, + int? maxPageSize, + int? autoRefreshLevels, + List? defaultSortFields, + bool? supportsSortOrderToggle, + bool? supportsLatestMedia, + bool? canFilter, + bool? supportsContentDownloading, + }) { return ChannelFeatures( - name: name ?? this.name, - id: id ?? this.id, - canSearch: canSearch ?? this.canSearch, - mediaTypes: mediaTypes ?? this.mediaTypes, - contentTypes: contentTypes ?? this.contentTypes, - maxPageSize: maxPageSize ?? this.maxPageSize, - autoRefreshLevels: autoRefreshLevels ?? this.autoRefreshLevels, - defaultSortFields: defaultSortFields ?? this.defaultSortFields, - supportsSortOrderToggle: - supportsSortOrderToggle ?? this.supportsSortOrderToggle, - supportsLatestMedia: supportsLatestMedia ?? this.supportsLatestMedia, - canFilter: canFilter ?? this.canFilter, - supportsContentDownloading: - supportsContentDownloading ?? this.supportsContentDownloading); + name: name ?? this.name, + id: id ?? this.id, + canSearch: canSearch ?? this.canSearch, + mediaTypes: mediaTypes ?? this.mediaTypes, + contentTypes: contentTypes ?? this.contentTypes, + maxPageSize: maxPageSize ?? this.maxPageSize, + autoRefreshLevels: autoRefreshLevels ?? this.autoRefreshLevels, + defaultSortFields: defaultSortFields ?? this.defaultSortFields, + supportsSortOrderToggle: + supportsSortOrderToggle ?? this.supportsSortOrderToggle, + supportsLatestMedia: supportsLatestMedia ?? this.supportsLatestMedia, + canFilter: canFilter ?? this.canFilter, + supportsContentDownloading: + supportsContentDownloading ?? this.supportsContentDownloading, + ); } - ChannelFeatures copyWithWrapped( - {Wrapped? name, - Wrapped? id, - Wrapped? canSearch, - Wrapped?>? mediaTypes, - Wrapped?>? contentTypes, - Wrapped? maxPageSize, - Wrapped? autoRefreshLevels, - Wrapped?>? defaultSortFields, - Wrapped? supportsSortOrderToggle, - Wrapped? supportsLatestMedia, - Wrapped? canFilter, - Wrapped? supportsContentDownloading}) { + ChannelFeatures copyWithWrapped({ + Wrapped? name, + Wrapped? id, + Wrapped? canSearch, + Wrapped?>? mediaTypes, + Wrapped?>? contentTypes, + Wrapped? maxPageSize, + Wrapped? autoRefreshLevels, + Wrapped?>? defaultSortFields, + Wrapped? supportsSortOrderToggle, + Wrapped? supportsLatestMedia, + Wrapped? canFilter, + Wrapped? supportsContentDownloading, + }) { return ChannelFeatures( - name: (name != null ? name.value : this.name), - 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), - 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), - canFilter: (canFilter != null ? canFilter.value : this.canFilter), - supportsContentDownloading: (supportsContentDownloading != null - ? supportsContentDownloading.value - : this.supportsContentDownloading)); + name: (name != null ? name.value : this.name), + 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), + 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), + canFilter: (canFilter != null ? canFilter.value : this.canFilter), + supportsContentDownloading: (supportsContentDownloading != null + ? supportsContentDownloading.value + : this.supportsContentDownloading), + ); } } @@ -21556,17 +22826,22 @@ class ChannelMappingOptionsDto { Map toJson() => _$ChannelMappingOptionsDtoToJson(this); @JsonKey( - name: 'TunerChannels', - includeIfNull: false, - defaultValue: []) + name: 'TunerChannels', + includeIfNull: false, + defaultValue: [], + ) final List? tunerChannels; @JsonKey( - name: 'ProviderChannels', - includeIfNull: false, - defaultValue: []) + name: 'ProviderChannels', + includeIfNull: false, + defaultValue: [], + ) final List? providerChannels; @JsonKey( - name: 'Mappings', includeIfNull: false, defaultValue: []) + name: 'Mappings', + includeIfNull: false, + defaultValue: [], + ) final List? mappings; @JsonKey(name: 'ProviderName', includeIfNull: false) final String? providerName; @@ -21577,17 +22852,25 @@ class ChannelMappingOptionsDto { return identical(this, other) || (other is ChannelMappingOptionsDto && (identical(other.tunerChannels, tunerChannels) || - const DeepCollectionEquality() - .equals(other.tunerChannels, tunerChannels)) && + const DeepCollectionEquality().equals( + other.tunerChannels, + tunerChannels, + )) && (identical(other.providerChannels, providerChannels) || - const DeepCollectionEquality() - .equals(other.providerChannels, providerChannels)) && + const DeepCollectionEquality().equals( + other.providerChannels, + providerChannels, + )) && (identical(other.mappings, mappings) || - const DeepCollectionEquality() - .equals(other.mappings, mappings)) && + const DeepCollectionEquality().equals( + other.mappings, + mappings, + )) && (identical(other.providerName, providerName) || - const DeepCollectionEquality() - .equals(other.providerName, providerName))); + const DeepCollectionEquality().equals( + other.providerName, + providerName, + ))); } @override @@ -21603,32 +22886,38 @@ class ChannelMappingOptionsDto { } extension $ChannelMappingOptionsDtoExtension on ChannelMappingOptionsDto { - ChannelMappingOptionsDto copyWith( - {List? tunerChannels, - List? providerChannels, - List? mappings, - String? providerName}) { + ChannelMappingOptionsDto copyWith({ + List? tunerChannels, + List? providerChannels, + List? mappings, + String? providerName, + }) { return ChannelMappingOptionsDto( - tunerChannels: tunerChannels ?? this.tunerChannels, - providerChannels: providerChannels ?? this.providerChannels, - mappings: mappings ?? this.mappings, - providerName: providerName ?? this.providerName); + tunerChannels: tunerChannels ?? this.tunerChannels, + providerChannels: providerChannels ?? this.providerChannels, + mappings: mappings ?? this.mappings, + providerName: providerName ?? this.providerName, + ); } - ChannelMappingOptionsDto copyWithWrapped( - {Wrapped?>? tunerChannels, - Wrapped?>? providerChannels, - Wrapped?>? mappings, - Wrapped? providerName}) { + ChannelMappingOptionsDto copyWithWrapped({ + Wrapped?>? tunerChannels, + Wrapped?>? providerChannels, + Wrapped?>? mappings, + Wrapped? providerName, + }) { return ChannelMappingOptionsDto( - 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)); + 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), + ); } } @@ -21665,19 +22954,27 @@ class ChapterInfo { return identical(this, other) || (other is ChapterInfo && (identical(other.startPositionTicks, startPositionTicks) || - const DeepCollectionEquality() - .equals(other.startPositionTicks, startPositionTicks)) && + const DeepCollectionEquality().equals( + other.startPositionTicks, + startPositionTicks, + )) && (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.imagePath, imagePath) || - const DeepCollectionEquality() - .equals(other.imagePath, imagePath)) && + const DeepCollectionEquality().equals( + other.imagePath, + imagePath, + )) && (identical(other.imageDateModified, imageDateModified) || - const DeepCollectionEquality() - .equals(other.imageDateModified, imageDateModified)) && + const DeepCollectionEquality().equals( + other.imageDateModified, + imageDateModified, + )) && (identical(other.imageTag, imageTag) || - const DeepCollectionEquality() - .equals(other.imageTag, imageTag))); + const DeepCollectionEquality().equals( + other.imageTag, + imageTag, + ))); } @override @@ -21694,36 +22991,40 @@ class ChapterInfo { } extension $ChapterInfoExtension on ChapterInfo { - ChapterInfo copyWith( - {int? startPositionTicks, - String? name, - String? imagePath, - DateTime? imageDateModified, - String? imageTag}) { + ChapterInfo copyWith({ + int? startPositionTicks, + String? name, + String? imagePath, + DateTime? imageDateModified, + String? imageTag, + }) { return ChapterInfo( - startPositionTicks: startPositionTicks ?? this.startPositionTicks, - name: name ?? this.name, - imagePath: imagePath ?? this.imagePath, - imageDateModified: imageDateModified ?? this.imageDateModified, - imageTag: imageTag ?? this.imageTag); + startPositionTicks: startPositionTicks ?? this.startPositionTicks, + name: name ?? this.name, + imagePath: imagePath ?? this.imagePath, + imageDateModified: imageDateModified ?? this.imageDateModified, + imageTag: imageTag ?? this.imageTag, + ); } - ChapterInfo copyWithWrapped( - {Wrapped? startPositionTicks, - Wrapped? name, - Wrapped? imagePath, - Wrapped? imageDateModified, - Wrapped? imageTag}) { + ChapterInfo copyWithWrapped({ + Wrapped? startPositionTicks, + Wrapped? name, + Wrapped? imagePath, + Wrapped? imageDateModified, + Wrapped? imageTag, + }) { return ChapterInfo( - 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), - imageTag: (imageTag != null ? imageTag.value : this.imageTag)); + 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), + imageTag: (imageTag != null ? imageTag.value : this.imageTag), + ); } } @@ -21776,25 +23077,38 @@ class ClientCapabilitiesDto { return identical(this, other) || (other is ClientCapabilitiesDto && (identical(other.playableMediaTypes, playableMediaTypes) || - const DeepCollectionEquality() - .equals(other.playableMediaTypes, playableMediaTypes)) && + const DeepCollectionEquality().equals( + other.playableMediaTypes, + playableMediaTypes, + )) && (identical(other.supportedCommands, supportedCommands) || - const DeepCollectionEquality() - .equals(other.supportedCommands, supportedCommands)) && + const DeepCollectionEquality().equals( + other.supportedCommands, + supportedCommands, + )) && (identical(other.supportsMediaControl, supportsMediaControl) || const DeepCollectionEquality().equals( - other.supportsMediaControl, supportsMediaControl)) && - (identical(other.supportsPersistentIdentifier, - supportsPersistentIdentifier) || + other.supportsMediaControl, + supportsMediaControl, + )) && + (identical( + other.supportsPersistentIdentifier, + supportsPersistentIdentifier, + ) || const DeepCollectionEquality().equals( - other.supportsPersistentIdentifier, - supportsPersistentIdentifier)) && + other.supportsPersistentIdentifier, + supportsPersistentIdentifier, + )) && (identical(other.deviceProfile, deviceProfile) || - const DeepCollectionEquality() - .equals(other.deviceProfile, deviceProfile)) && + const DeepCollectionEquality().equals( + other.deviceProfile, + deviceProfile, + )) && (identical(other.appStoreUrl, appStoreUrl) || - const DeepCollectionEquality() - .equals(other.appStoreUrl, appStoreUrl)) && + const DeepCollectionEquality().equals( + other.appStoreUrl, + appStoreUrl, + )) && (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @@ -21815,59 +23129,61 @@ class ClientCapabilitiesDto { } extension $ClientCapabilitiesDtoExtension on ClientCapabilitiesDto { - ClientCapabilitiesDto copyWith( - {List? playableMediaTypes, - List? supportedCommands, - bool? supportsMediaControl, - bool? supportsPersistentIdentifier, - DeviceProfile? deviceProfile, - String? appStoreUrl, - String? iconUrl}) { + ClientCapabilitiesDto copyWith({ + List? playableMediaTypes, + List? supportedCommands, + bool? supportsMediaControl, + bool? supportsPersistentIdentifier, + DeviceProfile? deviceProfile, + String? appStoreUrl, + String? iconUrl, + }) { return ClientCapabilitiesDto( - playableMediaTypes: playableMediaTypes ?? this.playableMediaTypes, - supportedCommands: supportedCommands ?? this.supportedCommands, - supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsPersistentIdentifier: - supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, - deviceProfile: deviceProfile ?? this.deviceProfile, - appStoreUrl: appStoreUrl ?? this.appStoreUrl, - iconUrl: iconUrl ?? this.iconUrl); + playableMediaTypes: playableMediaTypes ?? this.playableMediaTypes, + supportedCommands: supportedCommands ?? this.supportedCommands, + supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, + supportsPersistentIdentifier: + supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, + deviceProfile: deviceProfile ?? this.deviceProfile, + appStoreUrl: appStoreUrl ?? this.appStoreUrl, + iconUrl: iconUrl ?? this.iconUrl, + ); } - ClientCapabilitiesDto copyWithWrapped( - {Wrapped?>? playableMediaTypes, - Wrapped?>? supportedCommands, - Wrapped? supportsMediaControl, - Wrapped? supportsPersistentIdentifier, - Wrapped? deviceProfile, - Wrapped? appStoreUrl, - Wrapped? iconUrl}) { + ClientCapabilitiesDto copyWithWrapped({ + Wrapped?>? playableMediaTypes, + Wrapped?>? supportedCommands, + Wrapped? supportsMediaControl, + Wrapped? supportsPersistentIdentifier, + Wrapped? deviceProfile, + Wrapped? appStoreUrl, + 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), - supportsPersistentIdentifier: (supportsPersistentIdentifier != null - ? supportsPersistentIdentifier.value - : this.supportsPersistentIdentifier), - deviceProfile: - (deviceProfile != null ? deviceProfile.value : this.deviceProfile), - appStoreUrl: - (appStoreUrl != null ? appStoreUrl.value : this.appStoreUrl), - iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl)); + 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), + appStoreUrl: (appStoreUrl != null ? appStoreUrl.value : this.appStoreUrl), + iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), + ); } } @JsonSerializable(explicitToJson: true) class ClientLogDocumentResponseDto { - const ClientLogDocumentResponseDto({ - this.fileName, - }); + const ClientLogDocumentResponseDto({this.fileName}); factory ClientLogDocumentResponseDto.fromJson(Map json) => _$ClientLogDocumentResponseDtoFromJson(json); @@ -21884,8 +23200,10 @@ class ClientLogDocumentResponseDto { return identical(this, other) || (other is ClientLogDocumentResponseDto && (identical(other.fileName, fileName) || - const DeepCollectionEquality() - .equals(other.fileName, fileName))); + const DeepCollectionEquality().equals( + other.fileName, + fileName, + ))); } @override @@ -21904,7 +23222,8 @@ extension $ClientLogDocumentResponseDtoExtension ClientLogDocumentResponseDto copyWithWrapped({Wrapped? fileName}) { return ClientLogDocumentResponseDto( - fileName: (fileName != null ? fileName.value : this.fileName)); + fileName: (fileName != null ? fileName.value : this.fileName), + ); } } @@ -21933,14 +23252,16 @@ class CodecProfile { ) final enums.CodecType? type; @JsonKey( - name: 'Conditions', - includeIfNull: false, - defaultValue: []) + name: 'Conditions', + includeIfNull: false, + defaultValue: [], + ) final List? conditions; @JsonKey( - name: 'ApplyConditions', - includeIfNull: false, - defaultValue: []) + name: 'ApplyConditions', + includeIfNull: false, + defaultValue: [], + ) final List? applyConditions; @JsonKey(name: 'Codec', includeIfNull: false) final String? codec; @@ -21957,19 +23278,27 @@ class CodecProfile { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || - const DeepCollectionEquality() - .equals(other.conditions, conditions)) && + const DeepCollectionEquality().equals( + other.conditions, + conditions, + )) && (identical(other.applyConditions, applyConditions) || - const DeepCollectionEquality() - .equals(other.applyConditions, applyConditions)) && + const DeepCollectionEquality().equals( + other.applyConditions, + applyConditions, + )) && (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.container, container) || - const DeepCollectionEquality() - .equals(other.container, container)) && + const DeepCollectionEquality().equals( + other.container, + container, + )) && (identical(other.subContainer, subContainer) || - const DeepCollectionEquality() - .equals(other.subContainer, subContainer))); + const DeepCollectionEquality().equals( + other.subContainer, + subContainer, + ))); } @override @@ -21987,47 +23316,50 @@ class CodecProfile { } extension $CodecProfileExtension on CodecProfile { - CodecProfile copyWith( - {enums.CodecType? type, - List? conditions, - List? applyConditions, - String? codec, - String? container, - String? subContainer}) { + CodecProfile copyWith({ + enums.CodecType? type, + List? conditions, + List? applyConditions, + String? codec, + String? container, + String? subContainer, + }) { return CodecProfile( - type: type ?? this.type, - conditions: conditions ?? this.conditions, - applyConditions: applyConditions ?? this.applyConditions, - codec: codec ?? this.codec, - container: container ?? this.container, - subContainer: subContainer ?? this.subContainer); + type: type ?? this.type, + conditions: conditions ?? this.conditions, + applyConditions: applyConditions ?? this.applyConditions, + codec: codec ?? this.codec, + container: container ?? this.container, + subContainer: subContainer ?? this.subContainer, + ); } - CodecProfile copyWithWrapped( - {Wrapped? type, - Wrapped?>? conditions, - Wrapped?>? applyConditions, - Wrapped? codec, - Wrapped? container, - Wrapped? subContainer}) { + CodecProfile copyWithWrapped({ + Wrapped? type, + Wrapped?>? conditions, + Wrapped?>? applyConditions, + Wrapped? codec, + Wrapped? container, + Wrapped? subContainer, + }) { return CodecProfile( - type: (type != null ? type.value : this.type), - conditions: (conditions != null ? conditions.value : this.conditions), - 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)); + type: (type != null ? type.value : this.type), + conditions: (conditions != null ? conditions.value : this.conditions), + 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), + ); } } @JsonSerializable(explicitToJson: true) class CollectionCreationResult { - const CollectionCreationResult({ - this.id, - }); + const CollectionCreationResult({this.id}); factory CollectionCreationResult.fromJson(Map json) => _$CollectionCreationResultFromJson(json); @@ -22084,7 +23416,10 @@ class ConfigImageTypes { Map toJson() => _$ConfigImageTypesToJson(this); @JsonKey( - name: 'BackdropSizes', includeIfNull: false, defaultValue: []) + name: 'BackdropSizes', + includeIfNull: false, + defaultValue: [], + ) final List? backdropSizes; @JsonKey(name: 'BaseUrl', includeIfNull: false) final String? baseUrl; @@ -22105,26 +23440,40 @@ class ConfigImageTypes { return identical(this, other) || (other is ConfigImageTypes && (identical(other.backdropSizes, backdropSizes) || - const DeepCollectionEquality() - .equals(other.backdropSizes, backdropSizes)) && + const DeepCollectionEquality().equals( + other.backdropSizes, + backdropSizes, + )) && (identical(other.baseUrl, baseUrl) || - const DeepCollectionEquality() - .equals(other.baseUrl, baseUrl)) && + const DeepCollectionEquality().equals( + other.baseUrl, + baseUrl, + )) && (identical(other.logoSizes, logoSizes) || - const DeepCollectionEquality() - .equals(other.logoSizes, logoSizes)) && + const DeepCollectionEquality().equals( + other.logoSizes, + logoSizes, + )) && (identical(other.posterSizes, posterSizes) || - const DeepCollectionEquality() - .equals(other.posterSizes, posterSizes)) && + const DeepCollectionEquality().equals( + other.posterSizes, + posterSizes, + )) && (identical(other.profileSizes, profileSizes) || - const DeepCollectionEquality() - .equals(other.profileSizes, profileSizes)) && + const DeepCollectionEquality().equals( + other.profileSizes, + profileSizes, + )) && (identical(other.secureBaseUrl, secureBaseUrl) || - const DeepCollectionEquality() - .equals(other.secureBaseUrl, secureBaseUrl)) && + const DeepCollectionEquality().equals( + other.secureBaseUrl, + secureBaseUrl, + )) && (identical(other.stillSizes, stillSizes) || - const DeepCollectionEquality() - .equals(other.stillSizes, stillSizes))); + const DeepCollectionEquality().equals( + other.stillSizes, + stillSizes, + ))); } @override @@ -22143,44 +23492,50 @@ class ConfigImageTypes { } extension $ConfigImageTypesExtension on ConfigImageTypes { - ConfigImageTypes copyWith( - {List? backdropSizes, - String? baseUrl, - List? logoSizes, - List? posterSizes, - List? profileSizes, - String? secureBaseUrl, - List? stillSizes}) { + ConfigImageTypes copyWith({ + List? backdropSizes, + String? baseUrl, + List? logoSizes, + List? posterSizes, + List? profileSizes, + String? secureBaseUrl, + List? stillSizes, + }) { return ConfigImageTypes( - backdropSizes: backdropSizes ?? this.backdropSizes, - baseUrl: baseUrl ?? this.baseUrl, - logoSizes: logoSizes ?? this.logoSizes, - posterSizes: posterSizes ?? this.posterSizes, - profileSizes: profileSizes ?? this.profileSizes, - secureBaseUrl: secureBaseUrl ?? this.secureBaseUrl, - stillSizes: stillSizes ?? this.stillSizes); + backdropSizes: backdropSizes ?? this.backdropSizes, + baseUrl: baseUrl ?? this.baseUrl, + logoSizes: logoSizes ?? this.logoSizes, + posterSizes: posterSizes ?? this.posterSizes, + profileSizes: profileSizes ?? this.profileSizes, + secureBaseUrl: secureBaseUrl ?? this.secureBaseUrl, + stillSizes: stillSizes ?? this.stillSizes, + ); } - ConfigImageTypes copyWithWrapped( - {Wrapped?>? backdropSizes, - Wrapped? baseUrl, - Wrapped?>? logoSizes, - Wrapped?>? posterSizes, - Wrapped?>? profileSizes, - Wrapped? secureBaseUrl, - Wrapped?>? stillSizes}) { + ConfigImageTypes copyWithWrapped({ + Wrapped?>? backdropSizes, + Wrapped? baseUrl, + Wrapped?>? logoSizes, + Wrapped?>? posterSizes, + Wrapped?>? profileSizes, + Wrapped? secureBaseUrl, + Wrapped?>? stillSizes, + }) { return ConfigImageTypes( - 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), - stillSizes: (stillSizes != null ? stillSizes.value : this.stillSizes)); + 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), + stillSizes: (stillSizes != null ? stillSizes.value : this.stillSizes), + ); } } @@ -22222,20 +23577,30 @@ class ConfigurationPageInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.enableInMainMenu, enableInMainMenu) || - const DeepCollectionEquality() - .equals(other.enableInMainMenu, enableInMainMenu)) && + const DeepCollectionEquality().equals( + other.enableInMainMenu, + enableInMainMenu, + )) && (identical(other.menuSection, menuSection) || - const DeepCollectionEquality() - .equals(other.menuSection, menuSection)) && + const DeepCollectionEquality().equals( + other.menuSection, + menuSection, + )) && (identical(other.menuIcon, menuIcon) || - const DeepCollectionEquality() - .equals(other.menuIcon, menuIcon)) && + const DeepCollectionEquality().equals( + other.menuIcon, + menuIcon, + )) && (identical(other.displayName, displayName) || - const DeepCollectionEquality() - .equals(other.displayName, displayName)) && + const DeepCollectionEquality().equals( + other.displayName, + displayName, + )) && (identical(other.pluginId, pluginId) || - const DeepCollectionEquality() - .equals(other.pluginId, pluginId))); + const DeepCollectionEquality().equals( + other.pluginId, + pluginId, + ))); } @override @@ -22253,40 +23618,42 @@ class ConfigurationPageInfo { } extension $ConfigurationPageInfoExtension on ConfigurationPageInfo { - ConfigurationPageInfo copyWith( - {String? name, - bool? enableInMainMenu, - String? menuSection, - String? menuIcon, - String? displayName, - String? pluginId}) { + ConfigurationPageInfo copyWith({ + String? name, + bool? enableInMainMenu, + String? menuSection, + String? menuIcon, + String? displayName, + String? pluginId, + }) { return ConfigurationPageInfo( - name: name ?? this.name, - enableInMainMenu: enableInMainMenu ?? this.enableInMainMenu, - menuSection: menuSection ?? this.menuSection, - menuIcon: menuIcon ?? this.menuIcon, - displayName: displayName ?? this.displayName, - pluginId: pluginId ?? this.pluginId); + name: name ?? this.name, + enableInMainMenu: enableInMainMenu ?? this.enableInMainMenu, + menuSection: menuSection ?? this.menuSection, + menuIcon: menuIcon ?? this.menuIcon, + displayName: displayName ?? this.displayName, + pluginId: pluginId ?? this.pluginId, + ); } - ConfigurationPageInfo copyWithWrapped( - {Wrapped? name, - Wrapped? enableInMainMenu, - Wrapped? menuSection, - Wrapped? menuIcon, - Wrapped? displayName, - Wrapped? pluginId}) { + ConfigurationPageInfo copyWithWrapped({ + Wrapped? name, + Wrapped? enableInMainMenu, + Wrapped? menuSection, + Wrapped? menuIcon, + Wrapped? displayName, + Wrapped? pluginId, + }) { return ConfigurationPageInfo( - name: (name != null ? name.value : this.name), - 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), - pluginId: (pluginId != null ? pluginId.value : this.pluginId)); + name: (name != null ? name.value : this.name), + 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), + pluginId: (pluginId != null ? pluginId.value : this.pluginId), + ); } } @@ -22313,9 +23680,10 @@ class ContainerProfile { ) final enums.DlnaProfileType? type; @JsonKey( - name: 'Conditions', - includeIfNull: false, - defaultValue: []) + name: 'Conditions', + includeIfNull: false, + defaultValue: [], + ) final List? conditions; @JsonKey(name: 'Container', includeIfNull: false) final String? container; @@ -22330,14 +23698,20 @@ class ContainerProfile { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || - const DeepCollectionEquality() - .equals(other.conditions, conditions)) && + const DeepCollectionEquality().equals( + other.conditions, + conditions, + )) && (identical(other.container, container) || - const DeepCollectionEquality() - .equals(other.container, container)) && + const DeepCollectionEquality().equals( + other.container, + container, + )) && (identical(other.subContainer, subContainer) || - const DeepCollectionEquality() - .equals(other.subContainer, subContainer))); + const DeepCollectionEquality().equals( + other.subContainer, + subContainer, + ))); } @override @@ -22353,29 +23727,34 @@ class ContainerProfile { } extension $ContainerProfileExtension on ContainerProfile { - ContainerProfile copyWith( - {enums.DlnaProfileType? type, - List? conditions, - String? container, - String? subContainer}) { + ContainerProfile copyWith({ + enums.DlnaProfileType? type, + List? conditions, + String? container, + String? subContainer, + }) { return ContainerProfile( - type: type ?? this.type, - conditions: conditions ?? this.conditions, - container: container ?? this.container, - subContainer: subContainer ?? this.subContainer); + type: type ?? this.type, + conditions: conditions ?? this.conditions, + container: container ?? this.container, + subContainer: subContainer ?? this.subContainer, + ); } - ContainerProfile copyWithWrapped( - {Wrapped? type, - Wrapped?>? conditions, - Wrapped? container, - Wrapped? subContainer}) { + ContainerProfile copyWithWrapped({ + Wrapped? type, + Wrapped?>? conditions, + Wrapped? container, + Wrapped? subContainer, + }) { return 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)); + 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), + ); } } @@ -22411,15 +23790,23 @@ class CountryInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || - const DeepCollectionEquality() - .equals(other.displayName, displayName)) && + const DeepCollectionEquality().equals( + other.displayName, + displayName, + )) && (identical(other.twoLetterISORegionName, twoLetterISORegionName) || const DeepCollectionEquality().equals( - other.twoLetterISORegionName, twoLetterISORegionName)) && + other.twoLetterISORegionName, + twoLetterISORegionName, + )) && (identical( - other.threeLetterISORegionName, threeLetterISORegionName) || + other.threeLetterISORegionName, + threeLetterISORegionName, + ) || const DeepCollectionEquality().equals( - other.threeLetterISORegionName, threeLetterISORegionName))); + other.threeLetterISORegionName, + threeLetterISORegionName, + ))); } @override @@ -22435,35 +23822,38 @@ class CountryInfo { } extension $CountryInfoExtension on CountryInfo { - CountryInfo copyWith( - {String? name, - String? displayName, - String? twoLetterISORegionName, - String? threeLetterISORegionName}) { + CountryInfo copyWith({ + String? name, + String? displayName, + String? twoLetterISORegionName, + String? threeLetterISORegionName, + }) { return CountryInfo( - name: name ?? this.name, - displayName: displayName ?? this.displayName, - twoLetterISORegionName: - twoLetterISORegionName ?? this.twoLetterISORegionName, - threeLetterISORegionName: - threeLetterISORegionName ?? this.threeLetterISORegionName); + name: name ?? this.name, + displayName: displayName ?? this.displayName, + twoLetterISORegionName: + twoLetterISORegionName ?? this.twoLetterISORegionName, + threeLetterISORegionName: + threeLetterISORegionName ?? this.threeLetterISORegionName, + ); } - CountryInfo copyWithWrapped( - {Wrapped? name, - Wrapped? displayName, - Wrapped? twoLetterISORegionName, - Wrapped? threeLetterISORegionName}) { + CountryInfo copyWithWrapped({ + Wrapped? name, + Wrapped? displayName, + Wrapped? twoLetterISORegionName, + Wrapped? threeLetterISORegionName, + }) { 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)); + 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), + ); } } @@ -22498,9 +23888,10 @@ class CreatePlaylistDto { ) final enums.MediaType? mediaType; @JsonKey( - name: 'Users', - includeIfNull: false, - defaultValue: []) + name: 'Users', + includeIfNull: false, + defaultValue: [], + ) final List? users; @JsonKey(name: 'IsPublic', includeIfNull: false) final bool? isPublic; @@ -22517,13 +23908,17 @@ class CreatePlaylistDto { (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.mediaType, mediaType) || - const DeepCollectionEquality() - .equals(other.mediaType, mediaType)) && + const DeepCollectionEquality().equals( + other.mediaType, + mediaType, + )) && (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || - const DeepCollectionEquality() - .equals(other.isPublic, isPublic))); + const DeepCollectionEquality().equals( + other.isPublic, + isPublic, + ))); } @override @@ -22541,45 +23936,46 @@ class CreatePlaylistDto { } extension $CreatePlaylistDtoExtension on CreatePlaylistDto { - CreatePlaylistDto copyWith( - {String? name, - List? ids, - String? userId, - enums.MediaType? mediaType, - List? users, - bool? isPublic}) { + CreatePlaylistDto copyWith({ + String? name, + List? ids, + String? userId, + enums.MediaType? mediaType, + List? users, + bool? isPublic, + }) { return CreatePlaylistDto( - name: name ?? this.name, - ids: ids ?? this.ids, - userId: userId ?? this.userId, - mediaType: mediaType ?? this.mediaType, - users: users ?? this.users, - isPublic: isPublic ?? this.isPublic); + name: name ?? this.name, + ids: ids ?? this.ids, + userId: userId ?? this.userId, + mediaType: mediaType ?? this.mediaType, + users: users ?? this.users, + isPublic: isPublic ?? this.isPublic, + ); } - CreatePlaylistDto copyWithWrapped( - {Wrapped? name, - Wrapped?>? ids, - Wrapped? userId, - Wrapped? mediaType, - Wrapped?>? users, - Wrapped? isPublic}) { + CreatePlaylistDto copyWithWrapped({ + Wrapped? name, + Wrapped?>? ids, + Wrapped? userId, + Wrapped? mediaType, + Wrapped?>? users, + Wrapped? isPublic, + }) { return CreatePlaylistDto( - name: (name != null ? name.value : this.name), - ids: (ids != null ? ids.value : this.ids), - userId: (userId != null ? userId.value : this.userId), - mediaType: (mediaType != null ? mediaType.value : this.mediaType), - users: (users != null ? users.value : this.users), - isPublic: (isPublic != null ? isPublic.value : this.isPublic)); + name: (name != null ? name.value : this.name), + ids: (ids != null ? ids.value : this.ids), + userId: (userId != null ? userId.value : this.userId), + mediaType: (mediaType != null ? mediaType.value : this.mediaType), + users: (users != null ? users.value : this.users), + isPublic: (isPublic != null ? isPublic.value : this.isPublic), + ); } } @JsonSerializable(explicitToJson: true) class CreateUserByName { - const CreateUserByName({ - required this.name, - this.password, - }); + const CreateUserByName({required this.name, this.password}); factory CreateUserByName.fromJson(Map json) => _$CreateUserByNameFromJson(json); @@ -22600,8 +23996,10 @@ class CreateUserByName { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || - const DeepCollectionEquality() - .equals(other.password, password))); + const DeepCollectionEquality().equals( + other.password, + password, + ))); } @override @@ -22617,14 +24015,19 @@ class CreateUserByName { extension $CreateUserByNameExtension on CreateUserByName { CreateUserByName copyWith({String? name, String? password}) { return CreateUserByName( - name: name ?? this.name, password: password ?? this.password); + name: name ?? this.name, + password: password ?? this.password, + ); } - CreateUserByName copyWithWrapped( - {Wrapped? name, Wrapped? password}) { + CreateUserByName copyWithWrapped({ + Wrapped? name, + Wrapped? password, + }) { return CreateUserByName( - name: (name != null ? name.value : this.name), - password: (password != null ? password.value : this.password)); + name: (name != null ? name.value : this.name), + password: (password != null ? password.value : this.password), + ); } } @@ -22653,9 +24056,10 @@ class CultureDto { @JsonKey(name: 'ThreeLetterISOLanguageName', includeIfNull: false) final String? threeLetterISOLanguageName; @JsonKey( - name: 'ThreeLetterISOLanguageNames', - includeIfNull: false, - defaultValue: []) + name: 'ThreeLetterISOLanguageNames', + includeIfNull: false, + defaultValue: [], + ) final List? threeLetterISOLanguageNames; static const fromJsonFactory = _$CultureDtoFromJson; @@ -22666,23 +24070,34 @@ class CultureDto { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || - const DeepCollectionEquality() - .equals(other.displayName, displayName)) && + const DeepCollectionEquality().equals( + other.displayName, + displayName, + )) && (identical( - other.twoLetterISOLanguageName, twoLetterISOLanguageName) || + other.twoLetterISOLanguageName, + twoLetterISOLanguageName, + ) || const DeepCollectionEquality().equals( - other.twoLetterISOLanguageName, - twoLetterISOLanguageName)) && - (identical(other.threeLetterISOLanguageName, - threeLetterISOLanguageName) || + other.twoLetterISOLanguageName, + twoLetterISOLanguageName, + )) && + (identical( + other.threeLetterISOLanguageName, + threeLetterISOLanguageName, + ) || const DeepCollectionEquality().equals( - other.threeLetterISOLanguageName, - threeLetterISOLanguageName)) && - (identical(other.threeLetterISOLanguageNames, - threeLetterISOLanguageNames) || + other.threeLetterISOLanguageName, + threeLetterISOLanguageName, + )) && + (identical( + other.threeLetterISOLanguageNames, + threeLetterISOLanguageNames, + ) || const DeepCollectionEquality().equals( - other.threeLetterISOLanguageNames, - threeLetterISOLanguageNames))); + other.threeLetterISOLanguageNames, + threeLetterISOLanguageNames, + ))); } @override @@ -22699,50 +24114,51 @@ class CultureDto { } extension $CultureDtoExtension on CultureDto { - CultureDto copyWith( - {String? name, - String? displayName, - String? twoLetterISOLanguageName, - String? threeLetterISOLanguageName, - List? threeLetterISOLanguageNames}) { + CultureDto copyWith({ + String? name, + String? displayName, + String? twoLetterISOLanguageName, + String? threeLetterISOLanguageName, + List? threeLetterISOLanguageNames, + }) { return CultureDto( - name: name ?? this.name, - displayName: displayName ?? this.displayName, - twoLetterISOLanguageName: - twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, - threeLetterISOLanguageName: - threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, - threeLetterISOLanguageNames: - threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames); + name: name ?? this.name, + displayName: displayName ?? this.displayName, + twoLetterISOLanguageName: + twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, + threeLetterISOLanguageName: + threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + threeLetterISOLanguageNames: + threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames, + ); } - CultureDto copyWithWrapped( - {Wrapped? name, - Wrapped? displayName, - Wrapped? twoLetterISOLanguageName, - Wrapped? threeLetterISOLanguageName, - Wrapped?>? threeLetterISOLanguageNames}) { + CultureDto copyWithWrapped({ + Wrapped? name, + Wrapped? displayName, + Wrapped? twoLetterISOLanguageName, + Wrapped? threeLetterISOLanguageName, + Wrapped?>? threeLetterISOLanguageNames, + }) { 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class DefaultDirectoryBrowserInfoDto { - const DefaultDirectoryBrowserInfoDto({ - this.path, - }); + const DefaultDirectoryBrowserInfoDto({this.path}); factory DefaultDirectoryBrowserInfoDto.fromJson(Map json) => _$DefaultDirectoryBrowserInfoDtoFromJson(json); @@ -22778,7 +24194,8 @@ extension $DefaultDirectoryBrowserInfoDtoExtension DefaultDirectoryBrowserInfoDto copyWithWrapped({Wrapped? path}) { return DefaultDirectoryBrowserInfoDto( - path: (path != null ? path.value : this.path)); + path: (path != null ? path.value : this.path), + ); } } @@ -22835,31 +24252,47 @@ class DeviceInfoDto { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.customName, customName) || - const DeepCollectionEquality() - .equals(other.customName, customName)) && + const DeepCollectionEquality().equals( + other.customName, + customName, + )) && (identical(other.accessToken, accessToken) || - const DeepCollectionEquality() - .equals(other.accessToken, accessToken)) && + const DeepCollectionEquality().equals( + other.accessToken, + accessToken, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastUserName, lastUserName) || - const DeepCollectionEquality() - .equals(other.lastUserName, lastUserName)) && + const DeepCollectionEquality().equals( + other.lastUserName, + lastUserName, + )) && (identical(other.appName, appName) || - const DeepCollectionEquality() - .equals(other.appName, appName)) && + const DeepCollectionEquality().equals( + other.appName, + appName, + )) && (identical(other.appVersion, appVersion) || - const DeepCollectionEquality() - .equals(other.appVersion, appVersion)) && + const DeepCollectionEquality().equals( + other.appVersion, + appVersion, + )) && (identical(other.lastUserId, lastUserId) || - const DeepCollectionEquality() - .equals(other.lastUserId, lastUserId)) && + const DeepCollectionEquality().equals( + other.lastUserId, + lastUserId, + )) && (identical(other.dateLastActivity, dateLastActivity) || - const DeepCollectionEquality() - .equals(other.dateLastActivity, dateLastActivity)) && + const DeepCollectionEquality().equals( + other.dateLastActivity, + dateLastActivity, + )) && (identical(other.capabilities, capabilities) || - const DeepCollectionEquality() - .equals(other.capabilities, capabilities)) && + const DeepCollectionEquality().equals( + other.capabilities, + capabilities, + )) && (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @@ -22884,61 +24317,66 @@ class DeviceInfoDto { } extension $DeviceInfoDtoExtension on DeviceInfoDto { - DeviceInfoDto copyWith( - {String? name, - String? customName, - String? accessToken, - String? id, - String? lastUserName, - String? appName, - String? appVersion, - String? lastUserId, - DateTime? dateLastActivity, - ClientCapabilitiesDto? capabilities, - String? iconUrl}) { + DeviceInfoDto copyWith({ + String? name, + String? customName, + String? accessToken, + String? id, + String? lastUserName, + String? appName, + String? appVersion, + String? lastUserId, + DateTime? dateLastActivity, + ClientCapabilitiesDto? capabilities, + String? iconUrl, + }) { return DeviceInfoDto( - name: name ?? this.name, - customName: customName ?? this.customName, - accessToken: accessToken ?? this.accessToken, - id: id ?? this.id, - lastUserName: lastUserName ?? this.lastUserName, - appName: appName ?? this.appName, - appVersion: appVersion ?? this.appVersion, - lastUserId: lastUserId ?? this.lastUserId, - dateLastActivity: dateLastActivity ?? this.dateLastActivity, - capabilities: capabilities ?? this.capabilities, - iconUrl: iconUrl ?? this.iconUrl); + name: name ?? this.name, + customName: customName ?? this.customName, + accessToken: accessToken ?? this.accessToken, + id: id ?? this.id, + lastUserName: lastUserName ?? this.lastUserName, + appName: appName ?? this.appName, + appVersion: appVersion ?? this.appVersion, + lastUserId: lastUserId ?? this.lastUserId, + dateLastActivity: dateLastActivity ?? this.dateLastActivity, + capabilities: capabilities ?? this.capabilities, + iconUrl: iconUrl ?? this.iconUrl, + ); } - DeviceInfoDto copyWithWrapped( - {Wrapped? name, - Wrapped? customName, - Wrapped? accessToken, - Wrapped? id, - Wrapped? lastUserName, - Wrapped? appName, - Wrapped? appVersion, - Wrapped? lastUserId, - Wrapped? dateLastActivity, - Wrapped? capabilities, - Wrapped? iconUrl}) { + DeviceInfoDto copyWithWrapped({ + Wrapped? name, + Wrapped? customName, + Wrapped? accessToken, + Wrapped? id, + Wrapped? lastUserName, + Wrapped? appName, + Wrapped? appVersion, + Wrapped? lastUserId, + Wrapped? dateLastActivity, + Wrapped? capabilities, + Wrapped? iconUrl, + }) { return DeviceInfoDto( - name: (name != null ? name.value : this.name), - 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), - 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), - iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl)); + name: (name != null ? name.value : this.name), + 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), + 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), + iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), + ); } } @@ -22971,11 +24409,15 @@ class DeviceInfoDtoQueryResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -22990,34 +24432,36 @@ class DeviceInfoDtoQueryResult { } extension $DeviceInfoDtoQueryResultExtension on DeviceInfoDtoQueryResult { - DeviceInfoDtoQueryResult copyWith( - {List? items, int? totalRecordCount, int? startIndex}) { + DeviceInfoDtoQueryResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + }) { return DeviceInfoDtoQueryResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ); } - DeviceInfoDtoQueryResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex}) { + DeviceInfoDtoQueryResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + }) { return DeviceInfoDtoQueryResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @JsonSerializable(explicitToJson: true) class DeviceOptionsDto { - const DeviceOptionsDto({ - this.id, - this.deviceId, - this.customName, - }); + const DeviceOptionsDto({this.id, this.deviceId, this.customName}); factory DeviceOptionsDto.fromJson(Map json) => _$DeviceOptionsDtoFromJson(json); @@ -23040,11 +24484,15 @@ class DeviceOptionsDto { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.deviceId, deviceId) || - const DeepCollectionEquality() - .equals(other.deviceId, deviceId)) && + const DeepCollectionEquality().equals( + other.deviceId, + deviceId, + )) && (identical(other.customName, customName) || - const DeepCollectionEquality() - .equals(other.customName, customName))); + const DeepCollectionEquality().equals( + other.customName, + customName, + ))); } @override @@ -23061,19 +24509,22 @@ class DeviceOptionsDto { extension $DeviceOptionsDtoExtension on DeviceOptionsDto { DeviceOptionsDto copyWith({int? id, String? deviceId, String? customName}) { return DeviceOptionsDto( - id: id ?? this.id, - deviceId: deviceId ?? this.deviceId, - customName: customName ?? this.customName); + id: id ?? this.id, + deviceId: deviceId ?? this.deviceId, + customName: customName ?? this.customName, + ); } - DeviceOptionsDto copyWithWrapped( - {Wrapped? id, - Wrapped? deviceId, - Wrapped? customName}) { + DeviceOptionsDto copyWithWrapped({ + Wrapped? id, + Wrapped? deviceId, + Wrapped? customName, + }) { return DeviceOptionsDto( - id: (id != null ? id.value : this.id), - deviceId: (deviceId != null ? deviceId.value : this.deviceId), - customName: (customName != null ? customName.value : this.customName)); + id: (id != null ? id.value : this.id), + deviceId: (deviceId != null ? deviceId.value : this.deviceId), + customName: (customName != null ? customName.value : this.customName), + ); } } @@ -23112,29 +24563,34 @@ class DeviceProfile { @JsonKey(name: 'MaxStaticMusicBitrate', includeIfNull: false) final int? maxStaticMusicBitrate; @JsonKey( - name: 'DirectPlayProfiles', - includeIfNull: false, - defaultValue: []) + name: 'DirectPlayProfiles', + includeIfNull: false, + defaultValue: [], + ) final List? directPlayProfiles; @JsonKey( - name: 'TranscodingProfiles', - includeIfNull: false, - defaultValue: []) + name: 'TranscodingProfiles', + includeIfNull: false, + defaultValue: [], + ) final List? transcodingProfiles; @JsonKey( - name: 'ContainerProfiles', - includeIfNull: false, - defaultValue: []) + name: 'ContainerProfiles', + includeIfNull: false, + defaultValue: [], + ) final List? containerProfiles; @JsonKey( - name: 'CodecProfiles', - includeIfNull: false, - defaultValue: []) + name: 'CodecProfiles', + includeIfNull: false, + defaultValue: [], + ) final List? codecProfiles; @JsonKey( - name: 'SubtitleProfiles', - includeIfNull: false, - defaultValue: []) + name: 'SubtitleProfiles', + includeIfNull: false, + defaultValue: [], + ) final List? subtitleProfiles; static const fromJsonFactory = _$DeviceProfileFromJson; @@ -23147,34 +24603,53 @@ class DeviceProfile { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || - const DeepCollectionEquality() - .equals(other.maxStreamingBitrate, maxStreamingBitrate)) && - (identical(other.maxStaticBitrate, maxStaticBitrate) || - const DeepCollectionEquality() - .equals(other.maxStaticBitrate, maxStaticBitrate)) && - (identical(other.musicStreamingTranscodingBitrate, - musicStreamingTranscodingBitrate) || const DeepCollectionEquality().equals( - other.musicStreamingTranscodingBitrate, - musicStreamingTranscodingBitrate)) && + other.maxStreamingBitrate, + maxStreamingBitrate, + )) && + (identical(other.maxStaticBitrate, maxStaticBitrate) || + const DeepCollectionEquality().equals( + other.maxStaticBitrate, + maxStaticBitrate, + )) && + (identical( + other.musicStreamingTranscodingBitrate, + musicStreamingTranscodingBitrate, + ) || + const DeepCollectionEquality().equals( + other.musicStreamingTranscodingBitrate, + musicStreamingTranscodingBitrate, + )) && (identical(other.maxStaticMusicBitrate, maxStaticMusicBitrate) || const DeepCollectionEquality().equals( - other.maxStaticMusicBitrate, maxStaticMusicBitrate)) && + other.maxStaticMusicBitrate, + maxStaticMusicBitrate, + )) && (identical(other.directPlayProfiles, directPlayProfiles) || - const DeepCollectionEquality() - .equals(other.directPlayProfiles, directPlayProfiles)) && + const DeepCollectionEquality().equals( + other.directPlayProfiles, + directPlayProfiles, + )) && (identical(other.transcodingProfiles, transcodingProfiles) || - const DeepCollectionEquality() - .equals(other.transcodingProfiles, transcodingProfiles)) && + const DeepCollectionEquality().equals( + other.transcodingProfiles, + transcodingProfiles, + )) && (identical(other.containerProfiles, containerProfiles) || - const DeepCollectionEquality() - .equals(other.containerProfiles, containerProfiles)) && + const DeepCollectionEquality().equals( + other.containerProfiles, + containerProfiles, + )) && (identical(other.codecProfiles, codecProfiles) || - const DeepCollectionEquality() - .equals(other.codecProfiles, codecProfiles)) && + const DeepCollectionEquality().equals( + other.codecProfiles, + codecProfiles, + )) && (identical(other.subtitleProfiles, subtitleProfiles) || - const DeepCollectionEquality() - .equals(other.subtitleProfiles, subtitleProfiles))); + const DeepCollectionEquality().equals( + other.subtitleProfiles, + subtitleProfiles, + ))); } @override @@ -23197,76 +24672,82 @@ class DeviceProfile { } extension $DeviceProfileExtension on DeviceProfile { - DeviceProfile copyWith( - {String? name, - String? id, - int? maxStreamingBitrate, - int? maxStaticBitrate, - int? musicStreamingTranscodingBitrate, - int? maxStaticMusicBitrate, - List? directPlayProfiles, - List? transcodingProfiles, - List? containerProfiles, - List? codecProfiles, - List? subtitleProfiles}) { + DeviceProfile copyWith({ + String? name, + String? id, + int? maxStreamingBitrate, + int? maxStaticBitrate, + int? musicStreamingTranscodingBitrate, + int? maxStaticMusicBitrate, + List? directPlayProfiles, + List? transcodingProfiles, + List? containerProfiles, + List? codecProfiles, + List? subtitleProfiles, + }) { return DeviceProfile( - name: name ?? this.name, - id: id ?? this.id, - maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, - maxStaticBitrate: maxStaticBitrate ?? this.maxStaticBitrate, - musicStreamingTranscodingBitrate: musicStreamingTranscodingBitrate ?? - this.musicStreamingTranscodingBitrate, - maxStaticMusicBitrate: - maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, - directPlayProfiles: directPlayProfiles ?? this.directPlayProfiles, - transcodingProfiles: transcodingProfiles ?? this.transcodingProfiles, - containerProfiles: containerProfiles ?? this.containerProfiles, - codecProfiles: codecProfiles ?? this.codecProfiles, - subtitleProfiles: subtitleProfiles ?? this.subtitleProfiles); + name: name ?? this.name, + id: id ?? this.id, + maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, + maxStaticBitrate: maxStaticBitrate ?? this.maxStaticBitrate, + musicStreamingTranscodingBitrate: + musicStreamingTranscodingBitrate ?? + this.musicStreamingTranscodingBitrate, + maxStaticMusicBitrate: + maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, + directPlayProfiles: directPlayProfiles ?? this.directPlayProfiles, + transcodingProfiles: transcodingProfiles ?? this.transcodingProfiles, + containerProfiles: containerProfiles ?? this.containerProfiles, + codecProfiles: codecProfiles ?? this.codecProfiles, + subtitleProfiles: subtitleProfiles ?? this.subtitleProfiles, + ); } - DeviceProfile copyWithWrapped( - {Wrapped? name, - Wrapped? id, - Wrapped? maxStreamingBitrate, - Wrapped? maxStaticBitrate, - Wrapped? musicStreamingTranscodingBitrate, - Wrapped? maxStaticMusicBitrate, - Wrapped?>? directPlayProfiles, - Wrapped?>? transcodingProfiles, - Wrapped?>? containerProfiles, - Wrapped?>? codecProfiles, - Wrapped?>? subtitleProfiles}) { + DeviceProfile copyWithWrapped({ + Wrapped? name, + Wrapped? id, + Wrapped? maxStreamingBitrate, + Wrapped? maxStaticBitrate, + Wrapped? musicStreamingTranscodingBitrate, + Wrapped? maxStaticMusicBitrate, + Wrapped?>? directPlayProfiles, + Wrapped?>? transcodingProfiles, + Wrapped?>? containerProfiles, + Wrapped?>? codecProfiles, + Wrapped?>? subtitleProfiles, + }) { 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 - ? 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)); + 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 + ? 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), + ); } } @@ -23305,14 +24786,20 @@ class DirectPlayProfile { return identical(this, other) || (other is DirectPlayProfile && (identical(other.container, container) || - const DeepCollectionEquality() - .equals(other.container, container)) && + const DeepCollectionEquality().equals( + other.container, + container, + )) && (identical(other.audioCodec, audioCodec) || - const DeepCollectionEquality() - .equals(other.audioCodec, audioCodec)) && + const DeepCollectionEquality().equals( + other.audioCodec, + audioCodec, + )) && (identical(other.videoCodec, videoCodec) || - const DeepCollectionEquality() - .equals(other.videoCodec, videoCodec)) && + const DeepCollectionEquality().equals( + other.videoCodec, + videoCodec, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @@ -23330,28 +24817,32 @@ class DirectPlayProfile { } extension $DirectPlayProfileExtension on DirectPlayProfile { - DirectPlayProfile copyWith( - {String? container, - String? audioCodec, - String? videoCodec, - enums.DlnaProfileType? type}) { + DirectPlayProfile copyWith({ + String? container, + String? audioCodec, + String? videoCodec, + enums.DlnaProfileType? type, + }) { return DirectPlayProfile( - container: container ?? this.container, - audioCodec: audioCodec ?? this.audioCodec, - videoCodec: videoCodec ?? this.videoCodec, - type: type ?? this.type); + container: container ?? this.container, + audioCodec: audioCodec ?? this.audioCodec, + videoCodec: videoCodec ?? this.videoCodec, + type: type ?? this.type, + ); } - DirectPlayProfile copyWithWrapped( - {Wrapped? container, - Wrapped? audioCodec, - Wrapped? videoCodec, - Wrapped? type}) { + DirectPlayProfile copyWithWrapped({ + Wrapped? container, + Wrapped? audioCodec, + Wrapped? videoCodec, + Wrapped? type, + }) { return DirectPlayProfile( - container: (container != null ? container.value : this.container), - audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), - videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), - type: (type != null ? type.value : this.type)); + container: (container != null ? container.value : this.container), + audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), + videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), + type: (type != null ? type.value : this.type), + ); } } @@ -23427,40 +24918,62 @@ class DisplayPreferencesDto { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.viewType, viewType) || - const DeepCollectionEquality() - .equals(other.viewType, viewType)) && + const DeepCollectionEquality().equals( + other.viewType, + viewType, + )) && (identical(other.sortBy, sortBy) || const DeepCollectionEquality().equals(other.sortBy, sortBy)) && (identical(other.indexBy, indexBy) || - const DeepCollectionEquality() - .equals(other.indexBy, indexBy)) && + const DeepCollectionEquality().equals( + other.indexBy, + indexBy, + )) && (identical(other.rememberIndexing, rememberIndexing) || - const DeepCollectionEquality() - .equals(other.rememberIndexing, rememberIndexing)) && + const DeepCollectionEquality().equals( + other.rememberIndexing, + rememberIndexing, + )) && (identical(other.primaryImageHeight, primaryImageHeight) || - const DeepCollectionEquality() - .equals(other.primaryImageHeight, primaryImageHeight)) && + const DeepCollectionEquality().equals( + other.primaryImageHeight, + primaryImageHeight, + )) && (identical(other.primaryImageWidth, primaryImageWidth) || - const DeepCollectionEquality() - .equals(other.primaryImageWidth, primaryImageWidth)) && + const DeepCollectionEquality().equals( + other.primaryImageWidth, + primaryImageWidth, + )) && (identical(other.customPrefs, customPrefs) || - const DeepCollectionEquality() - .equals(other.customPrefs, customPrefs)) && + const DeepCollectionEquality().equals( + other.customPrefs, + customPrefs, + )) && (identical(other.scrollDirection, scrollDirection) || - const DeepCollectionEquality() - .equals(other.scrollDirection, scrollDirection)) && + const DeepCollectionEquality().equals( + other.scrollDirection, + scrollDirection, + )) && (identical(other.showBackdrop, showBackdrop) || - const DeepCollectionEquality() - .equals(other.showBackdrop, showBackdrop)) && + const DeepCollectionEquality().equals( + other.showBackdrop, + showBackdrop, + )) && (identical(other.rememberSorting, rememberSorting) || - const DeepCollectionEquality() - .equals(other.rememberSorting, rememberSorting)) && + const DeepCollectionEquality().equals( + other.rememberSorting, + rememberSorting, + )) && (identical(other.sortOrder, sortOrder) || - const DeepCollectionEquality() - .equals(other.sortOrder, sortOrder)) && + const DeepCollectionEquality().equals( + other.sortOrder, + sortOrder, + )) && (identical(other.showSidebar, showSidebar) || - const DeepCollectionEquality() - .equals(other.showSidebar, showSidebar)) && + const DeepCollectionEquality().equals( + other.showSidebar, + showSidebar, + )) && (identical(other.$Client, $Client) || const DeepCollectionEquality().equals(other.$Client, $Client))); } @@ -23488,81 +25001,84 @@ class DisplayPreferencesDto { } extension $DisplayPreferencesDtoExtension on DisplayPreferencesDto { - DisplayPreferencesDto copyWith( - {String? id, - String? viewType, - String? sortBy, - String? indexBy, - bool? rememberIndexing, - int? primaryImageHeight, - int? primaryImageWidth, - Map? customPrefs, - enums.ScrollDirection? scrollDirection, - bool? showBackdrop, - bool? rememberSorting, - enums.SortOrder? sortOrder, - bool? showSidebar, - String? $Client}) { + DisplayPreferencesDto copyWith({ + String? id, + String? viewType, + String? sortBy, + String? indexBy, + bool? rememberIndexing, + int? primaryImageHeight, + int? primaryImageWidth, + Map? customPrefs, + enums.ScrollDirection? scrollDirection, + bool? showBackdrop, + bool? rememberSorting, + enums.SortOrder? sortOrder, + bool? showSidebar, + String? $Client, + }) { return DisplayPreferencesDto( - id: id ?? this.id, - viewType: viewType ?? this.viewType, - sortBy: sortBy ?? this.sortBy, - indexBy: indexBy ?? this.indexBy, - rememberIndexing: rememberIndexing ?? this.rememberIndexing, - primaryImageHeight: primaryImageHeight ?? this.primaryImageHeight, - primaryImageWidth: primaryImageWidth ?? this.primaryImageWidth, - customPrefs: customPrefs ?? this.customPrefs, - scrollDirection: scrollDirection ?? this.scrollDirection, - showBackdrop: showBackdrop ?? this.showBackdrop, - rememberSorting: rememberSorting ?? this.rememberSorting, - sortOrder: sortOrder ?? this.sortOrder, - showSidebar: showSidebar ?? this.showSidebar, - $Client: $Client ?? this.$Client); + id: id ?? this.id, + viewType: viewType ?? this.viewType, + sortBy: sortBy ?? this.sortBy, + indexBy: indexBy ?? this.indexBy, + rememberIndexing: rememberIndexing ?? this.rememberIndexing, + primaryImageHeight: primaryImageHeight ?? this.primaryImageHeight, + primaryImageWidth: primaryImageWidth ?? this.primaryImageWidth, + customPrefs: customPrefs ?? this.customPrefs, + scrollDirection: scrollDirection ?? this.scrollDirection, + showBackdrop: showBackdrop ?? this.showBackdrop, + rememberSorting: rememberSorting ?? this.rememberSorting, + sortOrder: sortOrder ?? this.sortOrder, + showSidebar: showSidebar ?? this.showSidebar, + $Client: $Client ?? this.$Client, + ); } - DisplayPreferencesDto copyWithWrapped( - {Wrapped? id, - Wrapped? viewType, - Wrapped? sortBy, - Wrapped? indexBy, - Wrapped? rememberIndexing, - Wrapped? primaryImageHeight, - Wrapped? primaryImageWidth, - Wrapped?>? customPrefs, - Wrapped? scrollDirection, - Wrapped? showBackdrop, - Wrapped? rememberSorting, - Wrapped? sortOrder, - Wrapped? showSidebar, - Wrapped? $Client}) { + DisplayPreferencesDto copyWithWrapped({ + Wrapped? id, + Wrapped? viewType, + Wrapped? sortBy, + Wrapped? indexBy, + Wrapped? rememberIndexing, + Wrapped? primaryImageHeight, + Wrapped? primaryImageWidth, + Wrapped?>? customPrefs, + Wrapped? scrollDirection, + Wrapped? showBackdrop, + Wrapped? rememberSorting, + Wrapped? sortOrder, + Wrapped? showSidebar, + Wrapped? $Client, + }) { return DisplayPreferencesDto( - id: (id != null ? id.value : this.id), - 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), - 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), - sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), - showSidebar: - (showSidebar != null ? showSidebar.value : this.showSidebar), - $Client: ($Client != null ? $Client.value : this.$Client)); + id: (id != null ? id.value : this.id), + 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), + 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), + sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), + showSidebar: (showSidebar != null ? showSidebar.value : this.showSidebar), + $Client: ($Client != null ? $Client.value : this.$Client), + ); } } @@ -23750,14 +25266,16 @@ class EncodingOptions { @JsonKey(name: 'EnableSubtitleExtraction', includeIfNull: false) final bool? enableSubtitleExtraction; @JsonKey( - name: 'HardwareDecodingCodecs', - includeIfNull: false, - defaultValue: []) + name: 'HardwareDecodingCodecs', + includeIfNull: false, + defaultValue: [], + ) final List? hardwareDecodingCodecs; @JsonKey( - name: 'AllowOnDemandMetadataBasedKeyframeExtractionForExtensions', - includeIfNull: false, - defaultValue: []) + name: 'AllowOnDemandMetadataBasedKeyframeExtractionForExtensions', + includeIfNull: false, + defaultValue: [], + ) final List? allowOnDemandMetadataBasedKeyframeExtractionForExtensions; static const fromJsonFactory = _$EncodingOptionsFromJson; @@ -23766,91 +25284,281 @@ class EncodingOptions { return identical(this, other) || (other is EncodingOptions && (identical(other.encodingThreadCount, encodingThreadCount) || - const DeepCollectionEquality() - .equals(other.encodingThreadCount, encodingThreadCount)) && + const DeepCollectionEquality().equals( + other.encodingThreadCount, + encodingThreadCount, + )) && (identical(other.transcodingTempPath, transcodingTempPath) || - const DeepCollectionEquality() - .equals(other.transcodingTempPath, transcodingTempPath)) && + const DeepCollectionEquality().equals( + other.transcodingTempPath, + transcodingTempPath, + )) && (identical(other.fallbackFontPath, fallbackFontPath) || - const DeepCollectionEquality() - .equals(other.fallbackFontPath, fallbackFontPath)) && + const DeepCollectionEquality().equals( + other.fallbackFontPath, + fallbackFontPath, + )) && (identical(other.enableFallbackFont, enableFallbackFont) || - const DeepCollectionEquality() - .equals(other.enableFallbackFont, enableFallbackFont)) && + const DeepCollectionEquality().equals( + other.enableFallbackFont, + enableFallbackFont, + )) && (identical(other.enableAudioVbr, enableAudioVbr) || - const DeepCollectionEquality() - .equals(other.enableAudioVbr, enableAudioVbr)) && + const DeepCollectionEquality().equals( + other.enableAudioVbr, + enableAudioVbr, + )) && (identical(other.downMixAudioBoost, downMixAudioBoost) || - const DeepCollectionEquality() - .equals(other.downMixAudioBoost, downMixAudioBoost)) && + const DeepCollectionEquality().equals( + other.downMixAudioBoost, + downMixAudioBoost, + )) && (identical(other.downMixStereoAlgorithm, downMixStereoAlgorithm) || const DeepCollectionEquality().equals( - other.downMixStereoAlgorithm, downMixStereoAlgorithm)) && + other.downMixStereoAlgorithm, + downMixStereoAlgorithm, + )) && (identical(other.maxMuxingQueueSize, maxMuxingQueueSize) || - const DeepCollectionEquality() - .equals(other.maxMuxingQueueSize, maxMuxingQueueSize)) && + const DeepCollectionEquality().equals( + other.maxMuxingQueueSize, + maxMuxingQueueSize, + )) && (identical(other.enableThrottling, enableThrottling) || - const DeepCollectionEquality() - .equals(other.enableThrottling, enableThrottling)) && + const DeepCollectionEquality().equals( + other.enableThrottling, + enableThrottling, + )) && (identical(other.throttleDelaySeconds, throttleDelaySeconds) || const DeepCollectionEquality().equals( - other.throttleDelaySeconds, throttleDelaySeconds)) && + other.throttleDelaySeconds, + throttleDelaySeconds, + )) && (identical(other.enableSegmentDeletion, enableSegmentDeletion) || const DeepCollectionEquality().equals( - other.enableSegmentDeletion, enableSegmentDeletion)) && + other.enableSegmentDeletion, + enableSegmentDeletion, + )) && (identical(other.segmentKeepSeconds, segmentKeepSeconds) || - const DeepCollectionEquality() - .equals(other.segmentKeepSeconds, segmentKeepSeconds)) && - (identical(other.hardwareAccelerationType, hardwareAccelerationType) || const DeepCollectionEquality().equals( - other.hardwareAccelerationType, - hardwareAccelerationType)) && + other.segmentKeepSeconds, + segmentKeepSeconds, + )) && + (identical( + other.hardwareAccelerationType, + hardwareAccelerationType, + ) || + const DeepCollectionEquality().equals( + other.hardwareAccelerationType, + hardwareAccelerationType, + )) && (identical(other.encoderAppPath, encoderAppPath) || - const DeepCollectionEquality() - .equals(other.encoderAppPath, encoderAppPath)) && + const DeepCollectionEquality().equals( + other.encoderAppPath, + encoderAppPath, + )) && (identical(other.encoderAppPathDisplay, encoderAppPathDisplay) || const DeepCollectionEquality().equals( - other.encoderAppPathDisplay, encoderAppPathDisplay)) && + other.encoderAppPathDisplay, + encoderAppPathDisplay, + )) && (identical(other.vaapiDevice, vaapiDevice) || - const DeepCollectionEquality() - .equals(other.vaapiDevice, vaapiDevice)) && + const DeepCollectionEquality().equals( + other.vaapiDevice, + vaapiDevice, + )) && (identical(other.qsvDevice, qsvDevice) || - const DeepCollectionEquality() - .equals(other.qsvDevice, qsvDevice)) && + const DeepCollectionEquality().equals( + other.qsvDevice, + qsvDevice, + )) && (identical(other.enableTonemapping, enableTonemapping) || - const DeepCollectionEquality() - .equals(other.enableTonemapping, enableTonemapping)) && + const DeepCollectionEquality().equals( + other.enableTonemapping, + enableTonemapping, + )) && (identical(other.enableVppTonemapping, enableVppTonemapping) || const DeepCollectionEquality().equals( - other.enableVppTonemapping, enableVppTonemapping)) && - (identical(other.enableVideoToolboxTonemapping, enableVideoToolboxTonemapping) || const DeepCollectionEquality().equals(other.enableVideoToolboxTonemapping, enableVideoToolboxTonemapping)) && - (identical(other.tonemappingAlgorithm, tonemappingAlgorithm) || const DeepCollectionEquality().equals(other.tonemappingAlgorithm, tonemappingAlgorithm)) && - (identical(other.tonemappingMode, tonemappingMode) || const DeepCollectionEquality().equals(other.tonemappingMode, tonemappingMode)) && - (identical(other.tonemappingRange, tonemappingRange) || const DeepCollectionEquality().equals(other.tonemappingRange, tonemappingRange)) && - (identical(other.tonemappingDesat, tonemappingDesat) || const DeepCollectionEquality().equals(other.tonemappingDesat, tonemappingDesat)) && - (identical(other.tonemappingPeak, tonemappingPeak) || const DeepCollectionEquality().equals(other.tonemappingPeak, tonemappingPeak)) && - (identical(other.tonemappingParam, tonemappingParam) || const DeepCollectionEquality().equals(other.tonemappingParam, tonemappingParam)) && - (identical(other.vppTonemappingBrightness, vppTonemappingBrightness) || const DeepCollectionEquality().equals(other.vppTonemappingBrightness, vppTonemappingBrightness)) && - (identical(other.vppTonemappingContrast, vppTonemappingContrast) || const DeepCollectionEquality().equals(other.vppTonemappingContrast, vppTonemappingContrast)) && - (identical(other.h264Crf, h264Crf) || const DeepCollectionEquality().equals(other.h264Crf, h264Crf)) && - (identical(other.h265Crf, h265Crf) || const DeepCollectionEquality().equals(other.h265Crf, h265Crf)) && - (identical(other.encoderPreset, encoderPreset) || const DeepCollectionEquality().equals(other.encoderPreset, encoderPreset)) && - (identical(other.deinterlaceDoubleRate, deinterlaceDoubleRate) || const DeepCollectionEquality().equals(other.deinterlaceDoubleRate, deinterlaceDoubleRate)) && - (identical(other.deinterlaceMethod, deinterlaceMethod) || const DeepCollectionEquality().equals(other.deinterlaceMethod, deinterlaceMethod)) && - (identical(other.enableDecodingColorDepth10Hevc, enableDecodingColorDepth10Hevc) || const DeepCollectionEquality().equals(other.enableDecodingColorDepth10Hevc, enableDecodingColorDepth10Hevc)) && - (identical(other.enableDecodingColorDepth10Vp9, enableDecodingColorDepth10Vp9) || const DeepCollectionEquality().equals(other.enableDecodingColorDepth10Vp9, enableDecodingColorDepth10Vp9)) && - (identical(other.enableDecodingColorDepth10HevcRext, enableDecodingColorDepth10HevcRext) || const DeepCollectionEquality().equals(other.enableDecodingColorDepth10HevcRext, enableDecodingColorDepth10HevcRext)) && - (identical(other.enableDecodingColorDepth12HevcRext, enableDecodingColorDepth12HevcRext) || const DeepCollectionEquality().equals(other.enableDecodingColorDepth12HevcRext, enableDecodingColorDepth12HevcRext)) && - (identical(other.enableEnhancedNvdecDecoder, enableEnhancedNvdecDecoder) || const DeepCollectionEquality().equals(other.enableEnhancedNvdecDecoder, enableEnhancedNvdecDecoder)) && - (identical(other.preferSystemNativeHwDecoder, preferSystemNativeHwDecoder) || const DeepCollectionEquality().equals(other.preferSystemNativeHwDecoder, preferSystemNativeHwDecoder)) && - (identical(other.enableIntelLowPowerH264HwEncoder, enableIntelLowPowerH264HwEncoder) || const DeepCollectionEquality().equals(other.enableIntelLowPowerH264HwEncoder, enableIntelLowPowerH264HwEncoder)) && - (identical(other.enableIntelLowPowerHevcHwEncoder, enableIntelLowPowerHevcHwEncoder) || const DeepCollectionEquality().equals(other.enableIntelLowPowerHevcHwEncoder, enableIntelLowPowerHevcHwEncoder)) && - (identical(other.enableHardwareEncoding, enableHardwareEncoding) || const DeepCollectionEquality().equals(other.enableHardwareEncoding, enableHardwareEncoding)) && - (identical(other.allowHevcEncoding, allowHevcEncoding) || const DeepCollectionEquality().equals(other.allowHevcEncoding, allowHevcEncoding)) && - (identical(other.allowAv1Encoding, allowAv1Encoding) || const DeepCollectionEquality().equals(other.allowAv1Encoding, allowAv1Encoding)) && - (identical(other.enableSubtitleExtraction, enableSubtitleExtraction) || const DeepCollectionEquality().equals(other.enableSubtitleExtraction, enableSubtitleExtraction)) && - (identical(other.hardwareDecodingCodecs, hardwareDecodingCodecs) || const DeepCollectionEquality().equals(other.hardwareDecodingCodecs, hardwareDecodingCodecs)) && - (identical(other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions) || const DeepCollectionEquality().equals(other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions))); + other.enableVppTonemapping, + enableVppTonemapping, + )) && + (identical( + other.enableVideoToolboxTonemapping, + enableVideoToolboxTonemapping, + ) || + const DeepCollectionEquality().equals( + other.enableVideoToolboxTonemapping, + enableVideoToolboxTonemapping, + )) && + (identical(other.tonemappingAlgorithm, tonemappingAlgorithm) || + const DeepCollectionEquality().equals( + other.tonemappingAlgorithm, + tonemappingAlgorithm, + )) && + (identical(other.tonemappingMode, tonemappingMode) || + const DeepCollectionEquality().equals( + other.tonemappingMode, + tonemappingMode, + )) && + (identical(other.tonemappingRange, tonemappingRange) || + const DeepCollectionEquality().equals( + other.tonemappingRange, + tonemappingRange, + )) && + (identical(other.tonemappingDesat, tonemappingDesat) || + const DeepCollectionEquality().equals( + other.tonemappingDesat, + tonemappingDesat, + )) && + (identical(other.tonemappingPeak, tonemappingPeak) || + const DeepCollectionEquality().equals( + other.tonemappingPeak, + tonemappingPeak, + )) && + (identical(other.tonemappingParam, tonemappingParam) || + const DeepCollectionEquality().equals( + other.tonemappingParam, + tonemappingParam, + )) && + (identical( + other.vppTonemappingBrightness, + vppTonemappingBrightness, + ) || + const DeepCollectionEquality().equals( + other.vppTonemappingBrightness, + vppTonemappingBrightness, + )) && + (identical(other.vppTonemappingContrast, vppTonemappingContrast) || + const DeepCollectionEquality().equals( + other.vppTonemappingContrast, + vppTonemappingContrast, + )) && + (identical(other.h264Crf, h264Crf) || + const DeepCollectionEquality().equals( + other.h264Crf, + h264Crf, + )) && + (identical(other.h265Crf, h265Crf) || + const DeepCollectionEquality().equals( + other.h265Crf, + h265Crf, + )) && + (identical(other.encoderPreset, encoderPreset) || + const DeepCollectionEquality().equals( + other.encoderPreset, + encoderPreset, + )) && + (identical(other.deinterlaceDoubleRate, deinterlaceDoubleRate) || + const DeepCollectionEquality().equals( + other.deinterlaceDoubleRate, + deinterlaceDoubleRate, + )) && + (identical(other.deinterlaceMethod, deinterlaceMethod) || + const DeepCollectionEquality().equals( + other.deinterlaceMethod, + deinterlaceMethod, + )) && + (identical( + other.enableDecodingColorDepth10Hevc, + enableDecodingColorDepth10Hevc, + ) || + const DeepCollectionEquality().equals( + other.enableDecodingColorDepth10Hevc, + enableDecodingColorDepth10Hevc, + )) && + (identical( + other.enableDecodingColorDepth10Vp9, + enableDecodingColorDepth10Vp9, + ) || + const DeepCollectionEquality().equals( + other.enableDecodingColorDepth10Vp9, + enableDecodingColorDepth10Vp9, + )) && + (identical( + other.enableDecodingColorDepth10HevcRext, + enableDecodingColorDepth10HevcRext, + ) || + const DeepCollectionEquality().equals( + other.enableDecodingColorDepth10HevcRext, + enableDecodingColorDepth10HevcRext, + )) && + (identical( + other.enableDecodingColorDepth12HevcRext, + enableDecodingColorDepth12HevcRext, + ) || + const DeepCollectionEquality().equals( + other.enableDecodingColorDepth12HevcRext, + enableDecodingColorDepth12HevcRext, + )) && + (identical( + other.enableEnhancedNvdecDecoder, + enableEnhancedNvdecDecoder, + ) || + const DeepCollectionEquality().equals( + other.enableEnhancedNvdecDecoder, + enableEnhancedNvdecDecoder, + )) && + (identical( + other.preferSystemNativeHwDecoder, + preferSystemNativeHwDecoder, + ) || + const DeepCollectionEquality().equals( + other.preferSystemNativeHwDecoder, + preferSystemNativeHwDecoder, + )) && + (identical( + other.enableIntelLowPowerH264HwEncoder, + enableIntelLowPowerH264HwEncoder, + ) || + const DeepCollectionEquality().equals( + other.enableIntelLowPowerH264HwEncoder, + enableIntelLowPowerH264HwEncoder, + )) && + (identical( + other.enableIntelLowPowerHevcHwEncoder, + enableIntelLowPowerHevcHwEncoder, + ) || + const DeepCollectionEquality().equals( + other.enableIntelLowPowerHevcHwEncoder, + enableIntelLowPowerHevcHwEncoder, + )) && + (identical(other.enableHardwareEncoding, enableHardwareEncoding) || + const DeepCollectionEquality().equals( + other.enableHardwareEncoding, + enableHardwareEncoding, + )) && + (identical(other.allowHevcEncoding, allowHevcEncoding) || + const DeepCollectionEquality().equals( + other.allowHevcEncoding, + allowHevcEncoding, + )) && + (identical(other.allowAv1Encoding, allowAv1Encoding) || + const DeepCollectionEquality().equals( + other.allowAv1Encoding, + allowAv1Encoding, + )) && + (identical( + other.enableSubtitleExtraction, + enableSubtitleExtraction, + ) || + const DeepCollectionEquality().equals( + other.enableSubtitleExtraction, + enableSubtitleExtraction, + )) && + (identical(other.hardwareDecodingCodecs, hardwareDecodingCodecs) || + const DeepCollectionEquality().equals( + other.hardwareDecodingCodecs, + hardwareDecodingCodecs, + )) && + (identical( + other + .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + ) || + const DeepCollectionEquality().equals( + other + .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + ))); } @override @@ -23904,325 +25612,334 @@ class EncodingOptions { const DeepCollectionEquality().hash(allowAv1Encoding) ^ const DeepCollectionEquality().hash(enableSubtitleExtraction) ^ const DeepCollectionEquality().hash(hardwareDecodingCodecs) ^ - const DeepCollectionEquality() - .hash(allowOnDemandMetadataBasedKeyframeExtractionForExtensions) ^ + const DeepCollectionEquality().hash( + allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + ) ^ runtimeType.hashCode; } extension $EncodingOptionsExtension on EncodingOptions { - EncodingOptions copyWith( - {int? encodingThreadCount, - String? transcodingTempPath, - String? fallbackFontPath, - bool? enableFallbackFont, - bool? enableAudioVbr, - double? downMixAudioBoost, - enums.DownMixStereoAlgorithms? downMixStereoAlgorithm, - int? maxMuxingQueueSize, - bool? enableThrottling, - int? throttleDelaySeconds, - bool? enableSegmentDeletion, - int? segmentKeepSeconds, - enums.HardwareAccelerationType? hardwareAccelerationType, - String? encoderAppPath, - String? encoderAppPathDisplay, - String? vaapiDevice, - String? qsvDevice, - bool? enableTonemapping, - bool? enableVppTonemapping, - bool? enableVideoToolboxTonemapping, - enums.TonemappingAlgorithm? tonemappingAlgorithm, - enums.TonemappingMode? tonemappingMode, - enums.TonemappingRange? tonemappingRange, - double? tonemappingDesat, - double? tonemappingPeak, - double? tonemappingParam, - double? vppTonemappingBrightness, - double? vppTonemappingContrast, - int? h264Crf, - int? h265Crf, - enums.EncoderPreset? encoderPreset, - bool? deinterlaceDoubleRate, - enums.DeinterlaceMethod? deinterlaceMethod, - bool? enableDecodingColorDepth10Hevc, - bool? enableDecodingColorDepth10Vp9, - bool? enableDecodingColorDepth10HevcRext, - bool? enableDecodingColorDepth12HevcRext, - bool? enableEnhancedNvdecDecoder, - bool? preferSystemNativeHwDecoder, - bool? enableIntelLowPowerH264HwEncoder, - bool? enableIntelLowPowerHevcHwEncoder, - bool? enableHardwareEncoding, - bool? allowHevcEncoding, - bool? allowAv1Encoding, - bool? enableSubtitleExtraction, - List? hardwareDecodingCodecs, - List? - allowOnDemandMetadataBasedKeyframeExtractionForExtensions}) { + EncodingOptions copyWith({ + int? encodingThreadCount, + String? transcodingTempPath, + String? fallbackFontPath, + bool? enableFallbackFont, + bool? enableAudioVbr, + double? downMixAudioBoost, + enums.DownMixStereoAlgorithms? downMixStereoAlgorithm, + int? maxMuxingQueueSize, + bool? enableThrottling, + int? throttleDelaySeconds, + bool? enableSegmentDeletion, + int? segmentKeepSeconds, + enums.HardwareAccelerationType? hardwareAccelerationType, + String? encoderAppPath, + String? encoderAppPathDisplay, + String? vaapiDevice, + String? qsvDevice, + bool? enableTonemapping, + bool? enableVppTonemapping, + bool? enableVideoToolboxTonemapping, + enums.TonemappingAlgorithm? tonemappingAlgorithm, + enums.TonemappingMode? tonemappingMode, + enums.TonemappingRange? tonemappingRange, + double? tonemappingDesat, + double? tonemappingPeak, + double? tonemappingParam, + double? vppTonemappingBrightness, + double? vppTonemappingContrast, + int? h264Crf, + int? h265Crf, + enums.EncoderPreset? encoderPreset, + bool? deinterlaceDoubleRate, + enums.DeinterlaceMethod? deinterlaceMethod, + bool? enableDecodingColorDepth10Hevc, + bool? enableDecodingColorDepth10Vp9, + bool? enableDecodingColorDepth10HevcRext, + bool? enableDecodingColorDepth12HevcRext, + bool? enableEnhancedNvdecDecoder, + bool? preferSystemNativeHwDecoder, + bool? enableIntelLowPowerH264HwEncoder, + bool? enableIntelLowPowerHevcHwEncoder, + bool? enableHardwareEncoding, + bool? allowHevcEncoding, + bool? allowAv1Encoding, + bool? enableSubtitleExtraction, + List? hardwareDecodingCodecs, + List? allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + }) { return EncodingOptions( - encodingThreadCount: encodingThreadCount ?? this.encodingThreadCount, - transcodingTempPath: transcodingTempPath ?? this.transcodingTempPath, - fallbackFontPath: fallbackFontPath ?? this.fallbackFontPath, - enableFallbackFont: enableFallbackFont ?? this.enableFallbackFont, - enableAudioVbr: enableAudioVbr ?? this.enableAudioVbr, - downMixAudioBoost: downMixAudioBoost ?? this.downMixAudioBoost, - downMixStereoAlgorithm: - downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, - maxMuxingQueueSize: maxMuxingQueueSize ?? this.maxMuxingQueueSize, - enableThrottling: enableThrottling ?? this.enableThrottling, - throttleDelaySeconds: throttleDelaySeconds ?? this.throttleDelaySeconds, - enableSegmentDeletion: - enableSegmentDeletion ?? this.enableSegmentDeletion, - segmentKeepSeconds: segmentKeepSeconds ?? this.segmentKeepSeconds, - hardwareAccelerationType: - hardwareAccelerationType ?? this.hardwareAccelerationType, - encoderAppPath: encoderAppPath ?? this.encoderAppPath, - encoderAppPathDisplay: - encoderAppPathDisplay ?? this.encoderAppPathDisplay, - vaapiDevice: vaapiDevice ?? this.vaapiDevice, - qsvDevice: qsvDevice ?? this.qsvDevice, - enableTonemapping: enableTonemapping ?? this.enableTonemapping, - enableVppTonemapping: enableVppTonemapping ?? this.enableVppTonemapping, - 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, - h264Crf: h264Crf ?? this.h264Crf, - h265Crf: h265Crf ?? this.h265Crf, - encoderPreset: encoderPreset ?? this.encoderPreset, - 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, - allowHevcEncoding: allowHevcEncoding ?? this.allowHevcEncoding, - allowAv1Encoding: allowAv1Encoding ?? this.allowAv1Encoding, - enableSubtitleExtraction: - enableSubtitleExtraction ?? this.enableSubtitleExtraction, - hardwareDecodingCodecs: - hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, - allowOnDemandMetadataBasedKeyframeExtractionForExtensions: - allowOnDemandMetadataBasedKeyframeExtractionForExtensions ?? - this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions); + encodingThreadCount: encodingThreadCount ?? this.encodingThreadCount, + transcodingTempPath: transcodingTempPath ?? this.transcodingTempPath, + fallbackFontPath: fallbackFontPath ?? this.fallbackFontPath, + enableFallbackFont: enableFallbackFont ?? this.enableFallbackFont, + enableAudioVbr: enableAudioVbr ?? this.enableAudioVbr, + downMixAudioBoost: downMixAudioBoost ?? this.downMixAudioBoost, + downMixStereoAlgorithm: + downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, + maxMuxingQueueSize: maxMuxingQueueSize ?? this.maxMuxingQueueSize, + enableThrottling: enableThrottling ?? this.enableThrottling, + throttleDelaySeconds: throttleDelaySeconds ?? this.throttleDelaySeconds, + enableSegmentDeletion: + enableSegmentDeletion ?? this.enableSegmentDeletion, + segmentKeepSeconds: segmentKeepSeconds ?? this.segmentKeepSeconds, + hardwareAccelerationType: + hardwareAccelerationType ?? this.hardwareAccelerationType, + encoderAppPath: encoderAppPath ?? this.encoderAppPath, + encoderAppPathDisplay: + encoderAppPathDisplay ?? this.encoderAppPathDisplay, + vaapiDevice: vaapiDevice ?? this.vaapiDevice, + qsvDevice: qsvDevice ?? this.qsvDevice, + enableTonemapping: enableTonemapping ?? this.enableTonemapping, + enableVppTonemapping: enableVppTonemapping ?? this.enableVppTonemapping, + 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, + h264Crf: h264Crf ?? this.h264Crf, + h265Crf: h265Crf ?? this.h265Crf, + encoderPreset: encoderPreset ?? this.encoderPreset, + 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, + allowHevcEncoding: allowHevcEncoding ?? this.allowHevcEncoding, + allowAv1Encoding: allowAv1Encoding ?? this.allowAv1Encoding, + enableSubtitleExtraction: + enableSubtitleExtraction ?? this.enableSubtitleExtraction, + hardwareDecodingCodecs: + hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, + allowOnDemandMetadataBasedKeyframeExtractionForExtensions: + allowOnDemandMetadataBasedKeyframeExtractionForExtensions ?? + this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + ); } - EncodingOptions copyWithWrapped( - {Wrapped? encodingThreadCount, - Wrapped? transcodingTempPath, - Wrapped? fallbackFontPath, - Wrapped? enableFallbackFont, - Wrapped? enableAudioVbr, - Wrapped? downMixAudioBoost, - Wrapped? downMixStereoAlgorithm, - Wrapped? maxMuxingQueueSize, - Wrapped? enableThrottling, - Wrapped? throttleDelaySeconds, - Wrapped? enableSegmentDeletion, - Wrapped? segmentKeepSeconds, - Wrapped? hardwareAccelerationType, - Wrapped? encoderAppPath, - Wrapped? encoderAppPathDisplay, - Wrapped? vaapiDevice, - Wrapped? qsvDevice, - Wrapped? enableTonemapping, - Wrapped? enableVppTonemapping, - Wrapped? enableVideoToolboxTonemapping, - Wrapped? tonemappingAlgorithm, - Wrapped? tonemappingMode, - Wrapped? tonemappingRange, - Wrapped? tonemappingDesat, - Wrapped? tonemappingPeak, - Wrapped? tonemappingParam, - Wrapped? vppTonemappingBrightness, - Wrapped? vppTonemappingContrast, - Wrapped? h264Crf, - Wrapped? h265Crf, - Wrapped? encoderPreset, - Wrapped? deinterlaceDoubleRate, - Wrapped? deinterlaceMethod, - Wrapped? enableDecodingColorDepth10Hevc, - Wrapped? enableDecodingColorDepth10Vp9, - Wrapped? enableDecodingColorDepth10HevcRext, - Wrapped? enableDecodingColorDepth12HevcRext, - Wrapped? enableEnhancedNvdecDecoder, - Wrapped? preferSystemNativeHwDecoder, - Wrapped? enableIntelLowPowerH264HwEncoder, - Wrapped? enableIntelLowPowerHevcHwEncoder, - Wrapped? enableHardwareEncoding, - Wrapped? allowHevcEncoding, - Wrapped? allowAv1Encoding, - Wrapped? enableSubtitleExtraction, - Wrapped?>? hardwareDecodingCodecs, - Wrapped?>? - allowOnDemandMetadataBasedKeyframeExtractionForExtensions}) { + EncodingOptions copyWithWrapped({ + Wrapped? encodingThreadCount, + Wrapped? transcodingTempPath, + Wrapped? fallbackFontPath, + Wrapped? enableFallbackFont, + Wrapped? enableAudioVbr, + Wrapped? downMixAudioBoost, + Wrapped? downMixStereoAlgorithm, + Wrapped? maxMuxingQueueSize, + Wrapped? enableThrottling, + Wrapped? throttleDelaySeconds, + Wrapped? enableSegmentDeletion, + Wrapped? segmentKeepSeconds, + Wrapped? hardwareAccelerationType, + Wrapped? encoderAppPath, + Wrapped? encoderAppPathDisplay, + Wrapped? vaapiDevice, + Wrapped? qsvDevice, + Wrapped? enableTonemapping, + Wrapped? enableVppTonemapping, + Wrapped? enableVideoToolboxTonemapping, + Wrapped? tonemappingAlgorithm, + Wrapped? tonemappingMode, + Wrapped? tonemappingRange, + Wrapped? tonemappingDesat, + Wrapped? tonemappingPeak, + Wrapped? tonemappingParam, + Wrapped? vppTonemappingBrightness, + Wrapped? vppTonemappingContrast, + Wrapped? h264Crf, + Wrapped? h265Crf, + Wrapped? encoderPreset, + Wrapped? deinterlaceDoubleRate, + Wrapped? deinterlaceMethod, + Wrapped? enableDecodingColorDepth10Hevc, + Wrapped? enableDecodingColorDepth10Vp9, + Wrapped? enableDecodingColorDepth10HevcRext, + Wrapped? enableDecodingColorDepth12HevcRext, + Wrapped? enableEnhancedNvdecDecoder, + Wrapped? preferSystemNativeHwDecoder, + Wrapped? enableIntelLowPowerH264HwEncoder, + Wrapped? enableIntelLowPowerHevcHwEncoder, + Wrapped? enableHardwareEncoding, + Wrapped? allowHevcEncoding, + Wrapped? allowAv1Encoding, + Wrapped? enableSubtitleExtraction, + Wrapped?>? hardwareDecodingCodecs, + 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), - 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), - 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), - 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), - enableDecodingColorDepth10Hevc: (enableDecodingColorDepth10Hevc != null - ? enableDecodingColorDepth10Hevc.value - : this.enableDecodingColorDepth10Hevc), - enableDecodingColorDepth10Vp9: (enableDecodingColorDepth10Vp9 != null - ? enableDecodingColorDepth10Vp9.value - : this.enableDecodingColorDepth10Vp9), - enableDecodingColorDepth10HevcRext: (enableDecodingColorDepth10HevcRext != null - ? enableDecodingColorDepth10HevcRext.value - : this.enableDecodingColorDepth10HevcRext), - enableDecodingColorDepth12HevcRext: - (enableDecodingColorDepth12HevcRext != null - ? enableDecodingColorDepth12HevcRext.value - : this.enableDecodingColorDepth12HevcRext), - 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.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), - allowOnDemandMetadataBasedKeyframeExtractionForExtensions: (allowOnDemandMetadataBasedKeyframeExtractionForExtensions != null ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions)); + 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), + 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), + 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), + enableDecodingColorDepth10Hevc: (enableDecodingColorDepth10Hevc != null + ? enableDecodingColorDepth10Hevc.value + : this.enableDecodingColorDepth10Hevc), + enableDecodingColorDepth10Vp9: (enableDecodingColorDepth10Vp9 != null + ? enableDecodingColorDepth10Vp9.value + : this.enableDecodingColorDepth10Vp9), + enableDecodingColorDepth10HevcRext: + (enableDecodingColorDepth10HevcRext != null + ? enableDecodingColorDepth10HevcRext.value + : this.enableDecodingColorDepth10HevcRext), + enableDecodingColorDepth12HevcRext: + (enableDecodingColorDepth12HevcRext != null + ? enableDecodingColorDepth12HevcRext.value + : this.enableDecodingColorDepth12HevcRext), + 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.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), + allowOnDemandMetadataBasedKeyframeExtractionForExtensions: + (allowOnDemandMetadataBasedKeyframeExtractionForExtensions != null + ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value + : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions), + ); } } @JsonSerializable(explicitToJson: true) class EndPointInfo { - const EndPointInfo({ - this.isLocal, - this.isInNetwork, - }); + const EndPointInfo({this.isLocal, this.isInNetwork}); factory EndPointInfo.fromJson(Map json) => _$EndPointInfoFromJson(json); @@ -24241,11 +25958,15 @@ class EndPointInfo { return identical(this, other) || (other is EndPointInfo && (identical(other.isLocal, isLocal) || - const DeepCollectionEquality() - .equals(other.isLocal, isLocal)) && + const DeepCollectionEquality().equals( + other.isLocal, + isLocal, + )) && (identical(other.isInNetwork, isInNetwork) || - const DeepCollectionEquality() - .equals(other.isInNetwork, isInNetwork))); + const DeepCollectionEquality().equals( + other.isInNetwork, + isInNetwork, + ))); } @override @@ -24261,27 +25982,25 @@ class EndPointInfo { extension $EndPointInfoExtension on EndPointInfo { EndPointInfo copyWith({bool? isLocal, bool? isInNetwork}) { return EndPointInfo( - isLocal: isLocal ?? this.isLocal, - isInNetwork: isInNetwork ?? this.isInNetwork); + isLocal: isLocal ?? this.isLocal, + isInNetwork: isInNetwork ?? this.isInNetwork, + ); } - EndPointInfo copyWithWrapped( - {Wrapped? isLocal, Wrapped? isInNetwork}) { + EndPointInfo copyWithWrapped({ + Wrapped? isLocal, + Wrapped? isInNetwork, + }) { return EndPointInfo( - isLocal: (isLocal != null ? isLocal.value : this.isLocal), - isInNetwork: - (isInNetwork != null ? isInNetwork.value : this.isInNetwork)); + isLocal: (isLocal != null ? isLocal.value : this.isLocal), + isInNetwork: (isInNetwork != null ? isInNetwork.value : this.isInNetwork), + ); } } @JsonSerializable(explicitToJson: true) class ExternalIdInfo { - const ExternalIdInfo({ - this.name, - this.key, - this.type, - this.urlFormatString, - }); + const ExternalIdInfo({this.name, this.key, this.type, this.urlFormatString}); factory ExternalIdInfo.fromJson(Map json) => _$ExternalIdInfoFromJson(json); @@ -24316,8 +26035,10 @@ class ExternalIdInfo { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.urlFormatString, urlFormatString) || - const DeepCollectionEquality() - .equals(other.urlFormatString, urlFormatString))); + const DeepCollectionEquality().equals( + other.urlFormatString, + urlFormatString, + ))); } @override @@ -24333,39 +26054,40 @@ class ExternalIdInfo { } extension $ExternalIdInfoExtension on ExternalIdInfo { - ExternalIdInfo copyWith( - {String? name, - String? key, - enums.ExternalIdMediaType? type, - String? urlFormatString}) { + ExternalIdInfo copyWith({ + String? name, + String? key, + enums.ExternalIdMediaType? type, + String? urlFormatString, + }) { return ExternalIdInfo( - name: name ?? this.name, - key: key ?? this.key, - type: type ?? this.type, - urlFormatString: urlFormatString ?? this.urlFormatString); + name: name ?? this.name, + key: key ?? this.key, + type: type ?? this.type, + urlFormatString: urlFormatString ?? this.urlFormatString, + ); } - ExternalIdInfo copyWithWrapped( - {Wrapped? name, - Wrapped? key, - Wrapped? type, - Wrapped? urlFormatString}) { + ExternalIdInfo copyWithWrapped({ + Wrapped? name, + Wrapped? key, + Wrapped? type, + Wrapped? urlFormatString, + }) { return ExternalIdInfo( - name: (name != null ? name.value : this.name), - key: (key != null ? key.value : this.key), - type: (type != null ? type.value : this.type), - urlFormatString: (urlFormatString != null - ? urlFormatString.value - : this.urlFormatString)); + name: (name != null ? name.value : this.name), + key: (key != null ? key.value : this.key), + type: (type != null ? type.value : this.type), + urlFormatString: (urlFormatString != null + ? urlFormatString.value + : this.urlFormatString), + ); } } @JsonSerializable(explicitToJson: true) class ExternalUrl { - const ExternalUrl({ - this.name, - this.url, - }); + const ExternalUrl({this.name, this.url}); factory ExternalUrl.fromJson(Map json) => _$ExternalUrlFromJson(json); @@ -24406,18 +26128,15 @@ extension $ExternalUrlExtension on ExternalUrl { ExternalUrl copyWithWrapped({Wrapped? name, Wrapped? url}) { return ExternalUrl( - name: (name != null ? name.value : this.name), - url: (url != null ? url.value : this.url)); + name: (name != null ? name.value : this.name), + url: (url != null ? url.value : this.url), + ); } } @JsonSerializable(explicitToJson: true) class FileSystemEntryInfo { - const FileSystemEntryInfo({ - this.name, - this.path, - this.type, - }); + const FileSystemEntryInfo({this.name, this.path, this.type}); factory FileSystemEntryInfo.fromJson(Map json) => _$FileSystemEntryInfoFromJson(json); @@ -24462,33 +26181,34 @@ class FileSystemEntryInfo { } extension $FileSystemEntryInfoExtension on FileSystemEntryInfo { - FileSystemEntryInfo copyWith( - {String? name, String? path, enums.FileSystemEntryType? type}) { + FileSystemEntryInfo copyWith({ + String? name, + String? path, + enums.FileSystemEntryType? type, + }) { return FileSystemEntryInfo( - name: name ?? this.name, - path: path ?? this.path, - type: type ?? this.type); + name: name ?? this.name, + path: path ?? this.path, + type: type ?? this.type, + ); } - FileSystemEntryInfo copyWithWrapped( - {Wrapped? name, - Wrapped? path, - Wrapped? type}) { + FileSystemEntryInfo copyWithWrapped({ + Wrapped? name, + Wrapped? path, + Wrapped? type, + }) { return FileSystemEntryInfo( - name: (name != null ? name.value : this.name), - path: (path != null ? path.value : this.path), - type: (type != null ? type.value : this.type)); + name: (name != null ? name.value : this.name), + path: (path != null ? path.value : this.path), + type: (type != null ? type.value : this.type), + ); } } @JsonSerializable(explicitToJson: true) class FontFile { - const FontFile({ - this.name, - this.size, - this.dateCreated, - this.dateModified, - }); + const FontFile({this.name, this.size, this.dateCreated, this.dateModified}); factory FontFile.fromJson(Map json) => _$FontFileFromJson(json); @@ -24515,11 +26235,15 @@ class FontFile { (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && (identical(other.dateCreated, dateCreated) || - const DeepCollectionEquality() - .equals(other.dateCreated, dateCreated)) && + const DeepCollectionEquality().equals( + other.dateCreated, + dateCreated, + )) && (identical(other.dateModified, dateModified) || - const DeepCollectionEquality() - .equals(other.dateModified, dateModified))); + const DeepCollectionEquality().equals( + other.dateModified, + dateModified, + ))); } @override @@ -24535,40 +26259,40 @@ class FontFile { } extension $FontFileExtension on FontFile { - FontFile copyWith( - {String? name, - int? size, - DateTime? dateCreated, - DateTime? dateModified}) { + FontFile copyWith({ + String? name, + int? size, + DateTime? dateCreated, + DateTime? dateModified, + }) { return FontFile( - name: name ?? this.name, - size: size ?? this.size, - dateCreated: dateCreated ?? this.dateCreated, - dateModified: dateModified ?? this.dateModified); + name: name ?? this.name, + size: size ?? this.size, + dateCreated: dateCreated ?? this.dateCreated, + dateModified: dateModified ?? this.dateModified, + ); } - FontFile copyWithWrapped( - {Wrapped? name, - Wrapped? size, - Wrapped? dateCreated, - Wrapped? dateModified}) { + FontFile copyWithWrapped({ + Wrapped? name, + Wrapped? size, + Wrapped? dateCreated, + Wrapped? dateModified, + }) { return 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class ForceKeepAliveMessage { - const ForceKeepAliveMessage({ - this.data, - this.messageId, - this.messageType, - }); + const ForceKeepAliveMessage({this.data, this.messageId, this.messageType}); factory ForceKeepAliveMessage.fromJson(Map json) => _$ForceKeepAliveMessageFromJson(json); @@ -24588,9 +26312,11 @@ class ForceKeepAliveMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.forcekeepalive); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.forcekeepalive, + ); static const fromJsonFactory = _$ForceKeepAliveMessageFromJson; @@ -24601,11 +26327,15 @@ class ForceKeepAliveMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -24620,31 +26350,34 @@ class ForceKeepAliveMessage { } extension $ForceKeepAliveMessageExtension on ForceKeepAliveMessage { - ForceKeepAliveMessage copyWith( - {int? data, String? messageId, enums.SessionMessageType? messageType}) { + ForceKeepAliveMessage copyWith({ + int? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return ForceKeepAliveMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - ForceKeepAliveMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + ForceKeepAliveMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return ForceKeepAliveMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class ForgotPasswordDto { - const ForgotPasswordDto({ - required this.enteredUsername, - }); + const ForgotPasswordDto({required this.enteredUsername}); factory ForgotPasswordDto.fromJson(Map json) => _$ForgotPasswordDtoFromJson(json); @@ -24661,8 +26394,10 @@ class ForgotPasswordDto { return identical(this, other) || (other is ForgotPasswordDto && (identical(other.enteredUsername, enteredUsername) || - const DeepCollectionEquality() - .equals(other.enteredUsername, enteredUsername))); + const DeepCollectionEquality().equals( + other.enteredUsername, + enteredUsername, + ))); } @override @@ -24677,22 +26412,22 @@ class ForgotPasswordDto { extension $ForgotPasswordDtoExtension on ForgotPasswordDto { ForgotPasswordDto copyWith({String? enteredUsername}) { return ForgotPasswordDto( - enteredUsername: enteredUsername ?? this.enteredUsername); + enteredUsername: enteredUsername ?? this.enteredUsername, + ); } ForgotPasswordDto copyWithWrapped({Wrapped? enteredUsername}) { return ForgotPasswordDto( - enteredUsername: (enteredUsername != null - ? enteredUsername.value - : this.enteredUsername)); + enteredUsername: (enteredUsername != null + ? enteredUsername.value + : this.enteredUsername), + ); } } @JsonSerializable(explicitToJson: true) class ForgotPasswordPinDto { - const ForgotPasswordPinDto({ - required this.pin, - }); + const ForgotPasswordPinDto({required this.pin}); factory ForgotPasswordPinDto.fromJson(Map json) => _$ForgotPasswordPinDtoFromJson(json); @@ -24764,11 +26499,15 @@ class ForgotPasswordResult { (identical(other.action, action) || const DeepCollectionEquality().equals(other.action, action)) && (identical(other.pinFile, pinFile) || - const DeepCollectionEquality() - .equals(other.pinFile, pinFile)) && + const DeepCollectionEquality().equals( + other.pinFile, + pinFile, + )) && (identical(other.pinExpirationDate, pinExpirationDate) || - const DeepCollectionEquality() - .equals(other.pinExpirationDate, pinExpirationDate))); + const DeepCollectionEquality().equals( + other.pinExpirationDate, + pinExpirationDate, + ))); } @override @@ -24783,36 +26522,36 @@ class ForgotPasswordResult { } extension $ForgotPasswordResultExtension on ForgotPasswordResult { - ForgotPasswordResult copyWith( - {enums.ForgotPasswordAction? action, - String? pinFile, - DateTime? pinExpirationDate}) { + ForgotPasswordResult copyWith({ + enums.ForgotPasswordAction? action, + String? pinFile, + DateTime? pinExpirationDate, + }) { return ForgotPasswordResult( - action: action ?? this.action, - pinFile: pinFile ?? this.pinFile, - pinExpirationDate: pinExpirationDate ?? this.pinExpirationDate); + action: action ?? this.action, + pinFile: pinFile ?? this.pinFile, + pinExpirationDate: pinExpirationDate ?? this.pinExpirationDate, + ); } - ForgotPasswordResult copyWithWrapped( - {Wrapped? action, - Wrapped? pinFile, - Wrapped? pinExpirationDate}) { + ForgotPasswordResult copyWithWrapped({ + Wrapped? action, + Wrapped? pinFile, + Wrapped? pinExpirationDate, + }) { return ForgotPasswordResult( - action: (action != null ? action.value : this.action), - pinFile: (pinFile != null ? pinFile.value : this.pinFile), - pinExpirationDate: (pinExpirationDate != null - ? pinExpirationDate.value - : this.pinExpirationDate)); + action: (action != null ? action.value : this.action), + pinFile: (pinFile != null ? pinFile.value : this.pinFile), + pinExpirationDate: (pinExpirationDate != null + ? pinExpirationDate.value + : this.pinExpirationDate), + ); } } @JsonSerializable(explicitToJson: true) class GeneralCommand { - const GeneralCommand({ - this.name, - this.controllingUserId, - this.arguments, - }); + const GeneralCommand({this.name, this.controllingUserId, this.arguments}); factory GeneralCommand.fromJson(Map json) => _$GeneralCommandFromJson(json); @@ -24840,11 +26579,15 @@ class GeneralCommand { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.controllingUserId, controllingUserId) || - const DeepCollectionEquality() - .equals(other.controllingUserId, controllingUserId)) && + const DeepCollectionEquality().equals( + other.controllingUserId, + controllingUserId, + )) && (identical(other.arguments, arguments) || - const DeepCollectionEquality() - .equals(other.arguments, arguments))); + const DeepCollectionEquality().equals( + other.arguments, + arguments, + ))); } @override @@ -24859,36 +26602,36 @@ class GeneralCommand { } extension $GeneralCommandExtension on GeneralCommand { - GeneralCommand copyWith( - {enums.GeneralCommandType? name, - String? controllingUserId, - Map? arguments}) { + GeneralCommand copyWith({ + enums.GeneralCommandType? name, + String? controllingUserId, + Map? arguments, + }) { return GeneralCommand( - name: name ?? this.name, - controllingUserId: controllingUserId ?? this.controllingUserId, - arguments: arguments ?? this.arguments); + name: name ?? this.name, + controllingUserId: controllingUserId ?? this.controllingUserId, + arguments: arguments ?? this.arguments, + ); } - GeneralCommand copyWithWrapped( - {Wrapped? name, - Wrapped? controllingUserId, - Wrapped?>? arguments}) { + GeneralCommand copyWithWrapped({ + Wrapped? name, + Wrapped? controllingUserId, + Wrapped?>? arguments, + }) { return GeneralCommand( - name: (name != null ? name.value : this.name), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId), - arguments: (arguments != null ? arguments.value : this.arguments)); + name: (name != null ? name.value : this.name), + controllingUserId: (controllingUserId != null + ? controllingUserId.value + : this.controllingUserId), + arguments: (arguments != null ? arguments.value : this.arguments), + ); } } @JsonSerializable(explicitToJson: true) class GeneralCommandMessage { - const GeneralCommandMessage({ - this.data, - this.messageId, - this.messageType, - }); + const GeneralCommandMessage({this.data, this.messageId, this.messageType}); factory GeneralCommandMessage.fromJson(Map json) => _$GeneralCommandMessageFromJson(json); @@ -24908,9 +26651,11 @@ class GeneralCommandMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.generalcommand); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.generalcommand, + ); static const fromJsonFactory = _$GeneralCommandMessageFromJson; @@ -24921,11 +26666,15 @@ class GeneralCommandMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -24940,25 +26689,28 @@ class GeneralCommandMessage { } extension $GeneralCommandMessageExtension on GeneralCommandMessage { - GeneralCommandMessage copyWith( - {GeneralCommand? data, - String? messageId, - enums.SessionMessageType? messageType}) { + GeneralCommandMessage copyWith({ + GeneralCommand? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return GeneralCommandMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - GeneralCommandMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + GeneralCommandMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return GeneralCommandMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -25051,7 +26803,10 @@ class GetProgramsDto { @JsonKey(name: 'EnableImages', includeIfNull: false) final bool? enableImages; @JsonKey( - name: 'EnableTotalRecordCount', includeIfNull: false, defaultValue: true) + name: 'EnableTotalRecordCount', + includeIfNull: false, + defaultValue: true, + ) final bool? enableTotalRecordCount; @JsonKey(name: 'ImageTypeLimit', includeIfNull: false) final int? imageTypeLimit; @@ -25082,75 +26837,119 @@ class GetProgramsDto { return identical(this, other) || (other is GetProgramsDto && (identical(other.channelIds, channelIds) || - const DeepCollectionEquality() - .equals(other.channelIds, channelIds)) && + const DeepCollectionEquality().equals( + other.channelIds, + channelIds, + )) && (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.minStartDate, minStartDate) || - const DeepCollectionEquality() - .equals(other.minStartDate, minStartDate)) && + const DeepCollectionEquality().equals( + other.minStartDate, + minStartDate, + )) && (identical(other.hasAired, hasAired) || - const DeepCollectionEquality() - .equals(other.hasAired, hasAired)) && + const DeepCollectionEquality().equals( + other.hasAired, + hasAired, + )) && (identical(other.isAiring, isAiring) || - const DeepCollectionEquality() - .equals(other.isAiring, isAiring)) && + const DeepCollectionEquality().equals( + other.isAiring, + isAiring, + )) && (identical(other.maxStartDate, maxStartDate) || - const DeepCollectionEquality() - .equals(other.maxStartDate, maxStartDate)) && + const DeepCollectionEquality().equals( + other.maxStartDate, + maxStartDate, + )) && (identical(other.minEndDate, minEndDate) || - const DeepCollectionEquality() - .equals(other.minEndDate, minEndDate)) && + const DeepCollectionEquality().equals( + other.minEndDate, + minEndDate, + )) && (identical(other.maxEndDate, maxEndDate) || - const DeepCollectionEquality() - .equals(other.maxEndDate, maxEndDate)) && + const DeepCollectionEquality().equals( + other.maxEndDate, + maxEndDate, + )) && (identical(other.isMovie, isMovie) || - const DeepCollectionEquality() - .equals(other.isMovie, isMovie)) && + const DeepCollectionEquality().equals( + other.isMovie, + isMovie, + )) && (identical(other.isSeries, isSeries) || - const DeepCollectionEquality() - .equals(other.isSeries, isSeries)) && + const DeepCollectionEquality().equals( + 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.isSports, isSports) || - const DeepCollectionEquality() - .equals(other.isSports, isSports)) && + const DeepCollectionEquality().equals( + other.isSports, + isSports, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex)) && + const DeepCollectionEquality().equals( + 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.sortOrder, sortOrder) || - const DeepCollectionEquality() - .equals(other.sortOrder, sortOrder)) && + const DeepCollectionEquality().equals( + other.sortOrder, + sortOrder, + )) && (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && (identical(other.genreIds, genreIds) || - const DeepCollectionEquality() - .equals(other.genreIds, genreIds)) && + const DeepCollectionEquality().equals( + other.genreIds, + genreIds, + )) && (identical(other.enableImages, enableImages) || - const DeepCollectionEquality() - .equals(other.enableImages, enableImages)) && + const DeepCollectionEquality().equals( + other.enableImages, + enableImages, + )) && (identical(other.enableTotalRecordCount, enableTotalRecordCount) || const DeepCollectionEquality().equals( - other.enableTotalRecordCount, enableTotalRecordCount)) && + other.enableTotalRecordCount, + enableTotalRecordCount, + )) && (identical(other.imageTypeLimit, imageTypeLimit) || - const DeepCollectionEquality() - .equals(other.imageTypeLimit, imageTypeLimit)) && + const DeepCollectionEquality().equals( + other.imageTypeLimit, + imageTypeLimit, + )) && (identical(other.enableImageTypes, enableImageTypes) || - const DeepCollectionEquality() - .equals(other.enableImageTypes, enableImageTypes)) && + const DeepCollectionEquality().equals( + other.enableImageTypes, + enableImageTypes, + )) && (identical(other.enableUserData, enableUserData) || - const DeepCollectionEquality() - .equals(other.enableUserData, enableUserData)) && + const DeepCollectionEquality().equals( + other.enableUserData, + enableUserData, + )) && (identical(other.seriesTimerId, seriesTimerId) || - const DeepCollectionEquality().equals(other.seriesTimerId, seriesTimerId)) && - (identical(other.librarySeriesId, librarySeriesId) || const DeepCollectionEquality().equals(other.librarySeriesId, librarySeriesId)) && - (identical(other.fields, fields) || const DeepCollectionEquality().equals(other.fields, fields))); + const DeepCollectionEquality().equals( + other.seriesTimerId, + seriesTimerId, + )) && + (identical(other.librarySeriesId, librarySeriesId) || + const DeepCollectionEquality().equals( + other.librarySeriesId, + librarySeriesId, + )) && + (identical(other.fields, fields) || + const DeepCollectionEquality().equals(other.fields, fields))); } @override @@ -25189,135 +26988,143 @@ class GetProgramsDto { } extension $GetProgramsDtoExtension on GetProgramsDto { - GetProgramsDto copyWith( - {List? channelIds, - String? userId, - DateTime? minStartDate, - bool? hasAired, - bool? isAiring, - DateTime? maxStartDate, - DateTime? minEndDate, - DateTime? maxEndDate, - bool? isMovie, - bool? isSeries, - bool? isNews, - bool? isKids, - bool? isSports, - int? startIndex, - int? limit, - List? sortBy, - List? sortOrder, - List? genres, - List? genreIds, - bool? enableImages, - bool? enableTotalRecordCount, - int? imageTypeLimit, - List? enableImageTypes, - bool? enableUserData, - String? seriesTimerId, - String? librarySeriesId, - List? fields}) { + GetProgramsDto copyWith({ + List? channelIds, + String? userId, + DateTime? minStartDate, + bool? hasAired, + bool? isAiring, + DateTime? maxStartDate, + DateTime? minEndDate, + DateTime? maxEndDate, + bool? isMovie, + bool? isSeries, + bool? isNews, + bool? isKids, + bool? isSports, + int? startIndex, + int? limit, + List? sortBy, + List? sortOrder, + List? genres, + List? genreIds, + bool? enableImages, + bool? enableTotalRecordCount, + int? imageTypeLimit, + List? enableImageTypes, + bool? enableUserData, + String? seriesTimerId, + String? librarySeriesId, + List? fields, + }) { return GetProgramsDto( - channelIds: channelIds ?? this.channelIds, - userId: userId ?? this.userId, - minStartDate: minStartDate ?? this.minStartDate, - hasAired: hasAired ?? this.hasAired, - isAiring: isAiring ?? this.isAiring, - maxStartDate: maxStartDate ?? this.maxStartDate, - minEndDate: minEndDate ?? this.minEndDate, - maxEndDate: maxEndDate ?? this.maxEndDate, - isMovie: isMovie ?? this.isMovie, - isSeries: isSeries ?? this.isSeries, - isNews: isNews ?? this.isNews, - isKids: isKids ?? this.isKids, - isSports: isSports ?? this.isSports, - startIndex: startIndex ?? this.startIndex, - limit: limit ?? this.limit, - sortBy: sortBy ?? this.sortBy, - sortOrder: sortOrder ?? this.sortOrder, - genres: genres ?? this.genres, - genreIds: genreIds ?? this.genreIds, - enableImages: enableImages ?? this.enableImages, - enableTotalRecordCount: - enableTotalRecordCount ?? this.enableTotalRecordCount, - imageTypeLimit: imageTypeLimit ?? this.imageTypeLimit, - enableImageTypes: enableImageTypes ?? this.enableImageTypes, - enableUserData: enableUserData ?? this.enableUserData, - seriesTimerId: seriesTimerId ?? this.seriesTimerId, - librarySeriesId: librarySeriesId ?? this.librarySeriesId, - fields: fields ?? this.fields); + channelIds: channelIds ?? this.channelIds, + userId: userId ?? this.userId, + minStartDate: minStartDate ?? this.minStartDate, + hasAired: hasAired ?? this.hasAired, + isAiring: isAiring ?? this.isAiring, + maxStartDate: maxStartDate ?? this.maxStartDate, + minEndDate: minEndDate ?? this.minEndDate, + maxEndDate: maxEndDate ?? this.maxEndDate, + isMovie: isMovie ?? this.isMovie, + isSeries: isSeries ?? this.isSeries, + isNews: isNews ?? this.isNews, + isKids: isKids ?? this.isKids, + isSports: isSports ?? this.isSports, + startIndex: startIndex ?? this.startIndex, + limit: limit ?? this.limit, + sortBy: sortBy ?? this.sortBy, + sortOrder: sortOrder ?? this.sortOrder, + genres: genres ?? this.genres, + genreIds: genreIds ?? this.genreIds, + enableImages: enableImages ?? this.enableImages, + enableTotalRecordCount: + enableTotalRecordCount ?? this.enableTotalRecordCount, + imageTypeLimit: imageTypeLimit ?? this.imageTypeLimit, + enableImageTypes: enableImageTypes ?? this.enableImageTypes, + enableUserData: enableUserData ?? this.enableUserData, + seriesTimerId: seriesTimerId ?? this.seriesTimerId, + librarySeriesId: librarySeriesId ?? this.librarySeriesId, + fields: fields ?? this.fields, + ); } - GetProgramsDto copyWithWrapped( - {Wrapped?>? channelIds, - Wrapped? userId, - Wrapped? minStartDate, - Wrapped? hasAired, - Wrapped? isAiring, - Wrapped? maxStartDate, - Wrapped? minEndDate, - Wrapped? maxEndDate, - Wrapped? isMovie, - Wrapped? isSeries, - Wrapped? isNews, - Wrapped? isKids, - Wrapped? isSports, - Wrapped? startIndex, - Wrapped? limit, - Wrapped?>? sortBy, - Wrapped?>? sortOrder, - Wrapped?>? genres, - Wrapped?>? genreIds, - Wrapped? enableImages, - Wrapped? enableTotalRecordCount, - Wrapped? imageTypeLimit, - Wrapped?>? enableImageTypes, - Wrapped? enableUserData, - Wrapped? seriesTimerId, - Wrapped? librarySeriesId, - Wrapped?>? fields}) { + GetProgramsDto copyWithWrapped({ + Wrapped?>? channelIds, + Wrapped? userId, + Wrapped? minStartDate, + Wrapped? hasAired, + Wrapped? isAiring, + Wrapped? maxStartDate, + Wrapped? minEndDate, + Wrapped? maxEndDate, + Wrapped? isMovie, + Wrapped? isSeries, + Wrapped? isNews, + Wrapped? isKids, + Wrapped? isSports, + Wrapped? startIndex, + Wrapped? limit, + Wrapped?>? sortBy, + Wrapped?>? sortOrder, + Wrapped?>? genres, + Wrapped?>? genreIds, + Wrapped? enableImages, + Wrapped? enableTotalRecordCount, + Wrapped? imageTypeLimit, + Wrapped?>? enableImageTypes, + Wrapped? enableUserData, + Wrapped? seriesTimerId, + Wrapped? librarySeriesId, + Wrapped?>? fields, + }) { return GetProgramsDto( - channelIds: (channelIds != null ? channelIds.value : this.channelIds), - userId: (userId != null ? userId.value : this.userId), - 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), - minEndDate: (minEndDate != null ? minEndDate.value : this.minEndDate), - maxEndDate: (maxEndDate != null ? maxEndDate.value : this.maxEndDate), - isMovie: (isMovie != null ? isMovie.value : this.isMovie), - isSeries: (isSeries != null ? isSeries.value : this.isSeries), - isNews: (isNews != null ? isNews.value : this.isNews), - isKids: (isKids != null ? isKids.value : this.isKids), - isSports: (isSports != null ? isSports.value : this.isSports), - startIndex: (startIndex != null ? startIndex.value : this.startIndex), - limit: (limit != null ? limit.value : this.limit), - sortBy: (sortBy != null ? sortBy.value : this.sortBy), - 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), - fields: (fields != null ? fields.value : this.fields)); + channelIds: (channelIds != null ? channelIds.value : this.channelIds), + userId: (userId != null ? userId.value : this.userId), + 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), + minEndDate: (minEndDate != null ? minEndDate.value : this.minEndDate), + maxEndDate: (maxEndDate != null ? maxEndDate.value : this.maxEndDate), + isMovie: (isMovie != null ? isMovie.value : this.isMovie), + isSeries: (isSeries != null ? isSeries.value : this.isSeries), + isNews: (isNews != null ? isNews.value : this.isNews), + isKids: (isKids != null ? isKids.value : this.isKids), + isSports: (isSports != null ? isSports.value : this.isSports), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + limit: (limit != null ? limit.value : this.limit), + sortBy: (sortBy != null ? sortBy.value : this.sortBy), + 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), + fields: (fields != null ? fields.value : this.fields), + ); } } @@ -25359,19 +27166,27 @@ class GroupInfoDto { return identical(this, other) || (other is GroupInfoDto && (identical(other.groupId, groupId) || - const DeepCollectionEquality() - .equals(other.groupId, groupId)) && + const DeepCollectionEquality().equals( + other.groupId, + groupId, + )) && (identical(other.groupName, groupName) || - const DeepCollectionEquality() - .equals(other.groupName, groupName)) && + const DeepCollectionEquality().equals( + other.groupName, + groupName, + )) && (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && (identical(other.participants, participants) || - const DeepCollectionEquality() - .equals(other.participants, participants)) && + const DeepCollectionEquality().equals( + other.participants, + participants, + )) && (identical(other.lastUpdatedAt, lastUpdatedAt) || - const DeepCollectionEquality() - .equals(other.lastUpdatedAt, lastUpdatedAt))); + const DeepCollectionEquality().equals( + other.lastUpdatedAt, + lastUpdatedAt, + ))); } @override @@ -25388,44 +27203,46 @@ class GroupInfoDto { } extension $GroupInfoDtoExtension on GroupInfoDto { - GroupInfoDto copyWith( - {String? groupId, - String? groupName, - enums.GroupStateType? state, - List? participants, - DateTime? lastUpdatedAt}) { + GroupInfoDto copyWith({ + String? groupId, + String? groupName, + enums.GroupStateType? state, + List? participants, + DateTime? lastUpdatedAt, + }) { return GroupInfoDto( - groupId: groupId ?? this.groupId, - groupName: groupName ?? this.groupName, - state: state ?? this.state, - participants: participants ?? this.participants, - lastUpdatedAt: lastUpdatedAt ?? this.lastUpdatedAt); + groupId: groupId ?? this.groupId, + groupName: groupName ?? this.groupName, + state: state ?? this.state, + participants: participants ?? this.participants, + lastUpdatedAt: lastUpdatedAt ?? this.lastUpdatedAt, + ); } - GroupInfoDto copyWithWrapped( - {Wrapped? groupId, - Wrapped? groupName, - Wrapped? state, - Wrapped?>? participants, - Wrapped? lastUpdatedAt}) { + GroupInfoDto copyWithWrapped({ + Wrapped? groupId, + Wrapped? groupName, + Wrapped? state, + Wrapped?>? participants, + Wrapped? lastUpdatedAt, + }) { return 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class GroupInfoDtoGroupUpdate { - const GroupInfoDtoGroupUpdate({ - this.groupId, - this.type, - this.data, - }); + const GroupInfoDtoGroupUpdate({this.groupId, this.type, this.data}); factory GroupInfoDtoGroupUpdate.fromJson(Map json) => _$GroupInfoDtoGroupUpdateFromJson(json); @@ -25451,8 +27268,10 @@ class GroupInfoDtoGroupUpdate { return identical(this, other) || (other is GroupInfoDtoGroupUpdate && (identical(other.groupId, groupId) || - const DeepCollectionEquality() - .equals(other.groupId, groupId)) && + const DeepCollectionEquality().equals( + other.groupId, + groupId, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.data, data) || @@ -25471,31 +27290,34 @@ class GroupInfoDtoGroupUpdate { } extension $GroupInfoDtoGroupUpdateExtension on GroupInfoDtoGroupUpdate { - GroupInfoDtoGroupUpdate copyWith( - {String? groupId, enums.GroupUpdateType? type, GroupInfoDto? data}) { + GroupInfoDtoGroupUpdate copyWith({ + String? groupId, + enums.GroupUpdateType? type, + GroupInfoDto? data, + }) { return GroupInfoDtoGroupUpdate( - groupId: groupId ?? this.groupId, - type: type ?? this.type, - data: data ?? this.data); + groupId: groupId ?? this.groupId, + type: type ?? this.type, + data: data ?? this.data, + ); } - GroupInfoDtoGroupUpdate copyWithWrapped( - {Wrapped? groupId, - Wrapped? type, - Wrapped? data}) { + GroupInfoDtoGroupUpdate copyWithWrapped({ + Wrapped? groupId, + Wrapped? type, + Wrapped? data, + }) { return GroupInfoDtoGroupUpdate( - groupId: (groupId != null ? groupId.value : this.groupId), - type: (type != null ? type.value : this.type), - data: (data != null ? data.value : this.data)); + groupId: (groupId != null ? groupId.value : this.groupId), + type: (type != null ? type.value : this.type), + data: (data != null ? data.value : this.data), + ); } } @JsonSerializable(explicitToJson: true) class GroupStateUpdate { - const GroupStateUpdate({ - this.state, - this.reason, - }); + const GroupStateUpdate({this.state, this.reason}); factory GroupStateUpdate.fromJson(Map json) => _$GroupStateUpdateFromJson(json); @@ -25540,28 +27362,30 @@ class GroupStateUpdate { } extension $GroupStateUpdateExtension on GroupStateUpdate { - GroupStateUpdate copyWith( - {enums.GroupStateType? state, enums.PlaybackRequestType? reason}) { + GroupStateUpdate copyWith({ + enums.GroupStateType? state, + enums.PlaybackRequestType? reason, + }) { return GroupStateUpdate( - state: state ?? this.state, reason: reason ?? this.reason); + state: state ?? this.state, + reason: reason ?? this.reason, + ); } - GroupStateUpdate copyWithWrapped( - {Wrapped? state, - Wrapped? reason}) { + GroupStateUpdate copyWithWrapped({ + Wrapped? state, + Wrapped? reason, + }) { return GroupStateUpdate( - state: (state != null ? state.value : this.state), - reason: (reason != null ? reason.value : this.reason)); + state: (state != null ? state.value : this.state), + reason: (reason != null ? reason.value : this.reason), + ); } } @JsonSerializable(explicitToJson: true) class GroupStateUpdateGroupUpdate { - const GroupStateUpdateGroupUpdate({ - this.groupId, - this.type, - this.data, - }); + const GroupStateUpdateGroupUpdate({this.groupId, this.type, this.data}); factory GroupStateUpdateGroupUpdate.fromJson(Map json) => _$GroupStateUpdateGroupUpdateFromJson(json); @@ -25587,8 +27411,10 @@ class GroupStateUpdateGroupUpdate { return identical(this, other) || (other is GroupStateUpdateGroupUpdate && (identical(other.groupId, groupId) || - const DeepCollectionEquality() - .equals(other.groupId, groupId)) && + const DeepCollectionEquality().equals( + other.groupId, + groupId, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.data, data) || @@ -25607,31 +27433,34 @@ class GroupStateUpdateGroupUpdate { } extension $GroupStateUpdateGroupUpdateExtension on GroupStateUpdateGroupUpdate { - GroupStateUpdateGroupUpdate copyWith( - {String? groupId, enums.GroupUpdateType? type, GroupStateUpdate? data}) { + GroupStateUpdateGroupUpdate copyWith({ + String? groupId, + enums.GroupUpdateType? type, + GroupStateUpdate? data, + }) { return GroupStateUpdateGroupUpdate( - groupId: groupId ?? this.groupId, - type: type ?? this.type, - data: data ?? this.data); + groupId: groupId ?? this.groupId, + type: type ?? this.type, + data: data ?? this.data, + ); } - GroupStateUpdateGroupUpdate copyWithWrapped( - {Wrapped? groupId, - Wrapped? type, - Wrapped? data}) { + GroupStateUpdateGroupUpdate copyWithWrapped({ + Wrapped? groupId, + Wrapped? type, + Wrapped? data, + }) { return GroupStateUpdateGroupUpdate( - groupId: (groupId != null ? groupId.value : this.groupId), - type: (type != null ? type.value : this.type), - data: (data != null ? data.value : this.data)); + groupId: (groupId != null ? groupId.value : this.groupId), + type: (type != null ? type.value : this.type), + data: (data != null ? data.value : this.data), + ); } } @JsonSerializable(explicitToJson: true) class GroupUpdate { - const GroupUpdate({ - this.groupId, - this.type, - }); + const GroupUpdate({this.groupId, this.type}); factory GroupUpdate.fromJson(Map json) => _$GroupUpdateFromJson(json); @@ -25655,8 +27484,10 @@ class GroupUpdate { return identical(this, other) || (other is GroupUpdate && (identical(other.groupId, groupId) || - const DeepCollectionEquality() - .equals(other.groupId, groupId)) && + const DeepCollectionEquality().equals( + other.groupId, + groupId, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @@ -25674,23 +27505,25 @@ class GroupUpdate { extension $GroupUpdateExtension on GroupUpdate { GroupUpdate copyWith({String? groupId, enums.GroupUpdateType? type}) { return GroupUpdate( - groupId: groupId ?? this.groupId, type: type ?? this.type); + groupId: groupId ?? this.groupId, + type: type ?? this.type, + ); } - GroupUpdate copyWithWrapped( - {Wrapped? groupId, Wrapped? type}) { + GroupUpdate copyWithWrapped({ + Wrapped? groupId, + Wrapped? type, + }) { return GroupUpdate( - groupId: (groupId != null ? groupId.value : this.groupId), - type: (type != null ? type.value : this.type)); + groupId: (groupId != null ? groupId.value : this.groupId), + type: (type != null ? type.value : this.type), + ); } } @JsonSerializable(explicitToJson: true) class GuideInfo { - const GuideInfo({ - this.startDate, - this.endDate, - }); + const GuideInfo({this.startDate, this.endDate}); factory GuideInfo.fromJson(Map json) => _$GuideInfoFromJson(json); @@ -25709,8 +27542,10 @@ class GuideInfo { return identical(this, other) || (other is GuideInfo && (identical(other.startDate, startDate) || - const DeepCollectionEquality() - .equals(other.startDate, startDate)) && + const DeepCollectionEquality().equals( + other.startDate, + startDate, + )) && (identical(other.endDate, endDate) || const DeepCollectionEquality().equals(other.endDate, endDate))); } @@ -25728,23 +27563,25 @@ class GuideInfo { extension $GuideInfoExtension on GuideInfo { GuideInfo copyWith({DateTime? startDate, DateTime? endDate}) { return GuideInfo( - startDate: startDate ?? this.startDate, - endDate: endDate ?? this.endDate); + startDate: startDate ?? this.startDate, + endDate: endDate ?? this.endDate, + ); } - GuideInfo copyWithWrapped( - {Wrapped? startDate, Wrapped? endDate}) { + GuideInfo copyWithWrapped({ + Wrapped? startDate, + Wrapped? endDate, + }) { return GuideInfo( - startDate: (startDate != null ? startDate.value : this.startDate), - endDate: (endDate != null ? endDate.value : this.endDate)); + startDate: (startDate != null ? startDate.value : this.startDate), + endDate: (endDate != null ? endDate.value : this.endDate), + ); } } @JsonSerializable(explicitToJson: true) class IgnoreWaitRequestDto { - const IgnoreWaitRequestDto({ - this.ignoreWait, - }); + const IgnoreWaitRequestDto({this.ignoreWait}); factory IgnoreWaitRequestDto.fromJson(Map json) => _$IgnoreWaitRequestDtoFromJson(json); @@ -25761,8 +27598,10 @@ class IgnoreWaitRequestDto { return identical(this, other) || (other is IgnoreWaitRequestDto && (identical(other.ignoreWait, ignoreWait) || - const DeepCollectionEquality() - .equals(other.ignoreWait, ignoreWait))); + const DeepCollectionEquality().equals( + other.ignoreWait, + ignoreWait, + ))); } @override @@ -25780,7 +27619,8 @@ extension $IgnoreWaitRequestDtoExtension on IgnoreWaitRequestDto { IgnoreWaitRequestDto copyWithWrapped({Wrapped? ignoreWait}) { return IgnoreWaitRequestDto( - ignoreWait: (ignoreWait != null ? ignoreWait.value : this.ignoreWait)); + ignoreWait: (ignoreWait != null ? ignoreWait.value : this.ignoreWait), + ); } } @@ -25831,19 +27671,27 @@ class ImageInfo { return identical(this, other) || (other is ImageInfo && (identical(other.imageType, imageType) || - const DeepCollectionEquality() - .equals(other.imageType, imageType)) && + const DeepCollectionEquality().equals( + other.imageType, + imageType, + )) && (identical(other.imageIndex, imageIndex) || - const DeepCollectionEquality() - .equals(other.imageIndex, imageIndex)) && + const DeepCollectionEquality().equals( + other.imageIndex, + imageIndex, + )) && (identical(other.imageTag, imageTag) || - const DeepCollectionEquality() - .equals(other.imageTag, imageTag)) && + const DeepCollectionEquality().equals( + other.imageTag, + imageTag, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.blurHash, blurHash) || - const DeepCollectionEquality() - .equals(other.blurHash, blurHash)) && + const DeepCollectionEquality().equals( + other.blurHash, + blurHash, + )) && (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.width, width) || @@ -25869,54 +27717,54 @@ class ImageInfo { } extension $ImageInfoExtension on ImageInfo { - ImageInfo copyWith( - {enums.ImageType? imageType, - int? imageIndex, - String? imageTag, - String? path, - String? blurHash, - int? height, - int? width, - int? size}) { + ImageInfo copyWith({ + enums.ImageType? imageType, + int? imageIndex, + String? imageTag, + String? path, + String? blurHash, + int? height, + int? width, + int? size, + }) { return ImageInfo( - imageType: imageType ?? this.imageType, - imageIndex: imageIndex ?? this.imageIndex, - imageTag: imageTag ?? this.imageTag, - path: path ?? this.path, - blurHash: blurHash ?? this.blurHash, - height: height ?? this.height, - width: width ?? this.width, - size: size ?? this.size); + imageType: imageType ?? this.imageType, + imageIndex: imageIndex ?? this.imageIndex, + imageTag: imageTag ?? this.imageTag, + path: path ?? this.path, + blurHash: blurHash ?? this.blurHash, + height: height ?? this.height, + width: width ?? this.width, + size: size ?? this.size, + ); } - ImageInfo copyWithWrapped( - {Wrapped? imageType, - Wrapped? imageIndex, - Wrapped? imageTag, - Wrapped? path, - Wrapped? blurHash, - Wrapped? height, - Wrapped? width, - Wrapped? size}) { + ImageInfo copyWithWrapped({ + Wrapped? imageType, + Wrapped? imageIndex, + Wrapped? imageTag, + Wrapped? path, + Wrapped? blurHash, + Wrapped? height, + Wrapped? width, + Wrapped? size, + }) { return ImageInfo( - imageType: (imageType != null ? imageType.value : this.imageType), - imageIndex: (imageIndex != null ? imageIndex.value : this.imageIndex), - imageTag: (imageTag != null ? imageTag.value : this.imageTag), - path: (path != null ? path.value : this.path), - blurHash: (blurHash != null ? blurHash.value : this.blurHash), - height: (height != null ? height.value : this.height), - width: (width != null ? width.value : this.width), - size: (size != null ? size.value : this.size)); + imageType: (imageType != null ? imageType.value : this.imageType), + imageIndex: (imageIndex != null ? imageIndex.value : this.imageIndex), + imageTag: (imageTag != null ? imageTag.value : this.imageTag), + path: (path != null ? path.value : this.path), + blurHash: (blurHash != null ? blurHash.value : this.blurHash), + height: (height != null ? height.value : this.height), + width: (width != null ? width.value : this.width), + size: (size != null ? size.value : this.size), + ); } } @JsonSerializable(explicitToJson: true) class ImageOption { - const ImageOption({ - this.type, - this.limit, - this.minWidth, - }); + const ImageOption({this.type, this.limit, this.minWidth}); factory ImageOption.fromJson(Map json) => _$ImageOptionFromJson(json); @@ -25946,8 +27794,10 @@ class ImageOption { (identical(other.limit, limit) || const DeepCollectionEquality().equals(other.limit, limit)) && (identical(other.minWidth, minWidth) || - const DeepCollectionEquality() - .equals(other.minWidth, minWidth))); + const DeepCollectionEquality().equals( + other.minWidth, + minWidth, + ))); } @override @@ -25964,28 +27814,28 @@ class ImageOption { extension $ImageOptionExtension on ImageOption { ImageOption copyWith({enums.ImageType? type, int? limit, int? minWidth}) { return ImageOption( - type: type ?? this.type, - limit: limit ?? this.limit, - minWidth: minWidth ?? this.minWidth); + type: type ?? this.type, + limit: limit ?? this.limit, + minWidth: minWidth ?? this.minWidth, + ); } - ImageOption copyWithWrapped( - {Wrapped? type, - Wrapped? limit, - Wrapped? minWidth}) { + ImageOption copyWithWrapped({ + Wrapped? type, + Wrapped? limit, + Wrapped? minWidth, + }) { return ImageOption( - type: (type != null ? type.value : this.type), - limit: (limit != null ? limit.value : this.limit), - minWidth: (minWidth != null ? minWidth.value : this.minWidth)); + type: (type != null ? type.value : this.type), + limit: (limit != null ? limit.value : this.limit), + minWidth: (minWidth != null ? minWidth.value : this.minWidth), + ); } } @JsonSerializable(explicitToJson: true) class ImageProviderInfo { - const ImageProviderInfo({ - this.name, - this.supportedImages, - }); + const ImageProviderInfo({this.name, this.supportedImages}); factory ImageProviderInfo.fromJson(Map json) => _$ImageProviderInfoFromJson(json); @@ -26011,8 +27861,10 @@ class ImageProviderInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.supportedImages, supportedImages) || - const DeepCollectionEquality() - .equals(other.supportedImages, supportedImages))); + const DeepCollectionEquality().equals( + other.supportedImages, + supportedImages, + ))); } @override @@ -26026,29 +27878,32 @@ class ImageProviderInfo { } extension $ImageProviderInfoExtension on ImageProviderInfo { - ImageProviderInfo copyWith( - {String? name, List? supportedImages}) { + ImageProviderInfo copyWith({ + String? name, + List? supportedImages, + }) { return ImageProviderInfo( - name: name ?? this.name, - supportedImages: supportedImages ?? this.supportedImages); + name: name ?? this.name, + supportedImages: supportedImages ?? this.supportedImages, + ); } - ImageProviderInfo copyWithWrapped( - {Wrapped? name, - Wrapped?>? supportedImages}) { + ImageProviderInfo copyWithWrapped({ + Wrapped? name, + Wrapped?>? supportedImages, + }) { return ImageProviderInfo( - name: (name != null ? name.value : this.name), - supportedImages: (supportedImages != null - ? supportedImages.value - : this.supportedImages)); + name: (name != null ? name.value : this.name), + supportedImages: (supportedImages != null + ? supportedImages.value + : this.supportedImages), + ); } } @JsonSerializable(explicitToJson: true) class InboundKeepAliveMessage { - const InboundKeepAliveMessage({ - this.messageType, - }); + const InboundKeepAliveMessage({this.messageType}); factory InboundKeepAliveMessage.fromJson(Map json) => _$InboundKeepAliveMessageFromJson(json); @@ -26064,9 +27919,11 @@ class InboundKeepAliveMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.keepalive); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.keepalive, + ); static const fromJsonFactory = _$InboundKeepAliveMessageFromJson; @@ -26075,8 +27932,10 @@ class InboundKeepAliveMessage { return identical(this, other) || (other is InboundKeepAliveMessage && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -26090,14 +27949,16 @@ class InboundKeepAliveMessage { extension $InboundKeepAliveMessageExtension on InboundKeepAliveMessage { InboundKeepAliveMessage copyWith({enums.SessionMessageType? messageType}) { return InboundKeepAliveMessage( - messageType: messageType ?? this.messageType); + messageType: messageType ?? this.messageType, + ); } - InboundKeepAliveMessage copyWithWrapped( - {Wrapped? messageType}) { + InboundKeepAliveMessage copyWithWrapped({ + Wrapped? messageType, + }) { return InboundKeepAliveMessage( - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -26163,20 +28024,30 @@ class InstallationInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.changelog, changelog) || - const DeepCollectionEquality() - .equals(other.changelog, changelog)) && + const DeepCollectionEquality().equals( + other.changelog, + changelog, + )) && (identical(other.sourceUrl, sourceUrl) || - const DeepCollectionEquality() - .equals(other.sourceUrl, sourceUrl)) && + const DeepCollectionEquality().equals( + other.sourceUrl, + sourceUrl, + )) && (identical(other.checksum, checksum) || - const DeepCollectionEquality() - .equals(other.checksum, checksum)) && + const DeepCollectionEquality().equals( + other.checksum, + checksum, + )) && (identical(other.packageInfo, packageInfo) || - const DeepCollectionEquality() - .equals(other.packageInfo, packageInfo))); + const DeepCollectionEquality().equals( + other.packageInfo, + packageInfo, + ))); } @override @@ -26195,41 +28066,44 @@ class InstallationInfo { } extension $InstallationInfoExtension on InstallationInfo { - InstallationInfo copyWith( - {String? guid, - String? name, - String? version, - String? changelog, - String? sourceUrl, - String? checksum, - PackageInfo? packageInfo}) { + InstallationInfo copyWith({ + String? guid, + String? name, + String? version, + String? changelog, + String? sourceUrl, + String? checksum, + PackageInfo? packageInfo, + }) { return InstallationInfo( - guid: guid ?? this.guid, - name: name ?? this.name, - version: version ?? this.version, - changelog: changelog ?? this.changelog, - sourceUrl: sourceUrl ?? this.sourceUrl, - checksum: checksum ?? this.checksum, - packageInfo: packageInfo ?? this.packageInfo); + guid: guid ?? this.guid, + name: name ?? this.name, + version: version ?? this.version, + changelog: changelog ?? this.changelog, + sourceUrl: sourceUrl ?? this.sourceUrl, + checksum: checksum ?? this.checksum, + packageInfo: packageInfo ?? this.packageInfo, + ); } - InstallationInfo copyWithWrapped( - {Wrapped? guid, - Wrapped? name, - Wrapped? version, - Wrapped? changelog, - Wrapped? sourceUrl, - Wrapped? checksum, - Wrapped? packageInfo}) { + InstallationInfo copyWithWrapped({ + Wrapped? guid, + Wrapped? name, + Wrapped? version, + Wrapped? changelog, + Wrapped? sourceUrl, + Wrapped? checksum, + Wrapped? packageInfo, + }) { return InstallationInfo( - guid: (guid != null ? guid.value : this.guid), - name: (name != null ? name.value : this.name), - version: (version != null ? version.value : this.version), - changelog: (changelog != null ? changelog.value : this.changelog), - sourceUrl: (sourceUrl != null ? sourceUrl.value : this.sourceUrl), - checksum: (checksum != null ? checksum.value : this.checksum), - packageInfo: - (packageInfo != null ? packageInfo.value : this.packageInfo)); + guid: (guid != null ? guid.value : this.guid), + name: (name != null ? name.value : this.name), + version: (version != null ? version.value : this.version), + changelog: (changelog != null ? changelog.value : this.changelog), + sourceUrl: (sourceUrl != null ? sourceUrl.value : this.sourceUrl), + checksum: (checksum != null ? checksum.value : this.checksum), + packageInfo: (packageInfo != null ? packageInfo.value : this.packageInfo), + ); } } @@ -26274,22 +28148,32 @@ class IPlugin { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || - const DeepCollectionEquality() - .equals(other.description, description)) && + const DeepCollectionEquality().equals( + other.description, + description, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.assemblyFilePath, assemblyFilePath) || - const DeepCollectionEquality() - .equals(other.assemblyFilePath, assemblyFilePath)) && + const DeepCollectionEquality().equals( + other.assemblyFilePath, + assemblyFilePath, + )) && (identical(other.canUninstall, canUninstall) || - const DeepCollectionEquality() - .equals(other.canUninstall, canUninstall)) && + const DeepCollectionEquality().equals( + other.canUninstall, + canUninstall, + )) && (identical(other.dataFolderPath, dataFolderPath) || - const DeepCollectionEquality() - .equals(other.dataFolderPath, dataFolderPath))); + const DeepCollectionEquality().equals( + other.dataFolderPath, + dataFolderPath, + ))); } @override @@ -26308,46 +28192,50 @@ class IPlugin { } extension $IPluginExtension on IPlugin { - IPlugin copyWith( - {String? name, - String? description, - String? id, - String? version, - String? assemblyFilePath, - bool? canUninstall, - String? dataFolderPath}) { + IPlugin copyWith({ + String? name, + String? description, + String? id, + String? version, + String? assemblyFilePath, + bool? canUninstall, + String? dataFolderPath, + }) { return IPlugin( - name: name ?? this.name, - description: description ?? this.description, - id: id ?? this.id, - version: version ?? this.version, - assemblyFilePath: assemblyFilePath ?? this.assemblyFilePath, - canUninstall: canUninstall ?? this.canUninstall, - dataFolderPath: dataFolderPath ?? this.dataFolderPath); + name: name ?? this.name, + description: description ?? this.description, + id: id ?? this.id, + version: version ?? this.version, + assemblyFilePath: assemblyFilePath ?? this.assemblyFilePath, + canUninstall: canUninstall ?? this.canUninstall, + dataFolderPath: dataFolderPath ?? this.dataFolderPath, + ); } - IPlugin copyWithWrapped( - {Wrapped? name, - Wrapped? description, - Wrapped? id, - Wrapped? version, - Wrapped? assemblyFilePath, - Wrapped? canUninstall, - Wrapped? dataFolderPath}) { + IPlugin copyWithWrapped({ + Wrapped? name, + Wrapped? description, + Wrapped? id, + Wrapped? version, + Wrapped? assemblyFilePath, + Wrapped? canUninstall, + Wrapped? dataFolderPath, + }) { return IPlugin( - name: (name != null ? name.value : this.name), - 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)); + name: (name != null ? name.value : this.name), + 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), + ); } } @@ -26405,41 +28293,65 @@ class ItemCounts { return identical(this, other) || (other is ItemCounts && (identical(other.movieCount, movieCount) || - const DeepCollectionEquality() - .equals(other.movieCount, movieCount)) && + const DeepCollectionEquality().equals( + other.movieCount, + movieCount, + )) && (identical(other.seriesCount, seriesCount) || - const DeepCollectionEquality() - .equals(other.seriesCount, seriesCount)) && + const DeepCollectionEquality().equals( + other.seriesCount, + seriesCount, + )) && (identical(other.episodeCount, episodeCount) || - const DeepCollectionEquality() - .equals(other.episodeCount, episodeCount)) && + const DeepCollectionEquality().equals( + other.episodeCount, + episodeCount, + )) && (identical(other.artistCount, artistCount) || - const DeepCollectionEquality() - .equals(other.artistCount, artistCount)) && + const DeepCollectionEquality().equals( + other.artistCount, + artistCount, + )) && (identical(other.programCount, programCount) || - const DeepCollectionEquality() - .equals(other.programCount, programCount)) && + const DeepCollectionEquality().equals( + other.programCount, + programCount, + )) && (identical(other.trailerCount, trailerCount) || - const DeepCollectionEquality() - .equals(other.trailerCount, trailerCount)) && + const DeepCollectionEquality().equals( + other.trailerCount, + trailerCount, + )) && (identical(other.songCount, songCount) || - const DeepCollectionEquality() - .equals(other.songCount, songCount)) && + const DeepCollectionEquality().equals( + other.songCount, + songCount, + )) && (identical(other.albumCount, albumCount) || - const DeepCollectionEquality() - .equals(other.albumCount, albumCount)) && + const DeepCollectionEquality().equals( + other.albumCount, + albumCount, + )) && (identical(other.musicVideoCount, musicVideoCount) || - const DeepCollectionEquality() - .equals(other.musicVideoCount, musicVideoCount)) && + const DeepCollectionEquality().equals( + other.musicVideoCount, + musicVideoCount, + )) && (identical(other.boxSetCount, boxSetCount) || - const DeepCollectionEquality() - .equals(other.boxSetCount, boxSetCount)) && + const DeepCollectionEquality().equals( + other.boxSetCount, + boxSetCount, + )) && (identical(other.bookCount, bookCount) || - const DeepCollectionEquality() - .equals(other.bookCount, bookCount)) && + const DeepCollectionEquality().equals( + other.bookCount, + bookCount, + )) && (identical(other.itemCount, itemCount) || - const DeepCollectionEquality() - .equals(other.itemCount, itemCount))); + const DeepCollectionEquality().equals( + other.itemCount, + itemCount, + ))); } @override @@ -26463,76 +28375,78 @@ class ItemCounts { } extension $ItemCountsExtension on ItemCounts { - ItemCounts copyWith( - {int? movieCount, - int? seriesCount, - int? episodeCount, - int? artistCount, - int? programCount, - int? trailerCount, - int? songCount, - int? albumCount, - int? musicVideoCount, - int? boxSetCount, - int? bookCount, - int? itemCount}) { + ItemCounts copyWith({ + int? movieCount, + int? seriesCount, + int? episodeCount, + int? artistCount, + int? programCount, + int? trailerCount, + int? songCount, + int? albumCount, + int? musicVideoCount, + int? boxSetCount, + int? bookCount, + int? itemCount, + }) { return ItemCounts( - movieCount: movieCount ?? this.movieCount, - seriesCount: seriesCount ?? this.seriesCount, - episodeCount: episodeCount ?? this.episodeCount, - artistCount: artistCount ?? this.artistCount, - programCount: programCount ?? this.programCount, - trailerCount: trailerCount ?? this.trailerCount, - songCount: songCount ?? this.songCount, - albumCount: albumCount ?? this.albumCount, - musicVideoCount: musicVideoCount ?? this.musicVideoCount, - boxSetCount: boxSetCount ?? this.boxSetCount, - bookCount: bookCount ?? this.bookCount, - itemCount: itemCount ?? this.itemCount); + movieCount: movieCount ?? this.movieCount, + seriesCount: seriesCount ?? this.seriesCount, + episodeCount: episodeCount ?? this.episodeCount, + artistCount: artistCount ?? this.artistCount, + programCount: programCount ?? this.programCount, + trailerCount: trailerCount ?? this.trailerCount, + songCount: songCount ?? this.songCount, + albumCount: albumCount ?? this.albumCount, + musicVideoCount: musicVideoCount ?? this.musicVideoCount, + boxSetCount: boxSetCount ?? this.boxSetCount, + bookCount: bookCount ?? this.bookCount, + itemCount: itemCount ?? this.itemCount, + ); } - ItemCounts copyWithWrapped( - {Wrapped? movieCount, - Wrapped? seriesCount, - Wrapped? episodeCount, - Wrapped? artistCount, - Wrapped? programCount, - Wrapped? trailerCount, - Wrapped? songCount, - Wrapped? albumCount, - Wrapped? musicVideoCount, - Wrapped? boxSetCount, - Wrapped? bookCount, - Wrapped? itemCount}) { + ItemCounts copyWithWrapped({ + Wrapped? movieCount, + Wrapped? seriesCount, + Wrapped? episodeCount, + Wrapped? artistCount, + Wrapped? programCount, + Wrapped? trailerCount, + Wrapped? songCount, + Wrapped? albumCount, + Wrapped? musicVideoCount, + Wrapped? boxSetCount, + Wrapped? bookCount, + Wrapped? itemCount, + }) { return ItemCounts( - movieCount: (movieCount != null ? movieCount.value : this.movieCount), - seriesCount: - (seriesCount != null ? seriesCount.value : this.seriesCount), - 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), - songCount: (songCount != null ? songCount.value : this.songCount), - albumCount: (albumCount != null ? albumCount.value : this.albumCount), - 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)); + movieCount: (movieCount != null ? movieCount.value : this.movieCount), + seriesCount: (seriesCount != null ? seriesCount.value : this.seriesCount), + 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), + songCount: (songCount != null ? songCount.value : this.songCount), + albumCount: (albumCount != null ? albumCount.value : this.albumCount), + 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), + ); } } @JsonSerializable(explicitToJson: true) class JoinGroupRequestDto { - const JoinGroupRequestDto({ - this.groupId, - }); + const JoinGroupRequestDto({this.groupId}); factory JoinGroupRequestDto.fromJson(Map json) => _$JoinGroupRequestDtoFromJson(json); @@ -26567,17 +28481,14 @@ extension $JoinGroupRequestDtoExtension on JoinGroupRequestDto { JoinGroupRequestDto copyWithWrapped({Wrapped? groupId}) { return JoinGroupRequestDto( - groupId: (groupId != null ? groupId.value : this.groupId)); + groupId: (groupId != null ? groupId.value : this.groupId), + ); } } @JsonSerializable(explicitToJson: true) class LibraryChangedMessage { - const LibraryChangedMessage({ - this.data, - this.messageId, - this.messageType, - }); + const LibraryChangedMessage({this.data, this.messageId, this.messageType}); factory LibraryChangedMessage.fromJson(Map json) => _$LibraryChangedMessageFromJson(json); @@ -26597,9 +28508,11 @@ class LibraryChangedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.librarychanged); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.librarychanged, + ); static const fromJsonFactory = _$LibraryChangedMessageFromJson; @@ -26610,11 +28523,15 @@ class LibraryChangedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -26629,34 +28546,34 @@ class LibraryChangedMessage { } extension $LibraryChangedMessageExtension on LibraryChangedMessage { - LibraryChangedMessage copyWith( - {LibraryUpdateInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + LibraryChangedMessage copyWith({ + LibraryUpdateInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return LibraryChangedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - LibraryChangedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + LibraryChangedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return LibraryChangedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class LibraryOptionInfoDto { - const LibraryOptionInfoDto({ - this.name, - this.defaultEnabled, - }); + const LibraryOptionInfoDto({this.name, this.defaultEnabled}); factory LibraryOptionInfoDto.fromJson(Map json) => _$LibraryOptionInfoDtoFromJson(json); @@ -26677,8 +28594,10 @@ class LibraryOptionInfoDto { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.defaultEnabled, defaultEnabled) || - const DeepCollectionEquality() - .equals(other.defaultEnabled, defaultEnabled))); + const DeepCollectionEquality().equals( + other.defaultEnabled, + defaultEnabled, + ))); } @override @@ -26694,17 +28613,21 @@ class LibraryOptionInfoDto { extension $LibraryOptionInfoDtoExtension on LibraryOptionInfoDto { LibraryOptionInfoDto copyWith({String? name, bool? defaultEnabled}) { return LibraryOptionInfoDto( - name: name ?? this.name, - defaultEnabled: defaultEnabled ?? this.defaultEnabled); + name: name ?? this.name, + defaultEnabled: defaultEnabled ?? this.defaultEnabled, + ); } - LibraryOptionInfoDto copyWithWrapped( - {Wrapped? name, Wrapped? defaultEnabled}) { + LibraryOptionInfoDto copyWithWrapped({ + Wrapped? name, + Wrapped? defaultEnabled, + }) { return LibraryOptionInfoDto( - name: (name != null ? name.value : this.name), - defaultEnabled: (defaultEnabled != null - ? defaultEnabled.value - : this.defaultEnabled)); + name: (name != null ? name.value : this.name), + defaultEnabled: (defaultEnabled != null + ? defaultEnabled.value + : this.defaultEnabled), + ); } } @@ -26776,10 +28699,15 @@ class LibraryOptions { @JsonKey(name: 'EnableTrickplayImageExtraction', includeIfNull: false) final bool? enableTrickplayImageExtraction; @JsonKey( - name: 'ExtractTrickplayImagesDuringLibraryScan', includeIfNull: false) + name: 'ExtractTrickplayImagesDuringLibraryScan', + includeIfNull: false, + ) final bool? extractTrickplayImagesDuringLibraryScan; @JsonKey( - name: 'PathInfos', includeIfNull: false, defaultValue: []) + name: 'PathInfos', + includeIfNull: false, + defaultValue: [], + ) final List? pathInfos; @JsonKey(name: 'SaveLocalMetadata', includeIfNull: false) final bool? saveLocalMetadata; @@ -26803,83 +28731,111 @@ class LibraryOptions { @JsonKey(name: 'SeasonZeroDisplayName', includeIfNull: false) final String? seasonZeroDisplayName; @JsonKey( - name: 'MetadataSavers', includeIfNull: false, defaultValue: []) + name: 'MetadataSavers', + includeIfNull: false, + defaultValue: [], + ) final List? metadataSavers; @JsonKey( - name: 'DisabledLocalMetadataReaders', - includeIfNull: false, - defaultValue: []) + name: 'DisabledLocalMetadataReaders', + includeIfNull: false, + defaultValue: [], + ) final List? disabledLocalMetadataReaders; @JsonKey( - name: 'LocalMetadataReaderOrder', - includeIfNull: false, - defaultValue: []) + name: 'LocalMetadataReaderOrder', + includeIfNull: false, + defaultValue: [], + ) final List? localMetadataReaderOrder; @JsonKey( - name: 'DisabledSubtitleFetchers', - includeIfNull: false, - defaultValue: []) + name: 'DisabledSubtitleFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? disabledSubtitleFetchers; @JsonKey( - name: 'SubtitleFetcherOrder', - includeIfNull: false, - defaultValue: []) + name: 'SubtitleFetcherOrder', + includeIfNull: false, + defaultValue: [], + ) final List? subtitleFetcherOrder; @JsonKey( - name: 'DisabledMediaSegmentProviders', - includeIfNull: false, - defaultValue: []) + name: 'DisabledMediaSegmentProviders', + includeIfNull: false, + defaultValue: [], + ) final List? disabledMediaSegmentProviders; @JsonKey( - name: 'MediaSegmentProvideOrder', - includeIfNull: false, - defaultValue: []) + name: 'MediaSegmentProvideOrder', + includeIfNull: false, + defaultValue: [], + ) final List? mediaSegmentProvideOrder; @JsonKey( - name: 'SkipSubtitlesIfEmbeddedSubtitlesPresent', includeIfNull: false) + name: 'SkipSubtitlesIfEmbeddedSubtitlesPresent', + includeIfNull: false, + ) final bool? skipSubtitlesIfEmbeddedSubtitlesPresent; @JsonKey(name: 'SkipSubtitlesIfAudioTrackMatches', includeIfNull: false) final bool? skipSubtitlesIfAudioTrackMatches; @JsonKey( - name: 'SubtitleDownloadLanguages', - includeIfNull: false, - defaultValue: []) + name: 'SubtitleDownloadLanguages', + includeIfNull: false, + defaultValue: [], + ) final List? subtitleDownloadLanguages; @JsonKey(name: 'RequirePerfectSubtitleMatch', includeIfNull: false) final bool? requirePerfectSubtitleMatch; @JsonKey(name: 'SaveSubtitlesWithMedia', includeIfNull: false) final bool? saveSubtitlesWithMedia; @JsonKey( - name: 'SaveLyricsWithMedia', includeIfNull: false, defaultValue: false) + name: 'SaveLyricsWithMedia', + includeIfNull: false, + defaultValue: false, + ) final bool? saveLyricsWithMedia; @JsonKey( - name: 'SaveTrickplayWithMedia', includeIfNull: false, defaultValue: false) + name: 'SaveTrickplayWithMedia', + includeIfNull: false, + defaultValue: false, + ) final bool? saveTrickplayWithMedia; @JsonKey( - name: 'DisabledLyricFetchers', - includeIfNull: false, - defaultValue: []) + name: 'DisabledLyricFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? disabledLyricFetchers; @JsonKey( - name: 'LyricFetcherOrder', includeIfNull: false, defaultValue: []) + name: 'LyricFetcherOrder', + includeIfNull: false, + defaultValue: [], + ) final List? lyricFetcherOrder; @JsonKey( - name: 'PreferNonstandardArtistsTag', - includeIfNull: false, - defaultValue: false) + name: 'PreferNonstandardArtistsTag', + includeIfNull: false, + defaultValue: false, + ) final bool? preferNonstandardArtistsTag; @JsonKey( - name: 'UseCustomTagDelimiters', includeIfNull: false, defaultValue: false) + name: 'UseCustomTagDelimiters', + includeIfNull: false, + defaultValue: false, + ) final bool? useCustomTagDelimiters; @JsonKey( - name: 'CustomTagDelimiters', - includeIfNull: false, - defaultValue: []) + name: 'CustomTagDelimiters', + includeIfNull: false, + defaultValue: [], + ) final List? customTagDelimiters; @JsonKey( - name: 'DelimiterWhitelist', - includeIfNull: false, - defaultValue: []) + name: 'DelimiterWhitelist', + includeIfNull: false, + defaultValue: [], + ) final List? delimiterWhitelist; @JsonKey(name: 'AutomaticallyAddToCollection', includeIfNull: false) final bool? automaticallyAddToCollection; @@ -26891,7 +28847,10 @@ class LibraryOptions { ) final enums.EmbeddedSubtitleOptions? allowEmbeddedSubtitles; @JsonKey( - name: 'TypeOptions', includeIfNull: false, defaultValue: []) + name: 'TypeOptions', + includeIfNull: false, + defaultValue: [], + ) final List? typeOptions; static const fromJsonFactory = _$LibraryOptionsFromJson; @@ -26900,75 +28859,278 @@ class LibraryOptions { return identical(this, other) || (other is LibraryOptions && (identical(other.enabled, enabled) || - const DeepCollectionEquality() - .equals(other.enabled, enabled)) && + const DeepCollectionEquality().equals( + other.enabled, + enabled, + )) && (identical(other.enablePhotos, enablePhotos) || - const DeepCollectionEquality() - .equals(other.enablePhotos, enablePhotos)) && + const DeepCollectionEquality().equals( + other.enablePhotos, + enablePhotos, + )) && (identical(other.enableRealtimeMonitor, enableRealtimeMonitor) || const DeepCollectionEquality().equals( - other.enableRealtimeMonitor, enableRealtimeMonitor)) && + other.enableRealtimeMonitor, + enableRealtimeMonitor, + )) && (identical(other.enableLUFSScan, enableLUFSScan) || - const DeepCollectionEquality() - .equals(other.enableLUFSScan, enableLUFSScan)) && - (identical(other.enableChapterImageExtraction, enableChapterImageExtraction) || const DeepCollectionEquality().equals( - other.enableChapterImageExtraction, - enableChapterImageExtraction)) && - (identical(other.extractChapterImagesDuringLibraryScan, extractChapterImagesDuringLibraryScan) || + other.enableLUFSScan, + enableLUFSScan, + )) && + (identical( + other.enableChapterImageExtraction, + enableChapterImageExtraction, + ) || const DeepCollectionEquality().equals( - other.extractChapterImagesDuringLibraryScan, - extractChapterImagesDuringLibraryScan)) && - (identical(other.enableTrickplayImageExtraction, enableTrickplayImageExtraction) || + other.enableChapterImageExtraction, + enableChapterImageExtraction, + )) && + (identical( + other.extractChapterImagesDuringLibraryScan, + extractChapterImagesDuringLibraryScan, + ) || const DeepCollectionEquality().equals( - other.enableTrickplayImageExtraction, - enableTrickplayImageExtraction)) && - (identical(other.extractTrickplayImagesDuringLibraryScan, extractTrickplayImagesDuringLibraryScan) || + other.extractChapterImagesDuringLibraryScan, + extractChapterImagesDuringLibraryScan, + )) && + (identical( + other.enableTrickplayImageExtraction, + enableTrickplayImageExtraction, + ) || const DeepCollectionEquality().equals( - other.extractTrickplayImagesDuringLibraryScan, - extractTrickplayImagesDuringLibraryScan)) && + other.enableTrickplayImageExtraction, + enableTrickplayImageExtraction, + )) && + (identical( + other.extractTrickplayImagesDuringLibraryScan, + extractTrickplayImagesDuringLibraryScan, + ) || + const DeepCollectionEquality().equals( + other.extractTrickplayImagesDuringLibraryScan, + extractTrickplayImagesDuringLibraryScan, + )) && (identical(other.pathInfos, pathInfos) || - const DeepCollectionEquality() - .equals(other.pathInfos, pathInfos)) && - (identical(other.saveLocalMetadata, saveLocalMetadata) || - const DeepCollectionEquality() - .equals(other.saveLocalMetadata, saveLocalMetadata)) && - (identical(other.enableInternetProviders, enableInternetProviders) || const DeepCollectionEquality().equals( - other.enableInternetProviders, enableInternetProviders)) && - (identical(other.enableAutomaticSeriesGrouping, enableAutomaticSeriesGrouping) || - const DeepCollectionEquality() - .equals(other.enableAutomaticSeriesGrouping, enableAutomaticSeriesGrouping)) && - (identical(other.enableEmbeddedTitles, enableEmbeddedTitles) || const DeepCollectionEquality().equals(other.enableEmbeddedTitles, enableEmbeddedTitles)) && - (identical(other.enableEmbeddedExtrasTitles, enableEmbeddedExtrasTitles) || const DeepCollectionEquality().equals(other.enableEmbeddedExtrasTitles, enableEmbeddedExtrasTitles)) && - (identical(other.enableEmbeddedEpisodeInfos, enableEmbeddedEpisodeInfos) || const DeepCollectionEquality().equals(other.enableEmbeddedEpisodeInfos, enableEmbeddedEpisodeInfos)) && - (identical(other.automaticRefreshIntervalDays, automaticRefreshIntervalDays) || const DeepCollectionEquality().equals(other.automaticRefreshIntervalDays, automaticRefreshIntervalDays)) && - (identical(other.preferredMetadataLanguage, preferredMetadataLanguage) || const DeepCollectionEquality().equals(other.preferredMetadataLanguage, preferredMetadataLanguage)) && - (identical(other.metadataCountryCode, metadataCountryCode) || const DeepCollectionEquality().equals(other.metadataCountryCode, metadataCountryCode)) && - (identical(other.seasonZeroDisplayName, seasonZeroDisplayName) || const DeepCollectionEquality().equals(other.seasonZeroDisplayName, seasonZeroDisplayName)) && - (identical(other.metadataSavers, metadataSavers) || const DeepCollectionEquality().equals(other.metadataSavers, metadataSavers)) && - (identical(other.disabledLocalMetadataReaders, disabledLocalMetadataReaders) || const DeepCollectionEquality().equals(other.disabledLocalMetadataReaders, disabledLocalMetadataReaders)) && - (identical(other.localMetadataReaderOrder, localMetadataReaderOrder) || const DeepCollectionEquality().equals(other.localMetadataReaderOrder, localMetadataReaderOrder)) && - (identical(other.disabledSubtitleFetchers, disabledSubtitleFetchers) || const DeepCollectionEquality().equals(other.disabledSubtitleFetchers, disabledSubtitleFetchers)) && - (identical(other.subtitleFetcherOrder, subtitleFetcherOrder) || const DeepCollectionEquality().equals(other.subtitleFetcherOrder, subtitleFetcherOrder)) && - (identical(other.disabledMediaSegmentProviders, disabledMediaSegmentProviders) || const DeepCollectionEquality().equals(other.disabledMediaSegmentProviders, disabledMediaSegmentProviders)) && - (identical(other.mediaSegmentProvideOrder, mediaSegmentProvideOrder) || const DeepCollectionEquality().equals(other.mediaSegmentProvideOrder, mediaSegmentProvideOrder)) && - (identical(other.skipSubtitlesIfEmbeddedSubtitlesPresent, skipSubtitlesIfEmbeddedSubtitlesPresent) || const DeepCollectionEquality().equals(other.skipSubtitlesIfEmbeddedSubtitlesPresent, skipSubtitlesIfEmbeddedSubtitlesPresent)) && - (identical(other.skipSubtitlesIfAudioTrackMatches, skipSubtitlesIfAudioTrackMatches) || const DeepCollectionEquality().equals(other.skipSubtitlesIfAudioTrackMatches, skipSubtitlesIfAudioTrackMatches)) && - (identical(other.subtitleDownloadLanguages, subtitleDownloadLanguages) || const DeepCollectionEquality().equals(other.subtitleDownloadLanguages, subtitleDownloadLanguages)) && - (identical(other.requirePerfectSubtitleMatch, requirePerfectSubtitleMatch) || const DeepCollectionEquality().equals(other.requirePerfectSubtitleMatch, requirePerfectSubtitleMatch)) && - (identical(other.saveSubtitlesWithMedia, saveSubtitlesWithMedia) || const DeepCollectionEquality().equals(other.saveSubtitlesWithMedia, saveSubtitlesWithMedia)) && - (identical(other.saveLyricsWithMedia, saveLyricsWithMedia) || const DeepCollectionEquality().equals(other.saveLyricsWithMedia, saveLyricsWithMedia)) && - (identical(other.saveTrickplayWithMedia, saveTrickplayWithMedia) || const DeepCollectionEquality().equals(other.saveTrickplayWithMedia, saveTrickplayWithMedia)) && - (identical(other.disabledLyricFetchers, disabledLyricFetchers) || const DeepCollectionEquality().equals(other.disabledLyricFetchers, disabledLyricFetchers)) && - (identical(other.lyricFetcherOrder, lyricFetcherOrder) || const DeepCollectionEquality().equals(other.lyricFetcherOrder, lyricFetcherOrder)) && - (identical(other.preferNonstandardArtistsTag, preferNonstandardArtistsTag) || const DeepCollectionEquality().equals(other.preferNonstandardArtistsTag, preferNonstandardArtistsTag)) && - (identical(other.useCustomTagDelimiters, useCustomTagDelimiters) || const DeepCollectionEquality().equals(other.useCustomTagDelimiters, useCustomTagDelimiters)) && - (identical(other.customTagDelimiters, customTagDelimiters) || const DeepCollectionEquality().equals(other.customTagDelimiters, customTagDelimiters)) && - (identical(other.delimiterWhitelist, delimiterWhitelist) || const DeepCollectionEquality().equals(other.delimiterWhitelist, delimiterWhitelist)) && - (identical(other.automaticallyAddToCollection, automaticallyAddToCollection) || const DeepCollectionEquality().equals(other.automaticallyAddToCollection, automaticallyAddToCollection)) && - (identical(other.allowEmbeddedSubtitles, allowEmbeddedSubtitles) || const DeepCollectionEquality().equals(other.allowEmbeddedSubtitles, allowEmbeddedSubtitles)) && - (identical(other.typeOptions, typeOptions) || const DeepCollectionEquality().equals(other.typeOptions, typeOptions))); + other.pathInfos, + pathInfos, + )) && + (identical(other.saveLocalMetadata, saveLocalMetadata) || + const DeepCollectionEquality().equals( + other.saveLocalMetadata, + saveLocalMetadata, + )) && + (identical( + other.enableInternetProviders, + enableInternetProviders, + ) || + const DeepCollectionEquality().equals( + other.enableInternetProviders, + enableInternetProviders, + )) && + (identical( + other.enableAutomaticSeriesGrouping, + enableAutomaticSeriesGrouping, + ) || + const DeepCollectionEquality().equals( + other.enableAutomaticSeriesGrouping, + enableAutomaticSeriesGrouping, + )) && + (identical(other.enableEmbeddedTitles, enableEmbeddedTitles) || + const DeepCollectionEquality().equals( + other.enableEmbeddedTitles, + enableEmbeddedTitles, + )) && + (identical( + other.enableEmbeddedExtrasTitles, + enableEmbeddedExtrasTitles, + ) || + const DeepCollectionEquality().equals( + other.enableEmbeddedExtrasTitles, + enableEmbeddedExtrasTitles, + )) && + (identical( + other.enableEmbeddedEpisodeInfos, + enableEmbeddedEpisodeInfos, + ) || + const DeepCollectionEquality().equals( + other.enableEmbeddedEpisodeInfos, + enableEmbeddedEpisodeInfos, + )) && + (identical( + other.automaticRefreshIntervalDays, + automaticRefreshIntervalDays, + ) || + const DeepCollectionEquality().equals( + other.automaticRefreshIntervalDays, + automaticRefreshIntervalDays, + )) && + (identical( + other.preferredMetadataLanguage, + preferredMetadataLanguage, + ) || + const DeepCollectionEquality().equals( + other.preferredMetadataLanguage, + preferredMetadataLanguage, + )) && + (identical(other.metadataCountryCode, metadataCountryCode) || + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && + (identical(other.seasonZeroDisplayName, seasonZeroDisplayName) || + const DeepCollectionEquality().equals( + other.seasonZeroDisplayName, + seasonZeroDisplayName, + )) && + (identical(other.metadataSavers, metadataSavers) || + const DeepCollectionEquality().equals( + other.metadataSavers, + metadataSavers, + )) && + (identical( + other.disabledLocalMetadataReaders, + disabledLocalMetadataReaders, + ) || + const DeepCollectionEquality().equals( + other.disabledLocalMetadataReaders, + disabledLocalMetadataReaders, + )) && + (identical( + other.localMetadataReaderOrder, + localMetadataReaderOrder, + ) || + const DeepCollectionEquality().equals( + other.localMetadataReaderOrder, + localMetadataReaderOrder, + )) && + (identical( + other.disabledSubtitleFetchers, + disabledSubtitleFetchers, + ) || + const DeepCollectionEquality().equals( + other.disabledSubtitleFetchers, + disabledSubtitleFetchers, + )) && + (identical(other.subtitleFetcherOrder, subtitleFetcherOrder) || + const DeepCollectionEquality().equals( + other.subtitleFetcherOrder, + subtitleFetcherOrder, + )) && + (identical( + other.disabledMediaSegmentProviders, + disabledMediaSegmentProviders, + ) || + const DeepCollectionEquality().equals( + other.disabledMediaSegmentProviders, + disabledMediaSegmentProviders, + )) && + (identical( + other.mediaSegmentProvideOrder, + mediaSegmentProvideOrder, + ) || + const DeepCollectionEquality().equals( + other.mediaSegmentProvideOrder, + mediaSegmentProvideOrder, + )) && + (identical( + other.skipSubtitlesIfEmbeddedSubtitlesPresent, + skipSubtitlesIfEmbeddedSubtitlesPresent, + ) || + const DeepCollectionEquality().equals( + other.skipSubtitlesIfEmbeddedSubtitlesPresent, + skipSubtitlesIfEmbeddedSubtitlesPresent, + )) && + (identical( + other.skipSubtitlesIfAudioTrackMatches, + skipSubtitlesIfAudioTrackMatches, + ) || + const DeepCollectionEquality().equals( + other.skipSubtitlesIfAudioTrackMatches, + skipSubtitlesIfAudioTrackMatches, + )) && + (identical( + other.subtitleDownloadLanguages, + subtitleDownloadLanguages, + ) || + const DeepCollectionEquality().equals( + other.subtitleDownloadLanguages, + subtitleDownloadLanguages, + )) && + (identical( + other.requirePerfectSubtitleMatch, + requirePerfectSubtitleMatch, + ) || + const DeepCollectionEquality().equals( + other.requirePerfectSubtitleMatch, + requirePerfectSubtitleMatch, + )) && + (identical(other.saveSubtitlesWithMedia, saveSubtitlesWithMedia) || + const DeepCollectionEquality().equals( + other.saveSubtitlesWithMedia, + saveSubtitlesWithMedia, + )) && + (identical(other.saveLyricsWithMedia, saveLyricsWithMedia) || + const DeepCollectionEquality().equals( + other.saveLyricsWithMedia, + saveLyricsWithMedia, + )) && + (identical(other.saveTrickplayWithMedia, saveTrickplayWithMedia) || + const DeepCollectionEquality().equals( + other.saveTrickplayWithMedia, + saveTrickplayWithMedia, + )) && + (identical(other.disabledLyricFetchers, disabledLyricFetchers) || + const DeepCollectionEquality().equals( + other.disabledLyricFetchers, + disabledLyricFetchers, + )) && + (identical(other.lyricFetcherOrder, lyricFetcherOrder) || + const DeepCollectionEquality().equals( + other.lyricFetcherOrder, + lyricFetcherOrder, + )) && + (identical( + other.preferNonstandardArtistsTag, + preferNonstandardArtistsTag, + ) || + const DeepCollectionEquality().equals( + other.preferNonstandardArtistsTag, + preferNonstandardArtistsTag, + )) && + (identical(other.useCustomTagDelimiters, useCustomTagDelimiters) || + const DeepCollectionEquality().equals( + other.useCustomTagDelimiters, + useCustomTagDelimiters, + )) && + (identical(other.customTagDelimiters, customTagDelimiters) || + const DeepCollectionEquality().equals( + other.customTagDelimiters, + customTagDelimiters, + )) && + (identical(other.delimiterWhitelist, delimiterWhitelist) || + const DeepCollectionEquality().equals( + other.delimiterWhitelist, + delimiterWhitelist, + )) && + (identical( + other.automaticallyAddToCollection, + automaticallyAddToCollection, + ) || + const DeepCollectionEquality().equals( + other.automaticallyAddToCollection, + automaticallyAddToCollection, + )) && + (identical(other.allowEmbeddedSubtitles, allowEmbeddedSubtitles) || + const DeepCollectionEquality().equals( + other.allowEmbeddedSubtitles, + allowEmbeddedSubtitles, + )) && + (identical(other.typeOptions, typeOptions) || + const DeepCollectionEquality().equals( + other.typeOptions, + typeOptions, + ))); } @override @@ -26981,11 +29143,13 @@ class LibraryOptions { const DeepCollectionEquality().hash(enableRealtimeMonitor) ^ const DeepCollectionEquality().hash(enableLUFSScan) ^ const DeepCollectionEquality().hash(enableChapterImageExtraction) ^ - const DeepCollectionEquality() - .hash(extractChapterImagesDuringLibraryScan) ^ + const DeepCollectionEquality().hash( + extractChapterImagesDuringLibraryScan, + ) ^ const DeepCollectionEquality().hash(enableTrickplayImageExtraction) ^ - const DeepCollectionEquality() - .hash(extractTrickplayImagesDuringLibraryScan) ^ + const DeepCollectionEquality().hash( + extractTrickplayImagesDuringLibraryScan, + ) ^ const DeepCollectionEquality().hash(pathInfos) ^ const DeepCollectionEquality().hash(saveLocalMetadata) ^ const DeepCollectionEquality().hash(enableInternetProviders) ^ @@ -27004,8 +29168,9 @@ class LibraryOptions { const DeepCollectionEquality().hash(subtitleFetcherOrder) ^ const DeepCollectionEquality().hash(disabledMediaSegmentProviders) ^ const DeepCollectionEquality().hash(mediaSegmentProvideOrder) ^ - const DeepCollectionEquality() - .hash(skipSubtitlesIfEmbeddedSubtitlesPresent) ^ + const DeepCollectionEquality().hash( + skipSubtitlesIfEmbeddedSubtitlesPresent, + ) ^ const DeepCollectionEquality().hash(skipSubtitlesIfAudioTrackMatches) ^ const DeepCollectionEquality().hash(subtitleDownloadLanguages) ^ const DeepCollectionEquality().hash(requirePerfectSubtitleMatch) ^ @@ -27025,257 +29190,298 @@ class LibraryOptions { } extension $LibraryOptionsExtension on LibraryOptions { - LibraryOptions copyWith( - {bool? enabled, - bool? enablePhotos, - bool? enableRealtimeMonitor, - bool? enableLUFSScan, - bool? enableChapterImageExtraction, - bool? extractChapterImagesDuringLibraryScan, - bool? enableTrickplayImageExtraction, - bool? extractTrickplayImagesDuringLibraryScan, - List? pathInfos, - bool? saveLocalMetadata, - bool? enableInternetProviders, - bool? enableAutomaticSeriesGrouping, - bool? enableEmbeddedTitles, - bool? enableEmbeddedExtrasTitles, - bool? enableEmbeddedEpisodeInfos, - int? automaticRefreshIntervalDays, - String? preferredMetadataLanguage, - String? metadataCountryCode, - String? seasonZeroDisplayName, - List? metadataSavers, - List? disabledLocalMetadataReaders, - List? localMetadataReaderOrder, - List? disabledSubtitleFetchers, - List? subtitleFetcherOrder, - List? disabledMediaSegmentProviders, - List? mediaSegmentProvideOrder, - bool? skipSubtitlesIfEmbeddedSubtitlesPresent, - bool? skipSubtitlesIfAudioTrackMatches, - List? subtitleDownloadLanguages, - bool? requirePerfectSubtitleMatch, - bool? saveSubtitlesWithMedia, - bool? saveLyricsWithMedia, - bool? saveTrickplayWithMedia, - List? disabledLyricFetchers, - List? lyricFetcherOrder, - bool? preferNonstandardArtistsTag, - bool? useCustomTagDelimiters, - List? customTagDelimiters, - List? delimiterWhitelist, - bool? automaticallyAddToCollection, - enums.EmbeddedSubtitleOptions? allowEmbeddedSubtitles, - List? typeOptions}) { + LibraryOptions copyWith({ + bool? enabled, + bool? enablePhotos, + bool? enableRealtimeMonitor, + bool? enableLUFSScan, + bool? enableChapterImageExtraction, + bool? extractChapterImagesDuringLibraryScan, + bool? enableTrickplayImageExtraction, + bool? extractTrickplayImagesDuringLibraryScan, + List? pathInfos, + bool? saveLocalMetadata, + bool? enableInternetProviders, + bool? enableAutomaticSeriesGrouping, + bool? enableEmbeddedTitles, + bool? enableEmbeddedExtrasTitles, + bool? enableEmbeddedEpisodeInfos, + int? automaticRefreshIntervalDays, + String? preferredMetadataLanguage, + String? metadataCountryCode, + String? seasonZeroDisplayName, + List? metadataSavers, + List? disabledLocalMetadataReaders, + List? localMetadataReaderOrder, + List? disabledSubtitleFetchers, + List? subtitleFetcherOrder, + List? disabledMediaSegmentProviders, + List? mediaSegmentProvideOrder, + bool? skipSubtitlesIfEmbeddedSubtitlesPresent, + bool? skipSubtitlesIfAudioTrackMatches, + List? subtitleDownloadLanguages, + bool? requirePerfectSubtitleMatch, + bool? saveSubtitlesWithMedia, + bool? saveLyricsWithMedia, + bool? saveTrickplayWithMedia, + List? disabledLyricFetchers, + List? lyricFetcherOrder, + bool? preferNonstandardArtistsTag, + bool? useCustomTagDelimiters, + List? customTagDelimiters, + List? delimiterWhitelist, + bool? automaticallyAddToCollection, + enums.EmbeddedSubtitleOptions? allowEmbeddedSubtitles, + List? typeOptions, + }) { return LibraryOptions( - enabled: enabled ?? this.enabled, - enablePhotos: enablePhotos ?? this.enablePhotos, - enableRealtimeMonitor: - enableRealtimeMonitor ?? this.enableRealtimeMonitor, - enableLUFSScan: enableLUFSScan ?? this.enableLUFSScan, - enableChapterImageExtraction: - enableChapterImageExtraction ?? this.enableChapterImageExtraction, - extractChapterImagesDuringLibraryScan: - extractChapterImagesDuringLibraryScan ?? - this.extractChapterImagesDuringLibraryScan, - enableTrickplayImageExtraction: enableTrickplayImageExtraction ?? - this.enableTrickplayImageExtraction, - extractTrickplayImagesDuringLibraryScan: - extractTrickplayImagesDuringLibraryScan ?? - this.extractTrickplayImagesDuringLibraryScan, - pathInfos: pathInfos ?? this.pathInfos, - saveLocalMetadata: saveLocalMetadata ?? this.saveLocalMetadata, - 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, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - seasonZeroDisplayName: - seasonZeroDisplayName ?? this.seasonZeroDisplayName, - metadataSavers: metadataSavers ?? this.metadataSavers, - disabledLocalMetadataReaders: - disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, - localMetadataReaderOrder: - localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledSubtitleFetchers: - disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, - subtitleFetcherOrder: subtitleFetcherOrder ?? this.subtitleFetcherOrder, - disabledMediaSegmentProviders: - disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, - mediaSegmentProvideOrder: - mediaSegmentProvideOrder ?? this.mediaSegmentProvideOrder, - skipSubtitlesIfEmbeddedSubtitlesPresent: - 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, - lyricFetcherOrder: lyricFetcherOrder ?? this.lyricFetcherOrder, - preferNonstandardArtistsTag: - preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, - useCustomTagDelimiters: - useCustomTagDelimiters ?? this.useCustomTagDelimiters, - customTagDelimiters: customTagDelimiters ?? this.customTagDelimiters, - delimiterWhitelist: delimiterWhitelist ?? this.delimiterWhitelist, - automaticallyAddToCollection: - automaticallyAddToCollection ?? this.automaticallyAddToCollection, - allowEmbeddedSubtitles: - allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, - typeOptions: typeOptions ?? this.typeOptions); + enabled: enabled ?? this.enabled, + enablePhotos: enablePhotos ?? this.enablePhotos, + enableRealtimeMonitor: + enableRealtimeMonitor ?? this.enableRealtimeMonitor, + enableLUFSScan: enableLUFSScan ?? this.enableLUFSScan, + enableChapterImageExtraction: + enableChapterImageExtraction ?? this.enableChapterImageExtraction, + extractChapterImagesDuringLibraryScan: + extractChapterImagesDuringLibraryScan ?? + this.extractChapterImagesDuringLibraryScan, + enableTrickplayImageExtraction: + enableTrickplayImageExtraction ?? this.enableTrickplayImageExtraction, + extractTrickplayImagesDuringLibraryScan: + extractTrickplayImagesDuringLibraryScan ?? + this.extractTrickplayImagesDuringLibraryScan, + pathInfos: pathInfos ?? this.pathInfos, + saveLocalMetadata: saveLocalMetadata ?? this.saveLocalMetadata, + 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, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + seasonZeroDisplayName: + seasonZeroDisplayName ?? this.seasonZeroDisplayName, + metadataSavers: metadataSavers ?? this.metadataSavers, + disabledLocalMetadataReaders: + disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, + localMetadataReaderOrder: + localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledSubtitleFetchers: + disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, + subtitleFetcherOrder: subtitleFetcherOrder ?? this.subtitleFetcherOrder, + disabledMediaSegmentProviders: + disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, + mediaSegmentProvideOrder: + mediaSegmentProvideOrder ?? this.mediaSegmentProvideOrder, + skipSubtitlesIfEmbeddedSubtitlesPresent: + 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, + lyricFetcherOrder: lyricFetcherOrder ?? this.lyricFetcherOrder, + preferNonstandardArtistsTag: + preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, + useCustomTagDelimiters: + useCustomTagDelimiters ?? this.useCustomTagDelimiters, + customTagDelimiters: customTagDelimiters ?? this.customTagDelimiters, + delimiterWhitelist: delimiterWhitelist ?? this.delimiterWhitelist, + automaticallyAddToCollection: + automaticallyAddToCollection ?? this.automaticallyAddToCollection, + allowEmbeddedSubtitles: + allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, + typeOptions: typeOptions ?? this.typeOptions, + ); } - LibraryOptions copyWithWrapped( - {Wrapped? enabled, - Wrapped? enablePhotos, - Wrapped? enableRealtimeMonitor, - Wrapped? enableLUFSScan, - Wrapped? enableChapterImageExtraction, - Wrapped? extractChapterImagesDuringLibraryScan, - Wrapped? enableTrickplayImageExtraction, - Wrapped? extractTrickplayImagesDuringLibraryScan, - Wrapped?>? pathInfos, - Wrapped? saveLocalMetadata, - Wrapped? enableInternetProviders, - Wrapped? enableAutomaticSeriesGrouping, - Wrapped? enableEmbeddedTitles, - Wrapped? enableEmbeddedExtrasTitles, - Wrapped? enableEmbeddedEpisodeInfos, - Wrapped? automaticRefreshIntervalDays, - Wrapped? preferredMetadataLanguage, - Wrapped? metadataCountryCode, - Wrapped? seasonZeroDisplayName, - Wrapped?>? metadataSavers, - Wrapped?>? disabledLocalMetadataReaders, - Wrapped?>? localMetadataReaderOrder, - Wrapped?>? disabledSubtitleFetchers, - Wrapped?>? subtitleFetcherOrder, - Wrapped?>? disabledMediaSegmentProviders, - Wrapped?>? mediaSegmentProvideOrder, - Wrapped? skipSubtitlesIfEmbeddedSubtitlesPresent, - Wrapped? skipSubtitlesIfAudioTrackMatches, - Wrapped?>? subtitleDownloadLanguages, - Wrapped? requirePerfectSubtitleMatch, - Wrapped? saveSubtitlesWithMedia, - Wrapped? saveLyricsWithMedia, - Wrapped? saveTrickplayWithMedia, - Wrapped?>? disabledLyricFetchers, - Wrapped?>? lyricFetcherOrder, - Wrapped? preferNonstandardArtistsTag, - Wrapped? useCustomTagDelimiters, - Wrapped?>? customTagDelimiters, - Wrapped?>? delimiterWhitelist, - Wrapped? automaticallyAddToCollection, - Wrapped? allowEmbeddedSubtitles, - Wrapped?>? typeOptions}) { + LibraryOptions copyWithWrapped({ + Wrapped? enabled, + Wrapped? enablePhotos, + Wrapped? enableRealtimeMonitor, + Wrapped? enableLUFSScan, + Wrapped? enableChapterImageExtraction, + Wrapped? extractChapterImagesDuringLibraryScan, + Wrapped? enableTrickplayImageExtraction, + Wrapped? extractTrickplayImagesDuringLibraryScan, + Wrapped?>? pathInfos, + Wrapped? saveLocalMetadata, + Wrapped? enableInternetProviders, + Wrapped? enableAutomaticSeriesGrouping, + Wrapped? enableEmbeddedTitles, + Wrapped? enableEmbeddedExtrasTitles, + Wrapped? enableEmbeddedEpisodeInfos, + Wrapped? automaticRefreshIntervalDays, + Wrapped? preferredMetadataLanguage, + Wrapped? metadataCountryCode, + Wrapped? seasonZeroDisplayName, + Wrapped?>? metadataSavers, + Wrapped?>? disabledLocalMetadataReaders, + Wrapped?>? localMetadataReaderOrder, + Wrapped?>? disabledSubtitleFetchers, + Wrapped?>? subtitleFetcherOrder, + Wrapped?>? disabledMediaSegmentProviders, + Wrapped?>? mediaSegmentProvideOrder, + Wrapped? skipSubtitlesIfEmbeddedSubtitlesPresent, + Wrapped? skipSubtitlesIfAudioTrackMatches, + Wrapped?>? subtitleDownloadLanguages, + Wrapped? requirePerfectSubtitleMatch, + Wrapped? saveSubtitlesWithMedia, + Wrapped? saveLyricsWithMedia, + Wrapped? saveTrickplayWithMedia, + Wrapped?>? disabledLyricFetchers, + Wrapped?>? lyricFetcherOrder, + Wrapped? preferNonstandardArtistsTag, + Wrapped? useCustomTagDelimiters, + Wrapped?>? customTagDelimiters, + Wrapped?>? delimiterWhitelist, + Wrapped? automaticallyAddToCollection, + Wrapped? allowEmbeddedSubtitles, + Wrapped?>? typeOptions, + }) { 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), - enableChapterImageExtraction: (enableChapterImageExtraction != null - ? enableChapterImageExtraction.value - : this.enableChapterImageExtraction), - extractChapterImagesDuringLibraryScan: (extractChapterImagesDuringLibraryScan != null - ? extractChapterImagesDuringLibraryScan.value - : this.extractChapterImagesDuringLibraryScan), - enableTrickplayImageExtraction: (enableTrickplayImageExtraction != null - ? enableTrickplayImageExtraction.value - : this.enableTrickplayImageExtraction), - 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), - 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), - 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), - 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), - disabledMediaSegmentProviders: (disabledMediaSegmentProviders != null - ? disabledMediaSegmentProviders.value - : this.disabledMediaSegmentProviders), - mediaSegmentProvideOrder: (mediaSegmentProvideOrder != null ? mediaSegmentProvideOrder.value : this.mediaSegmentProvideOrder), - skipSubtitlesIfEmbeddedSubtitlesPresent: (skipSubtitlesIfEmbeddedSubtitlesPresent != null ? skipSubtitlesIfEmbeddedSubtitlesPresent.value : this.skipSubtitlesIfEmbeddedSubtitlesPresent), - 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), - automaticallyAddToCollection: (automaticallyAddToCollection != null ? automaticallyAddToCollection.value : this.automaticallyAddToCollection), - allowEmbeddedSubtitles: (allowEmbeddedSubtitles != null ? allowEmbeddedSubtitles.value : this.allowEmbeddedSubtitles), - typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions)); + 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), + enableChapterImageExtraction: (enableChapterImageExtraction != null + ? enableChapterImageExtraction.value + : this.enableChapterImageExtraction), + extractChapterImagesDuringLibraryScan: + (extractChapterImagesDuringLibraryScan != null + ? extractChapterImagesDuringLibraryScan.value + : this.extractChapterImagesDuringLibraryScan), + enableTrickplayImageExtraction: (enableTrickplayImageExtraction != null + ? enableTrickplayImageExtraction.value + : this.enableTrickplayImageExtraction), + 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), + 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), + 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), + 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), + disabledMediaSegmentProviders: (disabledMediaSegmentProviders != null + ? disabledMediaSegmentProviders.value + : this.disabledMediaSegmentProviders), + mediaSegmentProvideOrder: (mediaSegmentProvideOrder != null + ? mediaSegmentProvideOrder.value + : this.mediaSegmentProvideOrder), + skipSubtitlesIfEmbeddedSubtitlesPresent: + (skipSubtitlesIfEmbeddedSubtitlesPresent != null + ? skipSubtitlesIfEmbeddedSubtitlesPresent.value + : this.skipSubtitlesIfEmbeddedSubtitlesPresent), + 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), + automaticallyAddToCollection: (automaticallyAddToCollection != null + ? automaticallyAddToCollection.value + : this.automaticallyAddToCollection), + allowEmbeddedSubtitles: (allowEmbeddedSubtitles != null + ? allowEmbeddedSubtitles.value + : this.allowEmbeddedSubtitles), + typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), + ); } } @@ -27296,29 +29502,34 @@ class LibraryOptionsResultDto { Map toJson() => _$LibraryOptionsResultDtoToJson(this); @JsonKey( - name: 'MetadataSavers', - includeIfNull: false, - defaultValue: []) + name: 'MetadataSavers', + includeIfNull: false, + defaultValue: [], + ) final List? metadataSavers; @JsonKey( - name: 'MetadataReaders', - includeIfNull: false, - defaultValue: []) + name: 'MetadataReaders', + includeIfNull: false, + defaultValue: [], + ) final List? metadataReaders; @JsonKey( - name: 'SubtitleFetchers', - includeIfNull: false, - defaultValue: []) + name: 'SubtitleFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? subtitleFetchers; @JsonKey( - name: 'LyricFetchers', - includeIfNull: false, - defaultValue: []) + name: 'LyricFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? lyricFetchers; @JsonKey( - name: 'TypeOptions', - includeIfNull: false, - defaultValue: []) + name: 'TypeOptions', + includeIfNull: false, + defaultValue: [], + ) final List? typeOptions; static const fromJsonFactory = _$LibraryOptionsResultDtoFromJson; @@ -27327,20 +29538,30 @@ class LibraryOptionsResultDto { return identical(this, other) || (other is LibraryOptionsResultDto && (identical(other.metadataSavers, metadataSavers) || - const DeepCollectionEquality() - .equals(other.metadataSavers, metadataSavers)) && + const DeepCollectionEquality().equals( + other.metadataSavers, + metadataSavers, + )) && (identical(other.metadataReaders, metadataReaders) || - const DeepCollectionEquality() - .equals(other.metadataReaders, metadataReaders)) && + const DeepCollectionEquality().equals( + other.metadataReaders, + metadataReaders, + )) && (identical(other.subtitleFetchers, subtitleFetchers) || - const DeepCollectionEquality() - .equals(other.subtitleFetchers, subtitleFetchers)) && + const DeepCollectionEquality().equals( + other.subtitleFetchers, + subtitleFetchers, + )) && (identical(other.lyricFetchers, lyricFetchers) || - const DeepCollectionEquality() - .equals(other.lyricFetchers, lyricFetchers)) && + const DeepCollectionEquality().equals( + other.lyricFetchers, + lyricFetchers, + )) && (identical(other.typeOptions, typeOptions) || - const DeepCollectionEquality() - .equals(other.typeOptions, typeOptions))); + const DeepCollectionEquality().equals( + other.typeOptions, + typeOptions, + ))); } @override @@ -27357,40 +29578,44 @@ class LibraryOptionsResultDto { } extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { - LibraryOptionsResultDto copyWith( - {List? metadataSavers, - List? metadataReaders, - List? subtitleFetchers, - List? lyricFetchers, - List? typeOptions}) { + LibraryOptionsResultDto copyWith({ + List? metadataSavers, + List? metadataReaders, + List? subtitleFetchers, + List? lyricFetchers, + List? typeOptions, + }) { return LibraryOptionsResultDto( - metadataSavers: metadataSavers ?? this.metadataSavers, - metadataReaders: metadataReaders ?? this.metadataReaders, - subtitleFetchers: subtitleFetchers ?? this.subtitleFetchers, - lyricFetchers: lyricFetchers ?? this.lyricFetchers, - typeOptions: typeOptions ?? this.typeOptions); + metadataSavers: metadataSavers ?? this.metadataSavers, + metadataReaders: metadataReaders ?? this.metadataReaders, + subtitleFetchers: subtitleFetchers ?? this.subtitleFetchers, + lyricFetchers: lyricFetchers ?? this.lyricFetchers, + typeOptions: typeOptions ?? this.typeOptions, + ); } - LibraryOptionsResultDto copyWithWrapped( - {Wrapped?>? metadataSavers, - Wrapped?>? metadataReaders, - Wrapped?>? subtitleFetchers, - Wrapped?>? lyricFetchers, - Wrapped?>? typeOptions}) { + LibraryOptionsResultDto copyWithWrapped({ + Wrapped?>? metadataSavers, + Wrapped?>? metadataReaders, + Wrapped?>? subtitleFetchers, + Wrapped?>? lyricFetchers, + 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), - typeOptions: - (typeOptions != null ? typeOptions.value : this.typeOptions)); + 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), + typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), + ); } } @@ -27413,14 +29638,16 @@ class LibraryTypeOptionsDto { @JsonKey(name: 'Type', includeIfNull: false) final String? type; @JsonKey( - name: 'MetadataFetchers', - includeIfNull: false, - defaultValue: []) + name: 'MetadataFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? metadataFetchers; @JsonKey( - name: 'ImageFetchers', - includeIfNull: false, - defaultValue: []) + name: 'ImageFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? imageFetchers; @JsonKey( name: 'SupportedImageTypes', @@ -27430,9 +29657,10 @@ class LibraryTypeOptionsDto { ) final List? supportedImageTypes; @JsonKey( - name: 'DefaultImageOptions', - includeIfNull: false, - defaultValue: []) + name: 'DefaultImageOptions', + includeIfNull: false, + defaultValue: [], + ) final List? defaultImageOptions; static const fromJsonFactory = _$LibraryTypeOptionsDtoFromJson; @@ -27443,17 +29671,25 @@ class LibraryTypeOptionsDto { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || - const DeepCollectionEquality() - .equals(other.metadataFetchers, metadataFetchers)) && + const DeepCollectionEquality().equals( + other.metadataFetchers, + metadataFetchers, + )) && (identical(other.imageFetchers, imageFetchers) || - const DeepCollectionEquality() - .equals(other.imageFetchers, imageFetchers)) && + const DeepCollectionEquality().equals( + other.imageFetchers, + imageFetchers, + )) && (identical(other.supportedImageTypes, supportedImageTypes) || - const DeepCollectionEquality() - .equals(other.supportedImageTypes, supportedImageTypes)) && + const DeepCollectionEquality().equals( + other.supportedImageTypes, + supportedImageTypes, + )) && (identical(other.defaultImageOptions, defaultImageOptions) || - const DeepCollectionEquality() - .equals(other.defaultImageOptions, defaultImageOptions))); + const DeepCollectionEquality().equals( + other.defaultImageOptions, + defaultImageOptions, + ))); } @override @@ -27470,39 +29706,44 @@ class LibraryTypeOptionsDto { } extension $LibraryTypeOptionsDtoExtension on LibraryTypeOptionsDto { - LibraryTypeOptionsDto copyWith( - {String? type, - List? metadataFetchers, - List? imageFetchers, - List? supportedImageTypes, - List? defaultImageOptions}) { + LibraryTypeOptionsDto copyWith({ + String? type, + List? metadataFetchers, + List? imageFetchers, + List? supportedImageTypes, + List? defaultImageOptions, + }) { return LibraryTypeOptionsDto( - type: type ?? this.type, - metadataFetchers: metadataFetchers ?? this.metadataFetchers, - imageFetchers: imageFetchers ?? this.imageFetchers, - supportedImageTypes: supportedImageTypes ?? this.supportedImageTypes, - defaultImageOptions: defaultImageOptions ?? this.defaultImageOptions); + type: type ?? this.type, + metadataFetchers: metadataFetchers ?? this.metadataFetchers, + imageFetchers: imageFetchers ?? this.imageFetchers, + supportedImageTypes: supportedImageTypes ?? this.supportedImageTypes, + defaultImageOptions: defaultImageOptions ?? this.defaultImageOptions, + ); } - LibraryTypeOptionsDto copyWithWrapped( - {Wrapped? type, - Wrapped?>? metadataFetchers, - Wrapped?>? imageFetchers, - Wrapped?>? supportedImageTypes, - Wrapped?>? defaultImageOptions}) { + LibraryTypeOptionsDto copyWithWrapped({ + Wrapped? type, + Wrapped?>? metadataFetchers, + Wrapped?>? imageFetchers, + Wrapped?>? supportedImageTypes, + Wrapped?>? defaultImageOptions, + }) { 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)); + 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), + ); } } @@ -27525,12 +29766,16 @@ class LibraryUpdateInfo { Map toJson() => _$LibraryUpdateInfoToJson(this); @JsonKey( - name: 'FoldersAddedTo', includeIfNull: false, defaultValue: []) + name: 'FoldersAddedTo', + includeIfNull: false, + defaultValue: [], + ) final List? foldersAddedTo; @JsonKey( - name: 'FoldersRemovedFrom', - includeIfNull: false, - defaultValue: []) + name: 'FoldersRemovedFrom', + includeIfNull: false, + defaultValue: [], + ) final List? foldersRemovedFrom; @JsonKey(name: 'ItemsAdded', includeIfNull: false, defaultValue: []) final List? itemsAdded; @@ -27539,7 +29784,10 @@ class LibraryUpdateInfo { @JsonKey(name: 'ItemsUpdated', includeIfNull: false, defaultValue: []) final List? itemsUpdated; @JsonKey( - name: 'CollectionFolders', includeIfNull: false, defaultValue: []) + name: 'CollectionFolders', + includeIfNull: false, + defaultValue: [], + ) final List? collectionFolders; @JsonKey(name: 'IsEmpty', includeIfNull: false) final bool? isEmpty; @@ -27550,23 +29798,35 @@ class LibraryUpdateInfo { return identical(this, other) || (other is LibraryUpdateInfo && (identical(other.foldersAddedTo, foldersAddedTo) || - const DeepCollectionEquality() - .equals(other.foldersAddedTo, foldersAddedTo)) && + const DeepCollectionEquality().equals( + other.foldersAddedTo, + foldersAddedTo, + )) && (identical(other.foldersRemovedFrom, foldersRemovedFrom) || - const DeepCollectionEquality() - .equals(other.foldersRemovedFrom, foldersRemovedFrom)) && + const DeepCollectionEquality().equals( + other.foldersRemovedFrom, + foldersRemovedFrom, + )) && (identical(other.itemsAdded, itemsAdded) || - const DeepCollectionEquality() - .equals(other.itemsAdded, itemsAdded)) && + const DeepCollectionEquality().equals( + other.itemsAdded, + itemsAdded, + )) && (identical(other.itemsRemoved, itemsRemoved) || - const DeepCollectionEquality() - .equals(other.itemsRemoved, itemsRemoved)) && + const DeepCollectionEquality().equals( + other.itemsRemoved, + itemsRemoved, + )) && (identical(other.itemsUpdated, itemsUpdated) || - const DeepCollectionEquality() - .equals(other.itemsUpdated, itemsUpdated)) && + const DeepCollectionEquality().equals( + other.itemsUpdated, + itemsUpdated, + )) && (identical(other.collectionFolders, collectionFolders) || - const DeepCollectionEquality() - .equals(other.collectionFolders, collectionFolders)) && + const DeepCollectionEquality().equals( + other.collectionFolders, + collectionFolders, + )) && (identical(other.isEmpty, isEmpty) || const DeepCollectionEquality().equals(other.isEmpty, isEmpty))); } @@ -27587,48 +29847,54 @@ class LibraryUpdateInfo { } extension $LibraryUpdateInfoExtension on LibraryUpdateInfo { - LibraryUpdateInfo copyWith( - {List? foldersAddedTo, - List? foldersRemovedFrom, - List? itemsAdded, - List? itemsRemoved, - List? itemsUpdated, - List? collectionFolders, - bool? isEmpty}) { + LibraryUpdateInfo copyWith({ + List? foldersAddedTo, + List? foldersRemovedFrom, + List? itemsAdded, + List? itemsRemoved, + List? itemsUpdated, + List? collectionFolders, + bool? isEmpty, + }) { return LibraryUpdateInfo( - foldersAddedTo: foldersAddedTo ?? this.foldersAddedTo, - foldersRemovedFrom: foldersRemovedFrom ?? this.foldersRemovedFrom, - itemsAdded: itemsAdded ?? this.itemsAdded, - itemsRemoved: itemsRemoved ?? this.itemsRemoved, - itemsUpdated: itemsUpdated ?? this.itemsUpdated, - collectionFolders: collectionFolders ?? this.collectionFolders, - isEmpty: isEmpty ?? this.isEmpty); + foldersAddedTo: foldersAddedTo ?? this.foldersAddedTo, + foldersRemovedFrom: foldersRemovedFrom ?? this.foldersRemovedFrom, + itemsAdded: itemsAdded ?? this.itemsAdded, + itemsRemoved: itemsRemoved ?? this.itemsRemoved, + itemsUpdated: itemsUpdated ?? this.itemsUpdated, + collectionFolders: collectionFolders ?? this.collectionFolders, + isEmpty: isEmpty ?? this.isEmpty, + ); } - LibraryUpdateInfo copyWithWrapped( - {Wrapped?>? foldersAddedTo, - Wrapped?>? foldersRemovedFrom, - Wrapped?>? itemsAdded, - Wrapped?>? itemsRemoved, - Wrapped?>? itemsUpdated, - Wrapped?>? collectionFolders, - Wrapped? isEmpty}) { + LibraryUpdateInfo copyWithWrapped({ + Wrapped?>? foldersAddedTo, + Wrapped?>? foldersRemovedFrom, + Wrapped?>? itemsAdded, + Wrapped?>? itemsRemoved, + Wrapped?>? itemsUpdated, + Wrapped?>? collectionFolders, + Wrapped? isEmpty, + }) { return LibraryUpdateInfo( - 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), - isEmpty: (isEmpty != null ? isEmpty.value : this.isEmpty)); + 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), + isEmpty: (isEmpty != null ? isEmpty.value : this.isEmpty), + ); } } @@ -27678,26 +29944,42 @@ class ListingsProviderInfo { @JsonKey(name: 'Path', includeIfNull: false) final String? path; @JsonKey( - name: 'EnabledTuners', includeIfNull: false, defaultValue: []) + name: 'EnabledTuners', + includeIfNull: false, + defaultValue: [], + ) final List? enabledTuners; @JsonKey(name: 'EnableAllTuners', includeIfNull: false) final bool? enableAllTuners; @JsonKey( - name: 'NewsCategories', includeIfNull: false, defaultValue: []) + name: 'NewsCategories', + includeIfNull: false, + defaultValue: [], + ) final List? newsCategories; @JsonKey( - name: 'SportsCategories', includeIfNull: false, defaultValue: []) + name: 'SportsCategories', + includeIfNull: false, + defaultValue: [], + ) final List? sportsCategories; @JsonKey( - name: 'KidsCategories', includeIfNull: false, defaultValue: []) + name: 'KidsCategories', + includeIfNull: false, + defaultValue: [], + ) final List? kidsCategories; @JsonKey( - name: 'MovieCategories', includeIfNull: false, defaultValue: []) + name: 'MovieCategories', + includeIfNull: false, + defaultValue: [], + ) final List? movieCategories; @JsonKey( - name: 'ChannelMappings', - includeIfNull: false, - defaultValue: []) + name: 'ChannelMappings', + includeIfNull: false, + defaultValue: [], + ) final List? channelMappings; @JsonKey(name: 'MoviePrefix', includeIfNull: false) final String? moviePrefix; @@ -27716,52 +29998,82 @@ class ListingsProviderInfo { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.username, username) || - const DeepCollectionEquality() - .equals(other.username, username)) && + const DeepCollectionEquality().equals( + other.username, + username, + )) && (identical(other.password, password) || - const DeepCollectionEquality() - .equals(other.password, password)) && + const DeepCollectionEquality().equals( + other.password, + password, + )) && (identical(other.listingsId, listingsId) || - const DeepCollectionEquality() - .equals(other.listingsId, listingsId)) && + const DeepCollectionEquality().equals( + other.listingsId, + listingsId, + )) && (identical(other.zipCode, zipCode) || - const DeepCollectionEquality() - .equals(other.zipCode, zipCode)) && + const DeepCollectionEquality().equals( + other.zipCode, + zipCode, + )) && (identical(other.country, country) || - const DeepCollectionEquality() - .equals(other.country, country)) && + const DeepCollectionEquality().equals( + other.country, + country, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.enabledTuners, enabledTuners) || - const DeepCollectionEquality() - .equals(other.enabledTuners, enabledTuners)) && + const DeepCollectionEquality().equals( + other.enabledTuners, + enabledTuners, + )) && (identical(other.enableAllTuners, enableAllTuners) || - const DeepCollectionEquality() - .equals(other.enableAllTuners, enableAllTuners)) && + const DeepCollectionEquality().equals( + other.enableAllTuners, + enableAllTuners, + )) && (identical(other.newsCategories, newsCategories) || - const DeepCollectionEquality() - .equals(other.newsCategories, newsCategories)) && + const DeepCollectionEquality().equals( + other.newsCategories, + newsCategories, + )) && (identical(other.sportsCategories, sportsCategories) || - const DeepCollectionEquality() - .equals(other.sportsCategories, sportsCategories)) && + const DeepCollectionEquality().equals( + other.sportsCategories, + sportsCategories, + )) && (identical(other.kidsCategories, kidsCategories) || - const DeepCollectionEquality() - .equals(other.kidsCategories, kidsCategories)) && + const DeepCollectionEquality().equals( + other.kidsCategories, + kidsCategories, + )) && (identical(other.movieCategories, movieCategories) || - const DeepCollectionEquality() - .equals(other.movieCategories, movieCategories)) && + const DeepCollectionEquality().equals( + other.movieCategories, + movieCategories, + )) && (identical(other.channelMappings, channelMappings) || - const DeepCollectionEquality() - .equals(other.channelMappings, channelMappings)) && + const DeepCollectionEquality().equals( + other.channelMappings, + channelMappings, + )) && (identical(other.moviePrefix, moviePrefix) || - const DeepCollectionEquality() - .equals(other.moviePrefix, moviePrefix)) && + const DeepCollectionEquality().equals( + other.moviePrefix, + moviePrefix, + )) && (identical(other.preferredLanguage, preferredLanguage) || - const DeepCollectionEquality() - .equals(other.preferredLanguage, preferredLanguage)) && + const DeepCollectionEquality().equals( + other.preferredLanguage, + preferredLanguage, + )) && (identical(other.userAgent, userAgent) || - const DeepCollectionEquality() - .equals(other.userAgent, userAgent))); + const DeepCollectionEquality().equals( + other.userAgent, + userAgent, + ))); } @override @@ -27791,108 +30103,110 @@ class ListingsProviderInfo { } extension $ListingsProviderInfoExtension on ListingsProviderInfo { - ListingsProviderInfo copyWith( - {String? id, - String? type, - String? username, - String? password, - String? listingsId, - String? zipCode, - String? country, - String? path, - List? enabledTuners, - bool? enableAllTuners, - List? newsCategories, - List? sportsCategories, - List? kidsCategories, - List? movieCategories, - List? channelMappings, - String? moviePrefix, - String? preferredLanguage, - String? userAgent}) { + ListingsProviderInfo copyWith({ + String? id, + String? type, + String? username, + String? password, + String? listingsId, + String? zipCode, + String? country, + String? path, + List? enabledTuners, + bool? enableAllTuners, + List? newsCategories, + List? sportsCategories, + List? kidsCategories, + List? movieCategories, + List? channelMappings, + String? moviePrefix, + String? preferredLanguage, + String? userAgent, + }) { return ListingsProviderInfo( - id: id ?? this.id, - type: type ?? this.type, - username: username ?? this.username, - password: password ?? this.password, - listingsId: listingsId ?? this.listingsId, - zipCode: zipCode ?? this.zipCode, - country: country ?? this.country, - path: path ?? this.path, - enabledTuners: enabledTuners ?? this.enabledTuners, - enableAllTuners: enableAllTuners ?? this.enableAllTuners, - newsCategories: newsCategories ?? this.newsCategories, - sportsCategories: sportsCategories ?? this.sportsCategories, - kidsCategories: kidsCategories ?? this.kidsCategories, - movieCategories: movieCategories ?? this.movieCategories, - channelMappings: channelMappings ?? this.channelMappings, - moviePrefix: moviePrefix ?? this.moviePrefix, - preferredLanguage: preferredLanguage ?? this.preferredLanguage, - userAgent: userAgent ?? this.userAgent); + id: id ?? this.id, + type: type ?? this.type, + username: username ?? this.username, + password: password ?? this.password, + listingsId: listingsId ?? this.listingsId, + zipCode: zipCode ?? this.zipCode, + country: country ?? this.country, + path: path ?? this.path, + enabledTuners: enabledTuners ?? this.enabledTuners, + enableAllTuners: enableAllTuners ?? this.enableAllTuners, + newsCategories: newsCategories ?? this.newsCategories, + sportsCategories: sportsCategories ?? this.sportsCategories, + kidsCategories: kidsCategories ?? this.kidsCategories, + movieCategories: movieCategories ?? this.movieCategories, + channelMappings: channelMappings ?? this.channelMappings, + moviePrefix: moviePrefix ?? this.moviePrefix, + preferredLanguage: preferredLanguage ?? this.preferredLanguage, + userAgent: userAgent ?? this.userAgent, + ); } - ListingsProviderInfo copyWithWrapped( - {Wrapped? id, - Wrapped? type, - Wrapped? username, - Wrapped? password, - Wrapped? listingsId, - Wrapped? zipCode, - Wrapped? country, - Wrapped? path, - Wrapped?>? enabledTuners, - Wrapped? enableAllTuners, - Wrapped?>? newsCategories, - Wrapped?>? sportsCategories, - Wrapped?>? kidsCategories, - Wrapped?>? movieCategories, - Wrapped?>? channelMappings, - Wrapped? moviePrefix, - Wrapped? preferredLanguage, - Wrapped? userAgent}) { + ListingsProviderInfo copyWithWrapped({ + Wrapped? id, + Wrapped? type, + Wrapped? username, + Wrapped? password, + Wrapped? listingsId, + Wrapped? zipCode, + Wrapped? country, + Wrapped? path, + Wrapped?>? enabledTuners, + Wrapped? enableAllTuners, + Wrapped?>? newsCategories, + Wrapped?>? sportsCategories, + Wrapped?>? kidsCategories, + Wrapped?>? movieCategories, + Wrapped?>? channelMappings, + Wrapped? moviePrefix, + Wrapped? preferredLanguage, + Wrapped? userAgent, + }) { return ListingsProviderInfo( - id: (id != null ? id.value : this.id), - type: (type != null ? type.value : this.type), - username: (username != null ? username.value : this.username), - password: (password != null ? password.value : this.password), - listingsId: (listingsId != null ? listingsId.value : this.listingsId), - 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), - moviePrefix: - (moviePrefix != null ? moviePrefix.value : this.moviePrefix), - preferredLanguage: (preferredLanguage != null - ? preferredLanguage.value - : this.preferredLanguage), - userAgent: (userAgent != null ? userAgent.value : this.userAgent)); + id: (id != null ? id.value : this.id), + type: (type != null ? type.value : this.type), + username: (username != null ? username.value : this.username), + password: (password != null ? password.value : this.password), + listingsId: (listingsId != null ? listingsId.value : this.listingsId), + 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), + moviePrefix: (moviePrefix != null ? moviePrefix.value : this.moviePrefix), + preferredLanguage: (preferredLanguage != null + ? preferredLanguage.value + : this.preferredLanguage), + userAgent: (userAgent != null ? userAgent.value : this.userAgent), + ); } } @JsonSerializable(explicitToJson: true) class LiveStreamResponse { - const LiveStreamResponse({ - this.mediaSource, - }); + const LiveStreamResponse({this.mediaSource}); factory LiveStreamResponse.fromJson(Map json) => _$LiveStreamResponseFromJson(json); @@ -27909,8 +30223,10 @@ class LiveStreamResponse { return identical(this, other) || (other is LiveStreamResponse && (identical(other.mediaSource, mediaSource) || - const DeepCollectionEquality() - .equals(other.mediaSource, mediaSource))); + const DeepCollectionEquality().equals( + other.mediaSource, + mediaSource, + ))); } @override @@ -27928,18 +30244,14 @@ extension $LiveStreamResponseExtension on LiveStreamResponse { LiveStreamResponse copyWithWrapped({Wrapped? mediaSource}) { return LiveStreamResponse( - mediaSource: - (mediaSource != null ? mediaSource.value : this.mediaSource)); + mediaSource: (mediaSource != null ? mediaSource.value : this.mediaSource), + ); } } @JsonSerializable(explicitToJson: true) class LiveTvInfo { - const LiveTvInfo({ - this.services, - this.isEnabled, - this.enabledUsers, - }); + const LiveTvInfo({this.services, this.isEnabled, this.enabledUsers}); factory LiveTvInfo.fromJson(Map json) => _$LiveTvInfoFromJson(json); @@ -27948,9 +30260,10 @@ class LiveTvInfo { Map toJson() => _$LiveTvInfoToJson(this); @JsonKey( - name: 'Services', - includeIfNull: false, - defaultValue: []) + name: 'Services', + includeIfNull: false, + defaultValue: [], + ) final List? services; @JsonKey(name: 'IsEnabled', includeIfNull: false) final bool? isEnabled; @@ -27963,14 +30276,20 @@ class LiveTvInfo { return identical(this, other) || (other is LiveTvInfo && (identical(other.services, services) || - const DeepCollectionEquality() - .equals(other.services, services)) && + const DeepCollectionEquality().equals( + other.services, + services, + )) && (identical(other.isEnabled, isEnabled) || - const DeepCollectionEquality() - .equals(other.isEnabled, isEnabled)) && + const DeepCollectionEquality().equals( + other.isEnabled, + isEnabled, + )) && (identical(other.enabledUsers, enabledUsers) || - const DeepCollectionEquality() - .equals(other.enabledUsers, enabledUsers))); + const DeepCollectionEquality().equals( + other.enabledUsers, + enabledUsers, + ))); } @override @@ -27985,25 +30304,30 @@ class LiveTvInfo { } extension $LiveTvInfoExtension on LiveTvInfo { - LiveTvInfo copyWith( - {List? services, - bool? isEnabled, - List? enabledUsers}) { + LiveTvInfo copyWith({ + List? services, + bool? isEnabled, + List? enabledUsers, + }) { return LiveTvInfo( - services: services ?? this.services, - isEnabled: isEnabled ?? this.isEnabled, - enabledUsers: enabledUsers ?? this.enabledUsers); + services: services ?? this.services, + isEnabled: isEnabled ?? this.isEnabled, + enabledUsers: enabledUsers ?? this.enabledUsers, + ); } - LiveTvInfo copyWithWrapped( - {Wrapped?>? services, - Wrapped? isEnabled, - Wrapped?>? enabledUsers}) { + LiveTvInfo copyWithWrapped({ + Wrapped?>? services, + Wrapped? isEnabled, + Wrapped?>? enabledUsers, + }) { return LiveTvInfo( - services: (services != null ? services.value : this.services), - isEnabled: (isEnabled != null ? isEnabled.value : this.isEnabled), - enabledUsers: - (enabledUsers != null ? enabledUsers.value : this.enabledUsers)); + services: (services != null ? services.value : this.services), + isEnabled: (isEnabled != null ? isEnabled.value : this.isEnabled), + enabledUsers: (enabledUsers != null + ? enabledUsers.value + : this.enabledUsers), + ); } } @@ -28044,24 +30368,31 @@ class LiveTvOptions { @JsonKey(name: 'EnableRecordingSubfolders', includeIfNull: false) final bool? enableRecordingSubfolders; @JsonKey( - name: 'EnableOriginalAudioWithEncodedRecordings', includeIfNull: false) + name: 'EnableOriginalAudioWithEncodedRecordings', + includeIfNull: false, + ) final bool? enableOriginalAudioWithEncodedRecordings; @JsonKey( - name: 'TunerHosts', includeIfNull: false, defaultValue: []) + name: 'TunerHosts', + includeIfNull: false, + defaultValue: [], + ) final List? tunerHosts; @JsonKey( - name: 'ListingProviders', - includeIfNull: false, - defaultValue: []) + name: 'ListingProviders', + includeIfNull: false, + defaultValue: [], + ) final List? listingProviders; @JsonKey(name: 'PrePaddingSeconds', includeIfNull: false) final int? prePaddingSeconds; @JsonKey(name: 'PostPaddingSeconds', includeIfNull: false) final int? postPaddingSeconds; @JsonKey( - name: 'MediaLocationsCreated', - includeIfNull: false, - defaultValue: []) + name: 'MediaLocationsCreated', + includeIfNull: false, + defaultValue: [], + ) final List? mediaLocationsCreated; @JsonKey(name: 'RecordingPostProcessor', includeIfNull: false) final String? recordingPostProcessor; @@ -28078,49 +30409,89 @@ class LiveTvOptions { return identical(this, other) || (other is LiveTvOptions && (identical(other.guideDays, guideDays) || - const DeepCollectionEquality() - .equals(other.guideDays, guideDays)) && + const DeepCollectionEquality().equals( + other.guideDays, + guideDays, + )) && (identical(other.recordingPath, recordingPath) || - const DeepCollectionEquality() - .equals(other.recordingPath, recordingPath)) && + const DeepCollectionEquality().equals( + other.recordingPath, + recordingPath, + )) && (identical(other.movieRecordingPath, movieRecordingPath) || - const DeepCollectionEquality() - .equals(other.movieRecordingPath, movieRecordingPath)) && + const DeepCollectionEquality().equals( + other.movieRecordingPath, + movieRecordingPath, + )) && (identical(other.seriesRecordingPath, seriesRecordingPath) || - const DeepCollectionEquality() - .equals(other.seriesRecordingPath, seriesRecordingPath)) && - (identical(other.enableRecordingSubfolders, enableRecordingSubfolders) || const DeepCollectionEquality().equals( - other.enableRecordingSubfolders, - enableRecordingSubfolders)) && - (identical(other.enableOriginalAudioWithEncodedRecordings, enableOriginalAudioWithEncodedRecordings) || + other.seriesRecordingPath, + seriesRecordingPath, + )) && + (identical( + other.enableRecordingSubfolders, + enableRecordingSubfolders, + ) || const DeepCollectionEquality().equals( - other.enableOriginalAudioWithEncodedRecordings, - enableOriginalAudioWithEncodedRecordings)) && + other.enableRecordingSubfolders, + enableRecordingSubfolders, + )) && + (identical( + other.enableOriginalAudioWithEncodedRecordings, + enableOriginalAudioWithEncodedRecordings, + ) || + const DeepCollectionEquality().equals( + other.enableOriginalAudioWithEncodedRecordings, + enableOriginalAudioWithEncodedRecordings, + )) && (identical(other.tunerHosts, tunerHosts) || - const DeepCollectionEquality() - .equals(other.tunerHosts, tunerHosts)) && + const DeepCollectionEquality().equals( + other.tunerHosts, + tunerHosts, + )) && (identical(other.listingProviders, listingProviders) || - const DeepCollectionEquality() - .equals(other.listingProviders, listingProviders)) && + const DeepCollectionEquality().equals( + other.listingProviders, + listingProviders, + )) && (identical(other.prePaddingSeconds, prePaddingSeconds) || - const DeepCollectionEquality() - .equals(other.prePaddingSeconds, prePaddingSeconds)) && + const DeepCollectionEquality().equals( + other.prePaddingSeconds, + prePaddingSeconds, + )) && (identical(other.postPaddingSeconds, postPaddingSeconds) || - const DeepCollectionEquality() - .equals(other.postPaddingSeconds, postPaddingSeconds)) && + const DeepCollectionEquality().equals( + other.postPaddingSeconds, + postPaddingSeconds, + )) && (identical(other.mediaLocationsCreated, mediaLocationsCreated) || const DeepCollectionEquality().equals( - other.mediaLocationsCreated, mediaLocationsCreated)) && + other.mediaLocationsCreated, + mediaLocationsCreated, + )) && (identical(other.recordingPostProcessor, recordingPostProcessor) || const DeepCollectionEquality().equals( - other.recordingPostProcessor, recordingPostProcessor)) && - (identical(other.recordingPostProcessorArguments, recordingPostProcessorArguments) || + other.recordingPostProcessor, + recordingPostProcessor, + )) && + (identical( + other.recordingPostProcessorArguments, + recordingPostProcessorArguments, + ) || const DeepCollectionEquality().equals( - other.recordingPostProcessorArguments, - recordingPostProcessorArguments)) && - (identical(other.saveRecordingNFO, saveRecordingNFO) || const DeepCollectionEquality().equals(other.saveRecordingNFO, saveRecordingNFO)) && - (identical(other.saveRecordingImages, saveRecordingImages) || const DeepCollectionEquality().equals(other.saveRecordingImages, saveRecordingImages))); + other.recordingPostProcessorArguments, + recordingPostProcessorArguments, + )) && + (identical(other.saveRecordingNFO, saveRecordingNFO) || + const DeepCollectionEquality().equals( + other.saveRecordingNFO, + saveRecordingNFO, + )) && + (identical(other.saveRecordingImages, saveRecordingImages) || + const DeepCollectionEquality().equals( + other.saveRecordingImages, + saveRecordingImages, + ))); } @override @@ -28133,8 +30504,9 @@ class LiveTvOptions { const DeepCollectionEquality().hash(movieRecordingPath) ^ const DeepCollectionEquality().hash(seriesRecordingPath) ^ const DeepCollectionEquality().hash(enableRecordingSubfolders) ^ - const DeepCollectionEquality() - .hash(enableOriginalAudioWithEncodedRecordings) ^ + const DeepCollectionEquality().hash( + enableOriginalAudioWithEncodedRecordings, + ) ^ const DeepCollectionEquality().hash(tunerHosts) ^ const DeepCollectionEquality().hash(listingProviders) ^ const DeepCollectionEquality().hash(prePaddingSeconds) ^ @@ -28148,105 +30520,110 @@ class LiveTvOptions { } extension $LiveTvOptionsExtension on LiveTvOptions { - LiveTvOptions copyWith( - {int? guideDays, - String? recordingPath, - String? movieRecordingPath, - String? seriesRecordingPath, - bool? enableRecordingSubfolders, - bool? enableOriginalAudioWithEncodedRecordings, - List? tunerHosts, - List? listingProviders, - int? prePaddingSeconds, - int? postPaddingSeconds, - List? mediaLocationsCreated, - String? recordingPostProcessor, - String? recordingPostProcessorArguments, - bool? saveRecordingNFO, - bool? saveRecordingImages}) { + LiveTvOptions copyWith({ + int? guideDays, + String? recordingPath, + String? movieRecordingPath, + String? seriesRecordingPath, + bool? enableRecordingSubfolders, + bool? enableOriginalAudioWithEncodedRecordings, + List? tunerHosts, + List? listingProviders, + int? prePaddingSeconds, + int? postPaddingSeconds, + List? mediaLocationsCreated, + String? recordingPostProcessor, + String? recordingPostProcessorArguments, + bool? saveRecordingNFO, + bool? saveRecordingImages, + }) { return LiveTvOptions( - guideDays: guideDays ?? this.guideDays, - recordingPath: recordingPath ?? this.recordingPath, - movieRecordingPath: movieRecordingPath ?? this.movieRecordingPath, - seriesRecordingPath: seriesRecordingPath ?? this.seriesRecordingPath, - enableRecordingSubfolders: - enableRecordingSubfolders ?? this.enableRecordingSubfolders, - 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, - saveRecordingNFO: saveRecordingNFO ?? this.saveRecordingNFO, - saveRecordingImages: saveRecordingImages ?? this.saveRecordingImages); + guideDays: guideDays ?? this.guideDays, + recordingPath: recordingPath ?? this.recordingPath, + movieRecordingPath: movieRecordingPath ?? this.movieRecordingPath, + seriesRecordingPath: seriesRecordingPath ?? this.seriesRecordingPath, + enableRecordingSubfolders: + enableRecordingSubfolders ?? this.enableRecordingSubfolders, + 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, + saveRecordingNFO: saveRecordingNFO ?? this.saveRecordingNFO, + saveRecordingImages: saveRecordingImages ?? this.saveRecordingImages, + ); } - LiveTvOptions copyWithWrapped( - {Wrapped? guideDays, - Wrapped? recordingPath, - Wrapped? movieRecordingPath, - Wrapped? seriesRecordingPath, - Wrapped? enableRecordingSubfolders, - Wrapped? enableOriginalAudioWithEncodedRecordings, - Wrapped?>? tunerHosts, - Wrapped?>? listingProviders, - Wrapped? prePaddingSeconds, - Wrapped? postPaddingSeconds, - Wrapped?>? mediaLocationsCreated, - Wrapped? recordingPostProcessor, - Wrapped? recordingPostProcessorArguments, - Wrapped? saveRecordingNFO, - Wrapped? saveRecordingImages}) { + LiveTvOptions copyWithWrapped({ + Wrapped? guideDays, + Wrapped? recordingPath, + Wrapped? movieRecordingPath, + Wrapped? seriesRecordingPath, + Wrapped? enableRecordingSubfolders, + Wrapped? enableOriginalAudioWithEncodedRecordings, + Wrapped?>? tunerHosts, + Wrapped?>? listingProviders, + Wrapped? prePaddingSeconds, + Wrapped? postPaddingSeconds, + Wrapped?>? mediaLocationsCreated, + Wrapped? recordingPostProcessor, + Wrapped? recordingPostProcessorArguments, + Wrapped? saveRecordingNFO, + Wrapped? saveRecordingImages, + }) { 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 - ? 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), - recordingPostProcessorArguments: - (recordingPostProcessorArguments != null - ? recordingPostProcessorArguments.value - : this.recordingPostProcessorArguments), - saveRecordingNFO: (saveRecordingNFO != null - ? saveRecordingNFO.value - : this.saveRecordingNFO), - saveRecordingImages: (saveRecordingImages != null - ? saveRecordingImages.value - : this.saveRecordingImages)); + 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 + ? 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), + recordingPostProcessorArguments: (recordingPostProcessorArguments != null + ? recordingPostProcessorArguments.value + : this.recordingPostProcessorArguments), + saveRecordingNFO: (saveRecordingNFO != null + ? saveRecordingNFO.value + : this.saveRecordingNFO), + saveRecordingImages: (saveRecordingImages != null + ? saveRecordingImages.value + : this.saveRecordingImages), + ); } } @@ -28299,22 +30676,32 @@ class LiveTvServiceInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.homePageUrl, homePageUrl) || - const DeepCollectionEquality() - .equals(other.homePageUrl, homePageUrl)) && + const DeepCollectionEquality().equals( + other.homePageUrl, + homePageUrl, + )) && (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.statusMessage, statusMessage) || - const DeepCollectionEquality() - .equals(other.statusMessage, statusMessage)) && + const DeepCollectionEquality().equals( + other.statusMessage, + statusMessage, + )) && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.hasUpdateAvailable, hasUpdateAvailable) || - const DeepCollectionEquality() - .equals(other.hasUpdateAvailable, hasUpdateAvailable)) && + const DeepCollectionEquality().equals( + other.hasUpdateAvailable, + hasUpdateAvailable, + )) && (identical(other.isVisible, isVisible) || - const DeepCollectionEquality() - .equals(other.isVisible, isVisible)) && + const DeepCollectionEquality().equals( + other.isVisible, + isVisible, + )) && (identical(other.tuners, tuners) || const DeepCollectionEquality().equals(other.tuners, tuners))); } @@ -28336,57 +30723,58 @@ class LiveTvServiceInfo { } extension $LiveTvServiceInfoExtension on LiveTvServiceInfo { - LiveTvServiceInfo copyWith( - {String? name, - String? homePageUrl, - enums.LiveTvServiceStatus? status, - String? statusMessage, - String? version, - bool? hasUpdateAvailable, - bool? isVisible, - List? tuners}) { + LiveTvServiceInfo copyWith({ + String? name, + String? homePageUrl, + enums.LiveTvServiceStatus? status, + String? statusMessage, + String? version, + bool? hasUpdateAvailable, + bool? isVisible, + List? tuners, + }) { return LiveTvServiceInfo( - name: name ?? this.name, - homePageUrl: homePageUrl ?? this.homePageUrl, - status: status ?? this.status, - statusMessage: statusMessage ?? this.statusMessage, - version: version ?? this.version, - hasUpdateAvailable: hasUpdateAvailable ?? this.hasUpdateAvailable, - isVisible: isVisible ?? this.isVisible, - tuners: tuners ?? this.tuners); + name: name ?? this.name, + homePageUrl: homePageUrl ?? this.homePageUrl, + status: status ?? this.status, + statusMessage: statusMessage ?? this.statusMessage, + version: version ?? this.version, + hasUpdateAvailable: hasUpdateAvailable ?? this.hasUpdateAvailable, + isVisible: isVisible ?? this.isVisible, + tuners: tuners ?? this.tuners, + ); } - LiveTvServiceInfo copyWithWrapped( - {Wrapped? name, - Wrapped? homePageUrl, - Wrapped? status, - Wrapped? statusMessage, - Wrapped? version, - Wrapped? hasUpdateAvailable, - Wrapped? isVisible, - Wrapped?>? tuners}) { + LiveTvServiceInfo copyWithWrapped({ + Wrapped? name, + Wrapped? homePageUrl, + Wrapped? status, + Wrapped? statusMessage, + Wrapped? version, + Wrapped? hasUpdateAvailable, + Wrapped? isVisible, + Wrapped?>? tuners, + }) { return 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), - version: (version != null ? version.value : this.version), - hasUpdateAvailable: (hasUpdateAvailable != null - ? hasUpdateAvailable.value - : this.hasUpdateAvailable), - isVisible: (isVisible != null ? isVisible.value : this.isVisible), - tuners: (tuners != null ? tuners.value : this.tuners)); + 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), + version: (version != null ? version.value : this.version), + hasUpdateAvailable: (hasUpdateAvailable != null + ? hasUpdateAvailable.value + : this.hasUpdateAvailable), + isVisible: (isVisible != null ? isVisible.value : this.isVisible), + tuners: (tuners != null ? tuners.value : this.tuners), + ); } } @JsonSerializable(explicitToJson: true) class LocalizationOption { - const LocalizationOption({ - this.name, - this.$Value, - }); + const LocalizationOption({this.name, this.$Value}); factory LocalizationOption.fromJson(Map json) => _$LocalizationOptionFromJson(json); @@ -28423,25 +30811,25 @@ class LocalizationOption { extension $LocalizationOptionExtension on LocalizationOption { LocalizationOption copyWith({String? name, String? $Value}) { return LocalizationOption( - name: name ?? this.name, $Value: $Value ?? this.$Value); + name: name ?? this.name, + $Value: $Value ?? this.$Value, + ); } - LocalizationOption copyWithWrapped( - {Wrapped? name, Wrapped? $Value}) { + LocalizationOption copyWithWrapped({ + Wrapped? name, + Wrapped? $Value, + }) { return LocalizationOption( - name: (name != null ? name.value : this.name), - $Value: ($Value != null ? $Value.value : this.$Value)); + name: (name != null ? name.value : this.name), + $Value: ($Value != null ? $Value.value : this.$Value), + ); } } @JsonSerializable(explicitToJson: true) class LogFile { - const LogFile({ - this.dateCreated, - this.dateModified, - this.size, - this.name, - }); + const LogFile({this.dateCreated, this.dateModified, this.size, this.name}); factory LogFile.fromJson(Map json) => _$LogFileFromJson(json); @@ -28464,11 +30852,15 @@ class LogFile { return identical(this, other) || (other is LogFile && (identical(other.dateCreated, dateCreated) || - const DeepCollectionEquality() - .equals(other.dateCreated, dateCreated)) && + const DeepCollectionEquality().equals( + other.dateCreated, + dateCreated, + )) && (identical(other.dateModified, dateModified) || - const DeepCollectionEquality() - .equals(other.dateModified, dateModified)) && + const DeepCollectionEquality().equals( + other.dateModified, + dateModified, + )) && (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && (identical(other.name, name) || @@ -28488,39 +30880,40 @@ class LogFile { } extension $LogFileExtension on LogFile { - LogFile copyWith( - {DateTime? dateCreated, - DateTime? dateModified, - int? size, - String? name}) { + LogFile copyWith({ + DateTime? dateCreated, + DateTime? dateModified, + int? size, + String? name, + }) { return LogFile( - dateCreated: dateCreated ?? this.dateCreated, - dateModified: dateModified ?? this.dateModified, - size: size ?? this.size, - name: name ?? this.name); + dateCreated: dateCreated ?? this.dateCreated, + dateModified: dateModified ?? this.dateModified, + size: size ?? this.size, + name: name ?? this.name, + ); } - LogFile copyWithWrapped( - {Wrapped? dateCreated, - Wrapped? dateModified, - Wrapped? size, - Wrapped? name}) { + LogFile copyWithWrapped({ + Wrapped? dateCreated, + Wrapped? dateModified, + Wrapped? size, + Wrapped? name, + }) { return LogFile( - dateCreated: - (dateCreated != null ? dateCreated.value : this.dateCreated), - dateModified: - (dateModified != null ? dateModified.value : this.dateModified), - size: (size != null ? size.value : this.size), - name: (name != null ? name.value : this.name)); + dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), + dateModified: (dateModified != null + ? dateModified.value + : this.dateModified), + size: (size != null ? size.value : this.size), + name: (name != null ? name.value : this.name), + ); } } @JsonSerializable(explicitToJson: true) class LyricDto { - const LyricDto({ - this.metadata, - this.lyrics, - }); + const LyricDto({this.metadata, this.lyrics}); factory LyricDto.fromJson(Map json) => _$LyricDtoFromJson(json); @@ -28539,8 +30932,10 @@ class LyricDto { return identical(this, other) || (other is LyricDto && (identical(other.metadata, metadata) || - const DeepCollectionEquality() - .equals(other.metadata, metadata)) && + const DeepCollectionEquality().equals( + other.metadata, + metadata, + )) && (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @@ -28558,23 +30953,25 @@ class LyricDto { extension $LyricDtoExtension on LyricDto { LyricDto copyWith({LyricMetadata? metadata, List? lyrics}) { return LyricDto( - metadata: metadata ?? this.metadata, lyrics: lyrics ?? this.lyrics); + metadata: metadata ?? this.metadata, + lyrics: lyrics ?? this.lyrics, + ); } - LyricDto copyWithWrapped( - {Wrapped? metadata, Wrapped?>? lyrics}) { + LyricDto copyWithWrapped({ + Wrapped? metadata, + Wrapped?>? lyrics, + }) { return LyricDto( - metadata: (metadata != null ? metadata.value : this.metadata), - lyrics: (lyrics != null ? lyrics.value : this.lyrics)); + metadata: (metadata != null ? metadata.value : this.metadata), + lyrics: (lyrics != null ? lyrics.value : this.lyrics), + ); } } @JsonSerializable(explicitToJson: true) class LyricLine { - const LyricLine({ - this.text, - this.start, - }); + const LyricLine({this.text, this.start}); factory LyricLine.fromJson(Map json) => _$LyricLineFromJson(json); @@ -28615,8 +31012,9 @@ extension $LyricLineExtension on LyricLine { LyricLine copyWithWrapped({Wrapped? text, Wrapped? start}) { return LyricLine( - text: (text != null ? text.value : this.text), - start: (start != null ? start.value : this.start)); + text: (text != null ? text.value : this.text), + start: (start != null ? start.value : this.start), + ); } } @@ -28682,14 +31080,20 @@ class LyricMetadata { (identical(other.offset, offset) || const DeepCollectionEquality().equals(other.offset, offset)) && (identical(other.creator, creator) || - const DeepCollectionEquality() - .equals(other.creator, creator)) && + const DeepCollectionEquality().equals( + other.creator, + creator, + )) && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.isSynced, isSynced) || - const DeepCollectionEquality() - .equals(other.isSynced, isSynced))); + const DeepCollectionEquality().equals( + other.isSynced, + isSynced, + ))); } @override @@ -28711,52 +31115,56 @@ class LyricMetadata { } extension $LyricMetadataExtension on LyricMetadata { - LyricMetadata copyWith( - {String? artist, - String? album, - String? title, - String? author, - int? length, - String? by, - int? offset, - String? creator, - String? version, - bool? isSynced}) { + LyricMetadata copyWith({ + String? artist, + String? album, + String? title, + String? author, + int? length, + String? by, + int? offset, + String? creator, + String? version, + bool? isSynced, + }) { return LyricMetadata( - artist: artist ?? this.artist, - album: album ?? this.album, - title: title ?? this.title, - author: author ?? this.author, - length: length ?? this.length, - by: by ?? this.by, - offset: offset ?? this.offset, - creator: creator ?? this.creator, - version: version ?? this.version, - isSynced: isSynced ?? this.isSynced); + artist: artist ?? this.artist, + album: album ?? this.album, + title: title ?? this.title, + author: author ?? this.author, + length: length ?? this.length, + by: by ?? this.by, + offset: offset ?? this.offset, + creator: creator ?? this.creator, + version: version ?? this.version, + isSynced: isSynced ?? this.isSynced, + ); } - LyricMetadata copyWithWrapped( - {Wrapped? artist, - Wrapped? album, - Wrapped? title, - Wrapped? author, - Wrapped? length, - Wrapped? by, - Wrapped? offset, - Wrapped? creator, - Wrapped? version, - Wrapped? isSynced}) { + LyricMetadata copyWithWrapped({ + Wrapped? artist, + Wrapped? album, + Wrapped? title, + Wrapped? author, + Wrapped? length, + Wrapped? by, + Wrapped? offset, + Wrapped? creator, + Wrapped? version, + Wrapped? isSynced, + }) { return LyricMetadata( - artist: (artist != null ? artist.value : this.artist), - album: (album != null ? album.value : this.album), - title: (title != null ? title.value : this.title), - author: (author != null ? author.value : this.author), - length: (length != null ? length.value : this.length), - by: (by != null ? by.value : this.by), - offset: (offset != null ? offset.value : this.offset), - creator: (creator != null ? creator.value : this.creator), - version: (version != null ? version.value : this.version), - isSynced: (isSynced != null ? isSynced.value : this.isSynced)); + artist: (artist != null ? artist.value : this.artist), + album: (album != null ? album.value : this.album), + title: (title != null ? title.value : this.title), + author: (author != null ? author.value : this.author), + length: (length != null ? length.value : this.length), + by: (by != null ? by.value : this.by), + offset: (offset != null ? offset.value : this.offset), + creator: (creator != null ? creator.value : this.creator), + version: (version != null ? version.value : this.version), + isSynced: (isSynced != null ? isSynced.value : this.isSynced), + ); } } @@ -28801,22 +31209,32 @@ class MediaAttachment { (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || - const DeepCollectionEquality() - .equals(other.codecTag, codecTag)) && + const DeepCollectionEquality().equals( + other.codecTag, + codecTag, + )) && (identical(other.comment, comment) || - const DeepCollectionEquality() - .equals(other.comment, comment)) && + const DeepCollectionEquality().equals( + other.comment, + comment, + )) && (identical(other.index, index) || const DeepCollectionEquality().equals(other.index, index)) && (identical(other.fileName, fileName) || - const DeepCollectionEquality() - .equals(other.fileName, fileName)) && + const DeepCollectionEquality().equals( + other.fileName, + fileName, + )) && (identical(other.mimeType, mimeType) || - const DeepCollectionEquality() - .equals(other.mimeType, mimeType)) && + const DeepCollectionEquality().equals( + other.mimeType, + mimeType, + )) && (identical(other.deliveryUrl, deliveryUrl) || - const DeepCollectionEquality() - .equals(other.deliveryUrl, deliveryUrl))); + const DeepCollectionEquality().equals( + other.deliveryUrl, + deliveryUrl, + ))); } @override @@ -28835,51 +31253,50 @@ class MediaAttachment { } extension $MediaAttachmentExtension on MediaAttachment { - MediaAttachment copyWith( - {String? codec, - String? codecTag, - String? comment, - int? index, - String? fileName, - String? mimeType, - String? deliveryUrl}) { + MediaAttachment copyWith({ + String? codec, + String? codecTag, + String? comment, + int? index, + String? fileName, + String? mimeType, + String? deliveryUrl, + }) { return MediaAttachment( - codec: codec ?? this.codec, - codecTag: codecTag ?? this.codecTag, - comment: comment ?? this.comment, - index: index ?? this.index, - fileName: fileName ?? this.fileName, - mimeType: mimeType ?? this.mimeType, - deliveryUrl: deliveryUrl ?? this.deliveryUrl); + codec: codec ?? this.codec, + codecTag: codecTag ?? this.codecTag, + comment: comment ?? this.comment, + index: index ?? this.index, + fileName: fileName ?? this.fileName, + mimeType: mimeType ?? this.mimeType, + deliveryUrl: deliveryUrl ?? this.deliveryUrl, + ); } - MediaAttachment copyWithWrapped( - {Wrapped? codec, - Wrapped? codecTag, - Wrapped? comment, - Wrapped? index, - Wrapped? fileName, - Wrapped? mimeType, - Wrapped? deliveryUrl}) { + MediaAttachment copyWithWrapped({ + Wrapped? codec, + Wrapped? codecTag, + Wrapped? comment, + Wrapped? index, + Wrapped? fileName, + Wrapped? mimeType, + Wrapped? deliveryUrl, + }) { return MediaAttachment( - codec: (codec != null ? codec.value : this.codec), - codecTag: (codecTag != null ? codecTag.value : this.codecTag), - comment: (comment != null ? comment.value : this.comment), - index: (index != null ? index.value : this.index), - fileName: (fileName != null ? fileName.value : this.fileName), - mimeType: (mimeType != null ? mimeType.value : this.mimeType), - deliveryUrl: - (deliveryUrl != null ? deliveryUrl.value : this.deliveryUrl)); + codec: (codec != null ? codec.value : this.codec), + codecTag: (codecTag != null ? codecTag.value : this.codecTag), + comment: (comment != null ? comment.value : this.comment), + index: (index != null ? index.value : this.index), + fileName: (fileName != null ? fileName.value : this.fileName), + mimeType: (mimeType != null ? mimeType.value : this.mimeType), + deliveryUrl: (deliveryUrl != null ? deliveryUrl.value : this.deliveryUrl), + ); } } @JsonSerializable(explicitToJson: true) class MediaPathDto { - const MediaPathDto({ - required this.name, - this.path, - this.pathInfo, - }); + const MediaPathDto({required this.name, this.path, this.pathInfo}); factory MediaPathDto.fromJson(Map json) => _$MediaPathDtoFromJson(json); @@ -28904,8 +31321,10 @@ class MediaPathDto { (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.pathInfo, pathInfo) || - const DeepCollectionEquality() - .equals(other.pathInfo, pathInfo))); + const DeepCollectionEquality().equals( + other.pathInfo, + pathInfo, + ))); } @override @@ -28922,27 +31341,28 @@ class MediaPathDto { extension $MediaPathDtoExtension on MediaPathDto { MediaPathDto copyWith({String? name, String? path, MediaPathInfo? pathInfo}) { return MediaPathDto( - name: name ?? this.name, - path: path ?? this.path, - pathInfo: pathInfo ?? this.pathInfo); + name: name ?? this.name, + path: path ?? this.path, + pathInfo: pathInfo ?? this.pathInfo, + ); } - MediaPathDto copyWithWrapped( - {Wrapped? name, - Wrapped? path, - Wrapped? pathInfo}) { + MediaPathDto copyWithWrapped({ + Wrapped? name, + Wrapped? path, + Wrapped? pathInfo, + }) { return MediaPathDto( - name: (name != null ? name.value : this.name), - path: (path != null ? path.value : this.path), - pathInfo: (pathInfo != null ? pathInfo.value : this.pathInfo)); + name: (name != null ? name.value : this.name), + path: (path != null ? path.value : this.path), + pathInfo: (pathInfo != null ? pathInfo.value : this.pathInfo), + ); } } @JsonSerializable(explicitToJson: true) class MediaPathInfo { - const MediaPathInfo({ - this.path, - }); + const MediaPathInfo({this.path}); factory MediaPathInfo.fromJson(Map json) => _$MediaPathInfoFromJson(json); @@ -29024,11 +31444,15 @@ class MediaSegmentDto { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.startTicks, startTicks) || - const DeepCollectionEquality() - .equals(other.startTicks, startTicks)) && + const DeepCollectionEquality().equals( + other.startTicks, + startTicks, + )) && (identical(other.endTicks, endTicks) || - const DeepCollectionEquality() - .equals(other.endTicks, endTicks))); + const DeepCollectionEquality().equals( + other.endTicks, + endTicks, + ))); } @override @@ -29045,32 +31469,36 @@ class MediaSegmentDto { } extension $MediaSegmentDtoExtension on MediaSegmentDto { - MediaSegmentDto copyWith( - {String? id, - String? itemId, - enums.MediaSegmentType? type, - int? startTicks, - int? endTicks}) { + MediaSegmentDto copyWith({ + String? id, + String? itemId, + enums.MediaSegmentType? type, + int? startTicks, + int? endTicks, + }) { return MediaSegmentDto( - id: id ?? this.id, - itemId: itemId ?? this.itemId, - type: type ?? this.type, - startTicks: startTicks ?? this.startTicks, - endTicks: endTicks ?? this.endTicks); + id: id ?? this.id, + itemId: itemId ?? this.itemId, + type: type ?? this.type, + startTicks: startTicks ?? this.startTicks, + endTicks: endTicks ?? this.endTicks, + ); } - MediaSegmentDto copyWithWrapped( - {Wrapped? id, - Wrapped? itemId, - Wrapped? type, - Wrapped? startTicks, - Wrapped? endTicks}) { + MediaSegmentDto copyWithWrapped({ + Wrapped? id, + Wrapped? itemId, + Wrapped? type, + Wrapped? startTicks, + Wrapped? endTicks, + }) { return MediaSegmentDto( - id: (id != null ? id.value : this.id), - itemId: (itemId != null ? itemId.value : this.itemId), - type: (type != null ? type.value : this.type), - startTicks: (startTicks != null ? startTicks.value : this.startTicks), - endTicks: (endTicks != null ? endTicks.value : this.endTicks)); + id: (id != null ? id.value : this.id), + itemId: (itemId != null ? itemId.value : this.itemId), + type: (type != null ? type.value : this.type), + startTicks: (startTicks != null ? startTicks.value : this.startTicks), + endTicks: (endTicks != null ? endTicks.value : this.endTicks), + ); } } @@ -29089,7 +31517,10 @@ class MediaSegmentDtoQueryResult { Map toJson() => _$MediaSegmentDtoQueryResultToJson(this); @JsonKey( - name: 'Items', includeIfNull: false, defaultValue: []) + name: 'Items', + includeIfNull: false, + defaultValue: [], + ) final List? items; @JsonKey(name: 'TotalRecordCount', includeIfNull: false) final int? totalRecordCount; @@ -29104,11 +31535,15 @@ class MediaSegmentDtoQueryResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -29123,24 +31558,30 @@ class MediaSegmentDtoQueryResult { } extension $MediaSegmentDtoQueryResultExtension on MediaSegmentDtoQueryResult { - MediaSegmentDtoQueryResult copyWith( - {List? items, int? totalRecordCount, int? startIndex}) { + MediaSegmentDtoQueryResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + }) { return MediaSegmentDtoQueryResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ); } - MediaSegmentDtoQueryResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex}) { + MediaSegmentDtoQueryResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + }) { return MediaSegmentDtoQueryResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @@ -29256,9 +31697,10 @@ class MediaSourceInfo { @JsonKey(name: 'IsInfiniteStream', includeIfNull: false) final bool? isInfiniteStream; @JsonKey( - name: 'UseMostCompatibleTranscodingProfile', - includeIfNull: false, - defaultValue: false) + name: 'UseMostCompatibleTranscodingProfile', + includeIfNull: false, + defaultValue: false, + ) final bool? useMostCompatibleTranscodingProfile; @JsonKey(name: 'RequiresOpening', includeIfNull: false) final bool? requiresOpening; @@ -29296,12 +31738,16 @@ class MediaSourceInfo { ) final enums.Video3DFormat? video3DFormat; @JsonKey( - name: 'MediaStreams', includeIfNull: false, defaultValue: []) + name: 'MediaStreams', + includeIfNull: false, + defaultValue: [], + ) final List? mediaStreams; @JsonKey( - name: 'MediaAttachments', - includeIfNull: false, - defaultValue: []) + name: 'MediaAttachments', + includeIfNull: false, + defaultValue: [], + ) final List? mediaAttachments; @JsonKey(name: 'Formats', includeIfNull: false, defaultValue: []) final List? formats; @@ -29344,92 +31790,224 @@ class MediaSourceInfo { return identical(this, other) || (other is MediaSourceInfo && (identical(other.protocol, protocol) || - const DeepCollectionEquality() - .equals(other.protocol, protocol)) && + const DeepCollectionEquality().equals( + 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.encoderPath, encoderPath) || - const DeepCollectionEquality() - .equals(other.encoderPath, encoderPath)) && + const DeepCollectionEquality().equals( + other.encoderPath, + encoderPath, + )) && (identical(other.encoderProtocol, encoderProtocol) || - const DeepCollectionEquality() - .equals(other.encoderProtocol, encoderProtocol)) && + const DeepCollectionEquality().equals( + other.encoderProtocol, + encoderProtocol, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.container, container) || - const DeepCollectionEquality() - .equals(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.isRemote, isRemote) || - const DeepCollectionEquality() - .equals(other.isRemote, isRemote)) && + const DeepCollectionEquality().equals( + other.isRemote, + isRemote, + )) && (identical(other.eTag, eTag) || const DeepCollectionEquality().equals(other.eTag, eTag)) && (identical(other.runTimeTicks, runTimeTicks) || - const DeepCollectionEquality() - .equals(other.runTimeTicks, runTimeTicks)) && + const DeepCollectionEquality().equals( + other.runTimeTicks, + runTimeTicks, + )) && (identical(other.readAtNativeFramerate, readAtNativeFramerate) || const DeepCollectionEquality().equals( - other.readAtNativeFramerate, readAtNativeFramerate)) && + other.readAtNativeFramerate, + readAtNativeFramerate, + )) && (identical(other.ignoreDts, ignoreDts) || - const DeepCollectionEquality() - .equals(other.ignoreDts, ignoreDts)) && + const DeepCollectionEquality().equals( + other.ignoreDts, + ignoreDts, + )) && (identical(other.ignoreIndex, ignoreIndex) || - const DeepCollectionEquality() - .equals(other.ignoreIndex, ignoreIndex)) && + const DeepCollectionEquality().equals( + other.ignoreIndex, + ignoreIndex, + )) && (identical(other.genPtsInput, genPtsInput) || - const DeepCollectionEquality() - .equals(other.genPtsInput, genPtsInput)) && + const DeepCollectionEquality().equals( + other.genPtsInput, + genPtsInput, + )) && (identical(other.supportsTranscoding, supportsTranscoding) || - const DeepCollectionEquality() - .equals(other.supportsTranscoding, supportsTranscoding)) && + const DeepCollectionEquality().equals( + other.supportsTranscoding, + supportsTranscoding, + )) && (identical(other.supportsDirectStream, supportsDirectStream) || const DeepCollectionEquality().equals( - other.supportsDirectStream, supportsDirectStream)) && + other.supportsDirectStream, + supportsDirectStream, + )) && (identical(other.supportsDirectPlay, supportsDirectPlay) || - const DeepCollectionEquality() - .equals(other.supportsDirectPlay, supportsDirectPlay)) && - (identical(other.isInfiniteStream, isInfiniteStream) || - const DeepCollectionEquality() - .equals(other.isInfiniteStream, isInfiniteStream)) && - (identical(other.useMostCompatibleTranscodingProfile, useMostCompatibleTranscodingProfile) || const DeepCollectionEquality().equals( - other.useMostCompatibleTranscodingProfile, - useMostCompatibleTranscodingProfile)) && + other.supportsDirectPlay, + supportsDirectPlay, + )) && + (identical(other.isInfiniteStream, isInfiniteStream) || + const DeepCollectionEquality().equals( + other.isInfiniteStream, + isInfiniteStream, + )) && + (identical( + other.useMostCompatibleTranscodingProfile, + useMostCompatibleTranscodingProfile, + ) || + const DeepCollectionEquality().equals( + other.useMostCompatibleTranscodingProfile, + useMostCompatibleTranscodingProfile, + )) && (identical(other.requiresOpening, requiresOpening) || - const DeepCollectionEquality() - .equals(other.requiresOpening, requiresOpening)) && + const DeepCollectionEquality().equals( + other.requiresOpening, + requiresOpening, + )) && (identical(other.openToken, openToken) || - const DeepCollectionEquality() - .equals(other.openToken, openToken)) && + const DeepCollectionEquality().equals( + other.openToken, + openToken, + )) && (identical(other.requiresClosing, requiresClosing) || - const DeepCollectionEquality().equals(other.requiresClosing, requiresClosing)) && - (identical(other.liveStreamId, liveStreamId) || const DeepCollectionEquality().equals(other.liveStreamId, liveStreamId)) && - (identical(other.bufferMs, bufferMs) || const DeepCollectionEquality().equals(other.bufferMs, bufferMs)) && - (identical(other.requiresLooping, requiresLooping) || const DeepCollectionEquality().equals(other.requiresLooping, requiresLooping)) && - (identical(other.supportsProbing, supportsProbing) || const DeepCollectionEquality().equals(other.supportsProbing, supportsProbing)) && - (identical(other.videoType, videoType) || const DeepCollectionEquality().equals(other.videoType, videoType)) && - (identical(other.isoType, isoType) || const DeepCollectionEquality().equals(other.isoType, isoType)) && - (identical(other.video3DFormat, video3DFormat) || const DeepCollectionEquality().equals(other.video3DFormat, video3DFormat)) && - (identical(other.mediaStreams, mediaStreams) || const DeepCollectionEquality().equals(other.mediaStreams, mediaStreams)) && - (identical(other.mediaAttachments, mediaAttachments) || const DeepCollectionEquality().equals(other.mediaAttachments, mediaAttachments)) && - (identical(other.formats, formats) || const DeepCollectionEquality().equals(other.formats, formats)) && - (identical(other.bitrate, bitrate) || const DeepCollectionEquality().equals(other.bitrate, bitrate)) && - (identical(other.fallbackMaxStreamingBitrate, fallbackMaxStreamingBitrate) || const DeepCollectionEquality().equals(other.fallbackMaxStreamingBitrate, fallbackMaxStreamingBitrate)) && - (identical(other.timestamp, timestamp) || const DeepCollectionEquality().equals(other.timestamp, timestamp)) && - (identical(other.requiredHttpHeaders, requiredHttpHeaders) || const DeepCollectionEquality().equals(other.requiredHttpHeaders, requiredHttpHeaders)) && - (identical(other.transcodingUrl, transcodingUrl) || const DeepCollectionEquality().equals(other.transcodingUrl, transcodingUrl)) && - (identical(other.transcodingSubProtocol, transcodingSubProtocol) || const DeepCollectionEquality().equals(other.transcodingSubProtocol, transcodingSubProtocol)) && - (identical(other.transcodingContainer, transcodingContainer) || const DeepCollectionEquality().equals(other.transcodingContainer, transcodingContainer)) && - (identical(other.analyzeDurationMs, analyzeDurationMs) || const DeepCollectionEquality().equals(other.analyzeDurationMs, analyzeDurationMs)) && - (identical(other.defaultAudioStreamIndex, defaultAudioStreamIndex) || const DeepCollectionEquality().equals(other.defaultAudioStreamIndex, defaultAudioStreamIndex)) && - (identical(other.defaultSubtitleStreamIndex, defaultSubtitleStreamIndex) || const DeepCollectionEquality().equals(other.defaultSubtitleStreamIndex, defaultSubtitleStreamIndex)) && - (identical(other.hasSegments, hasSegments) || const DeepCollectionEquality().equals(other.hasSegments, hasSegments))); + const DeepCollectionEquality().equals( + other.requiresClosing, + requiresClosing, + )) && + (identical(other.liveStreamId, liveStreamId) || + const DeepCollectionEquality().equals( + other.liveStreamId, + liveStreamId, + )) && + (identical(other.bufferMs, bufferMs) || + const DeepCollectionEquality().equals( + other.bufferMs, + bufferMs, + )) && + (identical(other.requiresLooping, requiresLooping) || + const DeepCollectionEquality().equals( + other.requiresLooping, + requiresLooping, + )) && + (identical(other.supportsProbing, supportsProbing) || + const DeepCollectionEquality().equals( + other.supportsProbing, + supportsProbing, + )) && + (identical(other.videoType, videoType) || + const DeepCollectionEquality().equals( + other.videoType, + videoType, + )) && + (identical(other.isoType, isoType) || + const DeepCollectionEquality().equals( + other.isoType, + isoType, + )) && + (identical(other.video3DFormat, video3DFormat) || + const DeepCollectionEquality().equals( + other.video3DFormat, + video3DFormat, + )) && + (identical(other.mediaStreams, mediaStreams) || + const DeepCollectionEquality().equals( + other.mediaStreams, + mediaStreams, + )) && + (identical(other.mediaAttachments, mediaAttachments) || + const DeepCollectionEquality().equals( + other.mediaAttachments, + mediaAttachments, + )) && + (identical(other.formats, formats) || + const DeepCollectionEquality().equals( + other.formats, + formats, + )) && + (identical(other.bitrate, bitrate) || + const DeepCollectionEquality().equals( + other.bitrate, + bitrate, + )) && + (identical( + other.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate, + ) || + const DeepCollectionEquality().equals( + other.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate, + )) && + (identical(other.timestamp, timestamp) || + const DeepCollectionEquality().equals( + other.timestamp, + timestamp, + )) && + (identical(other.requiredHttpHeaders, requiredHttpHeaders) || + const DeepCollectionEquality().equals( + other.requiredHttpHeaders, + requiredHttpHeaders, + )) && + (identical(other.transcodingUrl, transcodingUrl) || + const DeepCollectionEquality().equals( + other.transcodingUrl, + transcodingUrl, + )) && + (identical(other.transcodingSubProtocol, transcodingSubProtocol) || + const DeepCollectionEquality().equals( + other.transcodingSubProtocol, + transcodingSubProtocol, + )) && + (identical(other.transcodingContainer, transcodingContainer) || + const DeepCollectionEquality().equals( + other.transcodingContainer, + transcodingContainer, + )) && + (identical(other.analyzeDurationMs, analyzeDurationMs) || + const DeepCollectionEquality().equals( + other.analyzeDurationMs, + analyzeDurationMs, + )) && + (identical( + other.defaultAudioStreamIndex, + defaultAudioStreamIndex, + ) || + const DeepCollectionEquality().equals( + other.defaultAudioStreamIndex, + defaultAudioStreamIndex, + )) && + (identical( + other.defaultSubtitleStreamIndex, + defaultSubtitleStreamIndex, + ) || + const DeepCollectionEquality().equals( + other.defaultSubtitleStreamIndex, + defaultSubtitleStreamIndex, + )) && + (identical(other.hasSegments, hasSegments) || + const DeepCollectionEquality().equals( + other.hasSegments, + hasSegments, + ))); } @override @@ -29486,248 +32064,252 @@ class MediaSourceInfo { } extension $MediaSourceInfoExtension on MediaSourceInfo { - MediaSourceInfo copyWith( - {enums.MediaProtocol? protocol, - String? id, - String? path, - String? encoderPath, - enums.MediaProtocol? encoderProtocol, - enums.MediaSourceType? type, - String? container, - int? size, - String? name, - bool? isRemote, - String? eTag, - int? runTimeTicks, - bool? readAtNativeFramerate, - bool? ignoreDts, - bool? ignoreIndex, - bool? genPtsInput, - bool? supportsTranscoding, - bool? supportsDirectStream, - bool? supportsDirectPlay, - bool? isInfiniteStream, - bool? useMostCompatibleTranscodingProfile, - bool? requiresOpening, - String? openToken, - bool? requiresClosing, - String? liveStreamId, - int? bufferMs, - bool? requiresLooping, - bool? supportsProbing, - enums.VideoType? videoType, - enums.IsoType? isoType, - enums.Video3DFormat? video3DFormat, - List? mediaStreams, - List? mediaAttachments, - List? formats, - int? bitrate, - int? fallbackMaxStreamingBitrate, - enums.TransportStreamTimestamp? timestamp, - Map? requiredHttpHeaders, - String? transcodingUrl, - enums.MediaStreamProtocol? transcodingSubProtocol, - String? transcodingContainer, - int? analyzeDurationMs, - int? defaultAudioStreamIndex, - int? defaultSubtitleStreamIndex, - bool? hasSegments}) { + MediaSourceInfo copyWith({ + enums.MediaProtocol? protocol, + String? id, + String? path, + String? encoderPath, + enums.MediaProtocol? encoderProtocol, + enums.MediaSourceType? type, + String? container, + int? size, + String? name, + bool? isRemote, + String? eTag, + int? runTimeTicks, + bool? readAtNativeFramerate, + bool? ignoreDts, + bool? ignoreIndex, + bool? genPtsInput, + bool? supportsTranscoding, + bool? supportsDirectStream, + bool? supportsDirectPlay, + bool? isInfiniteStream, + bool? useMostCompatibleTranscodingProfile, + bool? requiresOpening, + String? openToken, + bool? requiresClosing, + String? liveStreamId, + int? bufferMs, + bool? requiresLooping, + bool? supportsProbing, + enums.VideoType? videoType, + enums.IsoType? isoType, + enums.Video3DFormat? video3DFormat, + List? mediaStreams, + List? mediaAttachments, + List? formats, + int? bitrate, + int? fallbackMaxStreamingBitrate, + enums.TransportStreamTimestamp? timestamp, + Map? requiredHttpHeaders, + String? transcodingUrl, + enums.MediaStreamProtocol? transcodingSubProtocol, + String? transcodingContainer, + int? analyzeDurationMs, + int? defaultAudioStreamIndex, + int? defaultSubtitleStreamIndex, + bool? hasSegments, + }) { return MediaSourceInfo( - protocol: protocol ?? this.protocol, - id: id ?? this.id, - path: path ?? this.path, - encoderPath: encoderPath ?? this.encoderPath, - encoderProtocol: encoderProtocol ?? this.encoderProtocol, - type: type ?? this.type, - container: container ?? this.container, - size: size ?? this.size, - name: name ?? this.name, - isRemote: isRemote ?? this.isRemote, - eTag: eTag ?? this.eTag, - runTimeTicks: runTimeTicks ?? this.runTimeTicks, - readAtNativeFramerate: - readAtNativeFramerate ?? this.readAtNativeFramerate, - ignoreDts: ignoreDts ?? this.ignoreDts, - ignoreIndex: ignoreIndex ?? this.ignoreIndex, - genPtsInput: genPtsInput ?? this.genPtsInput, - supportsTranscoding: supportsTranscoding ?? this.supportsTranscoding, - supportsDirectStream: supportsDirectStream ?? this.supportsDirectStream, - supportsDirectPlay: supportsDirectPlay ?? this.supportsDirectPlay, - isInfiniteStream: isInfiniteStream ?? this.isInfiniteStream, - useMostCompatibleTranscodingProfile: - useMostCompatibleTranscodingProfile ?? - this.useMostCompatibleTranscodingProfile, - requiresOpening: requiresOpening ?? this.requiresOpening, - openToken: openToken ?? this.openToken, - requiresClosing: requiresClosing ?? this.requiresClosing, - liveStreamId: liveStreamId ?? this.liveStreamId, - bufferMs: bufferMs ?? this.bufferMs, - requiresLooping: requiresLooping ?? this.requiresLooping, - supportsProbing: supportsProbing ?? this.supportsProbing, - videoType: videoType ?? this.videoType, - isoType: isoType ?? this.isoType, - video3DFormat: video3DFormat ?? this.video3DFormat, - mediaStreams: mediaStreams ?? this.mediaStreams, - mediaAttachments: mediaAttachments ?? this.mediaAttachments, - formats: formats ?? this.formats, - bitrate: bitrate ?? this.bitrate, - fallbackMaxStreamingBitrate: - fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, - timestamp: timestamp ?? this.timestamp, - requiredHttpHeaders: requiredHttpHeaders ?? this.requiredHttpHeaders, - transcodingUrl: transcodingUrl ?? this.transcodingUrl, - transcodingSubProtocol: - transcodingSubProtocol ?? this.transcodingSubProtocol, - transcodingContainer: transcodingContainer ?? this.transcodingContainer, - analyzeDurationMs: analyzeDurationMs ?? this.analyzeDurationMs, - defaultAudioStreamIndex: - defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, - defaultSubtitleStreamIndex: - defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, - hasSegments: hasSegments ?? this.hasSegments); + protocol: protocol ?? this.protocol, + id: id ?? this.id, + path: path ?? this.path, + encoderPath: encoderPath ?? this.encoderPath, + encoderProtocol: encoderProtocol ?? this.encoderProtocol, + type: type ?? this.type, + container: container ?? this.container, + size: size ?? this.size, + name: name ?? this.name, + isRemote: isRemote ?? this.isRemote, + eTag: eTag ?? this.eTag, + runTimeTicks: runTimeTicks ?? this.runTimeTicks, + readAtNativeFramerate: + readAtNativeFramerate ?? this.readAtNativeFramerate, + ignoreDts: ignoreDts ?? this.ignoreDts, + ignoreIndex: ignoreIndex ?? this.ignoreIndex, + genPtsInput: genPtsInput ?? this.genPtsInput, + supportsTranscoding: supportsTranscoding ?? this.supportsTranscoding, + supportsDirectStream: supportsDirectStream ?? this.supportsDirectStream, + supportsDirectPlay: supportsDirectPlay ?? this.supportsDirectPlay, + isInfiniteStream: isInfiniteStream ?? this.isInfiniteStream, + useMostCompatibleTranscodingProfile: + useMostCompatibleTranscodingProfile ?? + this.useMostCompatibleTranscodingProfile, + requiresOpening: requiresOpening ?? this.requiresOpening, + openToken: openToken ?? this.openToken, + requiresClosing: requiresClosing ?? this.requiresClosing, + liveStreamId: liveStreamId ?? this.liveStreamId, + bufferMs: bufferMs ?? this.bufferMs, + requiresLooping: requiresLooping ?? this.requiresLooping, + supportsProbing: supportsProbing ?? this.supportsProbing, + videoType: videoType ?? this.videoType, + isoType: isoType ?? this.isoType, + video3DFormat: video3DFormat ?? this.video3DFormat, + mediaStreams: mediaStreams ?? this.mediaStreams, + mediaAttachments: mediaAttachments ?? this.mediaAttachments, + formats: formats ?? this.formats, + bitrate: bitrate ?? this.bitrate, + fallbackMaxStreamingBitrate: + fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + timestamp: timestamp ?? this.timestamp, + requiredHttpHeaders: requiredHttpHeaders ?? this.requiredHttpHeaders, + transcodingUrl: transcodingUrl ?? this.transcodingUrl, + transcodingSubProtocol: + transcodingSubProtocol ?? this.transcodingSubProtocol, + transcodingContainer: transcodingContainer ?? this.transcodingContainer, + analyzeDurationMs: analyzeDurationMs ?? this.analyzeDurationMs, + defaultAudioStreamIndex: + defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, + defaultSubtitleStreamIndex: + defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, + hasSegments: hasSegments ?? this.hasSegments, + ); } - MediaSourceInfo copyWithWrapped( - {Wrapped? protocol, - Wrapped? id, - Wrapped? path, - Wrapped? encoderPath, - Wrapped? encoderProtocol, - Wrapped? type, - Wrapped? container, - Wrapped? size, - Wrapped? name, - Wrapped? isRemote, - Wrapped? eTag, - Wrapped? runTimeTicks, - Wrapped? readAtNativeFramerate, - Wrapped? ignoreDts, - Wrapped? ignoreIndex, - Wrapped? genPtsInput, - Wrapped? supportsTranscoding, - Wrapped? supportsDirectStream, - Wrapped? supportsDirectPlay, - Wrapped? isInfiniteStream, - Wrapped? useMostCompatibleTranscodingProfile, - Wrapped? requiresOpening, - Wrapped? openToken, - Wrapped? requiresClosing, - Wrapped? liveStreamId, - Wrapped? bufferMs, - Wrapped? requiresLooping, - Wrapped? supportsProbing, - Wrapped? videoType, - Wrapped? isoType, - Wrapped? video3DFormat, - Wrapped?>? mediaStreams, - Wrapped?>? mediaAttachments, - Wrapped?>? formats, - Wrapped? bitrate, - Wrapped? fallbackMaxStreamingBitrate, - Wrapped? timestamp, - Wrapped?>? requiredHttpHeaders, - Wrapped? transcodingUrl, - Wrapped? transcodingSubProtocol, - Wrapped? transcodingContainer, - Wrapped? analyzeDurationMs, - Wrapped? defaultAudioStreamIndex, - Wrapped? defaultSubtitleStreamIndex, - Wrapped? hasSegments}) { + MediaSourceInfo copyWithWrapped({ + Wrapped? protocol, + Wrapped? id, + Wrapped? path, + Wrapped? encoderPath, + Wrapped? encoderProtocol, + Wrapped? type, + Wrapped? container, + Wrapped? size, + Wrapped? name, + Wrapped? isRemote, + Wrapped? eTag, + Wrapped? runTimeTicks, + Wrapped? readAtNativeFramerate, + Wrapped? ignoreDts, + Wrapped? ignoreIndex, + Wrapped? genPtsInput, + Wrapped? supportsTranscoding, + Wrapped? supportsDirectStream, + Wrapped? supportsDirectPlay, + Wrapped? isInfiniteStream, + Wrapped? useMostCompatibleTranscodingProfile, + Wrapped? requiresOpening, + Wrapped? openToken, + Wrapped? requiresClosing, + Wrapped? liveStreamId, + Wrapped? bufferMs, + Wrapped? requiresLooping, + Wrapped? supportsProbing, + Wrapped? videoType, + Wrapped? isoType, + Wrapped? video3DFormat, + Wrapped?>? mediaStreams, + Wrapped?>? mediaAttachments, + Wrapped?>? formats, + Wrapped? bitrate, + Wrapped? fallbackMaxStreamingBitrate, + Wrapped? timestamp, + Wrapped?>? requiredHttpHeaders, + Wrapped? transcodingUrl, + Wrapped? transcodingSubProtocol, + Wrapped? transcodingContainer, + Wrapped? analyzeDurationMs, + Wrapped? defaultAudioStreamIndex, + Wrapped? defaultSubtitleStreamIndex, + Wrapped? hasSegments, + }) { return MediaSourceInfo( - protocol: (protocol != null ? protocol.value : this.protocol), - 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), - 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), - 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 - ? useMostCompatibleTranscodingProfile.value - : this.useMostCompatibleTranscodingProfile), - 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), - bufferMs: (bufferMs != null ? bufferMs.value : this.bufferMs), - 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), - formats: (formats != null ? formats.value : this.formats), - bitrate: (bitrate != null ? bitrate.value : this.bitrate), - 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), - hasSegments: - (hasSegments != null ? hasSegments.value : this.hasSegments)); + protocol: (protocol != null ? protocol.value : this.protocol), + 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), + 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), + 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 + ? useMostCompatibleTranscodingProfile.value + : this.useMostCompatibleTranscodingProfile), + 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), + bufferMs: (bufferMs != null ? bufferMs.value : this.bufferMs), + 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), + formats: (formats != null ? formats.value : this.formats), + bitrate: (bitrate != null ? bitrate.value : this.bitrate), + 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), + hasSegments: (hasSegments != null ? hasSegments.value : this.hasSegments), + ); } } @@ -29869,9 +32451,8 @@ class MediaStream { ) final enums.AudioSpatialFormat? audioSpatialFormat; static enums.AudioSpatialFormat? - audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => - audioSpatialFormatNullableFromJson( - value, enums.AudioSpatialFormat.none); + audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => + audioSpatialFormatNullableFromJson(value, enums.AudioSpatialFormat.none); @JsonKey(name: 'LocalizedUndefined', includeIfNull: false) final String? localizedUndefined; @@ -29970,107 +32551,294 @@ class MediaStream { (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || - const DeepCollectionEquality() - .equals(other.codecTag, codecTag)) && - (identical(other.language, language) || - const DeepCollectionEquality() - .equals(other.language, language)) && - (identical(other.colorRange, colorRange) || - const DeepCollectionEquality() - .equals(other.colorRange, colorRange)) && - (identical(other.colorSpace, colorSpace) || - const DeepCollectionEquality() - .equals(other.colorSpace, colorSpace)) && - (identical(other.colorTransfer, colorTransfer) || - const DeepCollectionEquality() - .equals(other.colorTransfer, colorTransfer)) && - (identical(other.colorPrimaries, colorPrimaries) || - const DeepCollectionEquality() - .equals(other.colorPrimaries, colorPrimaries)) && - (identical(other.dvVersionMajor, dvVersionMajor) || - const DeepCollectionEquality() - .equals(other.dvVersionMajor, dvVersionMajor)) && - (identical(other.dvVersionMinor, dvVersionMinor) || - const DeepCollectionEquality() - .equals(other.dvVersionMinor, dvVersionMinor)) && - (identical(other.dvProfile, dvProfile) || - const DeepCollectionEquality() - .equals(other.dvProfile, dvProfile)) && - (identical(other.dvLevel, dvLevel) || - const DeepCollectionEquality() - .equals(other.dvLevel, dvLevel)) && - (identical(other.rpuPresentFlag, rpuPresentFlag) || - const DeepCollectionEquality() - .equals(other.rpuPresentFlag, rpuPresentFlag)) && - (identical(other.elPresentFlag, elPresentFlag) || - const DeepCollectionEquality() - .equals(other.elPresentFlag, elPresentFlag)) && - (identical(other.blPresentFlag, blPresentFlag) || - const DeepCollectionEquality() - .equals(other.blPresentFlag, blPresentFlag)) && - (identical(other.dvBlSignalCompatibilityId, dvBlSignalCompatibilityId) || const DeepCollectionEquality().equals( - other.dvBlSignalCompatibilityId, - dvBlSignalCompatibilityId)) && + other.codecTag, + codecTag, + )) && + (identical(other.language, language) || + const DeepCollectionEquality().equals( + other.language, + language, + )) && + (identical(other.colorRange, colorRange) || + const DeepCollectionEquality().equals( + other.colorRange, + colorRange, + )) && + (identical(other.colorSpace, colorSpace) || + const DeepCollectionEquality().equals( + other.colorSpace, + colorSpace, + )) && + (identical(other.colorTransfer, colorTransfer) || + const DeepCollectionEquality().equals( + other.colorTransfer, + colorTransfer, + )) && + (identical(other.colorPrimaries, colorPrimaries) || + const DeepCollectionEquality().equals( + other.colorPrimaries, + colorPrimaries, + )) && + (identical(other.dvVersionMajor, dvVersionMajor) || + const DeepCollectionEquality().equals( + other.dvVersionMajor, + dvVersionMajor, + )) && + (identical(other.dvVersionMinor, dvVersionMinor) || + const DeepCollectionEquality().equals( + other.dvVersionMinor, + dvVersionMinor, + )) && + (identical(other.dvProfile, dvProfile) || + const DeepCollectionEquality().equals( + other.dvProfile, + dvProfile, + )) && + (identical(other.dvLevel, dvLevel) || + const DeepCollectionEquality().equals( + other.dvLevel, + dvLevel, + )) && + (identical(other.rpuPresentFlag, rpuPresentFlag) || + const DeepCollectionEquality().equals( + other.rpuPresentFlag, + rpuPresentFlag, + )) && + (identical(other.elPresentFlag, elPresentFlag) || + const DeepCollectionEquality().equals( + other.elPresentFlag, + elPresentFlag, + )) && + (identical(other.blPresentFlag, blPresentFlag) || + const DeepCollectionEquality().equals( + other.blPresentFlag, + blPresentFlag, + )) && + (identical( + other.dvBlSignalCompatibilityId, + dvBlSignalCompatibilityId, + ) || + const DeepCollectionEquality().equals( + other.dvBlSignalCompatibilityId, + dvBlSignalCompatibilityId, + )) && (identical(other.rotation, rotation) || - const DeepCollectionEquality() - .equals(other.rotation, rotation)) && + const DeepCollectionEquality().equals( + other.rotation, + rotation, + )) && (identical(other.comment, comment) || - const DeepCollectionEquality() - .equals(other.comment, comment)) && + const DeepCollectionEquality().equals( + other.comment, + comment, + )) && (identical(other.timeBase, timeBase) || - const DeepCollectionEquality() - .equals(other.timeBase, timeBase)) && + const DeepCollectionEquality().equals( + other.timeBase, + timeBase, + )) && (identical(other.codecTimeBase, codecTimeBase) || - const DeepCollectionEquality() - .equals(other.codecTimeBase, codecTimeBase)) && + const DeepCollectionEquality().equals( + other.codecTimeBase, + codecTimeBase, + )) && (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && (identical(other.videoRange, videoRange) || - const DeepCollectionEquality() - .equals(other.videoRange, videoRange)) && - (identical(other.videoRangeType, videoRangeType) || const DeepCollectionEquality().equals(other.videoRangeType, videoRangeType)) && - (identical(other.videoDoViTitle, videoDoViTitle) || const DeepCollectionEquality().equals(other.videoDoViTitle, videoDoViTitle)) && - (identical(other.audioSpatialFormat, audioSpatialFormat) || const DeepCollectionEquality().equals(other.audioSpatialFormat, audioSpatialFormat)) && - (identical(other.localizedUndefined, localizedUndefined) || const DeepCollectionEquality().equals(other.localizedUndefined, localizedUndefined)) && - (identical(other.localizedDefault, localizedDefault) || const DeepCollectionEquality().equals(other.localizedDefault, localizedDefault)) && - (identical(other.localizedForced, localizedForced) || const DeepCollectionEquality().equals(other.localizedForced, localizedForced)) && - (identical(other.localizedExternal, localizedExternal) || const DeepCollectionEquality().equals(other.localizedExternal, localizedExternal)) && - (identical(other.localizedHearingImpaired, localizedHearingImpaired) || const DeepCollectionEquality().equals(other.localizedHearingImpaired, localizedHearingImpaired)) && - (identical(other.displayTitle, displayTitle) || const DeepCollectionEquality().equals(other.displayTitle, displayTitle)) && - (identical(other.nalLengthSize, nalLengthSize) || const DeepCollectionEquality().equals(other.nalLengthSize, nalLengthSize)) && - (identical(other.isInterlaced, isInterlaced) || const DeepCollectionEquality().equals(other.isInterlaced, isInterlaced)) && - (identical(other.isAVC, isAVC) || const DeepCollectionEquality().equals(other.isAVC, isAVC)) && - (identical(other.channelLayout, channelLayout) || const DeepCollectionEquality().equals(other.channelLayout, channelLayout)) && - (identical(other.bitRate, bitRate) || const DeepCollectionEquality().equals(other.bitRate, bitRate)) && - (identical(other.bitDepth, bitDepth) || const DeepCollectionEquality().equals(other.bitDepth, bitDepth)) && - (identical(other.refFrames, refFrames) || const DeepCollectionEquality().equals(other.refFrames, refFrames)) && - (identical(other.packetLength, packetLength) || const DeepCollectionEquality().equals(other.packetLength, packetLength)) && - (identical(other.channels, channels) || const DeepCollectionEquality().equals(other.channels, channels)) && - (identical(other.sampleRate, sampleRate) || const DeepCollectionEquality().equals(other.sampleRate, sampleRate)) && - (identical(other.isDefault, isDefault) || const DeepCollectionEquality().equals(other.isDefault, isDefault)) && - (identical(other.isForced, isForced) || const DeepCollectionEquality().equals(other.isForced, isForced)) && - (identical(other.isHearingImpaired, isHearingImpaired) || const DeepCollectionEquality().equals(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.averageFrameRate, averageFrameRate) || const DeepCollectionEquality().equals(other.averageFrameRate, averageFrameRate)) && - (identical(other.realFrameRate, realFrameRate) || const DeepCollectionEquality().equals(other.realFrameRate, realFrameRate)) && - (identical(other.referenceFrameRate, referenceFrameRate) || const DeepCollectionEquality().equals(other.referenceFrameRate, referenceFrameRate)) && - (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile)) && - (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.isExternal, isExternal) || const DeepCollectionEquality().equals(other.isExternal, isExternal)) && - (identical(other.deliveryMethod, deliveryMethod) || const DeepCollectionEquality().equals(other.deliveryMethod, deliveryMethod)) && - (identical(other.deliveryUrl, deliveryUrl) || const DeepCollectionEquality().equals(other.deliveryUrl, deliveryUrl)) && - (identical(other.isExternalUrl, isExternalUrl) || const DeepCollectionEquality().equals(other.isExternalUrl, isExternalUrl)) && - (identical(other.isTextSubtitleStream, isTextSubtitleStream) || const DeepCollectionEquality().equals(other.isTextSubtitleStream, isTextSubtitleStream)) && - (identical(other.supportsExternalStream, supportsExternalStream) || const DeepCollectionEquality().equals(other.supportsExternalStream, supportsExternalStream)) && - (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.isAnamorphic, isAnamorphic) || const DeepCollectionEquality().equals(other.isAnamorphic, isAnamorphic))); + const DeepCollectionEquality().equals( + other.videoRange, + videoRange, + )) && + (identical(other.videoRangeType, videoRangeType) || + const DeepCollectionEquality().equals( + other.videoRangeType, + videoRangeType, + )) && + (identical(other.videoDoViTitle, videoDoViTitle) || + const DeepCollectionEquality().equals( + other.videoDoViTitle, + videoDoViTitle, + )) && + (identical(other.audioSpatialFormat, audioSpatialFormat) || + const DeepCollectionEquality().equals( + other.audioSpatialFormat, + audioSpatialFormat, + )) && + (identical(other.localizedUndefined, localizedUndefined) || + const DeepCollectionEquality().equals( + other.localizedUndefined, + localizedUndefined, + )) && + (identical(other.localizedDefault, localizedDefault) || + const DeepCollectionEquality().equals( + other.localizedDefault, + localizedDefault, + )) && + (identical(other.localizedForced, localizedForced) || + const DeepCollectionEquality().equals( + other.localizedForced, + localizedForced, + )) && + (identical(other.localizedExternal, localizedExternal) || + const DeepCollectionEquality().equals( + other.localizedExternal, + localizedExternal, + )) && + (identical( + other.localizedHearingImpaired, + localizedHearingImpaired, + ) || + const DeepCollectionEquality().equals( + other.localizedHearingImpaired, + localizedHearingImpaired, + )) && + (identical(other.displayTitle, displayTitle) || + const DeepCollectionEquality().equals( + other.displayTitle, + displayTitle, + )) && + (identical(other.nalLengthSize, nalLengthSize) || + const DeepCollectionEquality().equals( + other.nalLengthSize, + nalLengthSize, + )) && + (identical(other.isInterlaced, isInterlaced) || + const DeepCollectionEquality().equals( + other.isInterlaced, + isInterlaced, + )) && + (identical(other.isAVC, isAVC) || + const DeepCollectionEquality().equals(other.isAVC, isAVC)) && + (identical(other.channelLayout, channelLayout) || + const DeepCollectionEquality().equals( + other.channelLayout, + channelLayout, + )) && + (identical(other.bitRate, bitRate) || + const DeepCollectionEquality().equals( + other.bitRate, + bitRate, + )) && + (identical(other.bitDepth, bitDepth) || + const DeepCollectionEquality().equals( + other.bitDepth, + bitDepth, + )) && + (identical(other.refFrames, refFrames) || + const DeepCollectionEquality().equals( + other.refFrames, + refFrames, + )) && + (identical(other.packetLength, packetLength) || + const DeepCollectionEquality().equals( + other.packetLength, + packetLength, + )) && + (identical(other.channels, channels) || + const DeepCollectionEquality().equals( + other.channels, + channels, + )) && + (identical(other.sampleRate, sampleRate) || + const DeepCollectionEquality().equals( + other.sampleRate, + sampleRate, + )) && + (identical(other.isDefault, isDefault) || + const DeepCollectionEquality().equals( + other.isDefault, + isDefault, + )) && + (identical(other.isForced, isForced) || + const DeepCollectionEquality().equals( + other.isForced, + isForced, + )) && + (identical(other.isHearingImpaired, isHearingImpaired) || + const DeepCollectionEquality().equals( + 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.averageFrameRate, averageFrameRate) || + const DeepCollectionEquality().equals( + other.averageFrameRate, + averageFrameRate, + )) && + (identical(other.realFrameRate, realFrameRate) || + const DeepCollectionEquality().equals( + other.realFrameRate, + realFrameRate, + )) && + (identical(other.referenceFrameRate, referenceFrameRate) || + const DeepCollectionEquality().equals( + other.referenceFrameRate, + referenceFrameRate, + )) && + (identical(other.profile, profile) || + const DeepCollectionEquality().equals( + other.profile, + profile, + )) && + (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.isExternal, isExternal) || + const DeepCollectionEquality().equals( + other.isExternal, + isExternal, + )) && + (identical(other.deliveryMethod, deliveryMethod) || + const DeepCollectionEquality().equals( + other.deliveryMethod, + deliveryMethod, + )) && + (identical(other.deliveryUrl, deliveryUrl) || + const DeepCollectionEquality().equals( + other.deliveryUrl, + deliveryUrl, + )) && + (identical(other.isExternalUrl, isExternalUrl) || + const DeepCollectionEquality().equals( + other.isExternalUrl, + isExternalUrl, + )) && + (identical(other.isTextSubtitleStream, isTextSubtitleStream) || + const DeepCollectionEquality().equals( + other.isTextSubtitleStream, + isTextSubtitleStream, + )) && + (identical(other.supportsExternalStream, supportsExternalStream) || + const DeepCollectionEquality().equals( + other.supportsExternalStream, + supportsExternalStream, + )) && + (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.isAnamorphic, isAnamorphic) || + const DeepCollectionEquality().equals( + other.isAnamorphic, + isAnamorphic, + ))); } @override @@ -30145,328 +32913,339 @@ class MediaStream { } extension $MediaStreamExtension on MediaStream { - MediaStream copyWith( - {String? codec, - String? codecTag, - String? language, - String? colorRange, - String? colorSpace, - String? colorTransfer, - String? colorPrimaries, - int? dvVersionMajor, - int? dvVersionMinor, - int? dvProfile, - int? dvLevel, - int? rpuPresentFlag, - int? elPresentFlag, - int? blPresentFlag, - int? dvBlSignalCompatibilityId, - int? rotation, - String? comment, - String? timeBase, - String? codecTimeBase, - String? title, - enums.VideoRange? videoRange, - enums.VideoRangeType? videoRangeType, - String? videoDoViTitle, - enums.AudioSpatialFormat? audioSpatialFormat, - String? localizedUndefined, - String? localizedDefault, - String? localizedForced, - String? localizedExternal, - String? localizedHearingImpaired, - String? displayTitle, - String? nalLengthSize, - bool? isInterlaced, - bool? isAVC, - String? channelLayout, - int? bitRate, - int? bitDepth, - int? refFrames, - int? packetLength, - int? channels, - int? sampleRate, - bool? isDefault, - bool? isForced, - bool? isHearingImpaired, - int? height, - int? width, - double? averageFrameRate, - double? realFrameRate, - double? referenceFrameRate, - String? profile, - enums.MediaStreamType? type, - String? aspectRatio, - int? index, - int? score, - bool? isExternal, - enums.SubtitleDeliveryMethod? deliveryMethod, - String? deliveryUrl, - bool? isExternalUrl, - bool? isTextSubtitleStream, - bool? supportsExternalStream, - String? path, - String? pixelFormat, - double? level, - bool? isAnamorphic}) { + MediaStream copyWith({ + String? codec, + String? codecTag, + String? language, + String? colorRange, + String? colorSpace, + String? colorTransfer, + String? colorPrimaries, + int? dvVersionMajor, + int? dvVersionMinor, + int? dvProfile, + int? dvLevel, + int? rpuPresentFlag, + int? elPresentFlag, + int? blPresentFlag, + int? dvBlSignalCompatibilityId, + int? rotation, + String? comment, + String? timeBase, + String? codecTimeBase, + String? title, + enums.VideoRange? videoRange, + enums.VideoRangeType? videoRangeType, + String? videoDoViTitle, + enums.AudioSpatialFormat? audioSpatialFormat, + String? localizedUndefined, + String? localizedDefault, + String? localizedForced, + String? localizedExternal, + String? localizedHearingImpaired, + String? displayTitle, + String? nalLengthSize, + bool? isInterlaced, + bool? isAVC, + String? channelLayout, + int? bitRate, + int? bitDepth, + int? refFrames, + int? packetLength, + int? channels, + int? sampleRate, + bool? isDefault, + bool? isForced, + bool? isHearingImpaired, + int? height, + int? width, + double? averageFrameRate, + double? realFrameRate, + double? referenceFrameRate, + String? profile, + enums.MediaStreamType? type, + String? aspectRatio, + int? index, + int? score, + bool? isExternal, + enums.SubtitleDeliveryMethod? deliveryMethod, + String? deliveryUrl, + bool? isExternalUrl, + bool? isTextSubtitleStream, + bool? supportsExternalStream, + String? path, + String? pixelFormat, + double? level, + bool? isAnamorphic, + }) { return MediaStream( - codec: codec ?? this.codec, - codecTag: codecTag ?? this.codecTag, - language: language ?? this.language, - colorRange: colorRange ?? this.colorRange, - colorSpace: colorSpace ?? this.colorSpace, - colorTransfer: colorTransfer ?? this.colorTransfer, - colorPrimaries: colorPrimaries ?? this.colorPrimaries, - dvVersionMajor: dvVersionMajor ?? this.dvVersionMajor, - dvVersionMinor: dvVersionMinor ?? this.dvVersionMinor, - dvProfile: dvProfile ?? this.dvProfile, - dvLevel: dvLevel ?? this.dvLevel, - rpuPresentFlag: rpuPresentFlag ?? this.rpuPresentFlag, - elPresentFlag: elPresentFlag ?? this.elPresentFlag, - blPresentFlag: blPresentFlag ?? this.blPresentFlag, - dvBlSignalCompatibilityId: - dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, - rotation: rotation ?? this.rotation, - comment: comment ?? this.comment, - timeBase: timeBase ?? this.timeBase, - codecTimeBase: codecTimeBase ?? this.codecTimeBase, - title: title ?? this.title, - videoRange: videoRange ?? this.videoRange, - videoRangeType: videoRangeType ?? this.videoRangeType, - videoDoViTitle: videoDoViTitle ?? this.videoDoViTitle, - audioSpatialFormat: audioSpatialFormat ?? this.audioSpatialFormat, - localizedUndefined: localizedUndefined ?? this.localizedUndefined, - localizedDefault: localizedDefault ?? this.localizedDefault, - localizedForced: localizedForced ?? this.localizedForced, - localizedExternal: localizedExternal ?? this.localizedExternal, - localizedHearingImpaired: - localizedHearingImpaired ?? this.localizedHearingImpaired, - displayTitle: displayTitle ?? this.displayTitle, - nalLengthSize: nalLengthSize ?? this.nalLengthSize, - isInterlaced: isInterlaced ?? this.isInterlaced, - isAVC: isAVC ?? this.isAVC, - channelLayout: channelLayout ?? this.channelLayout, - bitRate: bitRate ?? this.bitRate, - bitDepth: bitDepth ?? this.bitDepth, - refFrames: refFrames ?? this.refFrames, - packetLength: packetLength ?? this.packetLength, - channels: channels ?? this.channels, - sampleRate: sampleRate ?? this.sampleRate, - isDefault: isDefault ?? this.isDefault, - isForced: isForced ?? this.isForced, - isHearingImpaired: isHearingImpaired ?? this.isHearingImpaired, - height: height ?? this.height, - width: width ?? this.width, - averageFrameRate: averageFrameRate ?? this.averageFrameRate, - realFrameRate: realFrameRate ?? this.realFrameRate, - referenceFrameRate: referenceFrameRate ?? this.referenceFrameRate, - profile: profile ?? this.profile, - type: type ?? this.type, - aspectRatio: aspectRatio ?? this.aspectRatio, - index: index ?? this.index, - score: score ?? this.score, - isExternal: isExternal ?? this.isExternal, - deliveryMethod: deliveryMethod ?? this.deliveryMethod, - deliveryUrl: deliveryUrl ?? this.deliveryUrl, - isExternalUrl: isExternalUrl ?? this.isExternalUrl, - isTextSubtitleStream: isTextSubtitleStream ?? this.isTextSubtitleStream, - supportsExternalStream: - supportsExternalStream ?? this.supportsExternalStream, - path: path ?? this.path, - pixelFormat: pixelFormat ?? this.pixelFormat, - level: level ?? this.level, - isAnamorphic: isAnamorphic ?? this.isAnamorphic); + codec: codec ?? this.codec, + codecTag: codecTag ?? this.codecTag, + language: language ?? this.language, + colorRange: colorRange ?? this.colorRange, + colorSpace: colorSpace ?? this.colorSpace, + colorTransfer: colorTransfer ?? this.colorTransfer, + colorPrimaries: colorPrimaries ?? this.colorPrimaries, + dvVersionMajor: dvVersionMajor ?? this.dvVersionMajor, + dvVersionMinor: dvVersionMinor ?? this.dvVersionMinor, + dvProfile: dvProfile ?? this.dvProfile, + dvLevel: dvLevel ?? this.dvLevel, + rpuPresentFlag: rpuPresentFlag ?? this.rpuPresentFlag, + elPresentFlag: elPresentFlag ?? this.elPresentFlag, + blPresentFlag: blPresentFlag ?? this.blPresentFlag, + dvBlSignalCompatibilityId: + dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, + rotation: rotation ?? this.rotation, + comment: comment ?? this.comment, + timeBase: timeBase ?? this.timeBase, + codecTimeBase: codecTimeBase ?? this.codecTimeBase, + title: title ?? this.title, + videoRange: videoRange ?? this.videoRange, + videoRangeType: videoRangeType ?? this.videoRangeType, + videoDoViTitle: videoDoViTitle ?? this.videoDoViTitle, + audioSpatialFormat: audioSpatialFormat ?? this.audioSpatialFormat, + localizedUndefined: localizedUndefined ?? this.localizedUndefined, + localizedDefault: localizedDefault ?? this.localizedDefault, + localizedForced: localizedForced ?? this.localizedForced, + localizedExternal: localizedExternal ?? this.localizedExternal, + localizedHearingImpaired: + localizedHearingImpaired ?? this.localizedHearingImpaired, + displayTitle: displayTitle ?? this.displayTitle, + nalLengthSize: nalLengthSize ?? this.nalLengthSize, + isInterlaced: isInterlaced ?? this.isInterlaced, + isAVC: isAVC ?? this.isAVC, + channelLayout: channelLayout ?? this.channelLayout, + bitRate: bitRate ?? this.bitRate, + bitDepth: bitDepth ?? this.bitDepth, + refFrames: refFrames ?? this.refFrames, + packetLength: packetLength ?? this.packetLength, + channels: channels ?? this.channels, + sampleRate: sampleRate ?? this.sampleRate, + isDefault: isDefault ?? this.isDefault, + isForced: isForced ?? this.isForced, + isHearingImpaired: isHearingImpaired ?? this.isHearingImpaired, + height: height ?? this.height, + width: width ?? this.width, + averageFrameRate: averageFrameRate ?? this.averageFrameRate, + realFrameRate: realFrameRate ?? this.realFrameRate, + referenceFrameRate: referenceFrameRate ?? this.referenceFrameRate, + profile: profile ?? this.profile, + type: type ?? this.type, + aspectRatio: aspectRatio ?? this.aspectRatio, + index: index ?? this.index, + score: score ?? this.score, + isExternal: isExternal ?? this.isExternal, + deliveryMethod: deliveryMethod ?? this.deliveryMethod, + deliveryUrl: deliveryUrl ?? this.deliveryUrl, + isExternalUrl: isExternalUrl ?? this.isExternalUrl, + isTextSubtitleStream: isTextSubtitleStream ?? this.isTextSubtitleStream, + supportsExternalStream: + supportsExternalStream ?? this.supportsExternalStream, + path: path ?? this.path, + pixelFormat: pixelFormat ?? this.pixelFormat, + level: level ?? this.level, + isAnamorphic: isAnamorphic ?? this.isAnamorphic, + ); } - MediaStream copyWithWrapped( - {Wrapped? codec, - Wrapped? codecTag, - Wrapped? language, - Wrapped? colorRange, - Wrapped? colorSpace, - Wrapped? colorTransfer, - Wrapped? colorPrimaries, - Wrapped? dvVersionMajor, - Wrapped? dvVersionMinor, - Wrapped? dvProfile, - Wrapped? dvLevel, - Wrapped? rpuPresentFlag, - Wrapped? elPresentFlag, - Wrapped? blPresentFlag, - Wrapped? dvBlSignalCompatibilityId, - Wrapped? rotation, - Wrapped? comment, - Wrapped? timeBase, - Wrapped? codecTimeBase, - Wrapped? title, - Wrapped? videoRange, - Wrapped? videoRangeType, - Wrapped? videoDoViTitle, - Wrapped? audioSpatialFormat, - Wrapped? localizedUndefined, - Wrapped? localizedDefault, - Wrapped? localizedForced, - Wrapped? localizedExternal, - Wrapped? localizedHearingImpaired, - Wrapped? displayTitle, - Wrapped? nalLengthSize, - Wrapped? isInterlaced, - Wrapped? isAVC, - Wrapped? channelLayout, - Wrapped? bitRate, - Wrapped? bitDepth, - Wrapped? refFrames, - Wrapped? packetLength, - Wrapped? channels, - Wrapped? sampleRate, - Wrapped? isDefault, - Wrapped? isForced, - Wrapped? isHearingImpaired, - Wrapped? height, - Wrapped? width, - Wrapped? averageFrameRate, - Wrapped? realFrameRate, - Wrapped? referenceFrameRate, - Wrapped? profile, - Wrapped? type, - Wrapped? aspectRatio, - Wrapped? index, - Wrapped? score, - Wrapped? isExternal, - Wrapped? deliveryMethod, - Wrapped? deliveryUrl, - Wrapped? isExternalUrl, - Wrapped? isTextSubtitleStream, - Wrapped? supportsExternalStream, - Wrapped? path, - Wrapped? pixelFormat, - Wrapped? level, - Wrapped? isAnamorphic}) { + MediaStream copyWithWrapped({ + Wrapped? codec, + Wrapped? codecTag, + Wrapped? language, + Wrapped? colorRange, + Wrapped? colorSpace, + Wrapped? colorTransfer, + Wrapped? colorPrimaries, + Wrapped? dvVersionMajor, + Wrapped? dvVersionMinor, + Wrapped? dvProfile, + Wrapped? dvLevel, + Wrapped? rpuPresentFlag, + Wrapped? elPresentFlag, + Wrapped? blPresentFlag, + Wrapped? dvBlSignalCompatibilityId, + Wrapped? rotation, + Wrapped? comment, + Wrapped? timeBase, + Wrapped? codecTimeBase, + Wrapped? title, + Wrapped? videoRange, + Wrapped? videoRangeType, + Wrapped? videoDoViTitle, + Wrapped? audioSpatialFormat, + Wrapped? localizedUndefined, + Wrapped? localizedDefault, + Wrapped? localizedForced, + Wrapped? localizedExternal, + Wrapped? localizedHearingImpaired, + Wrapped? displayTitle, + Wrapped? nalLengthSize, + Wrapped? isInterlaced, + Wrapped? isAVC, + Wrapped? channelLayout, + Wrapped? bitRate, + Wrapped? bitDepth, + Wrapped? refFrames, + Wrapped? packetLength, + Wrapped? channels, + Wrapped? sampleRate, + Wrapped? isDefault, + Wrapped? isForced, + Wrapped? isHearingImpaired, + Wrapped? height, + Wrapped? width, + Wrapped? averageFrameRate, + Wrapped? realFrameRate, + Wrapped? referenceFrameRate, + Wrapped? profile, + Wrapped? type, + Wrapped? aspectRatio, + Wrapped? index, + Wrapped? score, + Wrapped? isExternal, + Wrapped? deliveryMethod, + Wrapped? deliveryUrl, + Wrapped? isExternalUrl, + Wrapped? isTextSubtitleStream, + Wrapped? supportsExternalStream, + Wrapped? path, + Wrapped? pixelFormat, + Wrapped? level, + Wrapped? isAnamorphic, + }) { return MediaStream( - codec: (codec != null ? codec.value : this.codec), - codecTag: (codecTag != null ? codecTag.value : this.codecTag), - 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), - 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), - 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), - title: (title != null ? title.value : this.title), - 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), - isAVC: (isAVC != null ? isAVC.value : this.isAVC), - 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), - 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), - 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), - 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), - 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), - 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)); + codec: (codec != null ? codec.value : this.codec), + codecTag: (codecTag != null ? codecTag.value : this.codecTag), + 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), + 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), + 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), + title: (title != null ? title.value : this.title), + 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), + isAVC: (isAVC != null ? isAVC.value : this.isAVC), + 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), + 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), + 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), + 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), + 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), + 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), + ); } } @JsonSerializable(explicitToJson: true) class MediaUpdateInfoDto { - const MediaUpdateInfoDto({ - this.updates, - }); + const MediaUpdateInfoDto({this.updates}); factory MediaUpdateInfoDto.fromJson(Map json) => _$MediaUpdateInfoDtoFromJson(json); @@ -30475,9 +33254,10 @@ class MediaUpdateInfoDto { Map toJson() => _$MediaUpdateInfoDtoToJson(this); @JsonKey( - name: 'Updates', - includeIfNull: false, - defaultValue: []) + name: 'Updates', + includeIfNull: false, + defaultValue: [], + ) final List? updates; static const fromJsonFactory = _$MediaUpdateInfoDtoFromJson; @@ -30502,19 +33282,18 @@ extension $MediaUpdateInfoDtoExtension on MediaUpdateInfoDto { return MediaUpdateInfoDto(updates: updates ?? this.updates); } - MediaUpdateInfoDto copyWithWrapped( - {Wrapped?>? updates}) { + MediaUpdateInfoDto copyWithWrapped({ + Wrapped?>? updates, + }) { return MediaUpdateInfoDto( - updates: (updates != null ? updates.value : this.updates)); + updates: (updates != null ? updates.value : this.updates), + ); } } @JsonSerializable(explicitToJson: true) class MediaUpdateInfoPathDto { - const MediaUpdateInfoPathDto({ - this.path, - this.updateType, - }); + const MediaUpdateInfoPathDto({this.path, this.updateType}); factory MediaUpdateInfoPathDto.fromJson(Map json) => _$MediaUpdateInfoPathDtoFromJson(json); @@ -30535,8 +33314,10 @@ class MediaUpdateInfoPathDto { (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.updateType, updateType) || - const DeepCollectionEquality() - .equals(other.updateType, updateType))); + const DeepCollectionEquality().equals( + other.updateType, + updateType, + ))); } @override @@ -30552,23 +33333,25 @@ class MediaUpdateInfoPathDto { extension $MediaUpdateInfoPathDtoExtension on MediaUpdateInfoPathDto { MediaUpdateInfoPathDto copyWith({String? path, String? updateType}) { return MediaUpdateInfoPathDto( - path: path ?? this.path, updateType: updateType ?? this.updateType); + path: path ?? this.path, + updateType: updateType ?? this.updateType, + ); } - MediaUpdateInfoPathDto copyWithWrapped( - {Wrapped? path, Wrapped? updateType}) { + MediaUpdateInfoPathDto copyWithWrapped({ + Wrapped? path, + Wrapped? updateType, + }) { return MediaUpdateInfoPathDto( - path: (path != null ? path.value : this.path), - updateType: (updateType != null ? updateType.value : this.updateType)); + path: (path != null ? path.value : this.path), + updateType: (updateType != null ? updateType.value : this.updateType), + ); } } @JsonSerializable(explicitToJson: true) class MediaUrl { - const MediaUrl({ - this.url, - this.name, - }); + const MediaUrl({this.url, this.name}); factory MediaUrl.fromJson(Map json) => _$MediaUrlFromJson(json); @@ -30609,18 +33392,15 @@ extension $MediaUrlExtension on MediaUrl { MediaUrl copyWithWrapped({Wrapped? url, Wrapped? name}) { return MediaUrl( - url: (url != null ? url.value : this.url), - name: (name != null ? name.value : this.name)); + url: (url != null ? url.value : this.url), + name: (name != null ? name.value : this.name), + ); } } @JsonSerializable(explicitToJson: true) class MessageCommand { - const MessageCommand({ - this.header, - required this.text, - this.timeoutMs, - }); + const MessageCommand({this.header, required this.text, this.timeoutMs}); factory MessageCommand.fromJson(Map json) => _$MessageCommandFromJson(json); @@ -30645,8 +33425,10 @@ class MessageCommand { (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && (identical(other.timeoutMs, timeoutMs) || - const DeepCollectionEquality() - .equals(other.timeoutMs, timeoutMs))); + const DeepCollectionEquality().equals( + other.timeoutMs, + timeoutMs, + ))); } @override @@ -30663,27 +33445,28 @@ class MessageCommand { extension $MessageCommandExtension on MessageCommand { MessageCommand copyWith({String? header, String? text, int? timeoutMs}) { return MessageCommand( - header: header ?? this.header, - text: text ?? this.text, - timeoutMs: timeoutMs ?? this.timeoutMs); + header: header ?? this.header, + text: text ?? this.text, + timeoutMs: timeoutMs ?? this.timeoutMs, + ); } - MessageCommand copyWithWrapped( - {Wrapped? header, - Wrapped? text, - Wrapped? timeoutMs}) { + MessageCommand copyWithWrapped({ + Wrapped? header, + Wrapped? text, + Wrapped? timeoutMs, + }) { return MessageCommand( - header: (header != null ? header.value : this.header), - text: (text != null ? text.value : this.text), - timeoutMs: (timeoutMs != null ? timeoutMs.value : this.timeoutMs)); + header: (header != null ? header.value : this.header), + text: (text != null ? text.value : this.text), + timeoutMs: (timeoutMs != null ? timeoutMs.value : this.timeoutMs), + ); } } @JsonSerializable(explicitToJson: true) class MetadataConfiguration { - const MetadataConfiguration({ - this.useFileCreationTimeForDateAdded, - }); + const MetadataConfiguration({this.useFileCreationTimeForDateAdded}); factory MetadataConfiguration.fromJson(Map json) => _$MetadataConfigurationFromJson(json); @@ -30699,11 +33482,14 @@ class MetadataConfiguration { bool operator ==(Object other) { return identical(this, other) || (other is MetadataConfiguration && - (identical(other.useFileCreationTimeForDateAdded, - useFileCreationTimeForDateAdded) || + (identical( + other.useFileCreationTimeForDateAdded, + useFileCreationTimeForDateAdded, + ) || const DeepCollectionEquality().equals( - other.useFileCreationTimeForDateAdded, - useFileCreationTimeForDateAdded))); + other.useFileCreationTimeForDateAdded, + useFileCreationTimeForDateAdded, + ))); } @override @@ -30718,17 +33504,20 @@ class MetadataConfiguration { extension $MetadataConfigurationExtension on MetadataConfiguration { MetadataConfiguration copyWith({bool? useFileCreationTimeForDateAdded}) { return MetadataConfiguration( - useFileCreationTimeForDateAdded: useFileCreationTimeForDateAdded ?? - this.useFileCreationTimeForDateAdded); + useFileCreationTimeForDateAdded: + useFileCreationTimeForDateAdded ?? + this.useFileCreationTimeForDateAdded, + ); } - MetadataConfiguration copyWithWrapped( - {Wrapped? useFileCreationTimeForDateAdded}) { + MetadataConfiguration copyWithWrapped({ + Wrapped? useFileCreationTimeForDateAdded, + }) { return MetadataConfiguration( - useFileCreationTimeForDateAdded: - (useFileCreationTimeForDateAdded != null - ? useFileCreationTimeForDateAdded.value - : this.useFileCreationTimeForDateAdded)); + useFileCreationTimeForDateAdded: (useFileCreationTimeForDateAdded != null + ? useFileCreationTimeForDateAdded.value + : this.useFileCreationTimeForDateAdded), + ); } } @@ -30750,19 +33539,24 @@ class MetadataEditorInfo { Map toJson() => _$MetadataEditorInfoToJson(this); @JsonKey( - name: 'ParentalRatingOptions', - includeIfNull: false, - defaultValue: []) + name: 'ParentalRatingOptions', + includeIfNull: false, + defaultValue: [], + ) final List? parentalRatingOptions; @JsonKey( - name: 'Countries', includeIfNull: false, defaultValue: []) + name: 'Countries', + includeIfNull: false, + defaultValue: [], + ) final List? countries; @JsonKey(name: 'Cultures', includeIfNull: false, defaultValue: []) final List? cultures; @JsonKey( - name: 'ExternalIdInfos', - includeIfNull: false, - defaultValue: []) + name: 'ExternalIdInfos', + includeIfNull: false, + defaultValue: [], + ) final List? externalIdInfos; @JsonKey( name: 'ContentType', @@ -30772,9 +33566,10 @@ class MetadataEditorInfo { ) final enums.CollectionType? contentType; @JsonKey( - name: 'ContentTypeOptions', - includeIfNull: false, - defaultValue: []) + name: 'ContentTypeOptions', + includeIfNull: false, + defaultValue: [], + ) final List? contentTypeOptions; static const fromJsonFactory = _$MetadataEditorInfoFromJson; @@ -30784,22 +33579,34 @@ class MetadataEditorInfo { (other is MetadataEditorInfo && (identical(other.parentalRatingOptions, parentalRatingOptions) || const DeepCollectionEquality().equals( - other.parentalRatingOptions, parentalRatingOptions)) && + other.parentalRatingOptions, + parentalRatingOptions, + )) && (identical(other.countries, countries) || - const DeepCollectionEquality() - .equals(other.countries, countries)) && + const DeepCollectionEquality().equals( + other.countries, + countries, + )) && (identical(other.cultures, cultures) || - const DeepCollectionEquality() - .equals(other.cultures, cultures)) && + const DeepCollectionEquality().equals( + other.cultures, + cultures, + )) && (identical(other.externalIdInfos, externalIdInfos) || - const DeepCollectionEquality() - .equals(other.externalIdInfos, externalIdInfos)) && + const DeepCollectionEquality().equals( + other.externalIdInfos, + externalIdInfos, + )) && (identical(other.contentType, contentType) || - const DeepCollectionEquality() - .equals(other.contentType, contentType)) && + const DeepCollectionEquality().equals( + other.contentType, + contentType, + )) && (identical(other.contentTypeOptions, contentTypeOptions) || - const DeepCollectionEquality() - .equals(other.contentTypeOptions, contentTypeOptions))); + const DeepCollectionEquality().equals( + other.contentTypeOptions, + contentTypeOptions, + ))); } @override @@ -30817,44 +33624,47 @@ class MetadataEditorInfo { } extension $MetadataEditorInfoExtension on MetadataEditorInfo { - MetadataEditorInfo copyWith( - {List? parentalRatingOptions, - List? countries, - List? cultures, - List? externalIdInfos, - enums.CollectionType? contentType, - List? contentTypeOptions}) { + MetadataEditorInfo copyWith({ + List? parentalRatingOptions, + List? countries, + List? cultures, + List? externalIdInfos, + enums.CollectionType? contentType, + List? contentTypeOptions, + }) { return MetadataEditorInfo( - parentalRatingOptions: - parentalRatingOptions ?? this.parentalRatingOptions, - countries: countries ?? this.countries, - cultures: cultures ?? this.cultures, - externalIdInfos: externalIdInfos ?? this.externalIdInfos, - contentType: contentType ?? this.contentType, - contentTypeOptions: contentTypeOptions ?? this.contentTypeOptions); + parentalRatingOptions: + parentalRatingOptions ?? this.parentalRatingOptions, + countries: countries ?? this.countries, + cultures: cultures ?? this.cultures, + externalIdInfos: externalIdInfos ?? this.externalIdInfos, + contentType: contentType ?? this.contentType, + contentTypeOptions: contentTypeOptions ?? this.contentTypeOptions, + ); } - MetadataEditorInfo copyWithWrapped( - {Wrapped?>? parentalRatingOptions, - Wrapped?>? countries, - Wrapped?>? cultures, - Wrapped?>? externalIdInfos, - Wrapped? contentType, - Wrapped?>? contentTypeOptions}) { + MetadataEditorInfo copyWithWrapped({ + Wrapped?>? parentalRatingOptions, + Wrapped?>? countries, + Wrapped?>? cultures, + Wrapped?>? externalIdInfos, + Wrapped? contentType, + Wrapped?>? contentTypeOptions, + }) { return MetadataEditorInfo( - 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), - contentType: - (contentType != null ? contentType.value : this.contentType), - contentTypeOptions: (contentTypeOptions != null - ? contentTypeOptions.value - : this.contentTypeOptions)); + 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), + contentType: (contentType != null ? contentType.value : this.contentType), + contentTypeOptions: (contentTypeOptions != null + ? contentTypeOptions.value + : this.contentTypeOptions), + ); } } @@ -30879,32 +33689,40 @@ class MetadataOptions { @JsonKey(name: 'ItemType', includeIfNull: false) final String? itemType; @JsonKey( - name: 'DisabledMetadataSavers', - includeIfNull: false, - defaultValue: []) + name: 'DisabledMetadataSavers', + includeIfNull: false, + defaultValue: [], + ) final List? disabledMetadataSavers; @JsonKey( - name: 'LocalMetadataReaderOrder', - includeIfNull: false, - defaultValue: []) + name: 'LocalMetadataReaderOrder', + includeIfNull: false, + defaultValue: [], + ) final List? localMetadataReaderOrder; @JsonKey( - name: 'DisabledMetadataFetchers', - includeIfNull: false, - defaultValue: []) + name: 'DisabledMetadataFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? disabledMetadataFetchers; @JsonKey( - name: 'MetadataFetcherOrder', - includeIfNull: false, - defaultValue: []) + name: 'MetadataFetcherOrder', + includeIfNull: false, + defaultValue: [], + ) final List? metadataFetcherOrder; @JsonKey( - name: 'DisabledImageFetchers', - includeIfNull: false, - defaultValue: []) + name: 'DisabledImageFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? disabledImageFetchers; @JsonKey( - name: 'ImageFetcherOrder', includeIfNull: false, defaultValue: []) + name: 'ImageFetcherOrder', + includeIfNull: false, + defaultValue: [], + ) final List? imageFetcherOrder; static const fromJsonFactory = _$MetadataOptionsFromJson; @@ -30913,30 +33731,46 @@ class MetadataOptions { return identical(this, other) || (other is MetadataOptions && (identical(other.itemType, itemType) || - const DeepCollectionEquality() - .equals(other.itemType, itemType)) && + const DeepCollectionEquality().equals( + other.itemType, + itemType, + )) && (identical(other.disabledMetadataSavers, disabledMetadataSavers) || const DeepCollectionEquality().equals( - other.disabledMetadataSavers, disabledMetadataSavers)) && + other.disabledMetadataSavers, + disabledMetadataSavers, + )) && (identical( - other.localMetadataReaderOrder, localMetadataReaderOrder) || + other.localMetadataReaderOrder, + localMetadataReaderOrder, + ) || const DeepCollectionEquality().equals( - other.localMetadataReaderOrder, - localMetadataReaderOrder)) && + other.localMetadataReaderOrder, + localMetadataReaderOrder, + )) && (identical( - other.disabledMetadataFetchers, disabledMetadataFetchers) || + other.disabledMetadataFetchers, + disabledMetadataFetchers, + ) || const DeepCollectionEquality().equals( - other.disabledMetadataFetchers, - disabledMetadataFetchers)) && + other.disabledMetadataFetchers, + disabledMetadataFetchers, + )) && (identical(other.metadataFetcherOrder, metadataFetcherOrder) || const DeepCollectionEquality().equals( - other.metadataFetcherOrder, metadataFetcherOrder)) && + other.metadataFetcherOrder, + metadataFetcherOrder, + )) && (identical(other.disabledImageFetchers, disabledImageFetchers) || const DeepCollectionEquality().equals( - other.disabledImageFetchers, disabledImageFetchers)) && + other.disabledImageFetchers, + disabledImageFetchers, + )) && (identical(other.imageFetcherOrder, imageFetcherOrder) || - const DeepCollectionEquality() - .equals(other.imageFetcherOrder, imageFetcherOrder))); + const DeepCollectionEquality().equals( + other.imageFetcherOrder, + imageFetcherOrder, + ))); } @override @@ -30955,65 +33789,66 @@ class MetadataOptions { } extension $MetadataOptionsExtension on MetadataOptions { - MetadataOptions copyWith( - {String? itemType, - List? disabledMetadataSavers, - List? localMetadataReaderOrder, - List? disabledMetadataFetchers, - List? metadataFetcherOrder, - List? disabledImageFetchers, - List? imageFetcherOrder}) { + MetadataOptions copyWith({ + String? itemType, + List? disabledMetadataSavers, + List? localMetadataReaderOrder, + List? disabledMetadataFetchers, + List? metadataFetcherOrder, + List? disabledImageFetchers, + List? imageFetcherOrder, + }) { return MetadataOptions( - itemType: itemType ?? this.itemType, - disabledMetadataSavers: - disabledMetadataSavers ?? this.disabledMetadataSavers, - localMetadataReaderOrder: - localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledMetadataFetchers: - disabledMetadataFetchers ?? this.disabledMetadataFetchers, - metadataFetcherOrder: metadataFetcherOrder ?? this.metadataFetcherOrder, - disabledImageFetchers: - disabledImageFetchers ?? this.disabledImageFetchers, - imageFetcherOrder: imageFetcherOrder ?? this.imageFetcherOrder); + itemType: itemType ?? this.itemType, + disabledMetadataSavers: + disabledMetadataSavers ?? this.disabledMetadataSavers, + localMetadataReaderOrder: + localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledMetadataFetchers: + disabledMetadataFetchers ?? this.disabledMetadataFetchers, + metadataFetcherOrder: metadataFetcherOrder ?? this.metadataFetcherOrder, + disabledImageFetchers: + disabledImageFetchers ?? this.disabledImageFetchers, + imageFetcherOrder: imageFetcherOrder ?? this.imageFetcherOrder, + ); } - MetadataOptions copyWithWrapped( - {Wrapped? itemType, - Wrapped?>? disabledMetadataSavers, - Wrapped?>? localMetadataReaderOrder, - Wrapped?>? disabledMetadataFetchers, - Wrapped?>? metadataFetcherOrder, - Wrapped?>? disabledImageFetchers, - Wrapped?>? imageFetcherOrder}) { + MetadataOptions copyWithWrapped({ + Wrapped? itemType, + Wrapped?>? disabledMetadataSavers, + Wrapped?>? localMetadataReaderOrder, + Wrapped?>? disabledMetadataFetchers, + Wrapped?>? metadataFetcherOrder, + Wrapped?>? disabledImageFetchers, + Wrapped?>? imageFetcherOrder, + }) { 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class MovePlaylistItemRequestDto { - const MovePlaylistItemRequestDto({ - this.playlistItemId, - this.newIndex, - }); + const MovePlaylistItemRequestDto({this.playlistItemId, this.newIndex}); factory MovePlaylistItemRequestDto.fromJson(Map json) => _$MovePlaylistItemRequestDtoFromJson(json); @@ -31032,11 +33867,15 @@ class MovePlaylistItemRequestDto { return identical(this, other) || (other is MovePlaylistItemRequestDto && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId)) && + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + )) && (identical(other.newIndex, newIndex) || - const DeepCollectionEquality() - .equals(other.newIndex, newIndex))); + const DeepCollectionEquality().equals( + other.newIndex, + newIndex, + ))); } @override @@ -31052,17 +33891,21 @@ class MovePlaylistItemRequestDto { extension $MovePlaylistItemRequestDtoExtension on MovePlaylistItemRequestDto { MovePlaylistItemRequestDto copyWith({String? playlistItemId, int? newIndex}) { return MovePlaylistItemRequestDto( - playlistItemId: playlistItemId ?? this.playlistItemId, - newIndex: newIndex ?? this.newIndex); + playlistItemId: playlistItemId ?? this.playlistItemId, + newIndex: newIndex ?? this.newIndex, + ); } - MovePlaylistItemRequestDto copyWithWrapped( - {Wrapped? playlistItemId, Wrapped? newIndex}) { + MovePlaylistItemRequestDto copyWithWrapped({ + Wrapped? playlistItemId, + Wrapped? newIndex, + }) { return MovePlaylistItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), - newIndex: (newIndex != null ? newIndex.value : this.newIndex)); + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + newIndex: (newIndex != null ? newIndex.value : this.newIndex), + ); } } @@ -31119,33 +33962,49 @@ class MovieInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated))); + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + ))); } @override @@ -31168,67 +34027,70 @@ class MovieInfo { } extension $MovieInfoExtension on MovieInfo { - MovieInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated}) { + MovieInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + }) { return MovieInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + ); } - MovieInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated}) { + MovieInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + }) { return MovieInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + ); } } @@ -31262,17 +34124,25 @@ class MovieInfoRemoteSearchQuery { return identical(this, other) || (other is MovieInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -31288,33 +34158,37 @@ class MovieInfoRemoteSearchQuery { } extension $MovieInfoRemoteSearchQueryExtension on MovieInfoRemoteSearchQuery { - MovieInfoRemoteSearchQuery copyWith( - {MovieInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + MovieInfoRemoteSearchQuery copyWith({ + MovieInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return MovieInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - MovieInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + MovieInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @@ -31374,33 +34248,49 @@ class MusicVideoInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated)) && + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + )) && (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @@ -31426,71 +34316,74 @@ class MusicVideoInfo { } extension $MusicVideoInfoExtension on MusicVideoInfo { - MusicVideoInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated, - List? artists}) { + MusicVideoInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + List? artists, + }) { return MusicVideoInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated, - artists: artists ?? this.artists); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + artists: artists ?? this.artists, + ); } - MusicVideoInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated, - Wrapped?>? artists}) { + MusicVideoInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + Wrapped?>? artists, + }) { return MusicVideoInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated), - artists: (artists != null ? artists.value : this.artists)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + artists: (artists != null ? artists.value : this.artists), + ); } } @@ -31525,17 +34418,25 @@ class MusicVideoInfoRemoteSearchQuery { return identical(this, other) || (other is MusicVideoInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -31552,42 +34453,43 @@ class MusicVideoInfoRemoteSearchQuery { extension $MusicVideoInfoRemoteSearchQueryExtension on MusicVideoInfoRemoteSearchQuery { - MusicVideoInfoRemoteSearchQuery copyWith( - {MusicVideoInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + MusicVideoInfoRemoteSearchQuery copyWith({ + MusicVideoInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return MusicVideoInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - MusicVideoInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + MusicVideoInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class NameGuidPair { - const NameGuidPair({ - this.name, - this.id, - }); + const NameGuidPair({this.name, this.id}); factory NameGuidPair.fromJson(Map json) => _$NameGuidPairFromJson(json); @@ -31628,17 +34530,15 @@ extension $NameGuidPairExtension on NameGuidPair { NameGuidPair copyWithWrapped({Wrapped? name, Wrapped? id}) { return NameGuidPair( - name: (name != null ? name.value : this.name), - id: (id != null ? id.value : this.id)); + name: (name != null ? name.value : this.name), + id: (id != null ? id.value : this.id), + ); } } @JsonSerializable(explicitToJson: true) class NameIdPair { - const NameIdPair({ - this.name, - this.id, - }); + const NameIdPair({this.name, this.id}); factory NameIdPair.fromJson(Map json) => _$NameIdPairFromJson(json); @@ -31679,17 +34579,15 @@ extension $NameIdPairExtension on NameIdPair { NameIdPair copyWithWrapped({Wrapped? name, Wrapped? id}) { return NameIdPair( - name: (name != null ? name.value : this.name), - id: (id != null ? id.value : this.id)); + name: (name != null ? name.value : this.name), + id: (id != null ? id.value : this.id), + ); } } @JsonSerializable(explicitToJson: true) class NameValuePair { - const NameValuePair({ - this.name, - this.$Value, - }); + const NameValuePair({this.name, this.$Value}); factory NameValuePair.fromJson(Map json) => _$NameValuePairFromJson(json); @@ -31726,14 +34624,19 @@ class NameValuePair { extension $NameValuePairExtension on NameValuePair { NameValuePair copyWith({String? name, String? $Value}) { return NameValuePair( - name: name ?? this.name, $Value: $Value ?? this.$Value); + name: name ?? this.name, + $Value: $Value ?? this.$Value, + ); } - NameValuePair copyWithWrapped( - {Wrapped? name, Wrapped? $Value}) { + NameValuePair copyWithWrapped({ + Wrapped? name, + Wrapped? $Value, + }) { return NameValuePair( - name: (name != null ? name.value : this.name), - $Value: ($Value != null ? $Value.value : this.$Value)); + name: (name != null ? name.value : this.name), + $Value: ($Value != null ? $Value.value : this.$Value), + ); } } @@ -31800,33 +34703,40 @@ class NetworkConfiguration { @JsonKey(name: 'EnableRemoteAccess', includeIfNull: false) final bool? enableRemoteAccess; @JsonKey( - name: 'LocalNetworkSubnets', - includeIfNull: false, - defaultValue: []) + name: 'LocalNetworkSubnets', + includeIfNull: false, + defaultValue: [], + ) final List? localNetworkSubnets; @JsonKey( - name: 'LocalNetworkAddresses', - includeIfNull: false, - defaultValue: []) + name: 'LocalNetworkAddresses', + includeIfNull: false, + defaultValue: [], + ) final List? localNetworkAddresses; @JsonKey(name: 'KnownProxies', includeIfNull: false, defaultValue: []) final List? knownProxies; @JsonKey(name: 'IgnoreVirtualInterfaces', includeIfNull: false) final bool? ignoreVirtualInterfaces; @JsonKey( - name: 'VirtualInterfaceNames', - includeIfNull: false, - defaultValue: []) + name: 'VirtualInterfaceNames', + includeIfNull: false, + defaultValue: [], + ) final List? virtualInterfaceNames; @JsonKey(name: 'EnablePublishedServerUriByRequest', includeIfNull: false) final bool? enablePublishedServerUriByRequest; @JsonKey( - name: 'PublishedServerUriBySubnet', - includeIfNull: false, - defaultValue: []) + name: 'PublishedServerUriBySubnet', + includeIfNull: false, + defaultValue: [], + ) final List? publishedServerUriBySubnet; @JsonKey( - name: 'RemoteIPFilter', includeIfNull: false, defaultValue: []) + name: 'RemoteIPFilter', + includeIfNull: false, + defaultValue: [], + ) final List? remoteIPFilter; @JsonKey(name: 'IsRemoteIPFilterBlacklist', includeIfNull: false) final bool? isRemoteIPFilterBlacklist; @@ -31837,69 +34747,132 @@ class NetworkConfiguration { return identical(this, other) || (other is NetworkConfiguration && (identical(other.baseUrl, baseUrl) || - const DeepCollectionEquality() - .equals(other.baseUrl, baseUrl)) && + const DeepCollectionEquality().equals( + other.baseUrl, + baseUrl, + )) && (identical(other.enableHttps, enableHttps) || - const DeepCollectionEquality() - .equals(other.enableHttps, enableHttps)) && + const DeepCollectionEquality().equals( + other.enableHttps, + enableHttps, + )) && (identical(other.requireHttps, requireHttps) || - const DeepCollectionEquality() - .equals(other.requireHttps, requireHttps)) && + const DeepCollectionEquality().equals( + other.requireHttps, + requireHttps, + )) && (identical(other.certificatePath, certificatePath) || - const DeepCollectionEquality() - .equals(other.certificatePath, certificatePath)) && + const DeepCollectionEquality().equals( + other.certificatePath, + certificatePath, + )) && (identical(other.certificatePassword, certificatePassword) || - const DeepCollectionEquality() - .equals(other.certificatePassword, certificatePassword)) && + const DeepCollectionEquality().equals( + other.certificatePassword, + certificatePassword, + )) && (identical(other.internalHttpPort, internalHttpPort) || - const DeepCollectionEquality() - .equals(other.internalHttpPort, internalHttpPort)) && + const DeepCollectionEquality().equals( + other.internalHttpPort, + internalHttpPort, + )) && (identical(other.internalHttpsPort, internalHttpsPort) || - const DeepCollectionEquality() - .equals(other.internalHttpsPort, internalHttpsPort)) && + const DeepCollectionEquality().equals( + other.internalHttpsPort, + internalHttpsPort, + )) && (identical(other.publicHttpPort, publicHttpPort) || - const DeepCollectionEquality() - .equals(other.publicHttpPort, publicHttpPort)) && + const DeepCollectionEquality().equals( + other.publicHttpPort, + publicHttpPort, + )) && (identical(other.publicHttpsPort, publicHttpsPort) || - const DeepCollectionEquality() - .equals(other.publicHttpsPort, publicHttpsPort)) && + const DeepCollectionEquality().equals( + other.publicHttpsPort, + publicHttpsPort, + )) && (identical(other.autoDiscovery, autoDiscovery) || - const DeepCollectionEquality() - .equals(other.autoDiscovery, autoDiscovery)) && + const DeepCollectionEquality().equals( + other.autoDiscovery, + autoDiscovery, + )) && (identical(other.enableUPnP, enableUPnP) || - const DeepCollectionEquality() - .equals(other.enableUPnP, enableUPnP)) && + const DeepCollectionEquality().equals( + other.enableUPnP, + enableUPnP, + )) && (identical(other.enableIPv4, enableIPv4) || - const DeepCollectionEquality() - .equals(other.enableIPv4, enableIPv4)) && + const DeepCollectionEquality().equals( + other.enableIPv4, + enableIPv4, + )) && (identical(other.enableIPv6, enableIPv6) || - const DeepCollectionEquality() - .equals(other.enableIPv6, enableIPv6)) && + const DeepCollectionEquality().equals( + other.enableIPv6, + enableIPv6, + )) && (identical(other.enableRemoteAccess, enableRemoteAccess) || - const DeepCollectionEquality() - .equals(other.enableRemoteAccess, enableRemoteAccess)) && + const DeepCollectionEquality().equals( + other.enableRemoteAccess, + enableRemoteAccess, + )) && (identical(other.localNetworkSubnets, localNetworkSubnets) || - const DeepCollectionEquality() - .equals(other.localNetworkSubnets, localNetworkSubnets)) && + const DeepCollectionEquality().equals( + other.localNetworkSubnets, + localNetworkSubnets, + )) && (identical(other.localNetworkAddresses, localNetworkAddresses) || const DeepCollectionEquality().equals( - other.localNetworkAddresses, localNetworkAddresses)) && + other.localNetworkAddresses, + localNetworkAddresses, + )) && (identical(other.knownProxies, knownProxies) || - const DeepCollectionEquality() - .equals(other.knownProxies, knownProxies)) && - (identical(other.ignoreVirtualInterfaces, ignoreVirtualInterfaces) || const DeepCollectionEquality().equals( - other.ignoreVirtualInterfaces, ignoreVirtualInterfaces)) && + other.knownProxies, + knownProxies, + )) && + (identical( + other.ignoreVirtualInterfaces, + ignoreVirtualInterfaces, + ) || + const DeepCollectionEquality().equals( + other.ignoreVirtualInterfaces, + ignoreVirtualInterfaces, + )) && (identical(other.virtualInterfaceNames, virtualInterfaceNames) || const DeepCollectionEquality().equals( - other.virtualInterfaceNames, virtualInterfaceNames)) && - (identical(other.enablePublishedServerUriByRequest, enablePublishedServerUriByRequest) || + other.virtualInterfaceNames, + virtualInterfaceNames, + )) && + (identical( + other.enablePublishedServerUriByRequest, + enablePublishedServerUriByRequest, + ) || const DeepCollectionEquality().equals( - other.enablePublishedServerUriByRequest, - enablePublishedServerUriByRequest)) && - (identical(other.publishedServerUriBySubnet, publishedServerUriBySubnet) || const DeepCollectionEquality().equals(other.publishedServerUriBySubnet, publishedServerUriBySubnet)) && - (identical(other.remoteIPFilter, remoteIPFilter) || const DeepCollectionEquality().equals(other.remoteIPFilter, remoteIPFilter)) && - (identical(other.isRemoteIPFilterBlacklist, isRemoteIPFilterBlacklist) || const DeepCollectionEquality().equals(other.isRemoteIPFilterBlacklist, isRemoteIPFilterBlacklist))); + other.enablePublishedServerUriByRequest, + enablePublishedServerUriByRequest, + )) && + (identical( + other.publishedServerUriBySubnet, + publishedServerUriBySubnet, + ) || + const DeepCollectionEquality().equals( + other.publishedServerUriBySubnet, + publishedServerUriBySubnet, + )) && + (identical(other.remoteIPFilter, remoteIPFilter) || + const DeepCollectionEquality().equals( + other.remoteIPFilter, + remoteIPFilter, + )) && + (identical( + other.isRemoteIPFilterBlacklist, + isRemoteIPFilterBlacklist, + ) || + const DeepCollectionEquality().equals( + other.isRemoteIPFilterBlacklist, + isRemoteIPFilterBlacklist, + ))); } @override @@ -31934,153 +34907,158 @@ class NetworkConfiguration { } extension $NetworkConfigurationExtension on NetworkConfiguration { - NetworkConfiguration copyWith( - {String? baseUrl, - bool? enableHttps, - bool? requireHttps, - String? certificatePath, - String? certificatePassword, - int? internalHttpPort, - int? internalHttpsPort, - int? publicHttpPort, - int? publicHttpsPort, - bool? autoDiscovery, - bool? enableUPnP, - bool? enableIPv4, - bool? enableIPv6, - bool? enableRemoteAccess, - List? localNetworkSubnets, - List? localNetworkAddresses, - List? knownProxies, - bool? ignoreVirtualInterfaces, - List? virtualInterfaceNames, - bool? enablePublishedServerUriByRequest, - List? publishedServerUriBySubnet, - List? remoteIPFilter, - bool? isRemoteIPFilterBlacklist}) { + NetworkConfiguration copyWith({ + String? baseUrl, + bool? enableHttps, + bool? requireHttps, + String? certificatePath, + String? certificatePassword, + int? internalHttpPort, + int? internalHttpsPort, + int? publicHttpPort, + int? publicHttpsPort, + bool? autoDiscovery, + bool? enableUPnP, + bool? enableIPv4, + bool? enableIPv6, + bool? enableRemoteAccess, + List? localNetworkSubnets, + List? localNetworkAddresses, + List? knownProxies, + bool? ignoreVirtualInterfaces, + List? virtualInterfaceNames, + bool? enablePublishedServerUriByRequest, + List? publishedServerUriBySubnet, + List? remoteIPFilter, + bool? isRemoteIPFilterBlacklist, + }) { return NetworkConfiguration( - baseUrl: baseUrl ?? this.baseUrl, - enableHttps: enableHttps ?? this.enableHttps, - requireHttps: requireHttps ?? this.requireHttps, - certificatePath: certificatePath ?? this.certificatePath, - certificatePassword: certificatePassword ?? this.certificatePassword, - internalHttpPort: internalHttpPort ?? this.internalHttpPort, - internalHttpsPort: internalHttpsPort ?? this.internalHttpsPort, - publicHttpPort: publicHttpPort ?? this.publicHttpPort, - publicHttpsPort: publicHttpsPort ?? this.publicHttpsPort, - autoDiscovery: autoDiscovery ?? this.autoDiscovery, - enableUPnP: enableUPnP ?? this.enableUPnP, - enableIPv4: enableIPv4 ?? this.enableIPv4, - enableIPv6: enableIPv6 ?? this.enableIPv6, - enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - localNetworkSubnets: localNetworkSubnets ?? this.localNetworkSubnets, - localNetworkAddresses: - localNetworkAddresses ?? this.localNetworkAddresses, - knownProxies: knownProxies ?? this.knownProxies, - ignoreVirtualInterfaces: - ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, - virtualInterfaceNames: - virtualInterfaceNames ?? this.virtualInterfaceNames, - enablePublishedServerUriByRequest: enablePublishedServerUriByRequest ?? - this.enablePublishedServerUriByRequest, - publishedServerUriBySubnet: - publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, - remoteIPFilter: remoteIPFilter ?? this.remoteIPFilter, - isRemoteIPFilterBlacklist: - isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist); + baseUrl: baseUrl ?? this.baseUrl, + enableHttps: enableHttps ?? this.enableHttps, + requireHttps: requireHttps ?? this.requireHttps, + certificatePath: certificatePath ?? this.certificatePath, + certificatePassword: certificatePassword ?? this.certificatePassword, + internalHttpPort: internalHttpPort ?? this.internalHttpPort, + internalHttpsPort: internalHttpsPort ?? this.internalHttpsPort, + publicHttpPort: publicHttpPort ?? this.publicHttpPort, + publicHttpsPort: publicHttpsPort ?? this.publicHttpsPort, + autoDiscovery: autoDiscovery ?? this.autoDiscovery, + enableUPnP: enableUPnP ?? this.enableUPnP, + enableIPv4: enableIPv4 ?? this.enableIPv4, + enableIPv6: enableIPv6 ?? this.enableIPv6, + enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, + localNetworkSubnets: localNetworkSubnets ?? this.localNetworkSubnets, + localNetworkAddresses: + localNetworkAddresses ?? this.localNetworkAddresses, + knownProxies: knownProxies ?? this.knownProxies, + ignoreVirtualInterfaces: + ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, + virtualInterfaceNames: + virtualInterfaceNames ?? this.virtualInterfaceNames, + enablePublishedServerUriByRequest: + enablePublishedServerUriByRequest ?? + this.enablePublishedServerUriByRequest, + publishedServerUriBySubnet: + publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, + remoteIPFilter: remoteIPFilter ?? this.remoteIPFilter, + isRemoteIPFilterBlacklist: + isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist, + ); } - NetworkConfiguration copyWithWrapped( - {Wrapped? baseUrl, - Wrapped? enableHttps, - Wrapped? requireHttps, - Wrapped? certificatePath, - Wrapped? certificatePassword, - Wrapped? internalHttpPort, - Wrapped? internalHttpsPort, - Wrapped? publicHttpPort, - Wrapped? publicHttpsPort, - Wrapped? autoDiscovery, - Wrapped? enableUPnP, - Wrapped? enableIPv4, - Wrapped? enableIPv6, - Wrapped? enableRemoteAccess, - Wrapped?>? localNetworkSubnets, - Wrapped?>? localNetworkAddresses, - Wrapped?>? knownProxies, - Wrapped? ignoreVirtualInterfaces, - Wrapped?>? virtualInterfaceNames, - Wrapped? enablePublishedServerUriByRequest, - Wrapped?>? publishedServerUriBySubnet, - Wrapped?>? remoteIPFilter, - Wrapped? isRemoteIPFilterBlacklist}) { + NetworkConfiguration copyWithWrapped({ + Wrapped? baseUrl, + Wrapped? enableHttps, + Wrapped? requireHttps, + Wrapped? certificatePath, + Wrapped? certificatePassword, + Wrapped? internalHttpPort, + Wrapped? internalHttpsPort, + Wrapped? publicHttpPort, + Wrapped? publicHttpsPort, + Wrapped? autoDiscovery, + Wrapped? enableUPnP, + Wrapped? enableIPv4, + Wrapped? enableIPv6, + Wrapped? enableRemoteAccess, + Wrapped?>? localNetworkSubnets, + Wrapped?>? localNetworkAddresses, + Wrapped?>? knownProxies, + Wrapped? ignoreVirtualInterfaces, + Wrapped?>? virtualInterfaceNames, + Wrapped? enablePublishedServerUriByRequest, + Wrapped?>? publishedServerUriBySubnet, + Wrapped?>? remoteIPFilter, + Wrapped? isRemoteIPFilterBlacklist, + }) { 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), - 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 - ? 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)); + 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), + 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 + ? 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), + ); } } @JsonSerializable(explicitToJson: true) class NewGroupRequestDto { - const NewGroupRequestDto({ - this.groupName, - }); + const NewGroupRequestDto({this.groupName}); factory NewGroupRequestDto.fromJson(Map json) => _$NewGroupRequestDtoFromJson(json); @@ -32097,8 +35075,10 @@ class NewGroupRequestDto { return identical(this, other) || (other is NewGroupRequestDto && (identical(other.groupName, groupName) || - const DeepCollectionEquality() - .equals(other.groupName, groupName))); + const DeepCollectionEquality().equals( + other.groupName, + groupName, + ))); } @override @@ -32116,15 +35096,14 @@ extension $NewGroupRequestDtoExtension on NewGroupRequestDto { NewGroupRequestDto copyWithWrapped({Wrapped? groupName}) { return NewGroupRequestDto( - groupName: (groupName != null ? groupName.value : this.groupName)); + groupName: (groupName != null ? groupName.value : this.groupName), + ); } } @JsonSerializable(explicitToJson: true) class NextItemRequestDto { - const NextItemRequestDto({ - this.playlistItemId, - }); + const NextItemRequestDto({this.playlistItemId}); factory NextItemRequestDto.fromJson(Map json) => _$NextItemRequestDtoFromJson(json); @@ -32141,8 +35120,10 @@ class NextItemRequestDto { return identical(this, other) || (other is NextItemRequestDto && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -32157,14 +35138,16 @@ class NextItemRequestDto { extension $NextItemRequestDtoExtension on NextItemRequestDto { NextItemRequestDto copyWith({String? playlistItemId}) { return NextItemRequestDto( - playlistItemId: playlistItemId ?? this.playlistItemId); + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } NextItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return NextItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId)); + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + ); } } @@ -32233,47 +35216,72 @@ class OpenLiveStreamDto { return identical(this, other) || (other is OpenLiveStreamDto && (identical(other.openToken, openToken) || - const DeepCollectionEquality() - .equals(other.openToken, openToken)) && + const DeepCollectionEquality().equals( + other.openToken, + openToken, + )) && (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.playSessionId, playSessionId) || - const DeepCollectionEquality() - .equals(other.playSessionId, playSessionId)) && + const DeepCollectionEquality().equals( + other.playSessionId, + playSessionId, + )) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || - const DeepCollectionEquality() - .equals(other.maxStreamingBitrate, maxStreamingBitrate)) && + const DeepCollectionEquality().equals( + other.maxStreamingBitrate, + maxStreamingBitrate, + )) && (identical(other.startTimeTicks, startTimeTicks) || - const DeepCollectionEquality() - .equals(other.startTimeTicks, startTimeTicks)) && + const DeepCollectionEquality().equals( + other.startTimeTicks, + startTimeTicks, + )) && (identical(other.audioStreamIndex, audioStreamIndex) || - const DeepCollectionEquality() - .equals(other.audioStreamIndex, audioStreamIndex)) && + const DeepCollectionEquality().equals( + other.audioStreamIndex, + audioStreamIndex, + )) && (identical(other.subtitleStreamIndex, subtitleStreamIndex) || - const DeepCollectionEquality() - .equals(other.subtitleStreamIndex, subtitleStreamIndex)) && + const DeepCollectionEquality().equals( + other.subtitleStreamIndex, + subtitleStreamIndex, + )) && (identical(other.maxAudioChannels, maxAudioChannels) || - const DeepCollectionEquality() - .equals(other.maxAudioChannels, maxAudioChannels)) && + const DeepCollectionEquality().equals( + other.maxAudioChannels, + maxAudioChannels, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.enableDirectPlay, enableDirectPlay) || - const DeepCollectionEquality() - .equals(other.enableDirectPlay, enableDirectPlay)) && - (identical(other.enableDirectStream, enableDirectStream) || - const DeepCollectionEquality() - .equals(other.enableDirectStream, enableDirectStream)) && - (identical(other.alwaysBurnInSubtitleWhenTranscoding, - alwaysBurnInSubtitleWhenTranscoding) || const DeepCollectionEquality().equals( - other.alwaysBurnInSubtitleWhenTranscoding, - alwaysBurnInSubtitleWhenTranscoding)) && + other.enableDirectPlay, + enableDirectPlay, + )) && + (identical(other.enableDirectStream, enableDirectStream) || + const DeepCollectionEquality().equals( + other.enableDirectStream, + enableDirectStream, + )) && + (identical( + other.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding, + ) || + const DeepCollectionEquality().equals( + other.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding, + )) && (identical(other.deviceProfile, deviceProfile) || - const DeepCollectionEquality() - .equals(other.deviceProfile, deviceProfile)) && + const DeepCollectionEquality().equals( + other.deviceProfile, + deviceProfile, + )) && (identical(other.directPlayProtocols, directPlayProtocols) || - const DeepCollectionEquality() - .equals(other.directPlayProtocols, directPlayProtocols))); + const DeepCollectionEquality().equals( + other.directPlayProtocols, + directPlayProtocols, + ))); } @override @@ -32299,100 +35307,103 @@ class OpenLiveStreamDto { } extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { - OpenLiveStreamDto copyWith( - {String? openToken, - String? userId, - String? playSessionId, - int? maxStreamingBitrate, - int? startTimeTicks, - int? audioStreamIndex, - int? subtitleStreamIndex, - int? maxAudioChannels, - String? itemId, - bool? enableDirectPlay, - bool? enableDirectStream, - bool? alwaysBurnInSubtitleWhenTranscoding, - DeviceProfile? deviceProfile, - List? directPlayProtocols}) { + OpenLiveStreamDto copyWith({ + String? openToken, + String? userId, + String? playSessionId, + int? maxStreamingBitrate, + int? startTimeTicks, + int? audioStreamIndex, + int? subtitleStreamIndex, + int? maxAudioChannels, + String? itemId, + bool? enableDirectPlay, + bool? enableDirectStream, + bool? alwaysBurnInSubtitleWhenTranscoding, + DeviceProfile? deviceProfile, + List? directPlayProtocols, + }) { return OpenLiveStreamDto( - openToken: openToken ?? this.openToken, - userId: userId ?? this.userId, - playSessionId: playSessionId ?? this.playSessionId, - maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, - startTimeTicks: startTimeTicks ?? this.startTimeTicks, - audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, - maxAudioChannels: maxAudioChannels ?? this.maxAudioChannels, - itemId: itemId ?? this.itemId, - enableDirectPlay: enableDirectPlay ?? this.enableDirectPlay, - enableDirectStream: enableDirectStream ?? this.enableDirectStream, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? - this.alwaysBurnInSubtitleWhenTranscoding, - deviceProfile: deviceProfile ?? this.deviceProfile, - directPlayProtocols: directPlayProtocols ?? this.directPlayProtocols); + openToken: openToken ?? this.openToken, + userId: userId ?? this.userId, + playSessionId: playSessionId ?? this.playSessionId, + maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, + startTimeTicks: startTimeTicks ?? this.startTimeTicks, + audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, + maxAudioChannels: maxAudioChannels ?? this.maxAudioChannels, + itemId: itemId ?? this.itemId, + enableDirectPlay: enableDirectPlay ?? this.enableDirectPlay, + enableDirectStream: enableDirectStream ?? this.enableDirectStream, + alwaysBurnInSubtitleWhenTranscoding: + alwaysBurnInSubtitleWhenTranscoding ?? + this.alwaysBurnInSubtitleWhenTranscoding, + deviceProfile: deviceProfile ?? this.deviceProfile, + directPlayProtocols: directPlayProtocols ?? this.directPlayProtocols, + ); } - OpenLiveStreamDto copyWithWrapped( - {Wrapped? openToken, - Wrapped? userId, - Wrapped? playSessionId, - Wrapped? maxStreamingBitrate, - Wrapped? startTimeTicks, - Wrapped? audioStreamIndex, - Wrapped? subtitleStreamIndex, - Wrapped? maxAudioChannels, - Wrapped? itemId, - Wrapped? enableDirectPlay, - Wrapped? enableDirectStream, - Wrapped? alwaysBurnInSubtitleWhenTranscoding, - Wrapped? deviceProfile, - Wrapped?>? directPlayProtocols}) { + OpenLiveStreamDto copyWithWrapped({ + Wrapped? openToken, + Wrapped? userId, + Wrapped? playSessionId, + Wrapped? maxStreamingBitrate, + Wrapped? startTimeTicks, + Wrapped? audioStreamIndex, + Wrapped? subtitleStreamIndex, + Wrapped? maxAudioChannels, + Wrapped? itemId, + Wrapped? enableDirectPlay, + Wrapped? enableDirectStream, + Wrapped? alwaysBurnInSubtitleWhenTranscoding, + Wrapped? deviceProfile, + Wrapped?>? directPlayProtocols, + }) { 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), - itemId: (itemId != null ? itemId.value : this.itemId), - 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)); + 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), + itemId: (itemId != null ? itemId.value : this.itemId), + 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), + ); } } @JsonSerializable(explicitToJson: true) class OutboundKeepAliveMessage { - const OutboundKeepAliveMessage({ - this.messageId, - this.messageType, - }); + const OutboundKeepAliveMessage({this.messageId, this.messageType}); factory OutboundKeepAliveMessage.fromJson(Map json) => _$OutboundKeepAliveMessageFromJson(json); @@ -32410,9 +35421,11 @@ class OutboundKeepAliveMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.keepalive); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.keepalive, + ); static const fromJsonFactory = _$OutboundKeepAliveMessageFromJson; @@ -32421,11 +35434,15 @@ class OutboundKeepAliveMessage { return identical(this, other) || (other is OutboundKeepAliveMessage && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -32439,20 +35456,24 @@ class OutboundKeepAliveMessage { } extension $OutboundKeepAliveMessageExtension on OutboundKeepAliveMessage { - OutboundKeepAliveMessage copyWith( - {String? messageId, enums.SessionMessageType? messageType}) { + OutboundKeepAliveMessage copyWith({ + String? messageId, + enums.SessionMessageType? messageType, + }) { return OutboundKeepAliveMessage( - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - OutboundKeepAliveMessage copyWithWrapped( - {Wrapped? messageId, - Wrapped? messageType}) { + OutboundKeepAliveMessage copyWithWrapped({ + Wrapped? messageId, + Wrapped? messageType, + }) { return OutboundKeepAliveMessage( - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -32507,7 +35528,10 @@ class PackageInfo { @JsonKey(name: 'guid', includeIfNull: false) final String? guid; @JsonKey( - name: 'versions', includeIfNull: false, defaultValue: []) + name: 'versions', + includeIfNull: false, + defaultValue: [], + ) final List? versions; @JsonKey(name: 'imageUrl', includeIfNull: false) final String? imageUrl; @@ -32520,24 +35544,34 @@ class PackageInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || - const DeepCollectionEquality() - .equals(other.description, description)) && + const DeepCollectionEquality().equals( + other.description, + description, + )) && (identical(other.overview, overview) || - const DeepCollectionEquality() - .equals(other.overview, overview)) && + const DeepCollectionEquality().equals( + other.overview, + overview, + )) && (identical(other.owner, owner) || const DeepCollectionEquality().equals(other.owner, owner)) && (identical(other.category, category) || - const DeepCollectionEquality() - .equals(other.category, category)) && + const DeepCollectionEquality().equals( + other.category, + category, + )) && (identical(other.guid, guid) || const DeepCollectionEquality().equals(other.guid, guid)) && (identical(other.versions, versions) || - const DeepCollectionEquality() - .equals(other.versions, versions)) && + const DeepCollectionEquality().equals( + other.versions, + versions, + )) && (identical(other.imageUrl, imageUrl) || - const DeepCollectionEquality() - .equals(other.imageUrl, imageUrl))); + const DeepCollectionEquality().equals( + other.imageUrl, + imageUrl, + ))); } @override @@ -32557,54 +35591,54 @@ class PackageInfo { } extension $PackageInfoExtension on PackageInfo { - PackageInfo copyWith( - {String? name, - String? description, - String? overview, - String? owner, - String? category, - String? guid, - List? versions, - String? imageUrl}) { + PackageInfo copyWith({ + String? name, + String? description, + String? overview, + String? owner, + String? category, + String? guid, + List? versions, + String? imageUrl, + }) { return PackageInfo( - name: name ?? this.name, - description: description ?? this.description, - overview: overview ?? this.overview, - owner: owner ?? this.owner, - category: category ?? this.category, - guid: guid ?? this.guid, - versions: versions ?? this.versions, - imageUrl: imageUrl ?? this.imageUrl); + name: name ?? this.name, + description: description ?? this.description, + overview: overview ?? this.overview, + owner: owner ?? this.owner, + category: category ?? this.category, + guid: guid ?? this.guid, + versions: versions ?? this.versions, + imageUrl: imageUrl ?? this.imageUrl, + ); } - PackageInfo copyWithWrapped( - {Wrapped? name, - Wrapped? description, - Wrapped? overview, - Wrapped? owner, - Wrapped? category, - Wrapped? guid, - Wrapped?>? versions, - Wrapped? imageUrl}) { + PackageInfo copyWithWrapped({ + Wrapped? name, + Wrapped? description, + Wrapped? overview, + Wrapped? owner, + Wrapped? category, + Wrapped? guid, + Wrapped?>? versions, + Wrapped? imageUrl, + }) { return PackageInfo( - name: (name != null ? name.value : this.name), - description: - (description != null ? description.value : this.description), - overview: (overview != null ? overview.value : this.overview), - owner: (owner != null ? owner.value : this.owner), - category: (category != null ? category.value : this.category), - guid: (guid != null ? guid.value : this.guid), - versions: (versions != null ? versions.value : this.versions), - imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl)); + name: (name != null ? name.value : this.name), + description: (description != null ? description.value : this.description), + overview: (overview != null ? overview.value : this.overview), + owner: (owner != null ? owner.value : this.owner), + category: (category != null ? category.value : this.category), + guid: (guid != null ? guid.value : this.guid), + versions: (versions != null ? versions.value : this.versions), + imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl), + ); } } @JsonSerializable(explicitToJson: true) class ParentalRating { - const ParentalRating({ - this.name, - this.$Value, - }); + const ParentalRating({this.name, this.$Value}); factory ParentalRating.fromJson(Map json) => _$ParentalRatingFromJson(json); @@ -32641,23 +35675,25 @@ class ParentalRating { extension $ParentalRatingExtension on ParentalRating { ParentalRating copyWith({String? name, int? $Value}) { return ParentalRating( - name: name ?? this.name, $Value: $Value ?? this.$Value); + name: name ?? this.name, + $Value: $Value ?? this.$Value, + ); } - ParentalRating copyWithWrapped( - {Wrapped? name, Wrapped? $Value}) { + ParentalRating copyWithWrapped({ + Wrapped? name, + Wrapped? $Value, + }) { return ParentalRating( - name: (name != null ? name.value : this.name), - $Value: ($Value != null ? $Value.value : this.$Value)); + name: (name != null ? name.value : this.name), + $Value: ($Value != null ? $Value.value : this.$Value), + ); } } @JsonSerializable(explicitToJson: true) class PathSubstitution { - const PathSubstitution({ - this.from, - this.to, - }); + const PathSubstitution({this.from, this.to}); factory PathSubstitution.fromJson(Map json) => _$PathSubstitutionFromJson(json); @@ -32696,11 +35732,14 @@ extension $PathSubstitutionExtension on PathSubstitution { return PathSubstitution(from: from ?? this.from, to: to ?? this.to); } - PathSubstitution copyWithWrapped( - {Wrapped? from, Wrapped? to}) { + PathSubstitution copyWithWrapped({ + Wrapped? from, + Wrapped? to, + }) { return PathSubstitution( - from: (from != null ? from.value : this.from), - to: (to != null ? to.value : this.to)); + from: (from != null ? from.value : this.from), + to: (to != null ? to.value : this.to), + ); } } @@ -32757,33 +35796,49 @@ class PersonLookupInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated))); + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + ))); } @override @@ -32806,67 +35861,70 @@ class PersonLookupInfo { } extension $PersonLookupInfoExtension on PersonLookupInfo { - PersonLookupInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated}) { + PersonLookupInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + }) { return PersonLookupInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + ); } - PersonLookupInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated}) { + PersonLookupInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + }) { return PersonLookupInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + ); } } @@ -32880,8 +35938,8 @@ class PersonLookupInfoRemoteSearchQuery { }); factory PersonLookupInfoRemoteSearchQuery.fromJson( - Map json) => - _$PersonLookupInfoRemoteSearchQueryFromJson(json); + Map json, + ) => _$PersonLookupInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$PersonLookupInfoRemoteSearchQueryToJson; Map toJson() => @@ -32902,17 +35960,25 @@ class PersonLookupInfoRemoteSearchQuery { return identical(this, other) || (other is PersonLookupInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -32929,41 +35995,43 @@ class PersonLookupInfoRemoteSearchQuery { extension $PersonLookupInfoRemoteSearchQueryExtension on PersonLookupInfoRemoteSearchQuery { - PersonLookupInfoRemoteSearchQuery copyWith( - {PersonLookupInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + PersonLookupInfoRemoteSearchQuery copyWith({ + PersonLookupInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return PersonLookupInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - PersonLookupInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + PersonLookupInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class PingRequestDto { - const PingRequestDto({ - this.ping, - }); + const PingRequestDto({this.ping}); factory PingRequestDto.fromJson(Map json) => _$PingRequestDtoFromJson(json); @@ -33003,10 +36071,7 @@ extension $PingRequestDtoExtension on PingRequestDto { @JsonSerializable(explicitToJson: true) class PinRedeemResult { - const PinRedeemResult({ - this.success, - this.usersReset, - }); + const PinRedeemResult({this.success, this.usersReset}); factory PinRedeemResult.fromJson(Map json) => _$PinRedeemResultFromJson(json); @@ -33025,11 +36090,15 @@ class PinRedeemResult { return identical(this, other) || (other is PinRedeemResult && (identical(other.success, success) || - const DeepCollectionEquality() - .equals(other.success, success)) && + const DeepCollectionEquality().equals( + other.success, + success, + )) && (identical(other.usersReset, usersReset) || - const DeepCollectionEquality() - .equals(other.usersReset, usersReset))); + const DeepCollectionEquality().equals( + other.usersReset, + usersReset, + ))); } @override @@ -33045,15 +36114,19 @@ class PinRedeemResult { extension $PinRedeemResultExtension on PinRedeemResult { PinRedeemResult copyWith({bool? success, List? usersReset}) { return PinRedeemResult( - success: success ?? this.success, - usersReset: usersReset ?? this.usersReset); + success: success ?? this.success, + usersReset: usersReset ?? this.usersReset, + ); } - PinRedeemResult copyWithWrapped( - {Wrapped? success, Wrapped?>? usersReset}) { + PinRedeemResult copyWithWrapped({ + Wrapped? success, + Wrapped?>? usersReset, + }) { return PinRedeemResult( - success: (success != null ? success.value : this.success), - usersReset: (usersReset != null ? usersReset.value : this.usersReset)); + success: (success != null ? success.value : this.success), + usersReset: (usersReset != null ? usersReset.value : this.usersReset), + ); } } @@ -33125,52 +36198,83 @@ class PlaybackInfoDto { (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || - const DeepCollectionEquality() - .equals(other.maxStreamingBitrate, maxStreamingBitrate)) && + const DeepCollectionEquality().equals( + other.maxStreamingBitrate, + maxStreamingBitrate, + )) && (identical(other.startTimeTicks, startTimeTicks) || - const DeepCollectionEquality() - .equals(other.startTimeTicks, startTimeTicks)) && + const DeepCollectionEquality().equals( + other.startTimeTicks, + startTimeTicks, + )) && (identical(other.audioStreamIndex, audioStreamIndex) || - const DeepCollectionEquality() - .equals(other.audioStreamIndex, audioStreamIndex)) && + const DeepCollectionEquality().equals( + other.audioStreamIndex, + audioStreamIndex, + )) && (identical(other.subtitleStreamIndex, subtitleStreamIndex) || - const DeepCollectionEquality() - .equals(other.subtitleStreamIndex, subtitleStreamIndex)) && + const DeepCollectionEquality().equals( + other.subtitleStreamIndex, + subtitleStreamIndex, + )) && (identical(other.maxAudioChannels, maxAudioChannels) || - const DeepCollectionEquality() - .equals(other.maxAudioChannels, maxAudioChannels)) && + const DeepCollectionEquality().equals( + other.maxAudioChannels, + maxAudioChannels, + )) && (identical(other.mediaSourceId, mediaSourceId) || - const DeepCollectionEquality() - .equals(other.mediaSourceId, mediaSourceId)) && + const DeepCollectionEquality().equals( + other.mediaSourceId, + mediaSourceId, + )) && (identical(other.liveStreamId, liveStreamId) || - const DeepCollectionEquality() - .equals(other.liveStreamId, liveStreamId)) && + const DeepCollectionEquality().equals( + other.liveStreamId, + liveStreamId, + )) && (identical(other.deviceProfile, deviceProfile) || - const DeepCollectionEquality() - .equals(other.deviceProfile, deviceProfile)) && + const DeepCollectionEquality().equals( + other.deviceProfile, + deviceProfile, + )) && (identical(other.enableDirectPlay, enableDirectPlay) || - const DeepCollectionEquality() - .equals(other.enableDirectPlay, enableDirectPlay)) && + const DeepCollectionEquality().equals( + other.enableDirectPlay, + enableDirectPlay, + )) && (identical(other.enableDirectStream, enableDirectStream) || - const DeepCollectionEquality() - .equals(other.enableDirectStream, enableDirectStream)) && + const DeepCollectionEquality().equals( + other.enableDirectStream, + enableDirectStream, + )) && (identical(other.enableTranscoding, enableTranscoding) || - const DeepCollectionEquality() - .equals(other.enableTranscoding, enableTranscoding)) && + const DeepCollectionEquality().equals( + other.enableTranscoding, + enableTranscoding, + )) && (identical(other.allowVideoStreamCopy, allowVideoStreamCopy) || const DeepCollectionEquality().equals( - other.allowVideoStreamCopy, allowVideoStreamCopy)) && + other.allowVideoStreamCopy, + allowVideoStreamCopy, + )) && (identical(other.allowAudioStreamCopy, allowAudioStreamCopy) || const DeepCollectionEquality().equals( - other.allowAudioStreamCopy, allowAudioStreamCopy)) && + other.allowAudioStreamCopy, + allowAudioStreamCopy, + )) && (identical(other.autoOpenLiveStream, autoOpenLiveStream) || - const DeepCollectionEquality() - .equals(other.autoOpenLiveStream, autoOpenLiveStream)) && - (identical(other.alwaysBurnInSubtitleWhenTranscoding, - alwaysBurnInSubtitleWhenTranscoding) || const DeepCollectionEquality().equals( - other.alwaysBurnInSubtitleWhenTranscoding, - alwaysBurnInSubtitleWhenTranscoding))); + other.autoOpenLiveStream, + autoOpenLiveStream, + )) && + (identical( + other.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding, + ) || + const DeepCollectionEquality().equals( + other.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding, + ))); } @override @@ -33198,106 +36302,113 @@ class PlaybackInfoDto { } extension $PlaybackInfoDtoExtension on PlaybackInfoDto { - PlaybackInfoDto copyWith( - {String? userId, - int? maxStreamingBitrate, - int? startTimeTicks, - int? audioStreamIndex, - int? subtitleStreamIndex, - int? maxAudioChannels, - String? mediaSourceId, - String? liveStreamId, - DeviceProfile? deviceProfile, - bool? enableDirectPlay, - bool? enableDirectStream, - bool? enableTranscoding, - bool? allowVideoStreamCopy, - bool? allowAudioStreamCopy, - bool? autoOpenLiveStream, - bool? alwaysBurnInSubtitleWhenTranscoding}) { + PlaybackInfoDto copyWith({ + String? userId, + int? maxStreamingBitrate, + int? startTimeTicks, + int? audioStreamIndex, + int? subtitleStreamIndex, + int? maxAudioChannels, + String? mediaSourceId, + String? liveStreamId, + DeviceProfile? deviceProfile, + bool? enableDirectPlay, + bool? enableDirectStream, + bool? enableTranscoding, + bool? allowVideoStreamCopy, + bool? allowAudioStreamCopy, + bool? autoOpenLiveStream, + bool? alwaysBurnInSubtitleWhenTranscoding, + }) { return PlaybackInfoDto( - userId: userId ?? this.userId, - maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, - startTimeTicks: startTimeTicks ?? this.startTimeTicks, - audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, - maxAudioChannels: maxAudioChannels ?? this.maxAudioChannels, - mediaSourceId: mediaSourceId ?? this.mediaSourceId, - liveStreamId: liveStreamId ?? this.liveStreamId, - deviceProfile: deviceProfile ?? this.deviceProfile, - enableDirectPlay: enableDirectPlay ?? this.enableDirectPlay, - enableDirectStream: enableDirectStream ?? this.enableDirectStream, - enableTranscoding: enableTranscoding ?? this.enableTranscoding, - allowVideoStreamCopy: allowVideoStreamCopy ?? this.allowVideoStreamCopy, - allowAudioStreamCopy: allowAudioStreamCopy ?? this.allowAudioStreamCopy, - autoOpenLiveStream: autoOpenLiveStream ?? this.autoOpenLiveStream, - alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? - this.alwaysBurnInSubtitleWhenTranscoding); + userId: userId ?? this.userId, + maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, + startTimeTicks: startTimeTicks ?? this.startTimeTicks, + audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, + maxAudioChannels: maxAudioChannels ?? this.maxAudioChannels, + mediaSourceId: mediaSourceId ?? this.mediaSourceId, + liveStreamId: liveStreamId ?? this.liveStreamId, + deviceProfile: deviceProfile ?? this.deviceProfile, + enableDirectPlay: enableDirectPlay ?? this.enableDirectPlay, + enableDirectStream: enableDirectStream ?? this.enableDirectStream, + enableTranscoding: enableTranscoding ?? this.enableTranscoding, + allowVideoStreamCopy: allowVideoStreamCopy ?? this.allowVideoStreamCopy, + allowAudioStreamCopy: allowAudioStreamCopy ?? this.allowAudioStreamCopy, + autoOpenLiveStream: autoOpenLiveStream ?? this.autoOpenLiveStream, + alwaysBurnInSubtitleWhenTranscoding: + alwaysBurnInSubtitleWhenTranscoding ?? + this.alwaysBurnInSubtitleWhenTranscoding, + ); } - PlaybackInfoDto copyWithWrapped( - {Wrapped? userId, - Wrapped? maxStreamingBitrate, - Wrapped? startTimeTicks, - Wrapped? audioStreamIndex, - Wrapped? subtitleStreamIndex, - Wrapped? maxAudioChannels, - Wrapped? mediaSourceId, - Wrapped? liveStreamId, - Wrapped? deviceProfile, - Wrapped? enableDirectPlay, - Wrapped? enableDirectStream, - Wrapped? enableTranscoding, - Wrapped? allowVideoStreamCopy, - Wrapped? allowAudioStreamCopy, - Wrapped? autoOpenLiveStream, - Wrapped? alwaysBurnInSubtitleWhenTranscoding}) { + PlaybackInfoDto copyWithWrapped({ + Wrapped? userId, + Wrapped? maxStreamingBitrate, + Wrapped? startTimeTicks, + Wrapped? audioStreamIndex, + Wrapped? subtitleStreamIndex, + Wrapped? maxAudioChannels, + Wrapped? mediaSourceId, + Wrapped? liveStreamId, + Wrapped? deviceProfile, + Wrapped? enableDirectPlay, + Wrapped? enableDirectStream, + Wrapped? enableTranscoding, + Wrapped? allowVideoStreamCopy, + Wrapped? allowAudioStreamCopy, + Wrapped? autoOpenLiveStream, + Wrapped? alwaysBurnInSubtitleWhenTranscoding, + }) { 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 - ? alwaysBurnInSubtitleWhenTranscoding.value - : this.alwaysBurnInSubtitleWhenTranscoding)); + 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 + ? alwaysBurnInSubtitleWhenTranscoding.value + : this.alwaysBurnInSubtitleWhenTranscoding), + ); } } @@ -33316,9 +36427,10 @@ class PlaybackInfoResponse { Map toJson() => _$PlaybackInfoResponseToJson(this); @JsonKey( - name: 'MediaSources', - includeIfNull: false, - defaultValue: []) + name: 'MediaSources', + includeIfNull: false, + defaultValue: [], + ) final List? mediaSources; @JsonKey(name: 'PlaySessionId', includeIfNull: false) final String? playSessionId; @@ -33336,14 +36448,20 @@ class PlaybackInfoResponse { return identical(this, other) || (other is PlaybackInfoResponse && (identical(other.mediaSources, mediaSources) || - const DeepCollectionEquality() - .equals(other.mediaSources, mediaSources)) && + const DeepCollectionEquality().equals( + other.mediaSources, + mediaSources, + )) && (identical(other.playSessionId, playSessionId) || - const DeepCollectionEquality() - .equals(other.playSessionId, playSessionId)) && + const DeepCollectionEquality().equals( + other.playSessionId, + playSessionId, + )) && (identical(other.errorCode, errorCode) || - const DeepCollectionEquality() - .equals(other.errorCode, errorCode))); + const DeepCollectionEquality().equals( + other.errorCode, + errorCode, + ))); } @override @@ -33358,26 +36476,32 @@ class PlaybackInfoResponse { } extension $PlaybackInfoResponseExtension on PlaybackInfoResponse { - PlaybackInfoResponse copyWith( - {List? mediaSources, - String? playSessionId, - enums.PlaybackErrorCode? errorCode}) { + PlaybackInfoResponse copyWith({ + List? mediaSources, + String? playSessionId, + enums.PlaybackErrorCode? errorCode, + }) { return PlaybackInfoResponse( - mediaSources: mediaSources ?? this.mediaSources, - playSessionId: playSessionId ?? this.playSessionId, - errorCode: errorCode ?? this.errorCode); + mediaSources: mediaSources ?? this.mediaSources, + playSessionId: playSessionId ?? this.playSessionId, + errorCode: errorCode ?? this.errorCode, + ); } - PlaybackInfoResponse copyWithWrapped( - {Wrapped?>? mediaSources, - Wrapped? playSessionId, - Wrapped? errorCode}) { + PlaybackInfoResponse copyWithWrapped({ + Wrapped?>? mediaSources, + Wrapped? playSessionId, + Wrapped? errorCode, + }) { return PlaybackInfoResponse( - mediaSources: - (mediaSources != null ? mediaSources.value : this.mediaSources), - playSessionId: - (playSessionId != null ? playSessionId.value : this.playSessionId), - errorCode: (errorCode != null ? errorCode.value : this.errorCode)); + mediaSources: (mediaSources != null + ? mediaSources.value + : this.mediaSources), + playSessionId: (playSessionId != null + ? playSessionId.value + : this.playSessionId), + errorCode: (errorCode != null ? errorCode.value : this.errorCode), + ); } } @@ -33467,9 +36591,10 @@ class PlaybackProgressInfo { ) final enums.PlaybackOrder? playbackOrder; @JsonKey( - name: 'NowPlayingQueue', - includeIfNull: false, - defaultValue: []) + name: 'NowPlayingQueue', + includeIfNull: false, + defaultValue: [], + ) final List? nowPlayingQueue; @JsonKey(name: 'PlaylistItemId', includeIfNull: false) final String? playlistItemId; @@ -33480,66 +36605,104 @@ class PlaybackProgressInfo { return identical(this, other) || (other is PlaybackProgressInfo && (identical(other.canSeek, canSeek) || - const DeepCollectionEquality() - .equals(other.canSeek, canSeek)) && + const DeepCollectionEquality().equals( + 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.sessionId, sessionId) || - const DeepCollectionEquality() - .equals(other.sessionId, sessionId)) && + const DeepCollectionEquality().equals( + other.sessionId, + sessionId, + )) && (identical(other.mediaSourceId, mediaSourceId) || - const DeepCollectionEquality() - .equals(other.mediaSourceId, mediaSourceId)) && + const DeepCollectionEquality().equals( + other.mediaSourceId, + mediaSourceId, + )) && (identical(other.audioStreamIndex, audioStreamIndex) || - const DeepCollectionEquality() - .equals(other.audioStreamIndex, audioStreamIndex)) && + const DeepCollectionEquality().equals( + other.audioStreamIndex, + audioStreamIndex, + )) && (identical(other.subtitleStreamIndex, subtitleStreamIndex) || - const DeepCollectionEquality() - .equals(other.subtitleStreamIndex, subtitleStreamIndex)) && + const DeepCollectionEquality().equals( + other.subtitleStreamIndex, + subtitleStreamIndex, + )) && (identical(other.isPaused, isPaused) || - const DeepCollectionEquality() - .equals(other.isPaused, isPaused)) && + const DeepCollectionEquality().equals( + other.isPaused, + isPaused, + )) && (identical(other.isMuted, isMuted) || - const DeepCollectionEquality() - .equals(other.isMuted, isMuted)) && + const DeepCollectionEquality().equals( + other.isMuted, + isMuted, + )) && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks)) && + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + )) && (identical(other.playbackStartTimeTicks, playbackStartTimeTicks) || const DeepCollectionEquality().equals( - other.playbackStartTimeTicks, playbackStartTimeTicks)) && + other.playbackStartTimeTicks, + playbackStartTimeTicks, + )) && (identical(other.volumeLevel, volumeLevel) || - const DeepCollectionEquality() - .equals(other.volumeLevel, volumeLevel)) && + const DeepCollectionEquality().equals( + other.volumeLevel, + volumeLevel, + )) && (identical(other.brightness, brightness) || - const DeepCollectionEquality() - .equals(other.brightness, brightness)) && + const DeepCollectionEquality().equals( + other.brightness, + brightness, + )) && (identical(other.aspectRatio, aspectRatio) || - const DeepCollectionEquality() - .equals(other.aspectRatio, aspectRatio)) && + const DeepCollectionEquality().equals( + other.aspectRatio, + aspectRatio, + )) && (identical(other.playMethod, playMethod) || - const DeepCollectionEquality() - .equals(other.playMethod, playMethod)) && + const DeepCollectionEquality().equals( + other.playMethod, + playMethod, + )) && (identical(other.liveStreamId, liveStreamId) || - const DeepCollectionEquality() - .equals(other.liveStreamId, liveStreamId)) && + const DeepCollectionEquality().equals( + other.liveStreamId, + liveStreamId, + )) && (identical(other.playSessionId, playSessionId) || - const DeepCollectionEquality() - .equals(other.playSessionId, playSessionId)) && + const DeepCollectionEquality().equals( + other.playSessionId, + playSessionId, + )) && (identical(other.repeatMode, repeatMode) || - const DeepCollectionEquality() - .equals(other.repeatMode, repeatMode)) && + const DeepCollectionEquality().equals( + other.repeatMode, + repeatMode, + )) && (identical(other.playbackOrder, playbackOrder) || - const DeepCollectionEquality() - .equals(other.playbackOrder, playbackOrder)) && + const DeepCollectionEquality().equals( + other.playbackOrder, + playbackOrder, + )) && (identical(other.nowPlayingQueue, nowPlayingQueue) || - const DeepCollectionEquality() - .equals(other.nowPlayingQueue, nowPlayingQueue)) && + const DeepCollectionEquality().equals( + other.nowPlayingQueue, + nowPlayingQueue, + )) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -33572,114 +36735,121 @@ class PlaybackProgressInfo { } extension $PlaybackProgressInfoExtension on PlaybackProgressInfo { - PlaybackProgressInfo copyWith( - {bool? canSeek, - BaseItemDto? item, - String? itemId, - String? sessionId, - String? mediaSourceId, - int? audioStreamIndex, - int? subtitleStreamIndex, - bool? isPaused, - bool? isMuted, - int? positionTicks, - int? playbackStartTimeTicks, - int? volumeLevel, - int? brightness, - String? aspectRatio, - enums.PlayMethod? playMethod, - String? liveStreamId, - String? playSessionId, - enums.RepeatMode? repeatMode, - enums.PlaybackOrder? playbackOrder, - List? nowPlayingQueue, - String? playlistItemId}) { + PlaybackProgressInfo copyWith({ + bool? canSeek, + BaseItemDto? item, + String? itemId, + String? sessionId, + String? mediaSourceId, + int? audioStreamIndex, + int? subtitleStreamIndex, + bool? isPaused, + bool? isMuted, + int? positionTicks, + int? playbackStartTimeTicks, + int? volumeLevel, + int? brightness, + String? aspectRatio, + enums.PlayMethod? playMethod, + String? liveStreamId, + String? playSessionId, + enums.RepeatMode? repeatMode, + enums.PlaybackOrder? playbackOrder, + List? nowPlayingQueue, + String? playlistItemId, + }) { return PlaybackProgressInfo( - canSeek: canSeek ?? this.canSeek, - item: item ?? this.item, - itemId: itemId ?? this.itemId, - sessionId: sessionId ?? this.sessionId, - mediaSourceId: mediaSourceId ?? this.mediaSourceId, - audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, - isPaused: isPaused ?? this.isPaused, - isMuted: isMuted ?? this.isMuted, - positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: - playbackStartTimeTicks ?? this.playbackStartTimeTicks, - volumeLevel: volumeLevel ?? this.volumeLevel, - brightness: brightness ?? this.brightness, - aspectRatio: aspectRatio ?? this.aspectRatio, - playMethod: playMethod ?? this.playMethod, - liveStreamId: liveStreamId ?? this.liveStreamId, - playSessionId: playSessionId ?? this.playSessionId, - repeatMode: repeatMode ?? this.repeatMode, - playbackOrder: playbackOrder ?? this.playbackOrder, - nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, - playlistItemId: playlistItemId ?? this.playlistItemId); + canSeek: canSeek ?? this.canSeek, + item: item ?? this.item, + itemId: itemId ?? this.itemId, + sessionId: sessionId ?? this.sessionId, + mediaSourceId: mediaSourceId ?? this.mediaSourceId, + audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, + isPaused: isPaused ?? this.isPaused, + isMuted: isMuted ?? this.isMuted, + positionTicks: positionTicks ?? this.positionTicks, + playbackStartTimeTicks: + playbackStartTimeTicks ?? this.playbackStartTimeTicks, + volumeLevel: volumeLevel ?? this.volumeLevel, + brightness: brightness ?? this.brightness, + aspectRatio: aspectRatio ?? this.aspectRatio, + playMethod: playMethod ?? this.playMethod, + liveStreamId: liveStreamId ?? this.liveStreamId, + playSessionId: playSessionId ?? this.playSessionId, + repeatMode: repeatMode ?? this.repeatMode, + playbackOrder: playbackOrder ?? this.playbackOrder, + nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } - PlaybackProgressInfo copyWithWrapped( - {Wrapped? canSeek, - Wrapped? item, - Wrapped? itemId, - Wrapped? sessionId, - Wrapped? mediaSourceId, - Wrapped? audioStreamIndex, - Wrapped? subtitleStreamIndex, - Wrapped? isPaused, - Wrapped? isMuted, - Wrapped? positionTicks, - Wrapped? playbackStartTimeTicks, - Wrapped? volumeLevel, - Wrapped? brightness, - Wrapped? aspectRatio, - Wrapped? playMethod, - Wrapped? liveStreamId, - Wrapped? playSessionId, - Wrapped? repeatMode, - Wrapped? playbackOrder, - Wrapped?>? nowPlayingQueue, - Wrapped? playlistItemId}) { + PlaybackProgressInfo copyWithWrapped({ + Wrapped? canSeek, + Wrapped? item, + Wrapped? itemId, + Wrapped? sessionId, + Wrapped? mediaSourceId, + Wrapped? audioStreamIndex, + Wrapped? subtitleStreamIndex, + Wrapped? isPaused, + Wrapped? isMuted, + Wrapped? positionTicks, + Wrapped? playbackStartTimeTicks, + Wrapped? volumeLevel, + Wrapped? brightness, + Wrapped? aspectRatio, + Wrapped? playMethod, + Wrapped? liveStreamId, + Wrapped? playSessionId, + Wrapped? repeatMode, + Wrapped? playbackOrder, + Wrapped?>? nowPlayingQueue, + Wrapped? playlistItemId, + }) { return PlaybackProgressInfo( - canSeek: (canSeek != null ? canSeek.value : this.canSeek), - 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), - 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), - 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), - 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)); + canSeek: (canSeek != null ? canSeek.value : this.canSeek), + 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), + 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), + 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), + 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), + ); } } @@ -33769,9 +36939,10 @@ class PlaybackStartInfo { ) final enums.PlaybackOrder? playbackOrder; @JsonKey( - name: 'NowPlayingQueue', - includeIfNull: false, - defaultValue: []) + name: 'NowPlayingQueue', + includeIfNull: false, + defaultValue: [], + ) final List? nowPlayingQueue; @JsonKey(name: 'PlaylistItemId', includeIfNull: false) final String? playlistItemId; @@ -33782,66 +36953,104 @@ class PlaybackStartInfo { return identical(this, other) || (other is PlaybackStartInfo && (identical(other.canSeek, canSeek) || - const DeepCollectionEquality() - .equals(other.canSeek, canSeek)) && + const DeepCollectionEquality().equals( + 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.sessionId, sessionId) || - const DeepCollectionEquality() - .equals(other.sessionId, sessionId)) && + const DeepCollectionEquality().equals( + other.sessionId, + sessionId, + )) && (identical(other.mediaSourceId, mediaSourceId) || - const DeepCollectionEquality() - .equals(other.mediaSourceId, mediaSourceId)) && + const DeepCollectionEquality().equals( + other.mediaSourceId, + mediaSourceId, + )) && (identical(other.audioStreamIndex, audioStreamIndex) || - const DeepCollectionEquality() - .equals(other.audioStreamIndex, audioStreamIndex)) && + const DeepCollectionEquality().equals( + other.audioStreamIndex, + audioStreamIndex, + )) && (identical(other.subtitleStreamIndex, subtitleStreamIndex) || - const DeepCollectionEquality() - .equals(other.subtitleStreamIndex, subtitleStreamIndex)) && + const DeepCollectionEquality().equals( + other.subtitleStreamIndex, + subtitleStreamIndex, + )) && (identical(other.isPaused, isPaused) || - const DeepCollectionEquality() - .equals(other.isPaused, isPaused)) && + const DeepCollectionEquality().equals( + other.isPaused, + isPaused, + )) && (identical(other.isMuted, isMuted) || - const DeepCollectionEquality() - .equals(other.isMuted, isMuted)) && + const DeepCollectionEquality().equals( + other.isMuted, + isMuted, + )) && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks)) && + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + )) && (identical(other.playbackStartTimeTicks, playbackStartTimeTicks) || const DeepCollectionEquality().equals( - other.playbackStartTimeTicks, playbackStartTimeTicks)) && + other.playbackStartTimeTicks, + playbackStartTimeTicks, + )) && (identical(other.volumeLevel, volumeLevel) || - const DeepCollectionEquality() - .equals(other.volumeLevel, volumeLevel)) && + const DeepCollectionEquality().equals( + other.volumeLevel, + volumeLevel, + )) && (identical(other.brightness, brightness) || - const DeepCollectionEquality() - .equals(other.brightness, brightness)) && + const DeepCollectionEquality().equals( + other.brightness, + brightness, + )) && (identical(other.aspectRatio, aspectRatio) || - const DeepCollectionEquality() - .equals(other.aspectRatio, aspectRatio)) && + const DeepCollectionEquality().equals( + other.aspectRatio, + aspectRatio, + )) && (identical(other.playMethod, playMethod) || - const DeepCollectionEquality() - .equals(other.playMethod, playMethod)) && + const DeepCollectionEquality().equals( + other.playMethod, + playMethod, + )) && (identical(other.liveStreamId, liveStreamId) || - const DeepCollectionEquality() - .equals(other.liveStreamId, liveStreamId)) && + const DeepCollectionEquality().equals( + other.liveStreamId, + liveStreamId, + )) && (identical(other.playSessionId, playSessionId) || - const DeepCollectionEquality() - .equals(other.playSessionId, playSessionId)) && + const DeepCollectionEquality().equals( + other.playSessionId, + playSessionId, + )) && (identical(other.repeatMode, repeatMode) || - const DeepCollectionEquality() - .equals(other.repeatMode, repeatMode)) && + const DeepCollectionEquality().equals( + other.repeatMode, + repeatMode, + )) && (identical(other.playbackOrder, playbackOrder) || - const DeepCollectionEquality() - .equals(other.playbackOrder, playbackOrder)) && + const DeepCollectionEquality().equals( + other.playbackOrder, + playbackOrder, + )) && (identical(other.nowPlayingQueue, nowPlayingQueue) || - const DeepCollectionEquality() - .equals(other.nowPlayingQueue, nowPlayingQueue)) && + const DeepCollectionEquality().equals( + other.nowPlayingQueue, + nowPlayingQueue, + )) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -33874,114 +37083,121 @@ class PlaybackStartInfo { } extension $PlaybackStartInfoExtension on PlaybackStartInfo { - PlaybackStartInfo copyWith( - {bool? canSeek, - BaseItemDto? item, - String? itemId, - String? sessionId, - String? mediaSourceId, - int? audioStreamIndex, - int? subtitleStreamIndex, - bool? isPaused, - bool? isMuted, - int? positionTicks, - int? playbackStartTimeTicks, - int? volumeLevel, - int? brightness, - String? aspectRatio, - enums.PlayMethod? playMethod, - String? liveStreamId, - String? playSessionId, - enums.RepeatMode? repeatMode, - enums.PlaybackOrder? playbackOrder, - List? nowPlayingQueue, - String? playlistItemId}) { + PlaybackStartInfo copyWith({ + bool? canSeek, + BaseItemDto? item, + String? itemId, + String? sessionId, + String? mediaSourceId, + int? audioStreamIndex, + int? subtitleStreamIndex, + bool? isPaused, + bool? isMuted, + int? positionTicks, + int? playbackStartTimeTicks, + int? volumeLevel, + int? brightness, + String? aspectRatio, + enums.PlayMethod? playMethod, + String? liveStreamId, + String? playSessionId, + enums.RepeatMode? repeatMode, + enums.PlaybackOrder? playbackOrder, + List? nowPlayingQueue, + String? playlistItemId, + }) { return PlaybackStartInfo( - canSeek: canSeek ?? this.canSeek, - item: item ?? this.item, - itemId: itemId ?? this.itemId, - sessionId: sessionId ?? this.sessionId, - mediaSourceId: mediaSourceId ?? this.mediaSourceId, - audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, - isPaused: isPaused ?? this.isPaused, - isMuted: isMuted ?? this.isMuted, - positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: - playbackStartTimeTicks ?? this.playbackStartTimeTicks, - volumeLevel: volumeLevel ?? this.volumeLevel, - brightness: brightness ?? this.brightness, - aspectRatio: aspectRatio ?? this.aspectRatio, - playMethod: playMethod ?? this.playMethod, - liveStreamId: liveStreamId ?? this.liveStreamId, - playSessionId: playSessionId ?? this.playSessionId, - repeatMode: repeatMode ?? this.repeatMode, - playbackOrder: playbackOrder ?? this.playbackOrder, - nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, - playlistItemId: playlistItemId ?? this.playlistItemId); + canSeek: canSeek ?? this.canSeek, + item: item ?? this.item, + itemId: itemId ?? this.itemId, + sessionId: sessionId ?? this.sessionId, + mediaSourceId: mediaSourceId ?? this.mediaSourceId, + audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, + isPaused: isPaused ?? this.isPaused, + isMuted: isMuted ?? this.isMuted, + positionTicks: positionTicks ?? this.positionTicks, + playbackStartTimeTicks: + playbackStartTimeTicks ?? this.playbackStartTimeTicks, + volumeLevel: volumeLevel ?? this.volumeLevel, + brightness: brightness ?? this.brightness, + aspectRatio: aspectRatio ?? this.aspectRatio, + playMethod: playMethod ?? this.playMethod, + liveStreamId: liveStreamId ?? this.liveStreamId, + playSessionId: playSessionId ?? this.playSessionId, + repeatMode: repeatMode ?? this.repeatMode, + playbackOrder: playbackOrder ?? this.playbackOrder, + nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } - PlaybackStartInfo copyWithWrapped( - {Wrapped? canSeek, - Wrapped? item, - Wrapped? itemId, - Wrapped? sessionId, - Wrapped? mediaSourceId, - Wrapped? audioStreamIndex, - Wrapped? subtitleStreamIndex, - Wrapped? isPaused, - Wrapped? isMuted, - Wrapped? positionTicks, - Wrapped? playbackStartTimeTicks, - Wrapped? volumeLevel, - Wrapped? brightness, - Wrapped? aspectRatio, - Wrapped? playMethod, - Wrapped? liveStreamId, - Wrapped? playSessionId, - Wrapped? repeatMode, - Wrapped? playbackOrder, - Wrapped?>? nowPlayingQueue, - Wrapped? playlistItemId}) { + PlaybackStartInfo copyWithWrapped({ + Wrapped? canSeek, + Wrapped? item, + Wrapped? itemId, + Wrapped? sessionId, + Wrapped? mediaSourceId, + Wrapped? audioStreamIndex, + Wrapped? subtitleStreamIndex, + Wrapped? isPaused, + Wrapped? isMuted, + Wrapped? positionTicks, + Wrapped? playbackStartTimeTicks, + Wrapped? volumeLevel, + Wrapped? brightness, + Wrapped? aspectRatio, + Wrapped? playMethod, + Wrapped? liveStreamId, + Wrapped? playSessionId, + Wrapped? repeatMode, + Wrapped? playbackOrder, + Wrapped?>? nowPlayingQueue, + Wrapped? playlistItemId, + }) { return PlaybackStartInfo( - canSeek: (canSeek != null ? canSeek.value : this.canSeek), - 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), - 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), - 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), - 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)); + canSeek: (canSeek != null ? canSeek.value : this.canSeek), + 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), + 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), + 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), + 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), + ); } } @@ -34028,9 +37244,10 @@ class PlaybackStopInfo { @JsonKey(name: 'PlaylistItemId', includeIfNull: false) final String? playlistItemId; @JsonKey( - name: 'NowPlayingQueue', - includeIfNull: false, - defaultValue: []) + name: 'NowPlayingQueue', + includeIfNull: false, + defaultValue: [], + ) final List? nowPlayingQueue; static const fromJsonFactory = _$PlaybackStopInfoFromJson; @@ -34043,31 +37260,47 @@ class PlaybackStopInfo { (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || - const DeepCollectionEquality() - .equals(other.sessionId, sessionId)) && + const DeepCollectionEquality().equals( + other.sessionId, + sessionId, + )) && (identical(other.mediaSourceId, mediaSourceId) || - const DeepCollectionEquality() - .equals(other.mediaSourceId, mediaSourceId)) && + const DeepCollectionEquality().equals( + other.mediaSourceId, + mediaSourceId, + )) && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks)) && + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + )) && (identical(other.liveStreamId, liveStreamId) || - const DeepCollectionEquality() - .equals(other.liveStreamId, liveStreamId)) && + const DeepCollectionEquality().equals( + other.liveStreamId, + liveStreamId, + )) && (identical(other.playSessionId, playSessionId) || - const DeepCollectionEquality() - .equals(other.playSessionId, playSessionId)) && + const DeepCollectionEquality().equals( + other.playSessionId, + playSessionId, + )) && (identical(other.failed, failed) || const DeepCollectionEquality().equals(other.failed, failed)) && (identical(other.nextMediaType, nextMediaType) || - const DeepCollectionEquality() - .equals(other.nextMediaType, nextMediaType)) && + const DeepCollectionEquality().equals( + other.nextMediaType, + nextMediaType, + )) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId)) && + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + )) && (identical(other.nowPlayingQueue, nowPlayingQueue) || - const DeepCollectionEquality() - .equals(other.nowPlayingQueue, nowPlayingQueue))); + const DeepCollectionEquality().equals( + other.nowPlayingQueue, + nowPlayingQueue, + ))); } @override @@ -34090,65 +37323,74 @@ class PlaybackStopInfo { } extension $PlaybackStopInfoExtension on PlaybackStopInfo { - PlaybackStopInfo copyWith( - {BaseItemDto? item, - String? itemId, - String? sessionId, - String? mediaSourceId, - int? positionTicks, - String? liveStreamId, - String? playSessionId, - bool? failed, - String? nextMediaType, - String? playlistItemId, - List? nowPlayingQueue}) { + PlaybackStopInfo copyWith({ + BaseItemDto? item, + String? itemId, + String? sessionId, + String? mediaSourceId, + int? positionTicks, + String? liveStreamId, + String? playSessionId, + bool? failed, + String? nextMediaType, + String? playlistItemId, + List? nowPlayingQueue, + }) { return PlaybackStopInfo( - item: item ?? this.item, - itemId: itemId ?? this.itemId, - sessionId: sessionId ?? this.sessionId, - mediaSourceId: mediaSourceId ?? this.mediaSourceId, - positionTicks: positionTicks ?? this.positionTicks, - liveStreamId: liveStreamId ?? this.liveStreamId, - playSessionId: playSessionId ?? this.playSessionId, - failed: failed ?? this.failed, - nextMediaType: nextMediaType ?? this.nextMediaType, - playlistItemId: playlistItemId ?? this.playlistItemId, - nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue); + item: item ?? this.item, + itemId: itemId ?? this.itemId, + sessionId: sessionId ?? this.sessionId, + mediaSourceId: mediaSourceId ?? this.mediaSourceId, + positionTicks: positionTicks ?? this.positionTicks, + liveStreamId: liveStreamId ?? this.liveStreamId, + playSessionId: playSessionId ?? this.playSessionId, + failed: failed ?? this.failed, + nextMediaType: nextMediaType ?? this.nextMediaType, + playlistItemId: playlistItemId ?? this.playlistItemId, + nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, + ); } - PlaybackStopInfo copyWithWrapped( - {Wrapped? item, - Wrapped? itemId, - Wrapped? sessionId, - Wrapped? mediaSourceId, - Wrapped? positionTicks, - Wrapped? liveStreamId, - Wrapped? playSessionId, - Wrapped? failed, - Wrapped? nextMediaType, - Wrapped? playlistItemId, - Wrapped?>? nowPlayingQueue}) { + PlaybackStopInfo copyWithWrapped({ + Wrapped? item, + Wrapped? itemId, + Wrapped? sessionId, + Wrapped? mediaSourceId, + Wrapped? positionTicks, + Wrapped? liveStreamId, + Wrapped? playSessionId, + Wrapped? failed, + Wrapped? nextMediaType, + Wrapped? playlistItemId, + Wrapped?>? nowPlayingQueue, + }) { return 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), - 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)); + 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), + 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), + ); } } @@ -34221,41 +37463,65 @@ class PlayerStateInfo { return identical(this, other) || (other is PlayerStateInfo && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks)) && + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + )) && (identical(other.canSeek, canSeek) || - const DeepCollectionEquality() - .equals(other.canSeek, canSeek)) && + const DeepCollectionEquality().equals( + other.canSeek, + canSeek, + )) && (identical(other.isPaused, isPaused) || - const DeepCollectionEquality() - .equals(other.isPaused, isPaused)) && + const DeepCollectionEquality().equals( + other.isPaused, + isPaused, + )) && (identical(other.isMuted, isMuted) || - const DeepCollectionEquality() - .equals(other.isMuted, isMuted)) && + const DeepCollectionEquality().equals( + other.isMuted, + isMuted, + )) && (identical(other.volumeLevel, volumeLevel) || - const DeepCollectionEquality() - .equals(other.volumeLevel, volumeLevel)) && + const DeepCollectionEquality().equals( + other.volumeLevel, + volumeLevel, + )) && (identical(other.audioStreamIndex, audioStreamIndex) || - const DeepCollectionEquality() - .equals(other.audioStreamIndex, audioStreamIndex)) && + const DeepCollectionEquality().equals( + other.audioStreamIndex, + audioStreamIndex, + )) && (identical(other.subtitleStreamIndex, subtitleStreamIndex) || - const DeepCollectionEquality() - .equals(other.subtitleStreamIndex, subtitleStreamIndex)) && + const DeepCollectionEquality().equals( + other.subtitleStreamIndex, + subtitleStreamIndex, + )) && (identical(other.mediaSourceId, mediaSourceId) || - const DeepCollectionEquality() - .equals(other.mediaSourceId, mediaSourceId)) && + const DeepCollectionEquality().equals( + other.mediaSourceId, + mediaSourceId, + )) && (identical(other.playMethod, playMethod) || - const DeepCollectionEquality() - .equals(other.playMethod, playMethod)) && + const DeepCollectionEquality().equals( + other.playMethod, + playMethod, + )) && (identical(other.repeatMode, repeatMode) || - const DeepCollectionEquality() - .equals(other.repeatMode, repeatMode)) && + const DeepCollectionEquality().equals( + other.repeatMode, + repeatMode, + )) && (identical(other.playbackOrder, playbackOrder) || - const DeepCollectionEquality() - .equals(other.playbackOrder, playbackOrder)) && + const DeepCollectionEquality().equals( + other.playbackOrder, + playbackOrder, + )) && (identical(other.liveStreamId, liveStreamId) || - const DeepCollectionEquality() - .equals(other.liveStreamId, liveStreamId))); + const DeepCollectionEquality().equals( + other.liveStreamId, + liveStreamId, + ))); } @override @@ -34279,77 +37545,82 @@ class PlayerStateInfo { } extension $PlayerStateInfoExtension on PlayerStateInfo { - PlayerStateInfo copyWith( - {int? positionTicks, - bool? canSeek, - bool? isPaused, - bool? isMuted, - int? volumeLevel, - int? audioStreamIndex, - int? subtitleStreamIndex, - String? mediaSourceId, - enums.PlayMethod? playMethod, - enums.RepeatMode? repeatMode, - enums.PlaybackOrder? playbackOrder, - String? liveStreamId}) { + PlayerStateInfo copyWith({ + int? positionTicks, + bool? canSeek, + bool? isPaused, + bool? isMuted, + int? volumeLevel, + int? audioStreamIndex, + int? subtitleStreamIndex, + String? mediaSourceId, + enums.PlayMethod? playMethod, + enums.RepeatMode? repeatMode, + enums.PlaybackOrder? playbackOrder, + String? liveStreamId, + }) { return PlayerStateInfo( - positionTicks: positionTicks ?? this.positionTicks, - canSeek: canSeek ?? this.canSeek, - isPaused: isPaused ?? this.isPaused, - isMuted: isMuted ?? this.isMuted, - volumeLevel: volumeLevel ?? this.volumeLevel, - audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, - subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, - mediaSourceId: mediaSourceId ?? this.mediaSourceId, - playMethod: playMethod ?? this.playMethod, - repeatMode: repeatMode ?? this.repeatMode, - playbackOrder: playbackOrder ?? this.playbackOrder, - liveStreamId: liveStreamId ?? this.liveStreamId); + positionTicks: positionTicks ?? this.positionTicks, + canSeek: canSeek ?? this.canSeek, + isPaused: isPaused ?? this.isPaused, + isMuted: isMuted ?? this.isMuted, + volumeLevel: volumeLevel ?? this.volumeLevel, + audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, + subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, + mediaSourceId: mediaSourceId ?? this.mediaSourceId, + playMethod: playMethod ?? this.playMethod, + repeatMode: repeatMode ?? this.repeatMode, + playbackOrder: playbackOrder ?? this.playbackOrder, + liveStreamId: liveStreamId ?? this.liveStreamId, + ); } - PlayerStateInfo copyWithWrapped( - {Wrapped? positionTicks, - Wrapped? canSeek, - Wrapped? isPaused, - Wrapped? isMuted, - Wrapped? volumeLevel, - Wrapped? audioStreamIndex, - Wrapped? subtitleStreamIndex, - Wrapped? mediaSourceId, - Wrapped? playMethod, - Wrapped? repeatMode, - Wrapped? playbackOrder, - Wrapped? liveStreamId}) { + PlayerStateInfo copyWithWrapped({ + Wrapped? positionTicks, + Wrapped? canSeek, + Wrapped? isPaused, + Wrapped? isMuted, + Wrapped? volumeLevel, + Wrapped? audioStreamIndex, + Wrapped? subtitleStreamIndex, + Wrapped? mediaSourceId, + Wrapped? playMethod, + Wrapped? repeatMode, + Wrapped? playbackOrder, + Wrapped? liveStreamId, + }) { return PlayerStateInfo( - 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), - 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)); + 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), + 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), + ); } } @JsonSerializable(explicitToJson: true) class PlaylistCreationResult { - const PlaylistCreationResult({ - this.id, - }); + const PlaylistCreationResult({this.id}); factory PlaylistCreationResult.fromJson(Map json) => _$PlaylistCreationResultFromJson(json); @@ -34389,11 +37660,7 @@ extension $PlaylistCreationResultExtension on PlaylistCreationResult { @JsonSerializable(explicitToJson: true) class PlaylistDto { - const PlaylistDto({ - this.openAccess, - this.shares, - this.itemIds, - }); + const PlaylistDto({this.openAccess, this.shares, this.itemIds}); factory PlaylistDto.fromJson(Map json) => _$PlaylistDtoFromJson(json); @@ -34404,9 +37671,10 @@ class PlaylistDto { @JsonKey(name: 'OpenAccess', includeIfNull: false) final bool? openAccess; @JsonKey( - name: 'Shares', - includeIfNull: false, - defaultValue: []) + name: 'Shares', + includeIfNull: false, + defaultValue: [], + ) final List? shares; @JsonKey(name: 'ItemIds', includeIfNull: false, defaultValue: []) final List? itemIds; @@ -34417,8 +37685,10 @@ class PlaylistDto { return identical(this, other) || (other is PlaylistDto && (identical(other.openAccess, openAccess) || - const DeepCollectionEquality() - .equals(other.openAccess, openAccess)) && + const DeepCollectionEquality().equals( + other.openAccess, + openAccess, + )) && (identical(other.shares, shares) || const DeepCollectionEquality().equals(other.shares, shares)) && (identical(other.itemIds, itemIds) || @@ -34437,33 +37707,34 @@ class PlaylistDto { } extension $PlaylistDtoExtension on PlaylistDto { - PlaylistDto copyWith( - {bool? openAccess, - List? shares, - List? itemIds}) { + PlaylistDto copyWith({ + bool? openAccess, + List? shares, + List? itemIds, + }) { return PlaylistDto( - openAccess: openAccess ?? this.openAccess, - shares: shares ?? this.shares, - itemIds: itemIds ?? this.itemIds); + openAccess: openAccess ?? this.openAccess, + shares: shares ?? this.shares, + itemIds: itemIds ?? this.itemIds, + ); } - PlaylistDto copyWithWrapped( - {Wrapped? openAccess, - Wrapped?>? shares, - Wrapped?>? itemIds}) { + PlaylistDto copyWithWrapped({ + Wrapped? openAccess, + Wrapped?>? shares, + Wrapped?>? itemIds, + }) { return PlaylistDto( - openAccess: (openAccess != null ? openAccess.value : this.openAccess), - shares: (shares != null ? shares.value : this.shares), - itemIds: (itemIds != null ? itemIds.value : this.itemIds)); + openAccess: (openAccess != null ? openAccess.value : this.openAccess), + shares: (shares != null ? shares.value : this.shares), + itemIds: (itemIds != null ? itemIds.value : this.itemIds), + ); } } @JsonSerializable(explicitToJson: true) class PlaylistUserPermissions { - const PlaylistUserPermissions({ - this.userId, - this.canEdit, - }); + const PlaylistUserPermissions({this.userId, this.canEdit}); factory PlaylistUserPermissions.fromJson(Map json) => _$PlaylistUserPermissionsFromJson(json); @@ -34500,24 +37771,25 @@ class PlaylistUserPermissions { extension $PlaylistUserPermissionsExtension on PlaylistUserPermissions { PlaylistUserPermissions copyWith({String? userId, bool? canEdit}) { return PlaylistUserPermissions( - userId: userId ?? this.userId, canEdit: canEdit ?? this.canEdit); + userId: userId ?? this.userId, + canEdit: canEdit ?? this.canEdit, + ); } - PlaylistUserPermissions copyWithWrapped( - {Wrapped? userId, Wrapped? canEdit}) { + PlaylistUserPermissions copyWithWrapped({ + Wrapped? userId, + Wrapped? canEdit, + }) { return PlaylistUserPermissions( - userId: (userId != null ? userId.value : this.userId), - canEdit: (canEdit != null ? canEdit.value : this.canEdit)); + userId: (userId != null ? userId.value : this.userId), + canEdit: (canEdit != null ? canEdit.value : this.canEdit), + ); } } @JsonSerializable(explicitToJson: true) class PlayMessage { - const PlayMessage({ - this.data, - this.messageId, - this.messageType, - }); + const PlayMessage({this.data, this.messageId, this.messageType}); factory PlayMessage.fromJson(Map json) => _$PlayMessageFromJson(json); @@ -34537,9 +37809,8 @@ class PlayMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.play); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson(value, enums.SessionMessageType.play); static const fromJsonFactory = _$PlayMessageFromJson; @@ -34550,11 +37821,15 @@ class PlayMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -34569,25 +37844,28 @@ class PlayMessage { } extension $PlayMessageExtension on PlayMessage { - PlayMessage copyWith( - {PlayRequest? data, - String? messageId, - enums.SessionMessageType? messageType}) { + PlayMessage copyWith({ + PlayRequest? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return PlayMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - PlayMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + PlayMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return PlayMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -34620,9 +37898,10 @@ class PlayQueueUpdate { @JsonKey(name: 'LastUpdate', includeIfNull: false) final DateTime? lastUpdate; @JsonKey( - name: 'Playlist', - includeIfNull: false, - defaultValue: []) + name: 'Playlist', + includeIfNull: false, + defaultValue: [], + ) final List? playlist; @JsonKey(name: 'PlayingItemIndex', includeIfNull: false) final int? playingItemIndex; @@ -34653,26 +37932,40 @@ class PlayQueueUpdate { (identical(other.reason, reason) || const DeepCollectionEquality().equals(other.reason, reason)) && (identical(other.lastUpdate, lastUpdate) || - const DeepCollectionEquality() - .equals(other.lastUpdate, lastUpdate)) && + const DeepCollectionEquality().equals( + other.lastUpdate, + lastUpdate, + )) && (identical(other.playlist, playlist) || - const DeepCollectionEquality() - .equals(other.playlist, playlist)) && + const DeepCollectionEquality().equals( + other.playlist, + playlist, + )) && (identical(other.playingItemIndex, playingItemIndex) || - const DeepCollectionEquality() - .equals(other.playingItemIndex, playingItemIndex)) && + const DeepCollectionEquality().equals( + other.playingItemIndex, + playingItemIndex, + )) && (identical(other.startPositionTicks, startPositionTicks) || - const DeepCollectionEquality() - .equals(other.startPositionTicks, startPositionTicks)) && + const DeepCollectionEquality().equals( + other.startPositionTicks, + startPositionTicks, + )) && (identical(other.isPlaying, isPlaying) || - const DeepCollectionEquality() - .equals(other.isPlaying, isPlaying)) && + const DeepCollectionEquality().equals( + other.isPlaying, + isPlaying, + )) && (identical(other.shuffleMode, shuffleMode) || - const DeepCollectionEquality() - .equals(other.shuffleMode, shuffleMode)) && + const DeepCollectionEquality().equals( + other.shuffleMode, + shuffleMode, + )) && (identical(other.repeatMode, repeatMode) || - const DeepCollectionEquality() - .equals(other.repeatMode, repeatMode))); + const DeepCollectionEquality().equals( + other.repeatMode, + repeatMode, + ))); } @override @@ -34692,59 +37985,58 @@ class PlayQueueUpdate { } extension $PlayQueueUpdateExtension on PlayQueueUpdate { - PlayQueueUpdate copyWith( - {enums.PlayQueueUpdateReason? reason, - DateTime? lastUpdate, - List? playlist, - int? playingItemIndex, - int? startPositionTicks, - bool? isPlaying, - enums.GroupShuffleMode? shuffleMode, - enums.GroupRepeatMode? repeatMode}) { + PlayQueueUpdate copyWith({ + enums.PlayQueueUpdateReason? reason, + DateTime? lastUpdate, + List? playlist, + int? playingItemIndex, + int? startPositionTicks, + bool? isPlaying, + enums.GroupShuffleMode? shuffleMode, + enums.GroupRepeatMode? repeatMode, + }) { return PlayQueueUpdate( - reason: reason ?? this.reason, - lastUpdate: lastUpdate ?? this.lastUpdate, - playlist: playlist ?? this.playlist, - playingItemIndex: playingItemIndex ?? this.playingItemIndex, - startPositionTicks: startPositionTicks ?? this.startPositionTicks, - isPlaying: isPlaying ?? this.isPlaying, - shuffleMode: shuffleMode ?? this.shuffleMode, - repeatMode: repeatMode ?? this.repeatMode); + reason: reason ?? this.reason, + lastUpdate: lastUpdate ?? this.lastUpdate, + playlist: playlist ?? this.playlist, + playingItemIndex: playingItemIndex ?? this.playingItemIndex, + startPositionTicks: startPositionTicks ?? this.startPositionTicks, + isPlaying: isPlaying ?? this.isPlaying, + shuffleMode: shuffleMode ?? this.shuffleMode, + repeatMode: repeatMode ?? this.repeatMode, + ); } - PlayQueueUpdate copyWithWrapped( - {Wrapped? reason, - Wrapped? lastUpdate, - Wrapped?>? playlist, - Wrapped? playingItemIndex, - Wrapped? startPositionTicks, - Wrapped? isPlaying, - Wrapped? shuffleMode, - Wrapped? repeatMode}) { + PlayQueueUpdate copyWithWrapped({ + Wrapped? reason, + Wrapped? lastUpdate, + Wrapped?>? playlist, + Wrapped? playingItemIndex, + Wrapped? startPositionTicks, + Wrapped? isPlaying, + Wrapped? shuffleMode, + Wrapped? repeatMode, + }) { return 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), - isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - shuffleMode: - (shuffleMode != null ? shuffleMode.value : this.shuffleMode), - repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode)); + 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), + isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), + shuffleMode: (shuffleMode != null ? shuffleMode.value : this.shuffleMode), + repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), + ); } } @JsonSerializable(explicitToJson: true) class PlayQueueUpdateGroupUpdate { - const PlayQueueUpdateGroupUpdate({ - this.groupId, - this.type, - this.data, - }); + const PlayQueueUpdateGroupUpdate({this.groupId, this.type, this.data}); factory PlayQueueUpdateGroupUpdate.fromJson(Map json) => _$PlayQueueUpdateGroupUpdateFromJson(json); @@ -34770,8 +38062,10 @@ class PlayQueueUpdateGroupUpdate { return identical(this, other) || (other is PlayQueueUpdateGroupUpdate && (identical(other.groupId, groupId) || - const DeepCollectionEquality() - .equals(other.groupId, groupId)) && + const DeepCollectionEquality().equals( + other.groupId, + groupId, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.data, data) || @@ -34790,22 +38084,28 @@ class PlayQueueUpdateGroupUpdate { } extension $PlayQueueUpdateGroupUpdateExtension on PlayQueueUpdateGroupUpdate { - PlayQueueUpdateGroupUpdate copyWith( - {String? groupId, enums.GroupUpdateType? type, PlayQueueUpdate? data}) { + PlayQueueUpdateGroupUpdate copyWith({ + String? groupId, + enums.GroupUpdateType? type, + PlayQueueUpdate? data, + }) { return PlayQueueUpdateGroupUpdate( - groupId: groupId ?? this.groupId, - type: type ?? this.type, - data: data ?? this.data); + groupId: groupId ?? this.groupId, + type: type ?? this.type, + data: data ?? this.data, + ); } - PlayQueueUpdateGroupUpdate copyWithWrapped( - {Wrapped? groupId, - Wrapped? type, - Wrapped? data}) { + PlayQueueUpdateGroupUpdate copyWithWrapped({ + Wrapped? groupId, + Wrapped? type, + Wrapped? data, + }) { return PlayQueueUpdateGroupUpdate( - groupId: (groupId != null ? groupId.value : this.groupId), - type: (type != null ? type.value : this.type), - data: (data != null ? data.value : this.data)); + groupId: (groupId != null ? groupId.value : this.groupId), + type: (type != null ? type.value : this.type), + data: (data != null ? data.value : this.data), + ); } } @@ -34856,29 +38156,45 @@ class PlayRequest { return identical(this, other) || (other is PlayRequest && (identical(other.itemIds, itemIds) || - const DeepCollectionEquality() - .equals(other.itemIds, itemIds)) && + const DeepCollectionEquality().equals( + other.itemIds, + itemIds, + )) && (identical(other.startPositionTicks, startPositionTicks) || - const DeepCollectionEquality() - .equals(other.startPositionTicks, startPositionTicks)) && + const DeepCollectionEquality().equals( + other.startPositionTicks, + startPositionTicks, + )) && (identical(other.playCommand, playCommand) || - const DeepCollectionEquality() - .equals(other.playCommand, playCommand)) && + const DeepCollectionEquality().equals( + other.playCommand, + playCommand, + )) && (identical(other.controllingUserId, controllingUserId) || - const DeepCollectionEquality() - .equals(other.controllingUserId, controllingUserId)) && + const DeepCollectionEquality().equals( + other.controllingUserId, + controllingUserId, + )) && (identical(other.subtitleStreamIndex, subtitleStreamIndex) || - const DeepCollectionEquality() - .equals(other.subtitleStreamIndex, subtitleStreamIndex)) && + const DeepCollectionEquality().equals( + other.subtitleStreamIndex, + subtitleStreamIndex, + )) && (identical(other.audioStreamIndex, audioStreamIndex) || - const DeepCollectionEquality() - .equals(other.audioStreamIndex, audioStreamIndex)) && + const DeepCollectionEquality().equals( + other.audioStreamIndex, + audioStreamIndex, + )) && (identical(other.mediaSourceId, mediaSourceId) || - const DeepCollectionEquality() - .equals(other.mediaSourceId, mediaSourceId)) && + const DeepCollectionEquality().equals( + other.mediaSourceId, + mediaSourceId, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -34898,54 +38214,58 @@ class PlayRequest { } extension $PlayRequestExtension on PlayRequest { - PlayRequest copyWith( - {List? itemIds, - int? startPositionTicks, - enums.PlayCommand? playCommand, - String? controllingUserId, - int? subtitleStreamIndex, - int? audioStreamIndex, - String? mediaSourceId, - int? startIndex}) { + PlayRequest copyWith({ + List? itemIds, + int? startPositionTicks, + enums.PlayCommand? playCommand, + String? controllingUserId, + int? subtitleStreamIndex, + int? audioStreamIndex, + String? mediaSourceId, + int? startIndex, + }) { return PlayRequest( - itemIds: itemIds ?? this.itemIds, - startPositionTicks: startPositionTicks ?? this.startPositionTicks, - playCommand: playCommand ?? this.playCommand, - controllingUserId: controllingUserId ?? this.controllingUserId, - subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, - audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, - mediaSourceId: mediaSourceId ?? this.mediaSourceId, - startIndex: startIndex ?? this.startIndex); + itemIds: itemIds ?? this.itemIds, + startPositionTicks: startPositionTicks ?? this.startPositionTicks, + playCommand: playCommand ?? this.playCommand, + controllingUserId: controllingUserId ?? this.controllingUserId, + subtitleStreamIndex: subtitleStreamIndex ?? this.subtitleStreamIndex, + audioStreamIndex: audioStreamIndex ?? this.audioStreamIndex, + mediaSourceId: mediaSourceId ?? this.mediaSourceId, + startIndex: startIndex ?? this.startIndex, + ); } - PlayRequest copyWithWrapped( - {Wrapped?>? itemIds, - Wrapped? startPositionTicks, - Wrapped? playCommand, - Wrapped? controllingUserId, - Wrapped? subtitleStreamIndex, - Wrapped? audioStreamIndex, - Wrapped? mediaSourceId, - Wrapped? startIndex}) { + PlayRequest copyWithWrapped({ + Wrapped?>? itemIds, + Wrapped? startPositionTicks, + Wrapped? playCommand, + Wrapped? controllingUserId, + Wrapped? subtitleStreamIndex, + Wrapped? audioStreamIndex, + Wrapped? mediaSourceId, + Wrapped? startIndex, + }) { return PlayRequest( - itemIds: (itemIds != null ? itemIds.value : this.itemIds), - 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), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + itemIds: (itemIds != null ? itemIds.value : this.itemIds), + 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), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @@ -34976,14 +38296,20 @@ class PlayRequestDto { return identical(this, other) || (other is PlayRequestDto && (identical(other.playingQueue, playingQueue) || - const DeepCollectionEquality() - .equals(other.playingQueue, playingQueue)) && + const DeepCollectionEquality().equals( + other.playingQueue, + playingQueue, + )) && (identical(other.playingItemPosition, playingItemPosition) || - const DeepCollectionEquality() - .equals(other.playingItemPosition, playingItemPosition)) && + const DeepCollectionEquality().equals( + other.playingItemPosition, + playingItemPosition, + )) && (identical(other.startPositionTicks, startPositionTicks) || - const DeepCollectionEquality() - .equals(other.startPositionTicks, startPositionTicks))); + const DeepCollectionEquality().equals( + other.startPositionTicks, + startPositionTicks, + ))); } @override @@ -34998,39 +38324,40 @@ class PlayRequestDto { } extension $PlayRequestDtoExtension on PlayRequestDto { - PlayRequestDto copyWith( - {List? playingQueue, - int? playingItemPosition, - int? startPositionTicks}) { + PlayRequestDto copyWith({ + List? playingQueue, + int? playingItemPosition, + int? startPositionTicks, + }) { return PlayRequestDto( - playingQueue: playingQueue ?? this.playingQueue, - playingItemPosition: playingItemPosition ?? this.playingItemPosition, - startPositionTicks: startPositionTicks ?? this.startPositionTicks); + playingQueue: playingQueue ?? this.playingQueue, + playingItemPosition: playingItemPosition ?? this.playingItemPosition, + startPositionTicks: startPositionTicks ?? this.startPositionTicks, + ); } - PlayRequestDto copyWithWrapped( - {Wrapped?>? playingQueue, - Wrapped? playingItemPosition, - Wrapped? startPositionTicks}) { + PlayRequestDto copyWithWrapped({ + Wrapped?>? playingQueue, + Wrapped? playingItemPosition, + 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), + ); } } @JsonSerializable(explicitToJson: true) class PlaystateMessage { - const PlaystateMessage({ - this.data, - this.messageId, - this.messageType, - }); + const PlaystateMessage({this.data, this.messageId, this.messageType}); factory PlaystateMessage.fromJson(Map json) => _$PlaystateMessageFromJson(json); @@ -35050,9 +38377,11 @@ class PlaystateMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.playstate); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.playstate, + ); static const fromJsonFactory = _$PlaystateMessageFromJson; @@ -35063,11 +38392,15 @@ class PlaystateMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -35082,25 +38415,28 @@ class PlaystateMessage { } extension $PlaystateMessageExtension on PlaystateMessage { - PlaystateMessage copyWith( - {PlaystateRequest? data, - String? messageId, - enums.SessionMessageType? messageType}) { + PlaystateMessage copyWith({ + PlaystateRequest? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return PlaystateMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - PlaystateMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + PlaystateMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return PlaystateMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -35136,14 +38472,20 @@ class PlaystateRequest { return identical(this, other) || (other is PlaystateRequest && (identical(other.command, command) || - const DeepCollectionEquality() - .equals(other.command, command)) && + const DeepCollectionEquality().equals( + other.command, + command, + )) && (identical(other.seekPositionTicks, seekPositionTicks) || - const DeepCollectionEquality() - .equals(other.seekPositionTicks, seekPositionTicks)) && + const DeepCollectionEquality().equals( + other.seekPositionTicks, + seekPositionTicks, + )) && (identical(other.controllingUserId, controllingUserId) || - const DeepCollectionEquality() - .equals(other.controllingUserId, controllingUserId))); + const DeepCollectionEquality().equals( + other.controllingUserId, + controllingUserId, + ))); } @override @@ -35158,28 +38500,32 @@ class PlaystateRequest { } extension $PlaystateRequestExtension on PlaystateRequest { - PlaystateRequest copyWith( - {enums.PlaystateCommand? command, - int? seekPositionTicks, - String? controllingUserId}) { + PlaystateRequest copyWith({ + enums.PlaystateCommand? command, + int? seekPositionTicks, + String? controllingUserId, + }) { return PlaystateRequest( - command: command ?? this.command, - seekPositionTicks: seekPositionTicks ?? this.seekPositionTicks, - controllingUserId: controllingUserId ?? this.controllingUserId); + command: command ?? this.command, + seekPositionTicks: seekPositionTicks ?? this.seekPositionTicks, + controllingUserId: controllingUserId ?? this.controllingUserId, + ); } - PlaystateRequest copyWithWrapped( - {Wrapped? command, - Wrapped? seekPositionTicks, - Wrapped? controllingUserId}) { + PlaystateRequest copyWithWrapped({ + Wrapped? command, + Wrapped? seekPositionTicks, + Wrapped? controllingUserId, + }) { return PlaystateRequest( - command: (command != null ? command.value : this.command), - seekPositionTicks: (seekPositionTicks != null - ? seekPositionTicks.value - : this.seekPositionTicks), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId)); + command: (command != null ? command.value : this.command), + seekPositionTicks: (seekPositionTicks != null + ? seekPositionTicks.value + : this.seekPositionTicks), + controllingUserId: (controllingUserId != null + ? controllingUserId.value + : this.controllingUserId), + ); } } @@ -35232,22 +38578,32 @@ class PluginInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.configurationFileName, configurationFileName) || const DeepCollectionEquality().equals( - other.configurationFileName, configurationFileName)) && + other.configurationFileName, + configurationFileName, + )) && (identical(other.description, description) || - const DeepCollectionEquality() - .equals(other.description, description)) && + const DeepCollectionEquality().equals( + other.description, + description, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canUninstall, canUninstall) || - const DeepCollectionEquality() - .equals(other.canUninstall, canUninstall)) && + const DeepCollectionEquality().equals( + other.canUninstall, + canUninstall, + )) && (identical(other.hasImage, hasImage) || - const DeepCollectionEquality() - .equals(other.hasImage, hasImage)) && + const DeepCollectionEquality().equals( + other.hasImage, + hasImage, + )) && (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status))); } @@ -35269,49 +38625,53 @@ class PluginInfo { } extension $PluginInfoExtension on PluginInfo { - PluginInfo copyWith( - {String? name, - String? version, - String? configurationFileName, - String? description, - String? id, - bool? canUninstall, - bool? hasImage, - enums.PluginStatus? status}) { + PluginInfo copyWith({ + String? name, + String? version, + String? configurationFileName, + String? description, + String? id, + bool? canUninstall, + bool? hasImage, + enums.PluginStatus? status, + }) { return PluginInfo( - name: name ?? this.name, - version: version ?? this.version, - configurationFileName: - configurationFileName ?? this.configurationFileName, - description: description ?? this.description, - id: id ?? this.id, - canUninstall: canUninstall ?? this.canUninstall, - hasImage: hasImage ?? this.hasImage, - status: status ?? this.status); + name: name ?? this.name, + version: version ?? this.version, + configurationFileName: + configurationFileName ?? this.configurationFileName, + description: description ?? this.description, + id: id ?? this.id, + canUninstall: canUninstall ?? this.canUninstall, + hasImage: hasImage ?? this.hasImage, + status: status ?? this.status, + ); } - PluginInfo copyWithWrapped( - {Wrapped? name, - Wrapped? version, - Wrapped? configurationFileName, - Wrapped? description, - Wrapped? id, - Wrapped? canUninstall, - Wrapped? hasImage, - Wrapped? status}) { + PluginInfo copyWithWrapped({ + Wrapped? name, + Wrapped? version, + Wrapped? configurationFileName, + Wrapped? description, + Wrapped? id, + Wrapped? canUninstall, + Wrapped? hasImage, + Wrapped? status, + }) { return PluginInfo( - name: (name != null ? name.value : this.name), - version: (version != null ? version.value : this.version), - 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), - hasImage: (hasImage != null ? hasImage.value : this.hasImage), - status: (status != null ? status.value : this.status)); + name: (name != null ? name.value : this.name), + version: (version != null ? version.value : this.version), + 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), + hasImage: (hasImage != null ? hasImage.value : this.hasImage), + status: (status != null ? status.value : this.status), + ); } } @@ -35324,8 +38684,8 @@ class PluginInstallationCancelledMessage { }); factory PluginInstallationCancelledMessage.fromJson( - Map json) => - _$PluginInstallationCancelledMessageFromJson(json); + Map json, + ) => _$PluginInstallationCancelledMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCancelledMessageToJson; Map toJson() => @@ -35343,9 +38703,11 @@ class PluginInstallationCancelledMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.packageinstallationcancelled); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.packageinstallationcancelled, + ); static const fromJsonFactory = _$PluginInstallationCancelledMessageFromJson; @@ -35356,11 +38718,15 @@ class PluginInstallationCancelledMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -35376,25 +38742,28 @@ class PluginInstallationCancelledMessage { extension $PluginInstallationCancelledMessageExtension on PluginInstallationCancelledMessage { - PluginInstallationCancelledMessage copyWith( - {InstallationInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + PluginInstallationCancelledMessage copyWith({ + InstallationInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return PluginInstallationCancelledMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - PluginInstallationCancelledMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + PluginInstallationCancelledMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return PluginInstallationCancelledMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -35407,8 +38776,8 @@ class PluginInstallationCompletedMessage { }); factory PluginInstallationCompletedMessage.fromJson( - Map json) => - _$PluginInstallationCompletedMessageFromJson(json); + Map json, + ) => _$PluginInstallationCompletedMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCompletedMessageToJson; Map toJson() => @@ -35426,9 +38795,11 @@ class PluginInstallationCompletedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.packageinstallationcompleted); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.packageinstallationcompleted, + ); static const fromJsonFactory = _$PluginInstallationCompletedMessageFromJson; @@ -35439,11 +38810,15 @@ class PluginInstallationCompletedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -35459,25 +38834,28 @@ class PluginInstallationCompletedMessage { extension $PluginInstallationCompletedMessageExtension on PluginInstallationCompletedMessage { - PluginInstallationCompletedMessage copyWith( - {InstallationInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + PluginInstallationCompletedMessage copyWith({ + InstallationInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return PluginInstallationCompletedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - PluginInstallationCompletedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + PluginInstallationCompletedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return PluginInstallationCompletedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -35508,9 +38886,11 @@ class PluginInstallationFailedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.packageinstallationfailed); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.packageinstallationfailed, + ); static const fromJsonFactory = _$PluginInstallationFailedMessageFromJson; @@ -35521,11 +38901,15 @@ class PluginInstallationFailedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -35541,35 +38925,34 @@ class PluginInstallationFailedMessage { extension $PluginInstallationFailedMessageExtension on PluginInstallationFailedMessage { - PluginInstallationFailedMessage copyWith( - {InstallationInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + PluginInstallationFailedMessage copyWith({ + InstallationInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return PluginInstallationFailedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - PluginInstallationFailedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + PluginInstallationFailedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return PluginInstallationFailedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class PluginInstallingMessage { - const PluginInstallingMessage({ - this.data, - this.messageId, - this.messageType, - }); + const PluginInstallingMessage({this.data, this.messageId, this.messageType}); factory PluginInstallingMessage.fromJson(Map json) => _$PluginInstallingMessageFromJson(json); @@ -35589,9 +38972,11 @@ class PluginInstallingMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.packageinstalling); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.packageinstalling, + ); static const fromJsonFactory = _$PluginInstallingMessageFromJson; @@ -35602,11 +38987,15 @@ class PluginInstallingMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -35621,35 +39010,34 @@ class PluginInstallingMessage { } extension $PluginInstallingMessageExtension on PluginInstallingMessage { - PluginInstallingMessage copyWith( - {InstallationInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + PluginInstallingMessage copyWith({ + InstallationInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return PluginInstallingMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - PluginInstallingMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + PluginInstallingMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return PluginInstallingMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class PluginUninstalledMessage { - const PluginUninstalledMessage({ - this.data, - this.messageId, - this.messageType, - }); + const PluginUninstalledMessage({this.data, this.messageId, this.messageType}); factory PluginUninstalledMessage.fromJson(Map json) => _$PluginUninstalledMessageFromJson(json); @@ -35669,9 +39057,11 @@ class PluginUninstalledMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.packageuninstalled); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.packageuninstalled, + ); static const fromJsonFactory = _$PluginUninstalledMessageFromJson; @@ -35682,11 +39072,15 @@ class PluginUninstalledMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -35701,33 +39095,34 @@ class PluginUninstalledMessage { } extension $PluginUninstalledMessageExtension on PluginUninstalledMessage { - PluginUninstalledMessage copyWith( - {PluginInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + PluginUninstalledMessage copyWith({ + PluginInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return PluginUninstalledMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - PluginUninstalledMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + PluginUninstalledMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return PluginUninstalledMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class PreviousItemRequestDto { - const PreviousItemRequestDto({ - this.playlistItemId, - }); + const PreviousItemRequestDto({this.playlistItemId}); factory PreviousItemRequestDto.fromJson(Map json) => _$PreviousItemRequestDtoFromJson(json); @@ -35744,8 +39139,10 @@ class PreviousItemRequestDto { return identical(this, other) || (other is PreviousItemRequestDto && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -35760,14 +39157,16 @@ class PreviousItemRequestDto { extension $PreviousItemRequestDtoExtension on PreviousItemRequestDto { PreviousItemRequestDto copyWith({String? playlistItemId}) { return PreviousItemRequestDto( - playlistItemId: playlistItemId ?? this.playlistItemId); + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } PreviousItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return PreviousItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId)); + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + ); } } @@ -35812,8 +39211,10 @@ class ProblemDetails { (identical(other.detail, detail) || const DeepCollectionEquality().equals(other.detail, detail)) && (identical(other.instance, instance) || - const DeepCollectionEquality() - .equals(other.instance, instance))); + const DeepCollectionEquality().equals( + other.instance, + instance, + ))); } @override @@ -35830,32 +39231,36 @@ class ProblemDetails { } extension $ProblemDetailsExtension on ProblemDetails { - ProblemDetails copyWith( - {String? type, - String? title, - int? status, - String? detail, - String? instance}) { + ProblemDetails copyWith({ + String? type, + String? title, + int? status, + String? detail, + String? instance, + }) { return ProblemDetails( - type: type ?? this.type, - title: title ?? this.title, - status: status ?? this.status, - detail: detail ?? this.detail, - instance: instance ?? this.instance); + type: type ?? this.type, + title: title ?? this.title, + status: status ?? this.status, + detail: detail ?? this.detail, + instance: instance ?? this.instance, + ); } - ProblemDetails copyWithWrapped( - {Wrapped? type, - Wrapped? title, - Wrapped? status, - Wrapped? detail, - Wrapped? instance}) { + ProblemDetails copyWithWrapped({ + Wrapped? type, + Wrapped? title, + Wrapped? status, + Wrapped? detail, + Wrapped? instance, + }) { return ProblemDetails( - type: (type != null ? type.value : this.type), - title: (title != null ? title.value : this.title), - status: (status != null ? status.value : this.status), - detail: (detail != null ? detail.value : this.detail), - instance: (instance != null ? instance.value : this.instance)); + type: (type != null ? type.value : this.type), + title: (title != null ? title.value : this.title), + status: (status != null ? status.value : this.status), + detail: (detail != null ? detail.value : this.detail), + instance: (instance != null ? instance.value : this.instance), + ); } } @@ -35899,16 +39304,22 @@ class ProfileCondition { return identical(this, other) || (other is ProfileCondition && (identical(other.condition, condition) || - const DeepCollectionEquality() - .equals(other.condition, condition)) && + const DeepCollectionEquality().equals( + other.condition, + condition, + )) && (identical(other.property, property) || - const DeepCollectionEquality() - .equals(other.property, property)) && + const DeepCollectionEquality().equals( + other.property, + property, + )) && (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value)) && (identical(other.isRequired, isRequired) || - const DeepCollectionEquality() - .equals(other.isRequired, isRequired))); + const DeepCollectionEquality().equals( + other.isRequired, + isRequired, + ))); } @override @@ -35924,28 +39335,32 @@ class ProfileCondition { } extension $ProfileConditionExtension on ProfileCondition { - ProfileCondition copyWith( - {enums.ProfileConditionType? condition, - enums.ProfileConditionValue? property, - String? $Value, - bool? isRequired}) { + ProfileCondition copyWith({ + enums.ProfileConditionType? condition, + enums.ProfileConditionValue? property, + String? $Value, + bool? isRequired, + }) { return ProfileCondition( - condition: condition ?? this.condition, - property: property ?? this.property, - $Value: $Value ?? this.$Value, - isRequired: isRequired ?? this.isRequired); + condition: condition ?? this.condition, + property: property ?? this.property, + $Value: $Value ?? this.$Value, + isRequired: isRequired ?? this.isRequired, + ); } - ProfileCondition copyWithWrapped( - {Wrapped? condition, - Wrapped? property, - Wrapped? $Value, - Wrapped? isRequired}) { + ProfileCondition copyWithWrapped({ + Wrapped? condition, + Wrapped? property, + Wrapped? $Value, + Wrapped? isRequired, + }) { return ProfileCondition( - condition: (condition != null ? condition.value : this.condition), - property: (property != null ? property.value : this.property), - $Value: ($Value != null ? $Value.value : this.$Value), - isRequired: (isRequired != null ? isRequired.value : this.isRequired)); + condition: (condition != null ? condition.value : this.condition), + property: (property != null ? property.value : this.property), + $Value: ($Value != null ? $Value.value : this.$Value), + isRequired: (isRequired != null ? isRequired.value : this.isRequired), + ); } } @@ -35989,25 +39404,37 @@ class PublicSystemInfo { return identical(this, other) || (other is PublicSystemInfo && (identical(other.localAddress, localAddress) || - const DeepCollectionEquality() - .equals(other.localAddress, localAddress)) && + const DeepCollectionEquality().equals( + other.localAddress, + localAddress, + )) && (identical(other.serverName, serverName) || - const DeepCollectionEquality() - .equals(other.serverName, serverName)) && + const DeepCollectionEquality().equals( + other.serverName, + serverName, + )) && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.productName, productName) || - const DeepCollectionEquality() - .equals(other.productName, productName)) && + const DeepCollectionEquality().equals( + other.productName, + productName, + )) && (identical(other.operatingSystem, operatingSystem) || - const DeepCollectionEquality() - .equals(other.operatingSystem, operatingSystem)) && + const DeepCollectionEquality().equals( + other.operatingSystem, + operatingSystem, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( - other.startupWizardCompleted, startupWizardCompleted))); + other.startupWizardCompleted, + startupWizardCompleted, + ))); } @override @@ -36026,56 +39453,57 @@ class PublicSystemInfo { } extension $PublicSystemInfoExtension on PublicSystemInfo { - PublicSystemInfo copyWith( - {String? localAddress, - String? serverName, - String? version, - String? productName, - String? operatingSystem, - String? id, - bool? startupWizardCompleted}) { + PublicSystemInfo copyWith({ + String? localAddress, + String? serverName, + String? version, + String? productName, + String? operatingSystem, + String? id, + bool? startupWizardCompleted, + }) { return PublicSystemInfo( - localAddress: localAddress ?? this.localAddress, - serverName: serverName ?? this.serverName, - version: version ?? this.version, - productName: productName ?? this.productName, - operatingSystem: operatingSystem ?? this.operatingSystem, - id: id ?? this.id, - startupWizardCompleted: - startupWizardCompleted ?? this.startupWizardCompleted); + localAddress: localAddress ?? this.localAddress, + serverName: serverName ?? this.serverName, + version: version ?? this.version, + productName: productName ?? this.productName, + operatingSystem: operatingSystem ?? this.operatingSystem, + id: id ?? this.id, + startupWizardCompleted: + startupWizardCompleted ?? this.startupWizardCompleted, + ); } - PublicSystemInfo copyWithWrapped( - {Wrapped? localAddress, - Wrapped? serverName, - Wrapped? version, - Wrapped? productName, - Wrapped? operatingSystem, - Wrapped? id, - Wrapped? startupWizardCompleted}) { + PublicSystemInfo copyWithWrapped({ + Wrapped? localAddress, + Wrapped? serverName, + Wrapped? version, + Wrapped? productName, + Wrapped? operatingSystem, + Wrapped? id, + Wrapped? startupWizardCompleted, + }) { return PublicSystemInfo( - 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), - id: (id != null ? id.value : this.id), - startupWizardCompleted: (startupWizardCompleted != null - ? startupWizardCompleted.value - : this.startupWizardCompleted)); + 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), + id: (id != null ? id.value : this.id), + startupWizardCompleted: (startupWizardCompleted != null + ? startupWizardCompleted.value + : this.startupWizardCompleted), + ); } } @JsonSerializable(explicitToJson: true) class QueryFilters { - const QueryFilters({ - this.genres, - this.tags, - }); + const QueryFilters({this.genres, this.tags}); factory QueryFilters.fromJson(Map json) => _$QueryFiltersFromJson(json); @@ -36114,11 +39542,14 @@ extension $QueryFiltersExtension on QueryFilters { return QueryFilters(genres: genres ?? this.genres, tags: tags ?? this.tags); } - QueryFilters copyWithWrapped( - {Wrapped?>? genres, Wrapped?>? tags}) { + QueryFilters copyWithWrapped({ + Wrapped?>? genres, + Wrapped?>? tags, + }) { return QueryFilters( - genres: (genres != null ? genres.value : this.genres), - tags: (tags != null ? tags.value : this.tags)); + genres: (genres != null ? genres.value : this.genres), + tags: (tags != null ? tags.value : this.tags), + ); } } @@ -36142,7 +39573,10 @@ class QueryFiltersLegacy { @JsonKey(name: 'Tags', includeIfNull: false, defaultValue: []) final List? tags; @JsonKey( - name: 'OfficialRatings', includeIfNull: false, defaultValue: []) + name: 'OfficialRatings', + includeIfNull: false, + defaultValue: [], + ) final List? officialRatings; @JsonKey(name: 'Years', includeIfNull: false, defaultValue: []) final List? years; @@ -36157,8 +39591,10 @@ class QueryFiltersLegacy { (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && (identical(other.officialRatings, officialRatings) || - const DeepCollectionEquality() - .equals(other.officialRatings, officialRatings)) && + const DeepCollectionEquality().equals( + other.officialRatings, + officialRatings, + )) && (identical(other.years, years) || const DeepCollectionEquality().equals(other.years, years))); } @@ -36176,39 +39612,40 @@ class QueryFiltersLegacy { } extension $QueryFiltersLegacyExtension on QueryFiltersLegacy { - QueryFiltersLegacy copyWith( - {List? genres, - List? tags, - List? officialRatings, - List? years}) { + QueryFiltersLegacy copyWith({ + List? genres, + List? tags, + List? officialRatings, + List? years, + }) { return QueryFiltersLegacy( - genres: genres ?? this.genres, - tags: tags ?? this.tags, - officialRatings: officialRatings ?? this.officialRatings, - years: years ?? this.years); + genres: genres ?? this.genres, + tags: tags ?? this.tags, + officialRatings: officialRatings ?? this.officialRatings, + years: years ?? this.years, + ); } - QueryFiltersLegacy copyWithWrapped( - {Wrapped?>? genres, - Wrapped?>? tags, - Wrapped?>? officialRatings, - Wrapped?>? years}) { + QueryFiltersLegacy copyWithWrapped({ + Wrapped?>? genres, + Wrapped?>? tags, + Wrapped?>? officialRatings, + Wrapped?>? years, + }) { return QueryFiltersLegacy( - genres: (genres != null ? genres.value : this.genres), - tags: (tags != null ? tags.value : this.tags), - officialRatings: (officialRatings != null - ? officialRatings.value - : this.officialRatings), - years: (years != null ? years.value : this.years)); + genres: (genres != null ? genres.value : this.genres), + tags: (tags != null ? tags.value : this.tags), + officialRatings: (officialRatings != null + ? officialRatings.value + : this.officialRatings), + years: (years != null ? years.value : this.years), + ); } } @JsonSerializable(explicitToJson: true) class QueueItem { - const QueueItem({ - this.id, - this.playlistItemId, - }); + const QueueItem({this.id, this.playlistItemId}); factory QueueItem.fromJson(Map json) => _$QueueItemFromJson(json); @@ -36229,8 +39666,10 @@ class QueueItem { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -36246,26 +39685,27 @@ class QueueItem { extension $QueueItemExtension on QueueItem { QueueItem copyWith({String? id, String? playlistItemId}) { return QueueItem( - id: id ?? this.id, - playlistItemId: playlistItemId ?? this.playlistItemId); + id: id ?? this.id, + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } - QueueItem copyWithWrapped( - {Wrapped? id, Wrapped? playlistItemId}) { + QueueItem copyWithWrapped({ + Wrapped? id, + Wrapped? playlistItemId, + }) { return QueueItem( - id: (id != null ? id.value : this.id), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId)); + id: (id != null ? id.value : this.id), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + ); } } @JsonSerializable(explicitToJson: true) class QueueRequestDto { - const QueueRequestDto({ - this.itemIds, - this.mode, - }); + const QueueRequestDto({this.itemIds, this.mode}); factory QueueRequestDto.fromJson(Map json) => _$QueueRequestDtoFromJson(json); @@ -36289,8 +39729,10 @@ class QueueRequestDto { return identical(this, other) || (other is QueueRequestDto && (identical(other.itemIds, itemIds) || - const DeepCollectionEquality() - .equals(other.itemIds, itemIds)) && + const DeepCollectionEquality().equals( + other.itemIds, + itemIds, + )) && (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); } @@ -36306,25 +39748,30 @@ class QueueRequestDto { } extension $QueueRequestDtoExtension on QueueRequestDto { - QueueRequestDto copyWith( - {List? itemIds, enums.GroupQueueMode? mode}) { + QueueRequestDto copyWith({ + List? itemIds, + enums.GroupQueueMode? mode, + }) { return QueueRequestDto( - itemIds: itemIds ?? this.itemIds, mode: mode ?? this.mode); + itemIds: itemIds ?? this.itemIds, + mode: mode ?? this.mode, + ); } - QueueRequestDto copyWithWrapped( - {Wrapped?>? itemIds, Wrapped? mode}) { + QueueRequestDto copyWithWrapped({ + Wrapped?>? itemIds, + Wrapped? mode, + }) { return QueueRequestDto( - itemIds: (itemIds != null ? itemIds.value : this.itemIds), - mode: (mode != null ? mode.value : this.mode)); + itemIds: (itemIds != null ? itemIds.value : this.itemIds), + mode: (mode != null ? mode.value : this.mode), + ); } } @JsonSerializable(explicitToJson: true) class QuickConnectDto { - const QuickConnectDto({ - required this.secret, - }); + const QuickConnectDto({required this.secret}); factory QuickConnectDto.fromJson(Map json) => _$QuickConnectDtoFromJson(json); @@ -36359,7 +39806,8 @@ extension $QuickConnectDtoExtension on QuickConnectDto { QuickConnectDto copyWithWrapped({Wrapped? secret}) { return QuickConnectDto( - secret: (secret != null ? secret.value : this.secret)); + secret: (secret != null ? secret.value : this.secret), + ); } } @@ -36405,27 +39853,39 @@ class QuickConnectResult { return identical(this, other) || (other is QuickConnectResult && (identical(other.authenticated, authenticated) || - const DeepCollectionEquality() - .equals(other.authenticated, authenticated)) && + const DeepCollectionEquality().equals( + 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.deviceId, deviceId) || - const DeepCollectionEquality() - .equals(other.deviceId, deviceId)) && + const DeepCollectionEquality().equals( + other.deviceId, + deviceId, + )) && (identical(other.deviceName, deviceName) || - const DeepCollectionEquality() - .equals(other.deviceName, deviceName)) && + const DeepCollectionEquality().equals( + other.deviceName, + deviceName, + )) && (identical(other.appName, appName) || - const DeepCollectionEquality() - .equals(other.appName, appName)) && + const DeepCollectionEquality().equals( + other.appName, + appName, + )) && (identical(other.appVersion, appVersion) || - const DeepCollectionEquality() - .equals(other.appVersion, appVersion)) && + const DeepCollectionEquality().equals( + other.appVersion, + appVersion, + )) && (identical(other.dateAdded, dateAdded) || - const DeepCollectionEquality() - .equals(other.dateAdded, dateAdded))); + const DeepCollectionEquality().equals( + other.dateAdded, + dateAdded, + ))); } @override @@ -36445,45 +39905,50 @@ class QuickConnectResult { } extension $QuickConnectResultExtension on QuickConnectResult { - QuickConnectResult copyWith( - {bool? authenticated, - String? secret, - String? code, - String? deviceId, - String? deviceName, - String? appName, - String? appVersion, - DateTime? dateAdded}) { + QuickConnectResult copyWith({ + bool? authenticated, + String? secret, + String? code, + String? deviceId, + String? deviceName, + String? appName, + String? appVersion, + DateTime? dateAdded, + }) { return QuickConnectResult( - authenticated: authenticated ?? this.authenticated, - secret: secret ?? this.secret, - code: code ?? this.code, - deviceId: deviceId ?? this.deviceId, - deviceName: deviceName ?? this.deviceName, - appName: appName ?? this.appName, - appVersion: appVersion ?? this.appVersion, - dateAdded: dateAdded ?? this.dateAdded); + authenticated: authenticated ?? this.authenticated, + secret: secret ?? this.secret, + code: code ?? this.code, + deviceId: deviceId ?? this.deviceId, + deviceName: deviceName ?? this.deviceName, + appName: appName ?? this.appName, + appVersion: appVersion ?? this.appVersion, + dateAdded: dateAdded ?? this.dateAdded, + ); } - QuickConnectResult copyWithWrapped( - {Wrapped? authenticated, - Wrapped? secret, - Wrapped? code, - Wrapped? deviceId, - Wrapped? deviceName, - Wrapped? appName, - Wrapped? appVersion, - Wrapped? dateAdded}) { + QuickConnectResult copyWithWrapped({ + Wrapped? authenticated, + Wrapped? secret, + Wrapped? code, + Wrapped? deviceId, + Wrapped? deviceName, + Wrapped? appName, + Wrapped? appVersion, + Wrapped? dateAdded, + }) { return QuickConnectResult( - 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), - deviceName: (deviceName != null ? deviceName.value : this.deviceName), - appName: (appName != null ? appName.value : this.appName), - appVersion: (appVersion != null ? appVersion.value : this.appVersion), - dateAdded: (dateAdded != null ? dateAdded.value : this.dateAdded)); + 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), + deviceName: (deviceName != null ? deviceName.value : this.deviceName), + appName: (appName != null ? appName.value : this.appName), + appVersion: (appVersion != null ? appVersion.value : this.appVersion), + dateAdded: (dateAdded != null ? dateAdded.value : this.dateAdded), + ); } } @@ -36519,14 +39984,20 @@ class ReadyRequestDto { (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks)) && + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + )) && (identical(other.isPlaying, isPlaying) || - const DeepCollectionEquality() - .equals(other.isPlaying, isPlaying)) && + const DeepCollectionEquality().equals( + other.isPlaying, + isPlaying, + )) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -36542,31 +40013,36 @@ class ReadyRequestDto { } extension $ReadyRequestDtoExtension on ReadyRequestDto { - ReadyRequestDto copyWith( - {DateTime? when, - int? positionTicks, - bool? isPlaying, - String? playlistItemId}) { + ReadyRequestDto copyWith({ + DateTime? when, + int? positionTicks, + bool? isPlaying, + String? playlistItemId, + }) { return ReadyRequestDto( - when: when ?? this.when, - positionTicks: positionTicks ?? this.positionTicks, - isPlaying: isPlaying ?? this.isPlaying, - playlistItemId: playlistItemId ?? this.playlistItemId); + when: when ?? this.when, + positionTicks: positionTicks ?? this.positionTicks, + isPlaying: isPlaying ?? this.isPlaying, + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } - ReadyRequestDto copyWithWrapped( - {Wrapped? when, - Wrapped? positionTicks, - Wrapped? isPlaying, - Wrapped? playlistItemId}) { + ReadyRequestDto copyWithWrapped({ + Wrapped? when, + Wrapped? positionTicks, + Wrapped? isPlaying, + Wrapped? playlistItemId, + }) { return ReadyRequestDto( - when: (when != null ? when.value : this.when), - positionTicks: - (positionTicks != null ? positionTicks.value : this.positionTicks), - isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId)); + when: (when != null ? when.value : this.when), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), + isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + ); } } @@ -36607,14 +40083,20 @@ class RecommendationDto { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.recommendationType, recommendationType) || - const DeepCollectionEquality() - .equals(other.recommendationType, recommendationType)) && + const DeepCollectionEquality().equals( + other.recommendationType, + recommendationType, + )) && (identical(other.baselineItemName, baselineItemName) || - const DeepCollectionEquality() - .equals(other.baselineItemName, baselineItemName)) && + const DeepCollectionEquality().equals( + other.baselineItemName, + baselineItemName, + )) && (identical(other.categoryId, categoryId) || - const DeepCollectionEquality() - .equals(other.categoryId, categoryId))); + const DeepCollectionEquality().equals( + other.categoryId, + categoryId, + ))); } @override @@ -36630,42 +40112,42 @@ class RecommendationDto { } extension $RecommendationDtoExtension on RecommendationDto { - RecommendationDto copyWith( - {List? items, - enums.RecommendationType? recommendationType, - String? baselineItemName, - String? categoryId}) { + RecommendationDto copyWith({ + List? items, + enums.RecommendationType? recommendationType, + String? baselineItemName, + String? categoryId, + }) { return RecommendationDto( - items: items ?? this.items, - recommendationType: recommendationType ?? this.recommendationType, - baselineItemName: baselineItemName ?? this.baselineItemName, - categoryId: categoryId ?? this.categoryId); + items: items ?? this.items, + recommendationType: recommendationType ?? this.recommendationType, + baselineItemName: baselineItemName ?? this.baselineItemName, + categoryId: categoryId ?? this.categoryId, + ); } - RecommendationDto copyWithWrapped( - {Wrapped?>? items, - Wrapped? recommendationType, - Wrapped? baselineItemName, - Wrapped? categoryId}) { + RecommendationDto copyWithWrapped({ + Wrapped?>? items, + Wrapped? recommendationType, + Wrapped? baselineItemName, + Wrapped? categoryId, + }) { return RecommendationDto( - items: (items != null ? items.value : this.items), - recommendationType: (recommendationType != null - ? recommendationType.value - : this.recommendationType), - baselineItemName: (baselineItemName != null - ? baselineItemName.value - : this.baselineItemName), - categoryId: (categoryId != null ? categoryId.value : this.categoryId)); + items: (items != null ? items.value : this.items), + recommendationType: (recommendationType != null + ? recommendationType.value + : this.recommendationType), + baselineItemName: (baselineItemName != null + ? baselineItemName.value + : this.baselineItemName), + categoryId: (categoryId != null ? categoryId.value : this.categoryId), + ); } } @JsonSerializable(explicitToJson: true) class RefreshProgressMessage { - const RefreshProgressMessage({ - this.data, - this.messageId, - this.messageType, - }); + const RefreshProgressMessage({this.data, this.messageId, this.messageType}); factory RefreshProgressMessage.fromJson(Map json) => _$RefreshProgressMessageFromJson(json); @@ -36685,9 +40167,11 @@ class RefreshProgressMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.refreshprogress); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.refreshprogress, + ); static const fromJsonFactory = _$RefreshProgressMessageFromJson; @@ -36698,11 +40182,15 @@ class RefreshProgressMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -36717,25 +40205,28 @@ class RefreshProgressMessage { } extension $RefreshProgressMessageExtension on RefreshProgressMessage { - RefreshProgressMessage copyWith( - {Map? data, - String? messageId, - enums.SessionMessageType? messageType}) { + RefreshProgressMessage copyWith({ + Map? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return RefreshProgressMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - RefreshProgressMessage copyWithWrapped( - {Wrapped?>? data, - Wrapped? messageId, - Wrapped? messageType}) { + RefreshProgressMessage copyWithWrapped({ + Wrapped?>? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return RefreshProgressMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -36797,31 +40288,43 @@ class RemoteImageInfo { return identical(this, other) || (other is RemoteImageInfo && (identical(other.providerName, providerName) || - const DeepCollectionEquality() - .equals(other.providerName, providerName)) && + const DeepCollectionEquality().equals( + other.providerName, + providerName, + )) && (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && (identical(other.thumbnailUrl, thumbnailUrl) || - const DeepCollectionEquality() - .equals(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.communityRating, communityRating) || - const DeepCollectionEquality() - .equals(other.communityRating, communityRating)) && + const DeepCollectionEquality().equals( + other.communityRating, + communityRating, + )) && (identical(other.voteCount, voteCount) || - const DeepCollectionEquality() - .equals(other.voteCount, voteCount)) && + const DeepCollectionEquality().equals( + other.voteCount, + voteCount, + )) && (identical(other.language, language) || - const DeepCollectionEquality() - .equals(other.language, language)) && + const DeepCollectionEquality().equals( + other.language, + language, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.ratingType, ratingType) || - const DeepCollectionEquality() - .equals(other.ratingType, ratingType))); + const DeepCollectionEquality().equals( + other.ratingType, + ratingType, + ))); } @override @@ -36843,66 +40346,68 @@ class RemoteImageInfo { } extension $RemoteImageInfoExtension on RemoteImageInfo { - RemoteImageInfo copyWith( - {String? providerName, - String? url, - String? thumbnailUrl, - int? height, - int? width, - double? communityRating, - int? voteCount, - String? language, - enums.ImageType? type, - enums.RatingType? ratingType}) { + RemoteImageInfo copyWith({ + String? providerName, + String? url, + String? thumbnailUrl, + int? height, + int? width, + double? communityRating, + int? voteCount, + String? language, + enums.ImageType? type, + enums.RatingType? ratingType, + }) { return RemoteImageInfo( - providerName: providerName ?? this.providerName, - url: url ?? this.url, - thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl, - height: height ?? this.height, - width: width ?? this.width, - communityRating: communityRating ?? this.communityRating, - voteCount: voteCount ?? this.voteCount, - language: language ?? this.language, - type: type ?? this.type, - ratingType: ratingType ?? this.ratingType); + providerName: providerName ?? this.providerName, + url: url ?? this.url, + thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl, + height: height ?? this.height, + width: width ?? this.width, + communityRating: communityRating ?? this.communityRating, + voteCount: voteCount ?? this.voteCount, + language: language ?? this.language, + type: type ?? this.type, + ratingType: ratingType ?? this.ratingType, + ); } - RemoteImageInfo copyWithWrapped( - {Wrapped? providerName, - Wrapped? url, - Wrapped? thumbnailUrl, - Wrapped? height, - Wrapped? width, - Wrapped? communityRating, - Wrapped? voteCount, - Wrapped? language, - Wrapped? type, - Wrapped? ratingType}) { + RemoteImageInfo copyWithWrapped({ + Wrapped? providerName, + Wrapped? url, + Wrapped? thumbnailUrl, + Wrapped? height, + Wrapped? width, + Wrapped? communityRating, + Wrapped? voteCount, + Wrapped? language, + Wrapped? type, + Wrapped? ratingType, + }) { return RemoteImageInfo( - providerName: - (providerName != null ? providerName.value : this.providerName), - url: (url != null ? url.value : this.url), - 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), - voteCount: (voteCount != null ? voteCount.value : this.voteCount), - language: (language != null ? language.value : this.language), - type: (type != null ? type.value : this.type), - ratingType: (ratingType != null ? ratingType.value : this.ratingType)); + providerName: (providerName != null + ? providerName.value + : this.providerName), + url: (url != null ? url.value : this.url), + 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), + voteCount: (voteCount != null ? voteCount.value : this.voteCount), + language: (language != null ? language.value : this.language), + type: (type != null ? type.value : this.type), + ratingType: (ratingType != null ? ratingType.value : this.ratingType), + ); } } @JsonSerializable(explicitToJson: true) class RemoteImageResult { - const RemoteImageResult({ - this.images, - this.totalRecordCount, - this.providers, - }); + const RemoteImageResult({this.images, this.totalRecordCount, this.providers}); factory RemoteImageResult.fromJson(Map json) => _$RemoteImageResultFromJson(json); @@ -36911,7 +40416,10 @@ class RemoteImageResult { Map toJson() => _$RemoteImageResultToJson(this); @JsonKey( - name: 'Images', includeIfNull: false, defaultValue: []) + name: 'Images', + includeIfNull: false, + defaultValue: [], + ) final List? images; @JsonKey(name: 'TotalRecordCount', includeIfNull: false) final int? totalRecordCount; @@ -36926,11 +40434,15 @@ class RemoteImageResult { (identical(other.images, images) || const DeepCollectionEquality().equals(other.images, images)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.providers, providers) || - const DeepCollectionEquality() - .equals(other.providers, providers))); + const DeepCollectionEquality().equals( + other.providers, + providers, + ))); } @override @@ -36945,36 +40457,36 @@ class RemoteImageResult { } extension $RemoteImageResultExtension on RemoteImageResult { - RemoteImageResult copyWith( - {List? images, - int? totalRecordCount, - List? providers}) { + RemoteImageResult copyWith({ + List? images, + int? totalRecordCount, + List? providers, + }) { return RemoteImageResult( - images: images ?? this.images, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - providers: providers ?? this.providers); + images: images ?? this.images, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + providers: providers ?? this.providers, + ); } - RemoteImageResult copyWithWrapped( - {Wrapped?>? images, - Wrapped? totalRecordCount, - Wrapped?>? providers}) { + RemoteImageResult copyWithWrapped({ + Wrapped?>? images, + Wrapped? totalRecordCount, + Wrapped?>? providers, + }) { return RemoteImageResult( - images: (images != null ? images.value : this.images), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - providers: (providers != null ? providers.value : this.providers)); + images: (images != null ? images.value : this.images), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + providers: (providers != null ? providers.value : this.providers), + ); } } @JsonSerializable(explicitToJson: true) class RemoteLyricInfoDto { - const RemoteLyricInfoDto({ - this.id, - this.providerName, - this.lyrics, - }); + const RemoteLyricInfoDto({this.id, this.providerName, this.lyrics}); factory RemoteLyricInfoDto.fromJson(Map json) => _$RemoteLyricInfoDtoFromJson(json); @@ -36997,8 +40509,10 @@ class RemoteLyricInfoDto { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || - const DeepCollectionEquality() - .equals(other.providerName, providerName)) && + const DeepCollectionEquality().equals( + other.providerName, + providerName, + )) && (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @@ -37015,23 +40529,30 @@ class RemoteLyricInfoDto { } extension $RemoteLyricInfoDtoExtension on RemoteLyricInfoDto { - RemoteLyricInfoDto copyWith( - {String? id, String? providerName, LyricDto? lyrics}) { + RemoteLyricInfoDto copyWith({ + String? id, + String? providerName, + LyricDto? lyrics, + }) { return RemoteLyricInfoDto( - id: id ?? this.id, - providerName: providerName ?? this.providerName, - lyrics: lyrics ?? this.lyrics); + id: id ?? this.id, + providerName: providerName ?? this.providerName, + lyrics: lyrics ?? this.lyrics, + ); } - RemoteLyricInfoDto copyWithWrapped( - {Wrapped? id, - Wrapped? providerName, - Wrapped? lyrics}) { + RemoteLyricInfoDto copyWithWrapped({ + Wrapped? id, + Wrapped? providerName, + Wrapped? lyrics, + }) { return RemoteLyricInfoDto( - id: (id != null ? id.value : this.id), - providerName: - (providerName != null ? providerName.value : this.providerName), - lyrics: (lyrics != null ? lyrics.value : this.lyrics)); + id: (id != null ? id.value : this.id), + providerName: (providerName != null + ? providerName.value + : this.providerName), + lyrics: (lyrics != null ? lyrics.value : this.lyrics), + ); } } @@ -37081,9 +40602,10 @@ class RemoteSearchResult { @JsonKey(name: 'AlbumArtist', includeIfNull: false) final RemoteSearchResult? albumArtist; @JsonKey( - name: 'Artists', - includeIfNull: false, - defaultValue: []) + name: 'Artists', + includeIfNull: false, + defaultValue: [], + ) final List? artists; static const fromJsonFactory = _$RemoteSearchResultFromJson; @@ -37094,35 +40616,55 @@ class RemoteSearchResult { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.productionYear, productionYear) || - const DeepCollectionEquality() - .equals(other.productionYear, productionYear)) && + const DeepCollectionEquality().equals( + other.productionYear, + productionYear, + )) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.indexNumberEnd, indexNumberEnd) || - const DeepCollectionEquality() - .equals(other.indexNumberEnd, indexNumberEnd)) && + const DeepCollectionEquality().equals( + other.indexNumberEnd, + indexNumberEnd, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.imageUrl, imageUrl) || - const DeepCollectionEquality() - .equals(other.imageUrl, imageUrl)) && + const DeepCollectionEquality().equals( + other.imageUrl, + imageUrl, + )) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && + const DeepCollectionEquality().equals( + other.searchProviderName, + searchProviderName, + )) && (identical(other.overview, overview) || - const DeepCollectionEquality() - .equals(other.overview, overview)) && + const DeepCollectionEquality().equals( + other.overview, + overview, + )) && (identical(other.albumArtist, albumArtist) || - const DeepCollectionEquality() - .equals(other.albumArtist, albumArtist)) && + const DeepCollectionEquality().equals( + other.albumArtist, + albumArtist, + )) && (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @@ -37148,72 +40690,74 @@ class RemoteSearchResult { } extension $RemoteSearchResultExtension on RemoteSearchResult { - RemoteSearchResult copyWith( - {String? name, - Map? providerIds, - int? productionYear, - int? indexNumber, - int? indexNumberEnd, - int? parentIndexNumber, - DateTime? premiereDate, - String? imageUrl, - String? searchProviderName, - String? overview, - RemoteSearchResult? albumArtist, - List? artists}) { + RemoteSearchResult copyWith({ + String? name, + Map? providerIds, + int? productionYear, + int? indexNumber, + int? indexNumberEnd, + int? parentIndexNumber, + DateTime? premiereDate, + String? imageUrl, + String? searchProviderName, + String? overview, + RemoteSearchResult? albumArtist, + List? artists, + }) { return RemoteSearchResult( - name: name ?? this.name, - providerIds: providerIds ?? this.providerIds, - productionYear: productionYear ?? this.productionYear, - indexNumber: indexNumber ?? this.indexNumber, - indexNumberEnd: indexNumberEnd ?? this.indexNumberEnd, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - imageUrl: imageUrl ?? this.imageUrl, - searchProviderName: searchProviderName ?? this.searchProviderName, - overview: overview ?? this.overview, - albumArtist: albumArtist ?? this.albumArtist, - artists: artists ?? this.artists); + name: name ?? this.name, + providerIds: providerIds ?? this.providerIds, + productionYear: productionYear ?? this.productionYear, + indexNumber: indexNumber ?? this.indexNumber, + indexNumberEnd: indexNumberEnd ?? this.indexNumberEnd, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + imageUrl: imageUrl ?? this.imageUrl, + searchProviderName: searchProviderName ?? this.searchProviderName, + overview: overview ?? this.overview, + albumArtist: albumArtist ?? this.albumArtist, + artists: artists ?? this.artists, + ); } - RemoteSearchResult copyWithWrapped( - {Wrapped? name, - Wrapped?>? providerIds, - Wrapped? productionYear, - Wrapped? indexNumber, - Wrapped? indexNumberEnd, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? imageUrl, - Wrapped? searchProviderName, - Wrapped? overview, - Wrapped? albumArtist, - Wrapped?>? artists}) { + RemoteSearchResult copyWithWrapped({ + Wrapped? name, + Wrapped?>? providerIds, + Wrapped? productionYear, + Wrapped? indexNumber, + Wrapped? indexNumberEnd, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? imageUrl, + Wrapped? searchProviderName, + Wrapped? overview, + Wrapped? albumArtist, + Wrapped?>? artists, + }) { return RemoteSearchResult( - name: (name != null ? name.value : this.name), - providerIds: - (providerIds != null ? providerIds.value : this.providerIds), - 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), - imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl), - 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)); + name: (name != null ? name.value : this.name), + providerIds: (providerIds != null ? providerIds.value : this.providerIds), + 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), + imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl), + 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), + ); } } @@ -37282,16 +40826,21 @@ class RemoteSubtitleInfo { bool operator ==(Object other) { return identical(this, other) || (other is RemoteSubtitleInfo && - (identical(other.threeLetterISOLanguageName, - threeLetterISOLanguageName) || + (identical( + other.threeLetterISOLanguageName, + threeLetterISOLanguageName, + ) || const DeepCollectionEquality().equals( - other.threeLetterISOLanguageName, - threeLetterISOLanguageName)) && + other.threeLetterISOLanguageName, + threeLetterISOLanguageName, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || - const DeepCollectionEquality() - .equals(other.providerName, providerName)) && + const DeepCollectionEquality().equals( + other.providerName, + providerName, + )) && (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.format, format) || @@ -37299,34 +40848,52 @@ class RemoteSubtitleInfo { (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && (identical(other.comment, comment) || - const DeepCollectionEquality() - .equals(other.comment, comment)) && + const DeepCollectionEquality().equals( + other.comment, + comment, + )) && (identical(other.dateCreated, dateCreated) || - const DeepCollectionEquality() - .equals(other.dateCreated, dateCreated)) && + const DeepCollectionEquality().equals( + other.dateCreated, + dateCreated, + )) && (identical(other.communityRating, communityRating) || - const DeepCollectionEquality() - .equals(other.communityRating, communityRating)) && + const DeepCollectionEquality().equals( + other.communityRating, + communityRating, + )) && (identical(other.frameRate, frameRate) || - const DeepCollectionEquality() - .equals(other.frameRate, frameRate)) && + const DeepCollectionEquality().equals( + other.frameRate, + frameRate, + )) && (identical(other.downloadCount, downloadCount) || - const DeepCollectionEquality() - .equals(other.downloadCount, downloadCount)) && + const DeepCollectionEquality().equals( + other.downloadCount, + downloadCount, + )) && (identical(other.isHashMatch, isHashMatch) || - const DeepCollectionEquality() - .equals(other.isHashMatch, isHashMatch)) && + const DeepCollectionEquality().equals( + other.isHashMatch, + isHashMatch, + )) && (identical(other.aiTranslated, aiTranslated) || - const DeepCollectionEquality() - .equals(other.aiTranslated, aiTranslated)) && + const DeepCollectionEquality().equals( + other.aiTranslated, + aiTranslated, + )) && (identical(other.machineTranslated, machineTranslated) || - const DeepCollectionEquality() - .equals(other.machineTranslated, machineTranslated)) && + const DeepCollectionEquality().equals( + other.machineTranslated, + machineTranslated, + )) && (identical(other.forced, forced) || const DeepCollectionEquality().equals(other.forced, forced)) && (identical(other.hearingImpaired, hearingImpaired) || - const DeepCollectionEquality() - .equals(other.hearingImpaired, hearingImpaired))); + const DeepCollectionEquality().equals( + other.hearingImpaired, + hearingImpaired, + ))); } @override @@ -37354,90 +40921,95 @@ class RemoteSubtitleInfo { } extension $RemoteSubtitleInfoExtension on RemoteSubtitleInfo { - RemoteSubtitleInfo copyWith( - {String? threeLetterISOLanguageName, - String? id, - String? providerName, - String? name, - String? format, - String? author, - String? comment, - DateTime? dateCreated, - double? communityRating, - double? frameRate, - int? downloadCount, - bool? isHashMatch, - bool? aiTranslated, - bool? machineTranslated, - bool? forced, - bool? hearingImpaired}) { + RemoteSubtitleInfo copyWith({ + String? threeLetterISOLanguageName, + String? id, + String? providerName, + String? name, + String? format, + String? author, + String? comment, + DateTime? dateCreated, + double? communityRating, + double? frameRate, + int? downloadCount, + bool? isHashMatch, + bool? aiTranslated, + bool? machineTranslated, + bool? forced, + bool? hearingImpaired, + }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: - threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, - id: id ?? this.id, - providerName: providerName ?? this.providerName, - name: name ?? this.name, - format: format ?? this.format, - author: author ?? this.author, - comment: comment ?? this.comment, - dateCreated: dateCreated ?? this.dateCreated, - communityRating: communityRating ?? this.communityRating, - frameRate: frameRate ?? this.frameRate, - downloadCount: downloadCount ?? this.downloadCount, - isHashMatch: isHashMatch ?? this.isHashMatch, - aiTranslated: aiTranslated ?? this.aiTranslated, - machineTranslated: machineTranslated ?? this.machineTranslated, - forced: forced ?? this.forced, - hearingImpaired: hearingImpaired ?? this.hearingImpaired); + threeLetterISOLanguageName: + threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + id: id ?? this.id, + providerName: providerName ?? this.providerName, + name: name ?? this.name, + format: format ?? this.format, + author: author ?? this.author, + comment: comment ?? this.comment, + dateCreated: dateCreated ?? this.dateCreated, + communityRating: communityRating ?? this.communityRating, + frameRate: frameRate ?? this.frameRate, + downloadCount: downloadCount ?? this.downloadCount, + isHashMatch: isHashMatch ?? this.isHashMatch, + aiTranslated: aiTranslated ?? this.aiTranslated, + machineTranslated: machineTranslated ?? this.machineTranslated, + forced: forced ?? this.forced, + hearingImpaired: hearingImpaired ?? this.hearingImpaired, + ); } - RemoteSubtitleInfo copyWithWrapped( - {Wrapped? threeLetterISOLanguageName, - Wrapped? id, - Wrapped? providerName, - Wrapped? name, - Wrapped? format, - Wrapped? author, - Wrapped? comment, - Wrapped? dateCreated, - Wrapped? communityRating, - Wrapped? frameRate, - Wrapped? downloadCount, - Wrapped? isHashMatch, - Wrapped? aiTranslated, - Wrapped? machineTranslated, - Wrapped? forced, - Wrapped? hearingImpaired}) { + RemoteSubtitleInfo copyWithWrapped({ + Wrapped? threeLetterISOLanguageName, + Wrapped? id, + Wrapped? providerName, + Wrapped? name, + Wrapped? format, + Wrapped? author, + Wrapped? comment, + Wrapped? dateCreated, + Wrapped? communityRating, + Wrapped? frameRate, + Wrapped? downloadCount, + Wrapped? isHashMatch, + Wrapped? aiTranslated, + Wrapped? machineTranslated, + Wrapped? forced, + Wrapped? hearingImpaired, + }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: (threeLetterISOLanguageName != null - ? threeLetterISOLanguageName.value - : this.threeLetterISOLanguageName), - id: (id != null ? id.value : this.id), - 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), - frameRate: (frameRate != null ? frameRate.value : this.frameRate), - 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), - forced: (forced != null ? forced.value : this.forced), - hearingImpaired: (hearingImpaired != null - ? hearingImpaired.value - : this.hearingImpaired)); + threeLetterISOLanguageName: (threeLetterISOLanguageName != null + ? threeLetterISOLanguageName.value + : this.threeLetterISOLanguageName), + id: (id != null ? id.value : this.id), + 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), + frameRate: (frameRate != null ? frameRate.value : this.frameRate), + 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), + forced: (forced != null ? forced.value : this.forced), + hearingImpaired: (hearingImpaired != null + ? hearingImpaired.value + : this.hearingImpaired), + ); } } @@ -37456,7 +41028,10 @@ class RemoveFromPlaylistRequestDto { Map toJson() => _$RemoveFromPlaylistRequestDtoToJson(this); @JsonKey( - name: 'PlaylistItemIds', includeIfNull: false, defaultValue: []) + name: 'PlaylistItemIds', + includeIfNull: false, + defaultValue: [], + ) final List? playlistItemIds; @JsonKey(name: 'ClearPlaylist', includeIfNull: false) final bool? clearPlaylist; @@ -37469,14 +41044,20 @@ class RemoveFromPlaylistRequestDto { return identical(this, other) || (other is RemoveFromPlaylistRequestDto && (identical(other.playlistItemIds, playlistItemIds) || - const DeepCollectionEquality() - .equals(other.playlistItemIds, playlistItemIds)) && + const DeepCollectionEquality().equals( + other.playlistItemIds, + playlistItemIds, + )) && (identical(other.clearPlaylist, clearPlaylist) || - const DeepCollectionEquality() - .equals(other.clearPlaylist, clearPlaylist)) && + const DeepCollectionEquality().equals( + other.clearPlaylist, + clearPlaylist, + )) && (identical(other.clearPlayingItem, clearPlayingItem) || - const DeepCollectionEquality() - .equals(other.clearPlayingItem, clearPlayingItem))); + const DeepCollectionEquality().equals( + other.clearPlayingItem, + clearPlayingItem, + ))); } @override @@ -37492,39 +41073,40 @@ class RemoveFromPlaylistRequestDto { extension $RemoveFromPlaylistRequestDtoExtension on RemoveFromPlaylistRequestDto { - RemoveFromPlaylistRequestDto copyWith( - {List? playlistItemIds, - bool? clearPlaylist, - bool? clearPlayingItem}) { + RemoveFromPlaylistRequestDto copyWith({ + List? playlistItemIds, + bool? clearPlaylist, + bool? clearPlayingItem, + }) { return RemoveFromPlaylistRequestDto( - playlistItemIds: playlistItemIds ?? this.playlistItemIds, - clearPlaylist: clearPlaylist ?? this.clearPlaylist, - clearPlayingItem: clearPlayingItem ?? this.clearPlayingItem); + playlistItemIds: playlistItemIds ?? this.playlistItemIds, + clearPlaylist: clearPlaylist ?? this.clearPlaylist, + clearPlayingItem: clearPlayingItem ?? this.clearPlayingItem, + ); } - RemoveFromPlaylistRequestDto copyWithWrapped( - {Wrapped?>? playlistItemIds, - Wrapped? clearPlaylist, - Wrapped? clearPlayingItem}) { + RemoveFromPlaylistRequestDto copyWithWrapped({ + Wrapped?>? playlistItemIds, + Wrapped? clearPlaylist, + 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), + ); } } @JsonSerializable(explicitToJson: true) class RepositoryInfo { - const RepositoryInfo({ - this.name, - this.url, - this.enabled, - }); + const RepositoryInfo({this.name, this.url, this.enabled}); factory RepositoryInfo.fromJson(Map json) => _$RepositoryInfoFromJson(json); @@ -37566,28 +41148,28 @@ class RepositoryInfo { extension $RepositoryInfoExtension on RepositoryInfo { RepositoryInfo copyWith({String? name, String? url, bool? enabled}) { return RepositoryInfo( - name: name ?? this.name, - url: url ?? this.url, - enabled: enabled ?? this.enabled); + name: name ?? this.name, + url: url ?? this.url, + enabled: enabled ?? this.enabled, + ); } - RepositoryInfo copyWithWrapped( - {Wrapped? name, - Wrapped? url, - Wrapped? enabled}) { + RepositoryInfo copyWithWrapped({ + Wrapped? name, + Wrapped? url, + Wrapped? enabled, + }) { return RepositoryInfo( - name: (name != null ? name.value : this.name), - url: (url != null ? url.value : this.url), - enabled: (enabled != null ? enabled.value : this.enabled)); + name: (name != null ? name.value : this.name), + url: (url != null ? url.value : this.url), + enabled: (enabled != null ? enabled.value : this.enabled), + ); } } @JsonSerializable(explicitToJson: true) class RestartRequiredMessage { - const RestartRequiredMessage({ - this.messageId, - this.messageType, - }); + const RestartRequiredMessage({this.messageId, this.messageType}); factory RestartRequiredMessage.fromJson(Map json) => _$RestartRequiredMessageFromJson(json); @@ -37605,9 +41187,11 @@ class RestartRequiredMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.restartrequired); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.restartrequired, + ); static const fromJsonFactory = _$RestartRequiredMessageFromJson; @@ -37616,11 +41200,15 @@ class RestartRequiredMessage { return identical(this, other) || (other is RestartRequiredMessage && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -37634,20 +41222,24 @@ class RestartRequiredMessage { } extension $RestartRequiredMessageExtension on RestartRequiredMessage { - RestartRequiredMessage copyWith( - {String? messageId, enums.SessionMessageType? messageType}) { + RestartRequiredMessage copyWith({ + String? messageId, + enums.SessionMessageType? messageType, + }) { return RestartRequiredMessage( - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - RestartRequiredMessage copyWithWrapped( - {Wrapped? messageId, - Wrapped? messageType}) { + RestartRequiredMessage copyWithWrapped({ + Wrapped? messageId, + Wrapped? messageType, + }) { return RestartRequiredMessage( - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -37677,9 +41269,11 @@ class ScheduledTaskEndedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.scheduledtaskended); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.scheduledtaskended, + ); static const fromJsonFactory = _$ScheduledTaskEndedMessageFromJson; @@ -37690,11 +41284,15 @@ class ScheduledTaskEndedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -37709,25 +41307,28 @@ class ScheduledTaskEndedMessage { } extension $ScheduledTaskEndedMessageExtension on ScheduledTaskEndedMessage { - ScheduledTaskEndedMessage copyWith( - {TaskResult? data, - String? messageId, - enums.SessionMessageType? messageType}) { + ScheduledTaskEndedMessage copyWith({ + TaskResult? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return ScheduledTaskEndedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - ScheduledTaskEndedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + ScheduledTaskEndedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return ScheduledTaskEndedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -37757,9 +41358,11 @@ class ScheduledTasksInfoMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.scheduledtasksinfo); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.scheduledtasksinfo, + ); static const fromJsonFactory = _$ScheduledTasksInfoMessageFromJson; @@ -37770,11 +41373,15 @@ class ScheduledTasksInfoMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -37789,34 +41396,34 @@ class ScheduledTasksInfoMessage { } extension $ScheduledTasksInfoMessageExtension on ScheduledTasksInfoMessage { - ScheduledTasksInfoMessage copyWith( - {List? data, - String? messageId, - enums.SessionMessageType? messageType}) { + ScheduledTasksInfoMessage copyWith({ + List? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return ScheduledTasksInfoMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - ScheduledTasksInfoMessage copyWithWrapped( - {Wrapped?>? data, - Wrapped? messageId, - Wrapped? messageType}) { + ScheduledTasksInfoMessage copyWithWrapped({ + Wrapped?>? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return ScheduledTasksInfoMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class ScheduledTasksInfoStartMessage { - const ScheduledTasksInfoStartMessage({ - this.data, - this.messageType, - }); + const ScheduledTasksInfoStartMessage({this.data, this.messageType}); factory ScheduledTasksInfoStartMessage.fromJson(Map json) => _$ScheduledTasksInfoStartMessageFromJson(json); @@ -37834,9 +41441,11 @@ class ScheduledTasksInfoStartMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.scheduledtasksinfostart); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.scheduledtasksinfostart, + ); static const fromJsonFactory = _$ScheduledTasksInfoStartMessageFromJson; @@ -37847,8 +41456,10 @@ class ScheduledTasksInfoStartMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -37863,27 +41474,30 @@ class ScheduledTasksInfoStartMessage { extension $ScheduledTasksInfoStartMessageExtension on ScheduledTasksInfoStartMessage { - ScheduledTasksInfoStartMessage copyWith( - {String? data, enums.SessionMessageType? messageType}) { + ScheduledTasksInfoStartMessage copyWith({ + String? data, + enums.SessionMessageType? messageType, + }) { return ScheduledTasksInfoStartMessage( - data: data ?? this.data, messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageType: messageType ?? this.messageType, + ); } - ScheduledTasksInfoStartMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageType}) { + ScheduledTasksInfoStartMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageType, + }) { return ScheduledTasksInfoStartMessage( - data: (data != null ? data.value : this.data), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class ScheduledTasksInfoStopMessage { - const ScheduledTasksInfoStopMessage({ - this.messageType, - }); + const ScheduledTasksInfoStopMessage({this.messageType}); factory ScheduledTasksInfoStopMessage.fromJson(Map json) => _$ScheduledTasksInfoStopMessageFromJson(json); @@ -37899,9 +41513,11 @@ class ScheduledTasksInfoStopMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.scheduledtasksinfostop); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.scheduledtasksinfostop, + ); static const fromJsonFactory = _$ScheduledTasksInfoStopMessageFromJson; @@ -37910,8 +41526,10 @@ class ScheduledTasksInfoStopMessage { return identical(this, other) || (other is ScheduledTasksInfoStopMessage && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -37924,17 +41542,20 @@ class ScheduledTasksInfoStopMessage { extension $ScheduledTasksInfoStopMessageExtension on ScheduledTasksInfoStopMessage { - ScheduledTasksInfoStopMessage copyWith( - {enums.SessionMessageType? messageType}) { + ScheduledTasksInfoStopMessage copyWith({ + enums.SessionMessageType? messageType, + }) { return ScheduledTasksInfoStopMessage( - messageType: messageType ?? this.messageType); + messageType: messageType ?? this.messageType, + ); } - ScheduledTasksInfoStopMessage copyWithWrapped( - {Wrapped? messageType}) { + ScheduledTasksInfoStopMessage copyWithWrapped({ + Wrapped? messageType, + }) { return ScheduledTasksInfoStopMessage( - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -38060,49 +41681,77 @@ class SearchHint { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.matchedTerm, matchedTerm) || - const DeepCollectionEquality() - .equals(other.matchedTerm, matchedTerm)) && + const DeepCollectionEquality().equals( + other.matchedTerm, + matchedTerm, + )) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.productionYear, productionYear) || - const DeepCollectionEquality() - .equals(other.productionYear, productionYear)) && + const DeepCollectionEquality().equals( + other.productionYear, + productionYear, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.primaryImageTag, primaryImageTag) || - const DeepCollectionEquality() - .equals(other.primaryImageTag, primaryImageTag)) && + const DeepCollectionEquality().equals( + other.primaryImageTag, + primaryImageTag, + )) && (identical(other.thumbImageTag, thumbImageTag) || - const DeepCollectionEquality() - .equals(other.thumbImageTag, thumbImageTag)) && + const DeepCollectionEquality().equals( + other.thumbImageTag, + thumbImageTag, + )) && (identical(other.thumbImageItemId, thumbImageItemId) || - const DeepCollectionEquality() - .equals(other.thumbImageItemId, thumbImageItemId)) && + const DeepCollectionEquality().equals( + other.thumbImageItemId, + thumbImageItemId, + )) && (identical(other.backdropImageTag, backdropImageTag) || - const DeepCollectionEquality() - .equals(other.backdropImageTag, backdropImageTag)) && + const DeepCollectionEquality().equals( + other.backdropImageTag, + backdropImageTag, + )) && (identical(other.backdropImageItemId, backdropImageItemId) || - const DeepCollectionEquality() - .equals(other.backdropImageItemId, backdropImageItemId)) && + const DeepCollectionEquality().equals( + other.backdropImageItemId, + backdropImageItemId, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.isFolder, isFolder) || - const DeepCollectionEquality() - .equals(other.isFolder, isFolder)) && + const DeepCollectionEquality().equals( + other.isFolder, + isFolder, + )) && (identical(other.runTimeTicks, runTimeTicks) || - const DeepCollectionEquality() - .equals(other.runTimeTicks, runTimeTicks)) && + const DeepCollectionEquality().equals( + other.runTimeTicks, + runTimeTicks, + )) && (identical(other.mediaType, mediaType) || - const DeepCollectionEquality() - .equals(other.mediaType, mediaType)) && + const DeepCollectionEquality().equals( + other.mediaType, + mediaType, + )) && (identical(other.startDate, startDate) || - const DeepCollectionEquality() - .equals(other.startDate, startDate)) && + const DeepCollectionEquality().equals( + other.startDate, + startDate, + )) && (identical(other.endDate, endDate) || - const DeepCollectionEquality() - .equals(other.endDate, endDate)) && + const DeepCollectionEquality().equals( + other.endDate, + endDate, + )) && (identical(other.series, series) || const DeepCollectionEquality().equals(other.series, series)) && (identical(other.status, status) || @@ -38110,21 +41759,48 @@ class SearchHint { (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && (identical(other.albumId, albumId) || - const DeepCollectionEquality() - .equals(other.albumId, albumId)) && + const DeepCollectionEquality().equals( + other.albumId, + albumId, + )) && (identical(other.albumArtist, albumArtist) || - const DeepCollectionEquality() - .equals(other.albumArtist, albumArtist)) && + const DeepCollectionEquality().equals( + other.albumArtist, + albumArtist, + )) && (identical(other.artists, artists) || - const DeepCollectionEquality() - .equals(other.artists, artists)) && + const DeepCollectionEquality().equals( + other.artists, + artists, + )) && (identical(other.songCount, songCount) || - const DeepCollectionEquality() - .equals(other.songCount, songCount)) && - (identical(other.episodeCount, episodeCount) || const DeepCollectionEquality().equals(other.episodeCount, episodeCount)) && - (identical(other.channelId, channelId) || const DeepCollectionEquality().equals(other.channelId, channelId)) && - (identical(other.channelName, channelName) || const DeepCollectionEquality().equals(other.channelName, channelName)) && - (identical(other.primaryImageAspectRatio, primaryImageAspectRatio) || const DeepCollectionEquality().equals(other.primaryImageAspectRatio, primaryImageAspectRatio))); + const DeepCollectionEquality().equals( + other.songCount, + songCount, + )) && + (identical(other.episodeCount, episodeCount) || + const DeepCollectionEquality().equals( + other.episodeCount, + episodeCount, + )) && + (identical(other.channelId, channelId) || + const DeepCollectionEquality().equals( + other.channelId, + channelId, + )) && + (identical(other.channelName, channelName) || + const DeepCollectionEquality().equals( + other.channelName, + channelName, + )) && + (identical( + other.primaryImageAspectRatio, + primaryImageAspectRatio, + ) || + const DeepCollectionEquality().equals( + other.primaryImageAspectRatio, + primaryImageAspectRatio, + ))); } @override @@ -38165,159 +41841,159 @@ class SearchHint { } extension $SearchHintExtension on SearchHint { - SearchHint copyWith( - {String? itemId, - String? id, - String? name, - String? matchedTerm, - int? indexNumber, - int? productionYear, - int? parentIndexNumber, - String? primaryImageTag, - String? thumbImageTag, - String? thumbImageItemId, - String? backdropImageTag, - String? backdropImageItemId, - enums.BaseItemKind? type, - bool? isFolder, - int? runTimeTicks, - enums.MediaType? mediaType, - DateTime? startDate, - DateTime? endDate, - String? series, - String? status, - String? album, - String? albumId, - String? albumArtist, - List? artists, - int? songCount, - int? episodeCount, - String? channelId, - String? channelName, - double? primaryImageAspectRatio}) { + SearchHint copyWith({ + String? itemId, + String? id, + String? name, + String? matchedTerm, + int? indexNumber, + int? productionYear, + int? parentIndexNumber, + String? primaryImageTag, + String? thumbImageTag, + String? thumbImageItemId, + String? backdropImageTag, + String? backdropImageItemId, + enums.BaseItemKind? type, + bool? isFolder, + int? runTimeTicks, + enums.MediaType? mediaType, + DateTime? startDate, + DateTime? endDate, + String? series, + String? status, + String? album, + String? albumId, + String? albumArtist, + List? artists, + int? songCount, + int? episodeCount, + String? channelId, + String? channelName, + double? primaryImageAspectRatio, + }) { return SearchHint( - itemId: itemId ?? this.itemId, - id: id ?? this.id, - name: name ?? this.name, - matchedTerm: matchedTerm ?? this.matchedTerm, - indexNumber: indexNumber ?? this.indexNumber, - productionYear: productionYear ?? this.productionYear, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - primaryImageTag: primaryImageTag ?? this.primaryImageTag, - thumbImageTag: thumbImageTag ?? this.thumbImageTag, - thumbImageItemId: thumbImageItemId ?? this.thumbImageItemId, - backdropImageTag: backdropImageTag ?? this.backdropImageTag, - backdropImageItemId: backdropImageItemId ?? this.backdropImageItemId, - type: type ?? this.type, - isFolder: isFolder ?? this.isFolder, - runTimeTicks: runTimeTicks ?? this.runTimeTicks, - mediaType: mediaType ?? this.mediaType, - startDate: startDate ?? this.startDate, - endDate: endDate ?? this.endDate, - series: series ?? this.series, - status: status ?? this.status, - album: album ?? this.album, - albumId: albumId ?? this.albumId, - albumArtist: albumArtist ?? this.albumArtist, - artists: artists ?? this.artists, - songCount: songCount ?? this.songCount, - episodeCount: episodeCount ?? this.episodeCount, - channelId: channelId ?? this.channelId, - channelName: channelName ?? this.channelName, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio); + itemId: itemId ?? this.itemId, + id: id ?? this.id, + name: name ?? this.name, + matchedTerm: matchedTerm ?? this.matchedTerm, + indexNumber: indexNumber ?? this.indexNumber, + productionYear: productionYear ?? this.productionYear, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + primaryImageTag: primaryImageTag ?? this.primaryImageTag, + thumbImageTag: thumbImageTag ?? this.thumbImageTag, + thumbImageItemId: thumbImageItemId ?? this.thumbImageItemId, + backdropImageTag: backdropImageTag ?? this.backdropImageTag, + backdropImageItemId: backdropImageItemId ?? this.backdropImageItemId, + type: type ?? this.type, + isFolder: isFolder ?? this.isFolder, + runTimeTicks: runTimeTicks ?? this.runTimeTicks, + mediaType: mediaType ?? this.mediaType, + startDate: startDate ?? this.startDate, + endDate: endDate ?? this.endDate, + series: series ?? this.series, + status: status ?? this.status, + album: album ?? this.album, + albumId: albumId ?? this.albumId, + albumArtist: albumArtist ?? this.albumArtist, + artists: artists ?? this.artists, + songCount: songCount ?? this.songCount, + episodeCount: episodeCount ?? this.episodeCount, + channelId: channelId ?? this.channelId, + channelName: channelName ?? this.channelName, + primaryImageAspectRatio: + primaryImageAspectRatio ?? this.primaryImageAspectRatio, + ); } - SearchHint copyWithWrapped( - {Wrapped? itemId, - Wrapped? id, - Wrapped? name, - Wrapped? matchedTerm, - Wrapped? indexNumber, - Wrapped? productionYear, - Wrapped? parentIndexNumber, - Wrapped? primaryImageTag, - Wrapped? thumbImageTag, - Wrapped? thumbImageItemId, - Wrapped? backdropImageTag, - Wrapped? backdropImageItemId, - Wrapped? type, - Wrapped? isFolder, - Wrapped? runTimeTicks, - Wrapped? mediaType, - Wrapped? startDate, - Wrapped? endDate, - Wrapped? series, - Wrapped? status, - Wrapped? album, - Wrapped? albumId, - Wrapped? albumArtist, - Wrapped?>? artists, - Wrapped? songCount, - Wrapped? episodeCount, - Wrapped? channelId, - Wrapped? channelName, - Wrapped? primaryImageAspectRatio}) { + SearchHint copyWithWrapped({ + Wrapped? itemId, + Wrapped? id, + Wrapped? name, + Wrapped? matchedTerm, + Wrapped? indexNumber, + Wrapped? productionYear, + Wrapped? parentIndexNumber, + Wrapped? primaryImageTag, + Wrapped? thumbImageTag, + Wrapped? thumbImageItemId, + Wrapped? backdropImageTag, + Wrapped? backdropImageItemId, + Wrapped? type, + Wrapped? isFolder, + Wrapped? runTimeTicks, + Wrapped? mediaType, + Wrapped? startDate, + Wrapped? endDate, + Wrapped? series, + Wrapped? status, + Wrapped? album, + Wrapped? albumId, + Wrapped? albumArtist, + Wrapped?>? artists, + Wrapped? songCount, + Wrapped? episodeCount, + Wrapped? channelId, + Wrapped? channelName, + Wrapped? primaryImageAspectRatio, + }) { return SearchHint( - itemId: (itemId != null ? itemId.value : this.itemId), - id: (id != null ? id.value : this.id), - 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), - type: (type != null ? type.value : this.type), - isFolder: (isFolder != null ? isFolder.value : this.isFolder), - 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), - series: (series != null ? series.value : this.series), - status: (status != null ? status.value : this.status), - album: (album != null ? album.value : this.album), - albumId: (albumId != null ? albumId.value : this.albumId), - 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), - channelId: (channelId != null ? channelId.value : this.channelId), - channelName: - (channelName != null ? channelName.value : this.channelName), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio)); + itemId: (itemId != null ? itemId.value : this.itemId), + id: (id != null ? id.value : this.id), + 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), + type: (type != null ? type.value : this.type), + isFolder: (isFolder != null ? isFolder.value : this.isFolder), + 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), + series: (series != null ? series.value : this.series), + status: (status != null ? status.value : this.status), + album: (album != null ? album.value : this.album), + albumId: (albumId != null ? albumId.value : this.albumId), + 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), + channelId: (channelId != null ? channelId.value : this.channelId), + channelName: (channelName != null ? channelName.value : this.channelName), + primaryImageAspectRatio: (primaryImageAspectRatio != null + ? primaryImageAspectRatio.value + : this.primaryImageAspectRatio), + ); } } @JsonSerializable(explicitToJson: true) class SearchHintResult { - const SearchHintResult({ - this.searchHints, - this.totalRecordCount, - }); + const SearchHintResult({this.searchHints, this.totalRecordCount}); factory SearchHintResult.fromJson(Map json) => _$SearchHintResultFromJson(json); @@ -38326,7 +42002,10 @@ class SearchHintResult { Map toJson() => _$SearchHintResultToJson(this); @JsonKey( - name: 'SearchHints', includeIfNull: false, defaultValue: []) + name: 'SearchHints', + includeIfNull: false, + defaultValue: [], + ) final List? searchHints; @JsonKey(name: 'TotalRecordCount', includeIfNull: false) final int? totalRecordCount; @@ -38337,11 +42016,15 @@ class SearchHintResult { return identical(this, other) || (other is SearchHintResult && (identical(other.searchHints, searchHints) || - const DeepCollectionEquality() - .equals(other.searchHints, searchHints)) && + const DeepCollectionEquality().equals( + other.searchHints, + searchHints, + )) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount))); + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + ))); } @override @@ -38355,30 +42038,32 @@ class SearchHintResult { } extension $SearchHintResultExtension on SearchHintResult { - SearchHintResult copyWith( - {List? searchHints, int? totalRecordCount}) { + SearchHintResult copyWith({ + List? searchHints, + int? totalRecordCount, + }) { return SearchHintResult( - searchHints: searchHints ?? this.searchHints, - totalRecordCount: totalRecordCount ?? this.totalRecordCount); + searchHints: searchHints ?? this.searchHints, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + ); } - SearchHintResult copyWithWrapped( - {Wrapped?>? searchHints, - Wrapped? totalRecordCount}) { + SearchHintResult copyWithWrapped({ + Wrapped?>? searchHints, + Wrapped? totalRecordCount, + }) { return SearchHintResult( - searchHints: - (searchHints != null ? searchHints.value : this.searchHints), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount)); + searchHints: (searchHints != null ? searchHints.value : this.searchHints), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + ); } } @JsonSerializable(explicitToJson: true) class SeekRequestDto { - const SeekRequestDto({ - this.positionTicks, - }); + const SeekRequestDto({this.positionTicks}); factory SeekRequestDto.fromJson(Map json) => _$SeekRequestDtoFromJson(json); @@ -38395,8 +42080,10 @@ class SeekRequestDto { return identical(this, other) || (other is SeekRequestDto && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks))); + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + ))); } @override @@ -38414,8 +42101,10 @@ extension $SeekRequestDtoExtension on SeekRequestDto { SeekRequestDto copyWithWrapped({Wrapped? positionTicks}) { return SeekRequestDto( - positionTicks: - (positionTicks != null ? positionTicks.value : this.positionTicks)); + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), + ); } } @@ -38460,22 +42149,32 @@ class SendCommand { return identical(this, other) || (other is SendCommand && (identical(other.groupId, groupId) || - const DeepCollectionEquality() - .equals(other.groupId, groupId)) && + const DeepCollectionEquality().equals( + other.groupId, + groupId, + )) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId)) && + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + )) && (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || - const DeepCollectionEquality() - .equals(other.positionTicks, positionTicks)) && + const DeepCollectionEquality().equals( + other.positionTicks, + positionTicks, + )) && (identical(other.command, command) || - const DeepCollectionEquality() - .equals(other.command, command)) && + const DeepCollectionEquality().equals( + other.command, + command, + )) && (identical(other.emittedAt, emittedAt) || - const DeepCollectionEquality() - .equals(other.emittedAt, emittedAt))); + const DeepCollectionEquality().equals( + other.emittedAt, + emittedAt, + ))); } @override @@ -38493,39 +42192,44 @@ class SendCommand { } extension $SendCommandExtension on SendCommand { - SendCommand copyWith( - {String? groupId, - String? playlistItemId, - DateTime? when, - int? positionTicks, - enums.SendCommandType? command, - DateTime? emittedAt}) { + SendCommand copyWith({ + String? groupId, + String? playlistItemId, + DateTime? when, + int? positionTicks, + enums.SendCommandType? command, + DateTime? emittedAt, + }) { return SendCommand( - groupId: groupId ?? this.groupId, - playlistItemId: playlistItemId ?? this.playlistItemId, - when: when ?? this.when, - positionTicks: positionTicks ?? this.positionTicks, - command: command ?? this.command, - emittedAt: emittedAt ?? this.emittedAt); + groupId: groupId ?? this.groupId, + playlistItemId: playlistItemId ?? this.playlistItemId, + when: when ?? this.when, + positionTicks: positionTicks ?? this.positionTicks, + command: command ?? this.command, + emittedAt: emittedAt ?? this.emittedAt, + ); } - SendCommand copyWithWrapped( - {Wrapped? groupId, - Wrapped? playlistItemId, - Wrapped? when, - Wrapped? positionTicks, - Wrapped? command, - Wrapped? emittedAt}) { + SendCommand copyWithWrapped({ + Wrapped? groupId, + Wrapped? playlistItemId, + Wrapped? when, + Wrapped? positionTicks, + Wrapped? command, + Wrapped? emittedAt, + }) { return SendCommand( - groupId: (groupId != null ? groupId.value : this.groupId), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), - when: (when != null ? when.value : this.when), - positionTicks: - (positionTicks != null ? positionTicks.value : this.positionTicks), - command: (command != null ? command.value : this.command), - emittedAt: (emittedAt != null ? emittedAt.value : this.emittedAt)); + groupId: (groupId != null ? groupId.value : this.groupId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + when: (when != null ? when.value : this.when), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), + command: (command != null ? command.value : this.command), + emittedAt: (emittedAt != null ? emittedAt.value : this.emittedAt), + ); } } @@ -38582,33 +42286,49 @@ class SeriesInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated))); + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + ))); } @override @@ -38631,67 +42351,70 @@ class SeriesInfo { } extension $SeriesInfoExtension on SeriesInfo { - SeriesInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated}) { + SeriesInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + }) { return SeriesInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + ); } - SeriesInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated}) { + SeriesInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + }) { return SeriesInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + ); } } @@ -38725,17 +42448,25 @@ class SeriesInfoRemoteSearchQuery { return identical(this, other) || (other is SeriesInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -38751,33 +42482,37 @@ class SeriesInfoRemoteSearchQuery { } extension $SeriesInfoRemoteSearchQueryExtension on SeriesInfoRemoteSearchQuery { - SeriesInfoRemoteSearchQuery copyWith( - {SeriesInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + SeriesInfoRemoteSearchQuery copyWith({ + SeriesInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return SeriesInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - SeriesInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + SeriesInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @@ -38807,9 +42542,11 @@ class SeriesTimerCancelledMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.seriestimercancelled); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.seriestimercancelled, + ); static const fromJsonFactory = _$SeriesTimerCancelledMessageFromJson; @@ -38820,11 +42557,15 @@ class SeriesTimerCancelledMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -38839,25 +42580,28 @@ class SeriesTimerCancelledMessage { } extension $SeriesTimerCancelledMessageExtension on SeriesTimerCancelledMessage { - SeriesTimerCancelledMessage copyWith( - {TimerEventInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + SeriesTimerCancelledMessage copyWith({ + TimerEventInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return SeriesTimerCancelledMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - SeriesTimerCancelledMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + SeriesTimerCancelledMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return SeriesTimerCancelledMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -38887,9 +42631,11 @@ class SeriesTimerCreatedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.seriestimercreated); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.seriestimercreated, + ); static const fromJsonFactory = _$SeriesTimerCreatedMessageFromJson; @@ -38900,11 +42646,15 @@ class SeriesTimerCreatedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -38919,25 +42669,28 @@ class SeriesTimerCreatedMessage { } extension $SeriesTimerCreatedMessageExtension on SeriesTimerCreatedMessage { - SeriesTimerCreatedMessage copyWith( - {TimerEventInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + SeriesTimerCreatedMessage copyWith({ + TimerEventInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return SeriesTimerCreatedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - SeriesTimerCreatedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + SeriesTimerCreatedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return SeriesTimerCreatedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -39028,9 +42781,10 @@ class SeriesTimerInfoDto { @JsonKey(name: 'ParentBackdropItemId', includeIfNull: false) final String? parentBackdropItemId; @JsonKey( - name: 'ParentBackdropImageTags', - includeIfNull: false, - defaultValue: []) + name: 'ParentBackdropImageTags', + includeIfNull: false, + defaultValue: [], + ) final List? parentBackdropImageTags; @JsonKey(name: 'IsPostPaddingRequired', includeIfNull: false) final bool? isPostPaddingRequired; @@ -39086,77 +42840,170 @@ class SeriesTimerInfoDto { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || - const DeepCollectionEquality() - .equals(other.serverId, serverId)) && + const DeepCollectionEquality().equals( + other.serverId, + serverId, + )) && (identical(other.externalId, externalId) || - const DeepCollectionEquality() - .equals(other.externalId, externalId)) && + const DeepCollectionEquality().equals( + other.externalId, + externalId, + )) && (identical(other.channelId, channelId) || - const DeepCollectionEquality() - .equals(other.channelId, channelId)) && + const DeepCollectionEquality().equals( + other.channelId, + channelId, + )) && (identical(other.externalChannelId, externalChannelId) || - const DeepCollectionEquality() - .equals(other.externalChannelId, externalChannelId)) && + const DeepCollectionEquality().equals( + other.externalChannelId, + externalChannelId, + )) && (identical(other.channelName, channelName) || - const DeepCollectionEquality() - .equals(other.channelName, channelName)) && + const DeepCollectionEquality().equals( + other.channelName, + channelName, + )) && (identical(other.channelPrimaryImageTag, channelPrimaryImageTag) || const DeepCollectionEquality().equals( - other.channelPrimaryImageTag, channelPrimaryImageTag)) && + other.channelPrimaryImageTag, + channelPrimaryImageTag, + )) && (identical(other.programId, programId) || - const DeepCollectionEquality() - .equals(other.programId, programId)) && + const DeepCollectionEquality().equals( + other.programId, + programId, + )) && (identical(other.externalProgramId, externalProgramId) || - const DeepCollectionEquality() - .equals(other.externalProgramId, externalProgramId)) && + const DeepCollectionEquality().equals( + other.externalProgramId, + externalProgramId, + )) && (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || - const DeepCollectionEquality() - .equals(other.overview, overview)) && + const DeepCollectionEquality().equals( + other.overview, + overview, + )) && (identical(other.startDate, startDate) || - const DeepCollectionEquality() - .equals(other.startDate, startDate)) && + const DeepCollectionEquality().equals( + other.startDate, + startDate, + )) && (identical(other.endDate, endDate) || - const DeepCollectionEquality() - .equals(other.endDate, endDate)) && + const DeepCollectionEquality().equals( + other.endDate, + endDate, + )) && (identical(other.serviceName, serviceName) || - const DeepCollectionEquality() - .equals(other.serviceName, serviceName)) && + const DeepCollectionEquality().equals( + other.serviceName, + serviceName, + )) && (identical(other.priority, priority) || - const DeepCollectionEquality() - .equals(other.priority, priority)) && + const DeepCollectionEquality().equals( + other.priority, + priority, + )) && (identical(other.prePaddingSeconds, prePaddingSeconds) || - const DeepCollectionEquality() - .equals(other.prePaddingSeconds, prePaddingSeconds)) && + const DeepCollectionEquality().equals( + other.prePaddingSeconds, + prePaddingSeconds, + )) && (identical(other.postPaddingSeconds, postPaddingSeconds) || - const DeepCollectionEquality() - .equals(other.postPaddingSeconds, postPaddingSeconds)) && + const DeepCollectionEquality().equals( + other.postPaddingSeconds, + postPaddingSeconds, + )) && (identical(other.isPrePaddingRequired, isPrePaddingRequired) || const DeepCollectionEquality().equals( - other.isPrePaddingRequired, isPrePaddingRequired)) && + other.isPrePaddingRequired, + isPrePaddingRequired, + )) && (identical(other.parentBackdropItemId, parentBackdropItemId) || const DeepCollectionEquality().equals( - other.parentBackdropItemId, parentBackdropItemId)) && - (identical(other.parentBackdropImageTags, parentBackdropImageTags) || + other.parentBackdropItemId, + parentBackdropItemId, + )) && + (identical( + other.parentBackdropImageTags, + parentBackdropImageTags, + ) || const DeepCollectionEquality().equals( - other.parentBackdropImageTags, parentBackdropImageTags)) && + other.parentBackdropImageTags, + parentBackdropImageTags, + )) && (identical(other.isPostPaddingRequired, isPostPaddingRequired) || const DeepCollectionEquality().equals( - other.isPostPaddingRequired, isPostPaddingRequired)) && - (identical(other.keepUntil, keepUntil) || const DeepCollectionEquality().equals(other.keepUntil, keepUntil)) && - (identical(other.recordAnyTime, recordAnyTime) || const DeepCollectionEquality().equals(other.recordAnyTime, recordAnyTime)) && - (identical(other.skipEpisodesInLibrary, skipEpisodesInLibrary) || const DeepCollectionEquality().equals(other.skipEpisodesInLibrary, skipEpisodesInLibrary)) && - (identical(other.recordAnyChannel, recordAnyChannel) || const DeepCollectionEquality().equals(other.recordAnyChannel, recordAnyChannel)) && - (identical(other.keepUpTo, keepUpTo) || const DeepCollectionEquality().equals(other.keepUpTo, keepUpTo)) && - (identical(other.recordNewOnly, recordNewOnly) || const DeepCollectionEquality().equals(other.recordNewOnly, recordNewOnly)) && - (identical(other.days, days) || const DeepCollectionEquality().equals(other.days, days)) && - (identical(other.dayPattern, dayPattern) || const DeepCollectionEquality().equals(other.dayPattern, dayPattern)) && - (identical(other.imageTags, imageTags) || const DeepCollectionEquality().equals(other.imageTags, imageTags)) && - (identical(other.parentThumbItemId, parentThumbItemId) || const DeepCollectionEquality().equals(other.parentThumbItemId, parentThumbItemId)) && - (identical(other.parentThumbImageTag, parentThumbImageTag) || const DeepCollectionEquality().equals(other.parentThumbImageTag, parentThumbImageTag)) && - (identical(other.parentPrimaryImageItemId, parentPrimaryImageItemId) || const DeepCollectionEquality().equals(other.parentPrimaryImageItemId, parentPrimaryImageItemId)) && - (identical(other.parentPrimaryImageTag, parentPrimaryImageTag) || const DeepCollectionEquality().equals(other.parentPrimaryImageTag, parentPrimaryImageTag))); + other.isPostPaddingRequired, + isPostPaddingRequired, + )) && + (identical(other.keepUntil, keepUntil) || + const DeepCollectionEquality().equals( + other.keepUntil, + keepUntil, + )) && + (identical(other.recordAnyTime, recordAnyTime) || + const DeepCollectionEquality().equals( + other.recordAnyTime, + recordAnyTime, + )) && + (identical(other.skipEpisodesInLibrary, skipEpisodesInLibrary) || + const DeepCollectionEquality().equals( + other.skipEpisodesInLibrary, + skipEpisodesInLibrary, + )) && + (identical(other.recordAnyChannel, recordAnyChannel) || + const DeepCollectionEquality().equals( + other.recordAnyChannel, + recordAnyChannel, + )) && + (identical(other.keepUpTo, keepUpTo) || + const DeepCollectionEquality().equals( + other.keepUpTo, + keepUpTo, + )) && + (identical(other.recordNewOnly, recordNewOnly) || + const DeepCollectionEquality().equals( + other.recordNewOnly, + recordNewOnly, + )) && + (identical(other.days, days) || + const DeepCollectionEquality().equals(other.days, days)) && + (identical(other.dayPattern, dayPattern) || + const DeepCollectionEquality().equals( + other.dayPattern, + dayPattern, + )) && + (identical(other.imageTags, imageTags) || + const DeepCollectionEquality().equals( + other.imageTags, + imageTags, + )) && + (identical(other.parentThumbItemId, parentThumbItemId) || + const DeepCollectionEquality().equals( + other.parentThumbItemId, + parentThumbItemId, + )) && + (identical(other.parentThumbImageTag, parentThumbImageTag) || + const DeepCollectionEquality().equals( + other.parentThumbImageTag, + parentThumbImageTag, + )) && + (identical( + other.parentPrimaryImageItemId, + parentPrimaryImageItemId, + ) || + const DeepCollectionEquality().equals( + other.parentPrimaryImageItemId, + parentPrimaryImageItemId, + )) && + (identical(other.parentPrimaryImageTag, parentPrimaryImageTag) || + const DeepCollectionEquality().equals( + other.parentPrimaryImageTag, + parentPrimaryImageTag, + ))); } @override @@ -39203,192 +43050,196 @@ class SeriesTimerInfoDto { } extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { - SeriesTimerInfoDto copyWith( - {String? id, - String? type, - String? serverId, - String? externalId, - String? channelId, - String? externalChannelId, - String? channelName, - String? channelPrimaryImageTag, - String? programId, - String? externalProgramId, - String? name, - String? overview, - DateTime? startDate, - DateTime? endDate, - String? serviceName, - int? priority, - int? prePaddingSeconds, - int? postPaddingSeconds, - bool? isPrePaddingRequired, - String? parentBackdropItemId, - List? parentBackdropImageTags, - bool? isPostPaddingRequired, - enums.KeepUntil? keepUntil, - bool? recordAnyTime, - bool? skipEpisodesInLibrary, - bool? recordAnyChannel, - int? keepUpTo, - bool? recordNewOnly, - List? days, - enums.DayPattern? dayPattern, - Map? imageTags, - String? parentThumbItemId, - String? parentThumbImageTag, - String? parentPrimaryImageItemId, - String? parentPrimaryImageTag}) { + SeriesTimerInfoDto copyWith({ + String? id, + String? type, + String? serverId, + String? externalId, + String? channelId, + String? externalChannelId, + String? channelName, + String? channelPrimaryImageTag, + String? programId, + String? externalProgramId, + String? name, + String? overview, + DateTime? startDate, + DateTime? endDate, + String? serviceName, + int? priority, + int? prePaddingSeconds, + int? postPaddingSeconds, + bool? isPrePaddingRequired, + String? parentBackdropItemId, + List? parentBackdropImageTags, + bool? isPostPaddingRequired, + enums.KeepUntil? keepUntil, + bool? recordAnyTime, + bool? skipEpisodesInLibrary, + bool? recordAnyChannel, + int? keepUpTo, + bool? recordNewOnly, + List? days, + enums.DayPattern? dayPattern, + Map? imageTags, + String? parentThumbItemId, + String? parentThumbImageTag, + String? parentPrimaryImageItemId, + String? parentPrimaryImageTag, + }) { return SeriesTimerInfoDto( - id: id ?? this.id, - type: type ?? this.type, - serverId: serverId ?? this.serverId, - externalId: externalId ?? this.externalId, - channelId: channelId ?? this.channelId, - externalChannelId: externalChannelId ?? this.externalChannelId, - channelName: channelName ?? this.channelName, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, - programId: programId ?? this.programId, - externalProgramId: externalProgramId ?? this.externalProgramId, - name: name ?? this.name, - overview: overview ?? this.overview, - startDate: startDate ?? this.startDate, - endDate: endDate ?? this.endDate, - serviceName: serviceName ?? this.serviceName, - priority: priority ?? this.priority, - prePaddingSeconds: prePaddingSeconds ?? this.prePaddingSeconds, - postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, - isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, - parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: - isPostPaddingRequired ?? this.isPostPaddingRequired, - keepUntil: keepUntil ?? this.keepUntil, - recordAnyTime: recordAnyTime ?? this.recordAnyTime, - skipEpisodesInLibrary: - skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, - recordAnyChannel: recordAnyChannel ?? this.recordAnyChannel, - keepUpTo: keepUpTo ?? this.keepUpTo, - recordNewOnly: recordNewOnly ?? this.recordNewOnly, - days: days ?? this.days, - dayPattern: dayPattern ?? this.dayPattern, - imageTags: imageTags ?? this.imageTags, - parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, - parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: - parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: - parentPrimaryImageTag ?? this.parentPrimaryImageTag); + id: id ?? this.id, + type: type ?? this.type, + serverId: serverId ?? this.serverId, + externalId: externalId ?? this.externalId, + channelId: channelId ?? this.channelId, + externalChannelId: externalChannelId ?? this.externalChannelId, + channelName: channelName ?? this.channelName, + channelPrimaryImageTag: + channelPrimaryImageTag ?? this.channelPrimaryImageTag, + programId: programId ?? this.programId, + externalProgramId: externalProgramId ?? this.externalProgramId, + name: name ?? this.name, + overview: overview ?? this.overview, + startDate: startDate ?? this.startDate, + endDate: endDate ?? this.endDate, + serviceName: serviceName ?? this.serviceName, + priority: priority ?? this.priority, + prePaddingSeconds: prePaddingSeconds ?? this.prePaddingSeconds, + postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, + isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, + parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, + parentBackdropImageTags: + parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: + isPostPaddingRequired ?? this.isPostPaddingRequired, + keepUntil: keepUntil ?? this.keepUntil, + recordAnyTime: recordAnyTime ?? this.recordAnyTime, + skipEpisodesInLibrary: + skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, + recordAnyChannel: recordAnyChannel ?? this.recordAnyChannel, + keepUpTo: keepUpTo ?? this.keepUpTo, + recordNewOnly: recordNewOnly ?? this.recordNewOnly, + days: days ?? this.days, + dayPattern: dayPattern ?? this.dayPattern, + imageTags: imageTags ?? this.imageTags, + parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, + parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, + parentPrimaryImageItemId: + parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: + parentPrimaryImageTag ?? this.parentPrimaryImageTag, + ); } - SeriesTimerInfoDto copyWithWrapped( - {Wrapped? id, - Wrapped? type, - Wrapped? serverId, - Wrapped? externalId, - Wrapped? channelId, - Wrapped? externalChannelId, - Wrapped? channelName, - Wrapped? channelPrimaryImageTag, - Wrapped? programId, - Wrapped? externalProgramId, - Wrapped? name, - Wrapped? overview, - Wrapped? startDate, - Wrapped? endDate, - Wrapped? serviceName, - Wrapped? priority, - Wrapped? prePaddingSeconds, - Wrapped? postPaddingSeconds, - Wrapped? isPrePaddingRequired, - Wrapped? parentBackdropItemId, - Wrapped?>? parentBackdropImageTags, - Wrapped? isPostPaddingRequired, - Wrapped? keepUntil, - Wrapped? recordAnyTime, - Wrapped? skipEpisodesInLibrary, - Wrapped? recordAnyChannel, - Wrapped? keepUpTo, - Wrapped? recordNewOnly, - Wrapped?>? days, - Wrapped? dayPattern, - Wrapped?>? imageTags, - Wrapped? parentThumbItemId, - Wrapped? parentThumbImageTag, - Wrapped? parentPrimaryImageItemId, - Wrapped? parentPrimaryImageTag}) { + SeriesTimerInfoDto copyWithWrapped({ + Wrapped? id, + Wrapped? type, + Wrapped? serverId, + Wrapped? externalId, + Wrapped? channelId, + Wrapped? externalChannelId, + Wrapped? channelName, + Wrapped? channelPrimaryImageTag, + Wrapped? programId, + Wrapped? externalProgramId, + Wrapped? name, + Wrapped? overview, + Wrapped? startDate, + Wrapped? endDate, + Wrapped? serviceName, + Wrapped? priority, + Wrapped? prePaddingSeconds, + Wrapped? postPaddingSeconds, + Wrapped? isPrePaddingRequired, + Wrapped? parentBackdropItemId, + Wrapped?>? parentBackdropImageTags, + Wrapped? isPostPaddingRequired, + Wrapped? keepUntil, + Wrapped? recordAnyTime, + Wrapped? skipEpisodesInLibrary, + Wrapped? recordAnyChannel, + Wrapped? keepUpTo, + Wrapped? recordNewOnly, + Wrapped?>? days, + Wrapped? dayPattern, + Wrapped?>? imageTags, + Wrapped? parentThumbItemId, + Wrapped? parentThumbImageTag, + Wrapped? parentPrimaryImageItemId, + Wrapped? parentPrimaryImageTag, + }) { return SeriesTimerInfoDto( - id: (id != null ? id.value : this.id), - type: (type != null ? type.value : this.type), - 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), - channelName: - (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), - programId: (programId != null ? programId.value : this.programId), - 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), - 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), - keepUpTo: (keepUpTo != null ? keepUpTo.value : this.keepUpTo), - 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)); + id: (id != null ? id.value : this.id), + type: (type != null ? type.value : this.type), + 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), + channelName: (channelName != null ? channelName.value : this.channelName), + channelPrimaryImageTag: (channelPrimaryImageTag != null + ? channelPrimaryImageTag.value + : this.channelPrimaryImageTag), + programId: (programId != null ? programId.value : this.programId), + 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), + 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), + keepUpTo: (keepUpTo != null ? keepUpTo.value : this.keepUpTo), + 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), + ); } } @@ -39407,7 +43258,10 @@ class SeriesTimerInfoDtoQueryResult { Map toJson() => _$SeriesTimerInfoDtoQueryResultToJson(this); @JsonKey( - name: 'Items', includeIfNull: false, defaultValue: []) + name: 'Items', + includeIfNull: false, + defaultValue: [], + ) final List? items; @JsonKey(name: 'TotalRecordCount', includeIfNull: false) final int? totalRecordCount; @@ -39422,11 +43276,15 @@ class SeriesTimerInfoDtoQueryResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -39442,26 +43300,30 @@ class SeriesTimerInfoDtoQueryResult { extension $SeriesTimerInfoDtoQueryResultExtension on SeriesTimerInfoDtoQueryResult { - SeriesTimerInfoDtoQueryResult copyWith( - {List? items, - int? totalRecordCount, - int? startIndex}) { + SeriesTimerInfoDtoQueryResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + }) { return SeriesTimerInfoDtoQueryResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ); } - SeriesTimerInfoDtoQueryResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex}) { + SeriesTimerInfoDtoQueryResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + }) { return SeriesTimerInfoDtoQueryResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @@ -39559,17 +43421,22 @@ class ServerConfiguration { @JsonKey(name: 'MetadataCountryCode', includeIfNull: false) final String? metadataCountryCode; @JsonKey( - name: 'SortReplaceCharacters', - includeIfNull: false, - defaultValue: []) + name: 'SortReplaceCharacters', + includeIfNull: false, + defaultValue: [], + ) final List? sortReplaceCharacters; @JsonKey( - name: 'SortRemoveCharacters', - includeIfNull: false, - defaultValue: []) + name: 'SortRemoveCharacters', + includeIfNull: false, + defaultValue: [], + ) final List? sortRemoveCharacters; @JsonKey( - name: 'SortRemoveWords', includeIfNull: false, defaultValue: []) + name: 'SortRemoveWords', + includeIfNull: false, + defaultValue: [], + ) final List? sortRemoveWords; @JsonKey(name: 'MinResumePct', includeIfNull: false) final int? minResumePct; @@ -39595,9 +43462,10 @@ class ServerConfiguration { ) final enums.ImageSavingConvention? imageSavingConvention; @JsonKey( - name: 'MetadataOptions', - includeIfNull: false, - defaultValue: []) + name: 'MetadataOptions', + includeIfNull: false, + defaultValue: [], + ) final List? metadataOptions; @JsonKey(name: 'SkipDeserializationForBasicTypes', includeIfNull: false) final bool? skipDeserializationForBasicTypes; @@ -39608,9 +43476,10 @@ class ServerConfiguration { @JsonKey(name: 'SaveMetadataHidden', includeIfNull: false) final bool? saveMetadataHidden; @JsonKey( - name: 'ContentTypes', - includeIfNull: false, - defaultValue: []) + name: 'ContentTypes', + includeIfNull: false, + defaultValue: [], + ) final List? contentTypes; @JsonKey(name: 'RemoteClientBitrateLimit', includeIfNull: false) final int? remoteClientBitrateLimit; @@ -39623,18 +43492,20 @@ class ServerConfiguration { @JsonKey(name: 'CodecsUsed', includeIfNull: false, defaultValue: []) final List? codecsUsed; @JsonKey( - name: 'PluginRepositories', - includeIfNull: false, - defaultValue: []) + name: 'PluginRepositories', + includeIfNull: false, + defaultValue: [], + ) final List? pluginRepositories; @JsonKey(name: 'EnableExternalContentInSuggestions', includeIfNull: false) final bool? enableExternalContentInSuggestions; @JsonKey(name: 'ImageExtractionTimeoutMs', includeIfNull: false) final int? imageExtractionTimeoutMs; @JsonKey( - name: 'PathSubstitutions', - includeIfNull: false, - defaultValue: []) + name: 'PathSubstitutions', + includeIfNull: false, + defaultValue: [], + ) final List? pathSubstitutions; @JsonKey(name: 'EnableSlowResponseWarning', includeIfNull: false) final bool? enableSlowResponseWarning; @@ -39664,9 +43535,10 @@ class ServerConfiguration { @JsonKey(name: 'ParallelImageEncodingLimit', includeIfNull: false) final int? parallelImageEncodingLimit; @JsonKey( - name: 'CastReceiverApplications', - includeIfNull: false, - defaultValue: []) + name: 'CastReceiverApplications', + includeIfNull: false, + defaultValue: [], + ) final List? castReceiverApplications; @JsonKey(name: 'TrickplayOptions', includeIfNull: false) final TrickplayOptions? trickplayOptions; @@ -39678,87 +43550,334 @@ class ServerConfiguration { (other is ServerConfiguration && (identical(other.logFileRetentionDays, logFileRetentionDays) || const DeepCollectionEquality().equals( - other.logFileRetentionDays, logFileRetentionDays)) && - (identical(other.isStartupWizardCompleted, isStartupWizardCompleted) || + other.logFileRetentionDays, + logFileRetentionDays, + )) && + (identical( + other.isStartupWizardCompleted, + isStartupWizardCompleted, + ) || const DeepCollectionEquality().equals( - other.isStartupWizardCompleted, - isStartupWizardCompleted)) && + other.isStartupWizardCompleted, + isStartupWizardCompleted, + )) && (identical(other.cachePath, cachePath) || - const DeepCollectionEquality() - .equals(other.cachePath, cachePath)) && - (identical(other.previousVersion, previousVersion) || - const DeepCollectionEquality() - .equals(other.previousVersion, previousVersion)) && - (identical(other.previousVersionStr, previousVersionStr) || - const DeepCollectionEquality() - .equals(other.previousVersionStr, previousVersionStr)) && - (identical(other.enableMetrics, enableMetrics) || - const DeepCollectionEquality() - .equals(other.enableMetrics, enableMetrics)) && - (identical(other.enableNormalizedItemByNameIds, enableNormalizedItemByNameIds) || const DeepCollectionEquality().equals( - other.enableNormalizedItemByNameIds, - enableNormalizedItemByNameIds)) && + other.cachePath, + cachePath, + )) && + (identical(other.previousVersion, previousVersion) || + const DeepCollectionEquality().equals( + other.previousVersion, + previousVersion, + )) && + (identical(other.previousVersionStr, previousVersionStr) || + const DeepCollectionEquality().equals( + other.previousVersionStr, + previousVersionStr, + )) && + (identical(other.enableMetrics, enableMetrics) || + const DeepCollectionEquality().equals( + other.enableMetrics, + enableMetrics, + )) && + (identical( + other.enableNormalizedItemByNameIds, + enableNormalizedItemByNameIds, + ) || + const DeepCollectionEquality().equals( + other.enableNormalizedItemByNameIds, + enableNormalizedItemByNameIds, + )) && (identical(other.isPortAuthorized, isPortAuthorized) || - const DeepCollectionEquality() - .equals(other.isPortAuthorized, isPortAuthorized)) && + const DeepCollectionEquality().equals( + other.isPortAuthorized, + isPortAuthorized, + )) && (identical(other.quickConnectAvailable, quickConnectAvailable) || const DeepCollectionEquality().equals( - other.quickConnectAvailable, quickConnectAvailable)) && - (identical(other.enableCaseSensitiveItemIds, enableCaseSensitiveItemIds) || + other.quickConnectAvailable, + quickConnectAvailable, + )) && + (identical( + other.enableCaseSensitiveItemIds, + enableCaseSensitiveItemIds, + ) || const DeepCollectionEquality().equals( - other.enableCaseSensitiveItemIds, - enableCaseSensitiveItemIds)) && - (identical(other.disableLiveTvChannelUserDataName, disableLiveTvChannelUserDataName) || + other.enableCaseSensitiveItemIds, + enableCaseSensitiveItemIds, + )) && + (identical( + other.disableLiveTvChannelUserDataName, + disableLiveTvChannelUserDataName, + ) || const DeepCollectionEquality().equals( - other.disableLiveTvChannelUserDataName, - disableLiveTvChannelUserDataName)) && + other.disableLiveTvChannelUserDataName, + disableLiveTvChannelUserDataName, + )) && (identical(other.metadataPath, metadataPath) || - const DeepCollectionEquality() - .equals(other.metadataPath, metadataPath)) && - (identical(other.preferredMetadataLanguage, preferredMetadataLanguage) || - const DeepCollectionEquality().equals(other.preferredMetadataLanguage, preferredMetadataLanguage)) && - (identical(other.metadataCountryCode, metadataCountryCode) || const DeepCollectionEquality().equals(other.metadataCountryCode, metadataCountryCode)) && - (identical(other.sortReplaceCharacters, sortReplaceCharacters) || const DeepCollectionEquality().equals(other.sortReplaceCharacters, sortReplaceCharacters)) && - (identical(other.sortRemoveCharacters, sortRemoveCharacters) || const DeepCollectionEquality().equals(other.sortRemoveCharacters, sortRemoveCharacters)) && - (identical(other.sortRemoveWords, sortRemoveWords) || const DeepCollectionEquality().equals(other.sortRemoveWords, sortRemoveWords)) && - (identical(other.minResumePct, minResumePct) || const DeepCollectionEquality().equals(other.minResumePct, minResumePct)) && - (identical(other.maxResumePct, maxResumePct) || const DeepCollectionEquality().equals(other.maxResumePct, maxResumePct)) && - (identical(other.minResumeDurationSeconds, minResumeDurationSeconds) || const DeepCollectionEquality().equals(other.minResumeDurationSeconds, minResumeDurationSeconds)) && - (identical(other.minAudiobookResume, minAudiobookResume) || const DeepCollectionEquality().equals(other.minAudiobookResume, minAudiobookResume)) && - (identical(other.maxAudiobookResume, maxAudiobookResume) || const DeepCollectionEquality().equals(other.maxAudiobookResume, maxAudiobookResume)) && - (identical(other.inactiveSessionThreshold, inactiveSessionThreshold) || const DeepCollectionEquality().equals(other.inactiveSessionThreshold, inactiveSessionThreshold)) && - (identical(other.libraryMonitorDelay, libraryMonitorDelay) || const DeepCollectionEquality().equals(other.libraryMonitorDelay, libraryMonitorDelay)) && - (identical(other.libraryUpdateDuration, libraryUpdateDuration) || const DeepCollectionEquality().equals(other.libraryUpdateDuration, libraryUpdateDuration)) && - (identical(other.imageSavingConvention, imageSavingConvention) || const DeepCollectionEquality().equals(other.imageSavingConvention, imageSavingConvention)) && - (identical(other.metadataOptions, metadataOptions) || const DeepCollectionEquality().equals(other.metadataOptions, metadataOptions)) && - (identical(other.skipDeserializationForBasicTypes, skipDeserializationForBasicTypes) || const DeepCollectionEquality().equals(other.skipDeserializationForBasicTypes, skipDeserializationForBasicTypes)) && - (identical(other.serverName, serverName) || const DeepCollectionEquality().equals(other.serverName, serverName)) && - (identical(other.uICulture, uICulture) || const DeepCollectionEquality().equals(other.uICulture, uICulture)) && - (identical(other.saveMetadataHidden, saveMetadataHidden) || const DeepCollectionEquality().equals(other.saveMetadataHidden, saveMetadataHidden)) && - (identical(other.contentTypes, contentTypes) || const DeepCollectionEquality().equals(other.contentTypes, contentTypes)) && - (identical(other.remoteClientBitrateLimit, remoteClientBitrateLimit) || const DeepCollectionEquality().equals(other.remoteClientBitrateLimit, remoteClientBitrateLimit)) && - (identical(other.enableFolderView, enableFolderView) || const DeepCollectionEquality().equals(other.enableFolderView, enableFolderView)) && - (identical(other.enableGroupingIntoCollections, enableGroupingIntoCollections) || const DeepCollectionEquality().equals(other.enableGroupingIntoCollections, enableGroupingIntoCollections)) && - (identical(other.displaySpecialsWithinSeasons, displaySpecialsWithinSeasons) || const DeepCollectionEquality().equals(other.displaySpecialsWithinSeasons, displaySpecialsWithinSeasons)) && - (identical(other.codecsUsed, codecsUsed) || const DeepCollectionEquality().equals(other.codecsUsed, codecsUsed)) && - (identical(other.pluginRepositories, pluginRepositories) || const DeepCollectionEquality().equals(other.pluginRepositories, pluginRepositories)) && - (identical(other.enableExternalContentInSuggestions, enableExternalContentInSuggestions) || const DeepCollectionEquality().equals(other.enableExternalContentInSuggestions, enableExternalContentInSuggestions)) && - (identical(other.imageExtractionTimeoutMs, imageExtractionTimeoutMs) || const DeepCollectionEquality().equals(other.imageExtractionTimeoutMs, imageExtractionTimeoutMs)) && - (identical(other.pathSubstitutions, pathSubstitutions) || const DeepCollectionEquality().equals(other.pathSubstitutions, pathSubstitutions)) && - (identical(other.enableSlowResponseWarning, enableSlowResponseWarning) || const DeepCollectionEquality().equals(other.enableSlowResponseWarning, enableSlowResponseWarning)) && - (identical(other.slowResponseThresholdMs, slowResponseThresholdMs) || const DeepCollectionEquality().equals(other.slowResponseThresholdMs, slowResponseThresholdMs)) && - (identical(other.corsHosts, corsHosts) || const DeepCollectionEquality().equals(other.corsHosts, corsHosts)) && - (identical(other.activityLogRetentionDays, activityLogRetentionDays) || const DeepCollectionEquality().equals(other.activityLogRetentionDays, activityLogRetentionDays)) && - (identical(other.libraryScanFanoutConcurrency, libraryScanFanoutConcurrency) || const DeepCollectionEquality().equals(other.libraryScanFanoutConcurrency, libraryScanFanoutConcurrency)) && - (identical(other.libraryMetadataRefreshConcurrency, libraryMetadataRefreshConcurrency) || const DeepCollectionEquality().equals(other.libraryMetadataRefreshConcurrency, libraryMetadataRefreshConcurrency)) && - (identical(other.removeOldPlugins, removeOldPlugins) || const DeepCollectionEquality().equals(other.removeOldPlugins, removeOldPlugins)) && - (identical(other.allowClientLogUpload, allowClientLogUpload) || const DeepCollectionEquality().equals(other.allowClientLogUpload, allowClientLogUpload)) && - (identical(other.dummyChapterDuration, dummyChapterDuration) || const DeepCollectionEquality().equals(other.dummyChapterDuration, dummyChapterDuration)) && - (identical(other.chapterImageResolution, chapterImageResolution) || const DeepCollectionEquality().equals(other.chapterImageResolution, chapterImageResolution)) && - (identical(other.parallelImageEncodingLimit, parallelImageEncodingLimit) || const DeepCollectionEquality().equals(other.parallelImageEncodingLimit, parallelImageEncodingLimit)) && - (identical(other.castReceiverApplications, castReceiverApplications) || const DeepCollectionEquality().equals(other.castReceiverApplications, castReceiverApplications)) && - (identical(other.trickplayOptions, trickplayOptions) || const DeepCollectionEquality().equals(other.trickplayOptions, trickplayOptions))); + const DeepCollectionEquality().equals( + other.metadataPath, + metadataPath, + )) && + (identical( + other.preferredMetadataLanguage, + preferredMetadataLanguage, + ) || + const DeepCollectionEquality().equals( + other.preferredMetadataLanguage, + preferredMetadataLanguage, + )) && + (identical(other.metadataCountryCode, metadataCountryCode) || + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && + (identical(other.sortReplaceCharacters, sortReplaceCharacters) || + const DeepCollectionEquality().equals( + other.sortReplaceCharacters, + sortReplaceCharacters, + )) && + (identical(other.sortRemoveCharacters, sortRemoveCharacters) || + const DeepCollectionEquality().equals( + other.sortRemoveCharacters, + sortRemoveCharacters, + )) && + (identical(other.sortRemoveWords, sortRemoveWords) || + const DeepCollectionEquality().equals( + other.sortRemoveWords, + sortRemoveWords, + )) && + (identical(other.minResumePct, minResumePct) || + const DeepCollectionEquality().equals( + other.minResumePct, + minResumePct, + )) && + (identical(other.maxResumePct, maxResumePct) || + const DeepCollectionEquality().equals( + other.maxResumePct, + maxResumePct, + )) && + (identical( + other.minResumeDurationSeconds, + minResumeDurationSeconds, + ) || + const DeepCollectionEquality().equals( + other.minResumeDurationSeconds, + minResumeDurationSeconds, + )) && + (identical(other.minAudiobookResume, minAudiobookResume) || + const DeepCollectionEquality().equals( + other.minAudiobookResume, + minAudiobookResume, + )) && + (identical(other.maxAudiobookResume, maxAudiobookResume) || + const DeepCollectionEquality().equals( + other.maxAudiobookResume, + maxAudiobookResume, + )) && + (identical( + other.inactiveSessionThreshold, + inactiveSessionThreshold, + ) || + const DeepCollectionEquality().equals( + other.inactiveSessionThreshold, + inactiveSessionThreshold, + )) && + (identical(other.libraryMonitorDelay, libraryMonitorDelay) || + const DeepCollectionEquality().equals( + other.libraryMonitorDelay, + libraryMonitorDelay, + )) && + (identical(other.libraryUpdateDuration, libraryUpdateDuration) || + const DeepCollectionEquality().equals( + other.libraryUpdateDuration, + libraryUpdateDuration, + )) && + (identical(other.imageSavingConvention, imageSavingConvention) || + const DeepCollectionEquality().equals( + other.imageSavingConvention, + imageSavingConvention, + )) && + (identical(other.metadataOptions, metadataOptions) || + const DeepCollectionEquality().equals( + other.metadataOptions, + metadataOptions, + )) && + (identical( + other.skipDeserializationForBasicTypes, + skipDeserializationForBasicTypes, + ) || + const DeepCollectionEquality().equals( + other.skipDeserializationForBasicTypes, + skipDeserializationForBasicTypes, + )) && + (identical(other.serverName, serverName) || + const DeepCollectionEquality().equals( + other.serverName, + serverName, + )) && + (identical(other.uICulture, uICulture) || + const DeepCollectionEquality().equals( + other.uICulture, + uICulture, + )) && + (identical(other.saveMetadataHidden, saveMetadataHidden) || + const DeepCollectionEquality().equals( + other.saveMetadataHidden, + saveMetadataHidden, + )) && + (identical(other.contentTypes, contentTypes) || + const DeepCollectionEquality().equals( + other.contentTypes, + contentTypes, + )) && + (identical( + other.remoteClientBitrateLimit, + remoteClientBitrateLimit, + ) || + const DeepCollectionEquality().equals( + other.remoteClientBitrateLimit, + remoteClientBitrateLimit, + )) && + (identical(other.enableFolderView, enableFolderView) || + const DeepCollectionEquality().equals( + other.enableFolderView, + enableFolderView, + )) && + (identical( + other.enableGroupingIntoCollections, + enableGroupingIntoCollections, + ) || + const DeepCollectionEquality().equals( + other.enableGroupingIntoCollections, + enableGroupingIntoCollections, + )) && + (identical( + other.displaySpecialsWithinSeasons, + displaySpecialsWithinSeasons, + ) || + const DeepCollectionEquality().equals( + other.displaySpecialsWithinSeasons, + displaySpecialsWithinSeasons, + )) && + (identical(other.codecsUsed, codecsUsed) || + const DeepCollectionEquality().equals( + other.codecsUsed, + codecsUsed, + )) && + (identical(other.pluginRepositories, pluginRepositories) || + const DeepCollectionEquality().equals( + other.pluginRepositories, + pluginRepositories, + )) && + (identical( + other.enableExternalContentInSuggestions, + enableExternalContentInSuggestions, + ) || + const DeepCollectionEquality().equals( + other.enableExternalContentInSuggestions, + enableExternalContentInSuggestions, + )) && + (identical( + other.imageExtractionTimeoutMs, + imageExtractionTimeoutMs, + ) || + const DeepCollectionEquality().equals( + other.imageExtractionTimeoutMs, + imageExtractionTimeoutMs, + )) && + (identical(other.pathSubstitutions, pathSubstitutions) || + const DeepCollectionEquality().equals( + other.pathSubstitutions, + pathSubstitutions, + )) && + (identical( + other.enableSlowResponseWarning, + enableSlowResponseWarning, + ) || + const DeepCollectionEquality().equals( + other.enableSlowResponseWarning, + enableSlowResponseWarning, + )) && + (identical( + other.slowResponseThresholdMs, + slowResponseThresholdMs, + ) || + const DeepCollectionEquality().equals( + other.slowResponseThresholdMs, + slowResponseThresholdMs, + )) && + (identical(other.corsHosts, corsHosts) || + const DeepCollectionEquality().equals( + other.corsHosts, + corsHosts, + )) && + (identical( + other.activityLogRetentionDays, + activityLogRetentionDays, + ) || + const DeepCollectionEquality().equals( + other.activityLogRetentionDays, + activityLogRetentionDays, + )) && + (identical( + other.libraryScanFanoutConcurrency, + libraryScanFanoutConcurrency, + ) || + const DeepCollectionEquality().equals( + other.libraryScanFanoutConcurrency, + libraryScanFanoutConcurrency, + )) && + (identical( + other.libraryMetadataRefreshConcurrency, + libraryMetadataRefreshConcurrency, + ) || + const DeepCollectionEquality().equals( + other.libraryMetadataRefreshConcurrency, + libraryMetadataRefreshConcurrency, + )) && + (identical(other.removeOldPlugins, removeOldPlugins) || + const DeepCollectionEquality().equals( + other.removeOldPlugins, + removeOldPlugins, + )) && + (identical(other.allowClientLogUpload, allowClientLogUpload) || + const DeepCollectionEquality().equals( + other.allowClientLogUpload, + allowClientLogUpload, + )) && + (identical(other.dummyChapterDuration, dummyChapterDuration) || + const DeepCollectionEquality().equals( + other.dummyChapterDuration, + dummyChapterDuration, + )) && + (identical(other.chapterImageResolution, chapterImageResolution) || + const DeepCollectionEquality().equals( + other.chapterImageResolution, + chapterImageResolution, + )) && + (identical( + other.parallelImageEncodingLimit, + parallelImageEncodingLimit, + ) || + const DeepCollectionEquality().equals( + other.parallelImageEncodingLimit, + parallelImageEncodingLimit, + )) && + (identical( + other.castReceiverApplications, + castReceiverApplications, + ) || + const DeepCollectionEquality().equals( + other.castReceiverApplications, + castReceiverApplications, + )) && + (identical(other.trickplayOptions, trickplayOptions) || + const DeepCollectionEquality().equals( + other.trickplayOptions, + trickplayOptions, + ))); } @override @@ -39824,328 +43943,363 @@ class ServerConfiguration { } extension $ServerConfigurationExtension on ServerConfiguration { - ServerConfiguration copyWith( - {int? logFileRetentionDays, - bool? isStartupWizardCompleted, - String? cachePath, - String? previousVersion, - String? previousVersionStr, - bool? enableMetrics, - bool? enableNormalizedItemByNameIds, - bool? isPortAuthorized, - bool? quickConnectAvailable, - bool? enableCaseSensitiveItemIds, - bool? disableLiveTvChannelUserDataName, - String? metadataPath, - String? preferredMetadataLanguage, - String? metadataCountryCode, - List? sortReplaceCharacters, - List? sortRemoveCharacters, - List? sortRemoveWords, - int? minResumePct, - int? maxResumePct, - int? minResumeDurationSeconds, - int? minAudiobookResume, - int? maxAudiobookResume, - int? inactiveSessionThreshold, - int? libraryMonitorDelay, - int? libraryUpdateDuration, - enums.ImageSavingConvention? imageSavingConvention, - List? metadataOptions, - bool? skipDeserializationForBasicTypes, - String? serverName, - String? uICulture, - bool? saveMetadataHidden, - List? contentTypes, - int? remoteClientBitrateLimit, - bool? enableFolderView, - bool? enableGroupingIntoCollections, - bool? displaySpecialsWithinSeasons, - List? codecsUsed, - List? pluginRepositories, - bool? enableExternalContentInSuggestions, - int? imageExtractionTimeoutMs, - List? pathSubstitutions, - bool? enableSlowResponseWarning, - int? slowResponseThresholdMs, - List? corsHosts, - int? activityLogRetentionDays, - int? libraryScanFanoutConcurrency, - int? libraryMetadataRefreshConcurrency, - bool? removeOldPlugins, - bool? allowClientLogUpload, - int? dummyChapterDuration, - enums.ImageResolution? chapterImageResolution, - int? parallelImageEncodingLimit, - List? castReceiverApplications, - TrickplayOptions? trickplayOptions}) { + ServerConfiguration copyWith({ + int? logFileRetentionDays, + bool? isStartupWizardCompleted, + String? cachePath, + String? previousVersion, + String? previousVersionStr, + bool? enableMetrics, + bool? enableNormalizedItemByNameIds, + bool? isPortAuthorized, + bool? quickConnectAvailable, + bool? enableCaseSensitiveItemIds, + bool? disableLiveTvChannelUserDataName, + String? metadataPath, + String? preferredMetadataLanguage, + String? metadataCountryCode, + List? sortReplaceCharacters, + List? sortRemoveCharacters, + List? sortRemoveWords, + int? minResumePct, + int? maxResumePct, + int? minResumeDurationSeconds, + int? minAudiobookResume, + int? maxAudiobookResume, + int? inactiveSessionThreshold, + int? libraryMonitorDelay, + int? libraryUpdateDuration, + enums.ImageSavingConvention? imageSavingConvention, + List? metadataOptions, + bool? skipDeserializationForBasicTypes, + String? serverName, + String? uICulture, + bool? saveMetadataHidden, + List? contentTypes, + int? remoteClientBitrateLimit, + bool? enableFolderView, + bool? enableGroupingIntoCollections, + bool? displaySpecialsWithinSeasons, + List? codecsUsed, + List? pluginRepositories, + bool? enableExternalContentInSuggestions, + int? imageExtractionTimeoutMs, + List? pathSubstitutions, + bool? enableSlowResponseWarning, + int? slowResponseThresholdMs, + List? corsHosts, + int? activityLogRetentionDays, + int? libraryScanFanoutConcurrency, + int? libraryMetadataRefreshConcurrency, + bool? removeOldPlugins, + bool? allowClientLogUpload, + int? dummyChapterDuration, + enums.ImageResolution? chapterImageResolution, + int? parallelImageEncodingLimit, + List? castReceiverApplications, + TrickplayOptions? trickplayOptions, + }) { return ServerConfiguration( - logFileRetentionDays: logFileRetentionDays ?? this.logFileRetentionDays, - isStartupWizardCompleted: - isStartupWizardCompleted ?? this.isStartupWizardCompleted, - cachePath: cachePath ?? this.cachePath, - previousVersion: previousVersion ?? this.previousVersion, - previousVersionStr: previousVersionStr ?? this.previousVersionStr, - enableMetrics: enableMetrics ?? this.enableMetrics, - enableNormalizedItemByNameIds: - enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, - isPortAuthorized: isPortAuthorized ?? this.isPortAuthorized, - quickConnectAvailable: - quickConnectAvailable ?? this.quickConnectAvailable, - enableCaseSensitiveItemIds: - enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, - disableLiveTvChannelUserDataName: disableLiveTvChannelUserDataName ?? - this.disableLiveTvChannelUserDataName, - metadataPath: metadataPath ?? this.metadataPath, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - sortReplaceCharacters: - sortReplaceCharacters ?? this.sortReplaceCharacters, - sortRemoveCharacters: sortRemoveCharacters ?? this.sortRemoveCharacters, - sortRemoveWords: sortRemoveWords ?? this.sortRemoveWords, - minResumePct: minResumePct ?? this.minResumePct, - maxResumePct: maxResumePct ?? this.maxResumePct, - minResumeDurationSeconds: - minResumeDurationSeconds ?? this.minResumeDurationSeconds, - minAudiobookResume: minAudiobookResume ?? this.minAudiobookResume, - maxAudiobookResume: maxAudiobookResume ?? this.maxAudiobookResume, - inactiveSessionThreshold: - inactiveSessionThreshold ?? this.inactiveSessionThreshold, - libraryMonitorDelay: libraryMonitorDelay ?? this.libraryMonitorDelay, - libraryUpdateDuration: - libraryUpdateDuration ?? this.libraryUpdateDuration, - imageSavingConvention: - imageSavingConvention ?? this.imageSavingConvention, - metadataOptions: metadataOptions ?? this.metadataOptions, - skipDeserializationForBasicTypes: skipDeserializationForBasicTypes ?? - this.skipDeserializationForBasicTypes, - serverName: serverName ?? this.serverName, - uICulture: uICulture ?? this.uICulture, - saveMetadataHidden: saveMetadataHidden ?? this.saveMetadataHidden, - contentTypes: contentTypes ?? this.contentTypes, - remoteClientBitrateLimit: - remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, - enableFolderView: enableFolderView ?? this.enableFolderView, - enableGroupingIntoCollections: - enableGroupingIntoCollections ?? this.enableGroupingIntoCollections, - displaySpecialsWithinSeasons: - displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, - codecsUsed: codecsUsed ?? this.codecsUsed, - pluginRepositories: pluginRepositories ?? this.pluginRepositories, - enableExternalContentInSuggestions: - enableExternalContentInSuggestions ?? - this.enableExternalContentInSuggestions, - imageExtractionTimeoutMs: - imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, - pathSubstitutions: pathSubstitutions ?? this.pathSubstitutions, - enableSlowResponseWarning: - enableSlowResponseWarning ?? this.enableSlowResponseWarning, - slowResponseThresholdMs: - slowResponseThresholdMs ?? this.slowResponseThresholdMs, - corsHosts: corsHosts ?? this.corsHosts, - activityLogRetentionDays: - activityLogRetentionDays ?? this.activityLogRetentionDays, - libraryScanFanoutConcurrency: - libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, - libraryMetadataRefreshConcurrency: libraryMetadataRefreshConcurrency ?? - this.libraryMetadataRefreshConcurrency, - removeOldPlugins: removeOldPlugins ?? this.removeOldPlugins, - allowClientLogUpload: allowClientLogUpload ?? this.allowClientLogUpload, - dummyChapterDuration: dummyChapterDuration ?? this.dummyChapterDuration, - chapterImageResolution: - chapterImageResolution ?? this.chapterImageResolution, - parallelImageEncodingLimit: - parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, - castReceiverApplications: - castReceiverApplications ?? this.castReceiverApplications, - trickplayOptions: trickplayOptions ?? this.trickplayOptions); + logFileRetentionDays: logFileRetentionDays ?? this.logFileRetentionDays, + isStartupWizardCompleted: + isStartupWizardCompleted ?? this.isStartupWizardCompleted, + cachePath: cachePath ?? this.cachePath, + previousVersion: previousVersion ?? this.previousVersion, + previousVersionStr: previousVersionStr ?? this.previousVersionStr, + enableMetrics: enableMetrics ?? this.enableMetrics, + enableNormalizedItemByNameIds: + enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, + isPortAuthorized: isPortAuthorized ?? this.isPortAuthorized, + quickConnectAvailable: + quickConnectAvailable ?? this.quickConnectAvailable, + enableCaseSensitiveItemIds: + enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, + disableLiveTvChannelUserDataName: + disableLiveTvChannelUserDataName ?? + this.disableLiveTvChannelUserDataName, + metadataPath: metadataPath ?? this.metadataPath, + preferredMetadataLanguage: + preferredMetadataLanguage ?? this.preferredMetadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + sortReplaceCharacters: + sortReplaceCharacters ?? this.sortReplaceCharacters, + sortRemoveCharacters: sortRemoveCharacters ?? this.sortRemoveCharacters, + sortRemoveWords: sortRemoveWords ?? this.sortRemoveWords, + minResumePct: minResumePct ?? this.minResumePct, + maxResumePct: maxResumePct ?? this.maxResumePct, + minResumeDurationSeconds: + minResumeDurationSeconds ?? this.minResumeDurationSeconds, + minAudiobookResume: minAudiobookResume ?? this.minAudiobookResume, + maxAudiobookResume: maxAudiobookResume ?? this.maxAudiobookResume, + inactiveSessionThreshold: + inactiveSessionThreshold ?? this.inactiveSessionThreshold, + libraryMonitorDelay: libraryMonitorDelay ?? this.libraryMonitorDelay, + libraryUpdateDuration: + libraryUpdateDuration ?? this.libraryUpdateDuration, + imageSavingConvention: + imageSavingConvention ?? this.imageSavingConvention, + metadataOptions: metadataOptions ?? this.metadataOptions, + skipDeserializationForBasicTypes: + skipDeserializationForBasicTypes ?? + this.skipDeserializationForBasicTypes, + serverName: serverName ?? this.serverName, + uICulture: uICulture ?? this.uICulture, + saveMetadataHidden: saveMetadataHidden ?? this.saveMetadataHidden, + contentTypes: contentTypes ?? this.contentTypes, + remoteClientBitrateLimit: + remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, + enableFolderView: enableFolderView ?? this.enableFolderView, + enableGroupingIntoCollections: + enableGroupingIntoCollections ?? this.enableGroupingIntoCollections, + displaySpecialsWithinSeasons: + displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, + codecsUsed: codecsUsed ?? this.codecsUsed, + pluginRepositories: pluginRepositories ?? this.pluginRepositories, + enableExternalContentInSuggestions: + enableExternalContentInSuggestions ?? + this.enableExternalContentInSuggestions, + imageExtractionTimeoutMs: + imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, + pathSubstitutions: pathSubstitutions ?? this.pathSubstitutions, + enableSlowResponseWarning: + enableSlowResponseWarning ?? this.enableSlowResponseWarning, + slowResponseThresholdMs: + slowResponseThresholdMs ?? this.slowResponseThresholdMs, + corsHosts: corsHosts ?? this.corsHosts, + activityLogRetentionDays: + activityLogRetentionDays ?? this.activityLogRetentionDays, + libraryScanFanoutConcurrency: + libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, + libraryMetadataRefreshConcurrency: + libraryMetadataRefreshConcurrency ?? + this.libraryMetadataRefreshConcurrency, + removeOldPlugins: removeOldPlugins ?? this.removeOldPlugins, + allowClientLogUpload: allowClientLogUpload ?? this.allowClientLogUpload, + dummyChapterDuration: dummyChapterDuration ?? this.dummyChapterDuration, + chapterImageResolution: + chapterImageResolution ?? this.chapterImageResolution, + parallelImageEncodingLimit: + parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, + castReceiverApplications: + castReceiverApplications ?? this.castReceiverApplications, + trickplayOptions: trickplayOptions ?? this.trickplayOptions, + ); } - ServerConfiguration copyWithWrapped( - {Wrapped? logFileRetentionDays, - Wrapped? isStartupWizardCompleted, - Wrapped? cachePath, - Wrapped? previousVersion, - Wrapped? previousVersionStr, - Wrapped? enableMetrics, - Wrapped? enableNormalizedItemByNameIds, - Wrapped? isPortAuthorized, - Wrapped? quickConnectAvailable, - Wrapped? enableCaseSensitiveItemIds, - Wrapped? disableLiveTvChannelUserDataName, - Wrapped? metadataPath, - Wrapped? preferredMetadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? sortReplaceCharacters, - Wrapped?>? sortRemoveCharacters, - Wrapped?>? sortRemoveWords, - Wrapped? minResumePct, - Wrapped? maxResumePct, - Wrapped? minResumeDurationSeconds, - Wrapped? minAudiobookResume, - Wrapped? maxAudiobookResume, - Wrapped? inactiveSessionThreshold, - Wrapped? libraryMonitorDelay, - Wrapped? libraryUpdateDuration, - Wrapped? imageSavingConvention, - Wrapped?>? metadataOptions, - Wrapped? skipDeserializationForBasicTypes, - Wrapped? serverName, - Wrapped? uICulture, - Wrapped? saveMetadataHidden, - Wrapped?>? contentTypes, - Wrapped? remoteClientBitrateLimit, - Wrapped? enableFolderView, - Wrapped? enableGroupingIntoCollections, - Wrapped? displaySpecialsWithinSeasons, - Wrapped?>? codecsUsed, - Wrapped?>? pluginRepositories, - Wrapped? enableExternalContentInSuggestions, - Wrapped? imageExtractionTimeoutMs, - Wrapped?>? pathSubstitutions, - Wrapped? enableSlowResponseWarning, - Wrapped? slowResponseThresholdMs, - Wrapped?>? corsHosts, - Wrapped? activityLogRetentionDays, - Wrapped? libraryScanFanoutConcurrency, - Wrapped? libraryMetadataRefreshConcurrency, - Wrapped? removeOldPlugins, - Wrapped? allowClientLogUpload, - Wrapped? dummyChapterDuration, - Wrapped? chapterImageResolution, - Wrapped? parallelImageEncodingLimit, - Wrapped?>? castReceiverApplications, - Wrapped? trickplayOptions}) { + ServerConfiguration copyWithWrapped({ + Wrapped? logFileRetentionDays, + Wrapped? isStartupWizardCompleted, + Wrapped? cachePath, + Wrapped? previousVersion, + Wrapped? previousVersionStr, + Wrapped? enableMetrics, + Wrapped? enableNormalizedItemByNameIds, + Wrapped? isPortAuthorized, + Wrapped? quickConnectAvailable, + Wrapped? enableCaseSensitiveItemIds, + Wrapped? disableLiveTvChannelUserDataName, + Wrapped? metadataPath, + Wrapped? preferredMetadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? sortReplaceCharacters, + Wrapped?>? sortRemoveCharacters, + Wrapped?>? sortRemoveWords, + Wrapped? minResumePct, + Wrapped? maxResumePct, + Wrapped? minResumeDurationSeconds, + Wrapped? minAudiobookResume, + Wrapped? maxAudiobookResume, + Wrapped? inactiveSessionThreshold, + Wrapped? libraryMonitorDelay, + Wrapped? libraryUpdateDuration, + Wrapped? imageSavingConvention, + Wrapped?>? metadataOptions, + Wrapped? skipDeserializationForBasicTypes, + Wrapped? serverName, + Wrapped? uICulture, + Wrapped? saveMetadataHidden, + Wrapped?>? contentTypes, + Wrapped? remoteClientBitrateLimit, + Wrapped? enableFolderView, + Wrapped? enableGroupingIntoCollections, + Wrapped? displaySpecialsWithinSeasons, + Wrapped?>? codecsUsed, + Wrapped?>? pluginRepositories, + Wrapped? enableExternalContentInSuggestions, + Wrapped? imageExtractionTimeoutMs, + Wrapped?>? pathSubstitutions, + Wrapped? enableSlowResponseWarning, + Wrapped? slowResponseThresholdMs, + Wrapped?>? corsHosts, + Wrapped? activityLogRetentionDays, + Wrapped? libraryScanFanoutConcurrency, + Wrapped? libraryMetadataRefreshConcurrency, + Wrapped? removeOldPlugins, + Wrapped? allowClientLogUpload, + Wrapped? dummyChapterDuration, + Wrapped? chapterImageResolution, + Wrapped? parallelImageEncodingLimit, + Wrapped?>? castReceiverApplications, + Wrapped? trickplayOptions, + }) { return ServerConfiguration( - 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), - 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 - ? 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), - 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), - enableGroupingIntoCollections: (enableGroupingIntoCollections != null - ? enableGroupingIntoCollections.value - : this.enableGroupingIntoCollections), - displaySpecialsWithinSeasons: (displaySpecialsWithinSeasons != null - ? displaySpecialsWithinSeasons.value - : this.displaySpecialsWithinSeasons), - codecsUsed: (codecsUsed != null ? codecsUsed.value : this.codecsUsed), - 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), - corsHosts: (corsHosts != null ? corsHosts.value : this.corsHosts), - activityLogRetentionDays: - (activityLogRetentionDays != null ? activityLogRetentionDays.value : this.activityLogRetentionDays), - libraryScanFanoutConcurrency: (libraryScanFanoutConcurrency != null ? libraryScanFanoutConcurrency.value : this.libraryScanFanoutConcurrency), - libraryMetadataRefreshConcurrency: (libraryMetadataRefreshConcurrency != null ? libraryMetadataRefreshConcurrency.value : this.libraryMetadataRefreshConcurrency), - removeOldPlugins: (removeOldPlugins != null ? removeOldPlugins.value : this.removeOldPlugins), - 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)); + 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), + 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 + ? 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), + 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), + enableGroupingIntoCollections: (enableGroupingIntoCollections != null + ? enableGroupingIntoCollections.value + : this.enableGroupingIntoCollections), + displaySpecialsWithinSeasons: (displaySpecialsWithinSeasons != null + ? displaySpecialsWithinSeasons.value + : this.displaySpecialsWithinSeasons), + codecsUsed: (codecsUsed != null ? codecsUsed.value : this.codecsUsed), + 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), + corsHosts: (corsHosts != null ? corsHosts.value : this.corsHosts), + activityLogRetentionDays: (activityLogRetentionDays != null + ? activityLogRetentionDays.value + : this.activityLogRetentionDays), + libraryScanFanoutConcurrency: (libraryScanFanoutConcurrency != null + ? libraryScanFanoutConcurrency.value + : this.libraryScanFanoutConcurrency), + libraryMetadataRefreshConcurrency: + (libraryMetadataRefreshConcurrency != null + ? libraryMetadataRefreshConcurrency.value + : this.libraryMetadataRefreshConcurrency), + removeOldPlugins: (removeOldPlugins != null + ? removeOldPlugins.value + : this.removeOldPlugins), + 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), + ); } } @@ -40179,15 +44333,19 @@ class ServerDiscoveryInfo { return identical(this, other) || (other is ServerDiscoveryInfo && (identical(other.address, address) || - const DeepCollectionEquality() - .equals(other.address, address)) && + const DeepCollectionEquality().equals( + 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.endpointAddress, endpointAddress) || - const DeepCollectionEquality() - .equals(other.endpointAddress, endpointAddress))); + const DeepCollectionEquality().equals( + other.endpointAddress, + endpointAddress, + ))); } @override @@ -40203,36 +44361,40 @@ class ServerDiscoveryInfo { } extension $ServerDiscoveryInfoExtension on ServerDiscoveryInfo { - ServerDiscoveryInfo copyWith( - {String? address, String? id, String? name, String? endpointAddress}) { + ServerDiscoveryInfo copyWith({ + String? address, + String? id, + String? name, + String? endpointAddress, + }) { return ServerDiscoveryInfo( - address: address ?? this.address, - id: id ?? this.id, - name: name ?? this.name, - endpointAddress: endpointAddress ?? this.endpointAddress); + address: address ?? this.address, + id: id ?? this.id, + name: name ?? this.name, + endpointAddress: endpointAddress ?? this.endpointAddress, + ); } - ServerDiscoveryInfo copyWithWrapped( - {Wrapped? address, - Wrapped? id, - Wrapped? name, - Wrapped? endpointAddress}) { + ServerDiscoveryInfo copyWithWrapped({ + Wrapped? address, + Wrapped? id, + Wrapped? name, + Wrapped? endpointAddress, + }) { return 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class ServerRestartingMessage { - const ServerRestartingMessage({ - this.messageId, - this.messageType, - }); + const ServerRestartingMessage({this.messageId, this.messageType}); factory ServerRestartingMessage.fromJson(Map json) => _$ServerRestartingMessageFromJson(json); @@ -40250,9 +44412,11 @@ class ServerRestartingMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.serverrestarting); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.serverrestarting, + ); static const fromJsonFactory = _$ServerRestartingMessageFromJson; @@ -40261,11 +44425,15 @@ class ServerRestartingMessage { return identical(this, other) || (other is ServerRestartingMessage && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -40279,29 +44447,30 @@ class ServerRestartingMessage { } extension $ServerRestartingMessageExtension on ServerRestartingMessage { - ServerRestartingMessage copyWith( - {String? messageId, enums.SessionMessageType? messageType}) { + ServerRestartingMessage copyWith({ + String? messageId, + enums.SessionMessageType? messageType, + }) { return ServerRestartingMessage( - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - ServerRestartingMessage copyWithWrapped( - {Wrapped? messageId, - Wrapped? messageType}) { + ServerRestartingMessage copyWithWrapped({ + Wrapped? messageId, + Wrapped? messageType, + }) { return ServerRestartingMessage( - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class ServerShuttingDownMessage { - const ServerShuttingDownMessage({ - this.messageId, - this.messageType, - }); + const ServerShuttingDownMessage({this.messageId, this.messageType}); factory ServerShuttingDownMessage.fromJson(Map json) => _$ServerShuttingDownMessageFromJson(json); @@ -40319,9 +44488,11 @@ class ServerShuttingDownMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.servershuttingdown); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.servershuttingdown, + ); static const fromJsonFactory = _$ServerShuttingDownMessageFromJson; @@ -40330,11 +44501,15 @@ class ServerShuttingDownMessage { return identical(this, other) || (other is ServerShuttingDownMessage && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -40348,20 +44523,24 @@ class ServerShuttingDownMessage { } extension $ServerShuttingDownMessageExtension on ServerShuttingDownMessage { - ServerShuttingDownMessage copyWith( - {String? messageId, enums.SessionMessageType? messageType}) { + ServerShuttingDownMessage copyWith({ + String? messageId, + enums.SessionMessageType? messageType, + }) { return ServerShuttingDownMessage( - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - ServerShuttingDownMessage copyWithWrapped( - {Wrapped? messageId, - Wrapped? messageType}) { + ServerShuttingDownMessage copyWithWrapped({ + Wrapped? messageId, + Wrapped? messageType, + }) { return ServerShuttingDownMessage( - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -40408,9 +44587,10 @@ class SessionInfoDto { @JsonKey(name: 'PlayState', includeIfNull: false) final PlayerStateInfo? playState; @JsonKey( - name: 'AdditionalUsers', - includeIfNull: false, - defaultValue: []) + name: 'AdditionalUsers', + includeIfNull: false, + defaultValue: [], + ) final List? additionalUsers; @JsonKey(name: 'Capabilities', includeIfNull: false) final ClientCapabilitiesDto? capabilities; @@ -40458,14 +44638,16 @@ class SessionInfoDto { @JsonKey(name: 'SupportsRemoteControl', includeIfNull: false) final bool? supportsRemoteControl; @JsonKey( - name: 'NowPlayingQueue', - includeIfNull: false, - defaultValue: []) + name: 'NowPlayingQueue', + includeIfNull: false, + defaultValue: [], + ) final List? nowPlayingQueue; @JsonKey( - name: 'NowPlayingQueueFullItems', - includeIfNull: false, - defaultValue: []) + name: 'NowPlayingQueueFullItems', + includeIfNull: false, + defaultValue: [], + ) final List? nowPlayingQueueFullItems; @JsonKey(name: 'HasCustomDeviceName', includeIfNull: false) final bool? hasCustomDeviceName; @@ -40489,76 +44671,147 @@ class SessionInfoDto { return identical(this, other) || (other is SessionInfoDto && (identical(other.playState, playState) || - const DeepCollectionEquality() - .equals(other.playState, playState)) && + const DeepCollectionEquality().equals( + other.playState, + playState, + )) && (identical(other.additionalUsers, additionalUsers) || - const DeepCollectionEquality() - .equals(other.additionalUsers, additionalUsers)) && + const DeepCollectionEquality().equals( + other.additionalUsers, + additionalUsers, + )) && (identical(other.capabilities, capabilities) || - const DeepCollectionEquality() - .equals(other.capabilities, capabilities)) && + const DeepCollectionEquality().equals( + other.capabilities, + capabilities, + )) && (identical(other.remoteEndPoint, remoteEndPoint) || - const DeepCollectionEquality() - .equals(other.remoteEndPoint, remoteEndPoint)) && + const DeepCollectionEquality().equals( + other.remoteEndPoint, + remoteEndPoint, + )) && (identical(other.playableMediaTypes, playableMediaTypes) || - const DeepCollectionEquality() - .equals(other.playableMediaTypes, playableMediaTypes)) && + const DeepCollectionEquality().equals( + 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.userName, userName) || - const DeepCollectionEquality() - .equals(other.userName, userName)) && + const DeepCollectionEquality().equals( + other.userName, + userName, + )) && (identical(other.$Client, $Client) || - const DeepCollectionEquality() - .equals(other.$Client, $Client)) && + const DeepCollectionEquality().equals( + other.$Client, + $Client, + )) && (identical(other.lastActivityDate, lastActivityDate) || - const DeepCollectionEquality() - .equals(other.lastActivityDate, lastActivityDate)) && + const DeepCollectionEquality().equals( + other.lastActivityDate, + lastActivityDate, + )) && (identical(other.lastPlaybackCheckIn, lastPlaybackCheckIn) || - const DeepCollectionEquality() - .equals(other.lastPlaybackCheckIn, lastPlaybackCheckIn)) && + const DeepCollectionEquality().equals( + other.lastPlaybackCheckIn, + lastPlaybackCheckIn, + )) && (identical(other.lastPausedDate, lastPausedDate) || - const DeepCollectionEquality() - .equals(other.lastPausedDate, lastPausedDate)) && + const DeepCollectionEquality().equals( + other.lastPausedDate, + lastPausedDate, + )) && (identical(other.deviceName, deviceName) || - const DeepCollectionEquality() - .equals(other.deviceName, deviceName)) && + const DeepCollectionEquality().equals( + other.deviceName, + deviceName, + )) && (identical(other.deviceType, deviceType) || - const DeepCollectionEquality() - .equals(other.deviceType, deviceType)) && + const DeepCollectionEquality().equals( + other.deviceType, + deviceType, + )) && (identical(other.nowPlayingItem, nowPlayingItem) || - const DeepCollectionEquality() - .equals(other.nowPlayingItem, nowPlayingItem)) && + const DeepCollectionEquality().equals( + other.nowPlayingItem, + nowPlayingItem, + )) && (identical(other.nowViewingItem, nowViewingItem) || - const DeepCollectionEquality() - .equals(other.nowViewingItem, nowViewingItem)) && + const DeepCollectionEquality().equals( + other.nowViewingItem, + nowViewingItem, + )) && (identical(other.deviceId, deviceId) || - const DeepCollectionEquality() - .equals(other.deviceId, deviceId)) && + const DeepCollectionEquality().equals( + other.deviceId, + deviceId, + )) && (identical(other.applicationVersion, applicationVersion) || - const DeepCollectionEquality() - .equals(other.applicationVersion, applicationVersion)) && + const DeepCollectionEquality().equals( + other.applicationVersion, + applicationVersion, + )) && (identical(other.transcodingInfo, transcodingInfo) || - const DeepCollectionEquality() - .equals(other.transcodingInfo, transcodingInfo)) && + const DeepCollectionEquality().equals( + other.transcodingInfo, + transcodingInfo, + )) && (identical(other.isActive, isActive) || - const DeepCollectionEquality() - .equals(other.isActive, isActive)) && + const DeepCollectionEquality().equals( + other.isActive, + isActive, + )) && (identical(other.supportsMediaControl, supportsMediaControl) || const DeepCollectionEquality().equals( - other.supportsMediaControl, supportsMediaControl)) && + other.supportsMediaControl, + supportsMediaControl, + )) && (identical(other.supportsRemoteControl, supportsRemoteControl) || const DeepCollectionEquality().equals( - other.supportsRemoteControl, supportsRemoteControl)) && - (identical(other.nowPlayingQueue, nowPlayingQueue) || const DeepCollectionEquality().equals(other.nowPlayingQueue, nowPlayingQueue)) && - (identical(other.nowPlayingQueueFullItems, nowPlayingQueueFullItems) || const DeepCollectionEquality().equals(other.nowPlayingQueueFullItems, nowPlayingQueueFullItems)) && - (identical(other.hasCustomDeviceName, hasCustomDeviceName) || const DeepCollectionEquality().equals(other.hasCustomDeviceName, hasCustomDeviceName)) && - (identical(other.playlistItemId, playlistItemId) || const DeepCollectionEquality().equals(other.playlistItemId, playlistItemId)) && - (identical(other.serverId, serverId) || const DeepCollectionEquality().equals(other.serverId, serverId)) && - (identical(other.userPrimaryImageTag, userPrimaryImageTag) || const DeepCollectionEquality().equals(other.userPrimaryImageTag, userPrimaryImageTag)) && - (identical(other.supportedCommands, supportedCommands) || const DeepCollectionEquality().equals(other.supportedCommands, supportedCommands))); + other.supportsRemoteControl, + supportsRemoteControl, + )) && + (identical(other.nowPlayingQueue, nowPlayingQueue) || + const DeepCollectionEquality().equals( + other.nowPlayingQueue, + nowPlayingQueue, + )) && + (identical( + other.nowPlayingQueueFullItems, + nowPlayingQueueFullItems, + ) || + const DeepCollectionEquality().equals( + other.nowPlayingQueueFullItems, + nowPlayingQueueFullItems, + )) && + (identical(other.hasCustomDeviceName, hasCustomDeviceName) || + const DeepCollectionEquality().equals( + other.hasCustomDeviceName, + hasCustomDeviceName, + )) && + (identical(other.playlistItemId, playlistItemId) || + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + )) && + (identical(other.serverId, serverId) || + const DeepCollectionEquality().equals( + other.serverId, + serverId, + )) && + (identical(other.userPrimaryImageTag, userPrimaryImageTag) || + const DeepCollectionEquality().equals( + other.userPrimaryImageTag, + userPrimaryImageTag, + )) && + (identical(other.supportedCommands, supportedCommands) || + const DeepCollectionEquality().equals( + other.supportedCommands, + supportedCommands, + ))); } @override @@ -40599,177 +44852,178 @@ class SessionInfoDto { } extension $SessionInfoDtoExtension on SessionInfoDto { - SessionInfoDto copyWith( - {PlayerStateInfo? playState, - List? additionalUsers, - ClientCapabilitiesDto? capabilities, - String? remoteEndPoint, - List? playableMediaTypes, - String? id, - String? userId, - String? userName, - String? $Client, - DateTime? lastActivityDate, - DateTime? lastPlaybackCheckIn, - DateTime? lastPausedDate, - String? deviceName, - String? deviceType, - BaseItemDto? nowPlayingItem, - BaseItemDto? nowViewingItem, - String? deviceId, - String? applicationVersion, - TranscodingInfo? transcodingInfo, - bool? isActive, - bool? supportsMediaControl, - bool? supportsRemoteControl, - List? nowPlayingQueue, - List? nowPlayingQueueFullItems, - bool? hasCustomDeviceName, - String? playlistItemId, - String? serverId, - String? userPrimaryImageTag, - List? supportedCommands}) { + SessionInfoDto copyWith({ + PlayerStateInfo? playState, + List? additionalUsers, + ClientCapabilitiesDto? capabilities, + String? remoteEndPoint, + List? playableMediaTypes, + String? id, + String? userId, + String? userName, + String? $Client, + DateTime? lastActivityDate, + DateTime? lastPlaybackCheckIn, + DateTime? lastPausedDate, + String? deviceName, + String? deviceType, + BaseItemDto? nowPlayingItem, + BaseItemDto? nowViewingItem, + String? deviceId, + String? applicationVersion, + TranscodingInfo? transcodingInfo, + bool? isActive, + bool? supportsMediaControl, + bool? supportsRemoteControl, + List? nowPlayingQueue, + List? nowPlayingQueueFullItems, + bool? hasCustomDeviceName, + String? playlistItemId, + String? serverId, + String? userPrimaryImageTag, + List? supportedCommands, + }) { return SessionInfoDto( - playState: playState ?? this.playState, - additionalUsers: additionalUsers ?? this.additionalUsers, - capabilities: capabilities ?? this.capabilities, - remoteEndPoint: remoteEndPoint ?? this.remoteEndPoint, - playableMediaTypes: playableMediaTypes ?? this.playableMediaTypes, - id: id ?? this.id, - userId: userId ?? this.userId, - userName: userName ?? this.userName, - $Client: $Client ?? this.$Client, - lastActivityDate: lastActivityDate ?? this.lastActivityDate, - lastPlaybackCheckIn: lastPlaybackCheckIn ?? this.lastPlaybackCheckIn, - lastPausedDate: lastPausedDate ?? this.lastPausedDate, - deviceName: deviceName ?? this.deviceName, - deviceType: deviceType ?? this.deviceType, - nowPlayingItem: nowPlayingItem ?? this.nowPlayingItem, - nowViewingItem: nowViewingItem ?? this.nowViewingItem, - deviceId: deviceId ?? this.deviceId, - applicationVersion: applicationVersion ?? this.applicationVersion, - transcodingInfo: transcodingInfo ?? this.transcodingInfo, - isActive: isActive ?? this.isActive, - supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsRemoteControl: - supportsRemoteControl ?? this.supportsRemoteControl, - nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, - nowPlayingQueueFullItems: - nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, - hasCustomDeviceName: hasCustomDeviceName ?? this.hasCustomDeviceName, - playlistItemId: playlistItemId ?? this.playlistItemId, - serverId: serverId ?? this.serverId, - userPrimaryImageTag: userPrimaryImageTag ?? this.userPrimaryImageTag, - supportedCommands: supportedCommands ?? this.supportedCommands); + playState: playState ?? this.playState, + additionalUsers: additionalUsers ?? this.additionalUsers, + capabilities: capabilities ?? this.capabilities, + remoteEndPoint: remoteEndPoint ?? this.remoteEndPoint, + playableMediaTypes: playableMediaTypes ?? this.playableMediaTypes, + id: id ?? this.id, + userId: userId ?? this.userId, + userName: userName ?? this.userName, + $Client: $Client ?? this.$Client, + lastActivityDate: lastActivityDate ?? this.lastActivityDate, + lastPlaybackCheckIn: lastPlaybackCheckIn ?? this.lastPlaybackCheckIn, + lastPausedDate: lastPausedDate ?? this.lastPausedDate, + deviceName: deviceName ?? this.deviceName, + deviceType: deviceType ?? this.deviceType, + nowPlayingItem: nowPlayingItem ?? this.nowPlayingItem, + nowViewingItem: nowViewingItem ?? this.nowViewingItem, + deviceId: deviceId ?? this.deviceId, + applicationVersion: applicationVersion ?? this.applicationVersion, + transcodingInfo: transcodingInfo ?? this.transcodingInfo, + isActive: isActive ?? this.isActive, + supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, + supportsRemoteControl: + supportsRemoteControl ?? this.supportsRemoteControl, + nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, + nowPlayingQueueFullItems: + nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, + hasCustomDeviceName: hasCustomDeviceName ?? this.hasCustomDeviceName, + playlistItemId: playlistItemId ?? this.playlistItemId, + serverId: serverId ?? this.serverId, + userPrimaryImageTag: userPrimaryImageTag ?? this.userPrimaryImageTag, + supportedCommands: supportedCommands ?? this.supportedCommands, + ); } - SessionInfoDto copyWithWrapped( - {Wrapped? playState, - Wrapped?>? additionalUsers, - Wrapped? capabilities, - Wrapped? remoteEndPoint, - Wrapped?>? playableMediaTypes, - Wrapped? id, - Wrapped? userId, - Wrapped? userName, - Wrapped? $Client, - Wrapped? lastActivityDate, - Wrapped? lastPlaybackCheckIn, - Wrapped? lastPausedDate, - Wrapped? deviceName, - Wrapped? deviceType, - Wrapped? nowPlayingItem, - Wrapped? nowViewingItem, - Wrapped? deviceId, - Wrapped? applicationVersion, - Wrapped? transcodingInfo, - Wrapped? isActive, - Wrapped? supportsMediaControl, - Wrapped? supportsRemoteControl, - Wrapped?>? nowPlayingQueue, - Wrapped?>? nowPlayingQueueFullItems, - Wrapped? hasCustomDeviceName, - Wrapped? playlistItemId, - Wrapped? serverId, - Wrapped? userPrimaryImageTag, - Wrapped?>? supportedCommands}) { + SessionInfoDto copyWithWrapped({ + Wrapped? playState, + Wrapped?>? additionalUsers, + Wrapped? capabilities, + Wrapped? remoteEndPoint, + Wrapped?>? playableMediaTypes, + Wrapped? id, + Wrapped? userId, + Wrapped? userName, + Wrapped? $Client, + Wrapped? lastActivityDate, + Wrapped? lastPlaybackCheckIn, + Wrapped? lastPausedDate, + Wrapped? deviceName, + Wrapped? deviceType, + Wrapped? nowPlayingItem, + Wrapped? nowViewingItem, + Wrapped? deviceId, + Wrapped? applicationVersion, + Wrapped? transcodingInfo, + Wrapped? isActive, + Wrapped? supportsMediaControl, + Wrapped? supportsRemoteControl, + Wrapped?>? nowPlayingQueue, + Wrapped?>? nowPlayingQueueFullItems, + Wrapped? hasCustomDeviceName, + Wrapped? playlistItemId, + Wrapped? serverId, + Wrapped? userPrimaryImageTag, + Wrapped?>? supportedCommands, + }) { 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), - 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), - 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), - deviceId: (deviceId != null ? deviceId.value : this.deviceId), - 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), - serverId: (serverId != null ? serverId.value : this.serverId), - userPrimaryImageTag: (userPrimaryImageTag != null - ? userPrimaryImageTag.value - : this.userPrimaryImageTag), - supportedCommands: (supportedCommands != null - ? supportedCommands.value - : this.supportedCommands)); + 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), + 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), + 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), + deviceId: (deviceId != null ? deviceId.value : this.deviceId), + 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), + serverId: (serverId != null ? serverId.value : this.serverId), + userPrimaryImageTag: (userPrimaryImageTag != null + ? userPrimaryImageTag.value + : this.userPrimaryImageTag), + supportedCommands: (supportedCommands != null + ? supportedCommands.value + : this.supportedCommands), + ); } } @JsonSerializable(explicitToJson: true) class SessionsMessage { - const SessionsMessage({ - this.data, - this.messageId, - this.messageType, - }); + const SessionsMessage({this.data, this.messageId, this.messageType}); factory SessionsMessage.fromJson(Map json) => _$SessionsMessageFromJson(json); @@ -40789,9 +45043,11 @@ class SessionsMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.sessions); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.sessions, + ); static const fromJsonFactory = _$SessionsMessageFromJson; @@ -40802,11 +45058,15 @@ class SessionsMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -40821,34 +45081,34 @@ class SessionsMessage { } extension $SessionsMessageExtension on SessionsMessage { - SessionsMessage copyWith( - {List? data, - String? messageId, - enums.SessionMessageType? messageType}) { + SessionsMessage copyWith({ + List? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return SessionsMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - SessionsMessage copyWithWrapped( - {Wrapped?>? data, - Wrapped? messageId, - Wrapped? messageType}) { + SessionsMessage copyWithWrapped({ + Wrapped?>? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return SessionsMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class SessionsStartMessage { - const SessionsStartMessage({ - this.data, - this.messageType, - }); + const SessionsStartMessage({this.data, this.messageType}); factory SessionsStartMessage.fromJson(Map json) => _$SessionsStartMessageFromJson(json); @@ -40866,9 +45126,11 @@ class SessionsStartMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.sessionsstart); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.sessionsstart, + ); static const fromJsonFactory = _$SessionsStartMessageFromJson; @@ -40879,8 +45141,10 @@ class SessionsStartMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -40894,27 +45158,30 @@ class SessionsStartMessage { } extension $SessionsStartMessageExtension on SessionsStartMessage { - SessionsStartMessage copyWith( - {String? data, enums.SessionMessageType? messageType}) { + SessionsStartMessage copyWith({ + String? data, + enums.SessionMessageType? messageType, + }) { return SessionsStartMessage( - data: data ?? this.data, messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageType: messageType ?? this.messageType, + ); } - SessionsStartMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageType}) { + SessionsStartMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageType, + }) { return SessionsStartMessage( - data: (data != null ? data.value : this.data), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class SessionsStopMessage { - const SessionsStopMessage({ - this.messageType, - }); + const SessionsStopMessage({this.messageType}); factory SessionsStopMessage.fromJson(Map json) => _$SessionsStopMessageFromJson(json); @@ -40930,9 +45197,11 @@ class SessionsStopMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.sessionsstop); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.sessionsstop, + ); static const fromJsonFactory = _$SessionsStopMessageFromJson; @@ -40941,8 +45210,10 @@ class SessionsStopMessage { return identical(this, other) || (other is SessionsStopMessage && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -40958,20 +45229,18 @@ extension $SessionsStopMessageExtension on SessionsStopMessage { return SessionsStopMessage(messageType: messageType ?? this.messageType); } - SessionsStopMessage copyWithWrapped( - {Wrapped? messageType}) { + SessionsStopMessage copyWithWrapped({ + Wrapped? messageType, + }) { return SessionsStopMessage( - messageType: - (messageType != null ? messageType.value : this.messageType)); + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class SessionUserInfo { - const SessionUserInfo({ - this.userId, - this.userName, - }); + const SessionUserInfo({this.userId, this.userName}); factory SessionUserInfo.fromJson(Map json) => _$SessionUserInfoFromJson(json); @@ -40992,8 +45261,10 @@ class SessionUserInfo { (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userName, userName) || - const DeepCollectionEquality() - .equals(other.userName, userName))); + const DeepCollectionEquality().equals( + other.userName, + userName, + ))); } @override @@ -41009,14 +45280,19 @@ class SessionUserInfo { extension $SessionUserInfoExtension on SessionUserInfo { SessionUserInfo copyWith({String? userId, String? userName}) { return SessionUserInfo( - userId: userId ?? this.userId, userName: userName ?? this.userName); + userId: userId ?? this.userId, + userName: userName ?? this.userName, + ); } - SessionUserInfo copyWithWrapped( - {Wrapped? userId, Wrapped? userName}) { + SessionUserInfo copyWithWrapped({ + Wrapped? userId, + Wrapped? userName, + }) { return SessionUserInfo( - userId: (userId != null ? userId.value : this.userId), - userName: (userName != null ? userName.value : this.userName)); + userId: (userId != null ? userId.value : this.userId), + userName: (userName != null ? userName.value : this.userName), + ); } } @@ -41047,14 +45323,20 @@ class SetChannelMappingDto { return identical(this, other) || (other is SetChannelMappingDto && (identical(other.providerId, providerId) || - const DeepCollectionEquality() - .equals(other.providerId, providerId)) && + const DeepCollectionEquality().equals( + other.providerId, + providerId, + )) && (identical(other.tunerChannelId, tunerChannelId) || - const DeepCollectionEquality() - .equals(other.tunerChannelId, tunerChannelId)) && + const DeepCollectionEquality().equals( + other.tunerChannelId, + tunerChannelId, + )) && (identical(other.providerChannelId, providerChannelId) || - const DeepCollectionEquality() - .equals(other.providerChannelId, providerChannelId))); + const DeepCollectionEquality().equals( + other.providerChannelId, + providerChannelId, + ))); } @override @@ -41069,34 +45351,38 @@ class SetChannelMappingDto { } extension $SetChannelMappingDtoExtension on SetChannelMappingDto { - SetChannelMappingDto copyWith( - {String? providerId, String? tunerChannelId, String? providerChannelId}) { + SetChannelMappingDto copyWith({ + String? providerId, + String? tunerChannelId, + String? providerChannelId, + }) { return SetChannelMappingDto( - providerId: providerId ?? this.providerId, - tunerChannelId: tunerChannelId ?? this.tunerChannelId, - providerChannelId: providerChannelId ?? this.providerChannelId); + providerId: providerId ?? this.providerId, + tunerChannelId: tunerChannelId ?? this.tunerChannelId, + providerChannelId: providerChannelId ?? this.providerChannelId, + ); } - SetChannelMappingDto copyWithWrapped( - {Wrapped? providerId, - Wrapped? tunerChannelId, - Wrapped? providerChannelId}) { + SetChannelMappingDto copyWithWrapped({ + Wrapped? providerId, + Wrapped? tunerChannelId, + Wrapped? providerChannelId, + }) { return SetChannelMappingDto( - providerId: (providerId != null ? providerId.value : this.providerId), - tunerChannelId: (tunerChannelId != null - ? tunerChannelId.value - : this.tunerChannelId), - providerChannelId: (providerChannelId != null - ? providerChannelId.value - : this.providerChannelId)); + providerId: (providerId != null ? providerId.value : this.providerId), + tunerChannelId: (tunerChannelId != null + ? tunerChannelId.value + : this.tunerChannelId), + providerChannelId: (providerChannelId != null + ? providerChannelId.value + : this.providerChannelId), + ); } } @JsonSerializable(explicitToJson: true) class SetPlaylistItemRequestDto { - const SetPlaylistItemRequestDto({ - this.playlistItemId, - }); + const SetPlaylistItemRequestDto({this.playlistItemId}); factory SetPlaylistItemRequestDto.fromJson(Map json) => _$SetPlaylistItemRequestDtoFromJson(json); @@ -41113,8 +45399,10 @@ class SetPlaylistItemRequestDto { return identical(this, other) || (other is SetPlaylistItemRequestDto && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -41129,23 +45417,24 @@ class SetPlaylistItemRequestDto { extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { SetPlaylistItemRequestDto copyWith({String? playlistItemId}) { return SetPlaylistItemRequestDto( - playlistItemId: playlistItemId ?? this.playlistItemId); + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } - SetPlaylistItemRequestDto copyWithWrapped( - {Wrapped? playlistItemId}) { + SetPlaylistItemRequestDto copyWithWrapped({ + Wrapped? playlistItemId, + }) { return SetPlaylistItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId)); + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + ); } } @JsonSerializable(explicitToJson: true) class SetRepeatModeRequestDto { - const SetRepeatModeRequestDto({ - this.mode, - }); + const SetRepeatModeRequestDto({this.mode}); factory SetRepeatModeRequestDto.fromJson(Map json) => _$SetRepeatModeRequestDtoFromJson(json); @@ -41183,18 +45472,18 @@ extension $SetRepeatModeRequestDtoExtension on SetRepeatModeRequestDto { return SetRepeatModeRequestDto(mode: mode ?? this.mode); } - SetRepeatModeRequestDto copyWithWrapped( - {Wrapped? mode}) { + SetRepeatModeRequestDto copyWithWrapped({ + Wrapped? mode, + }) { return SetRepeatModeRequestDto( - mode: (mode != null ? mode.value : this.mode)); + mode: (mode != null ? mode.value : this.mode), + ); } } @JsonSerializable(explicitToJson: true) class SetShuffleModeRequestDto { - const SetShuffleModeRequestDto({ - this.mode, - }); + const SetShuffleModeRequestDto({this.mode}); factory SetShuffleModeRequestDto.fromJson(Map json) => _$SetShuffleModeRequestDtoFromJson(json); @@ -41232,10 +45521,12 @@ extension $SetShuffleModeRequestDtoExtension on SetShuffleModeRequestDto { return SetShuffleModeRequestDto(mode: mode ?? this.mode); } - SetShuffleModeRequestDto copyWithWrapped( - {Wrapped? mode}) { + SetShuffleModeRequestDto copyWithWrapped({ + Wrapped? mode, + }) { return SetShuffleModeRequestDto( - mode: (mode != null ? mode.value : this.mode)); + mode: (mode != null ? mode.value : this.mode), + ); } } @@ -41301,36 +45592,54 @@ class SongInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated)) && + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + )) && (identical(other.albumArtists, albumArtists) || - const DeepCollectionEquality() - .equals(other.albumArtists, albumArtists)) && + const DeepCollectionEquality().equals( + other.albumArtists, + albumArtists, + )) && (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && (identical(other.artists, artists) || @@ -41360,89 +45669,90 @@ class SongInfo { } extension $SongInfoExtension on SongInfo { - SongInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated, - List? albumArtists, - String? album, - List? artists}) { + SongInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + List? albumArtists, + String? album, + List? artists, + }) { return SongInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated, - albumArtists: albumArtists ?? this.albumArtists, - album: album ?? this.album, - artists: artists ?? this.artists); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + albumArtists: albumArtists ?? this.albumArtists, + album: album ?? this.album, + artists: artists ?? this.artists, + ); } - SongInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated, - Wrapped?>? albumArtists, - Wrapped? album, - Wrapped?>? artists}) { + SongInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + Wrapped?>? albumArtists, + Wrapped? album, + Wrapped?>? artists, + }) { return SongInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: - (albumArtists != null ? albumArtists.value : this.albumArtists), - album: (album != null ? album.value : this.album), - artists: (artists != null ? artists.value : this.artists)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + albumArtists: (albumArtists != null + ? albumArtists.value + : this.albumArtists), + album: (album != null ? album.value : this.album), + artists: (artists != null ? artists.value : this.artists), + ); } } @JsonSerializable(explicitToJson: true) class SpecialViewOptionDto { - const SpecialViewOptionDto({ - this.name, - this.id, - }); + const SpecialViewOptionDto({this.name, this.id}); factory SpecialViewOptionDto.fromJson(Map json) => _$SpecialViewOptionDtoFromJson(json); @@ -41481,11 +45791,14 @@ extension $SpecialViewOptionDtoExtension on SpecialViewOptionDto { return SpecialViewOptionDto(name: name ?? this.name, id: id ?? this.id); } - SpecialViewOptionDto copyWithWrapped( - {Wrapped? name, Wrapped? id}) { + SpecialViewOptionDto copyWithWrapped({ + Wrapped? name, + Wrapped? id, + }) { return SpecialViewOptionDto( - name: (name != null ? name.value : this.name), - id: (id != null ? id.value : this.id)); + name: (name != null ? name.value : this.name), + id: (id != null ? id.value : this.id), + ); } } @@ -41516,16 +45829,23 @@ class StartupConfigurationDto { return identical(this, other) || (other is StartupConfigurationDto && (identical(other.uICulture, uICulture) || - const DeepCollectionEquality() - .equals(other.uICulture, uICulture)) && - (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && - (identical(other.preferredMetadataLanguage, - preferredMetadataLanguage) || const DeepCollectionEquality().equals( - other.preferredMetadataLanguage, - preferredMetadataLanguage))); + other.uICulture, + uICulture, + )) && + (identical(other.metadataCountryCode, metadataCountryCode) || + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && + (identical( + other.preferredMetadataLanguage, + preferredMetadataLanguage, + ) || + const DeepCollectionEquality().equals( + other.preferredMetadataLanguage, + preferredMetadataLanguage, + ))); } @override @@ -41540,29 +45860,33 @@ class StartupConfigurationDto { } extension $StartupConfigurationDtoExtension on StartupConfigurationDto { - StartupConfigurationDto copyWith( - {String? uICulture, - String? metadataCountryCode, - String? preferredMetadataLanguage}) { + StartupConfigurationDto copyWith({ + String? uICulture, + String? metadataCountryCode, + String? preferredMetadataLanguage, + }) { return StartupConfigurationDto( - uICulture: uICulture ?? this.uICulture, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage); + uICulture: uICulture ?? this.uICulture, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + preferredMetadataLanguage: + preferredMetadataLanguage ?? this.preferredMetadataLanguage, + ); } - StartupConfigurationDto copyWithWrapped( - {Wrapped? uICulture, - Wrapped? metadataCountryCode, - Wrapped? preferredMetadataLanguage}) { + StartupConfigurationDto copyWithWrapped({ + Wrapped? uICulture, + Wrapped? metadataCountryCode, + Wrapped? preferredMetadataLanguage, + }) { return StartupConfigurationDto( - uICulture: (uICulture != null ? uICulture.value : this.uICulture), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage)); + uICulture: (uICulture != null ? uICulture.value : this.uICulture), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), + preferredMetadataLanguage: (preferredMetadataLanguage != null + ? preferredMetadataLanguage.value + : this.preferredMetadataLanguage), + ); } } @@ -41590,13 +45914,18 @@ class StartupRemoteAccessDto { return identical(this, other) || (other is StartupRemoteAccessDto && (identical(other.enableRemoteAccess, enableRemoteAccess) || - const DeepCollectionEquality() - .equals(other.enableRemoteAccess, enableRemoteAccess)) && - (identical(other.enableAutomaticPortMapping, - enableAutomaticPortMapping) || const DeepCollectionEquality().equals( - other.enableAutomaticPortMapping, - enableAutomaticPortMapping))); + other.enableRemoteAccess, + enableRemoteAccess, + )) && + (identical( + other.enableAutomaticPortMapping, + enableAutomaticPortMapping, + ) || + const DeepCollectionEquality().equals( + other.enableAutomaticPortMapping, + enableAutomaticPortMapping, + ))); } @override @@ -41610,33 +45939,35 @@ class StartupRemoteAccessDto { } extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { - StartupRemoteAccessDto copyWith( - {bool? enableRemoteAccess, bool? enableAutomaticPortMapping}) { + StartupRemoteAccessDto copyWith({ + bool? enableRemoteAccess, + bool? enableAutomaticPortMapping, + }) { return StartupRemoteAccessDto( - enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - enableAutomaticPortMapping: - enableAutomaticPortMapping ?? this.enableAutomaticPortMapping); + enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, + enableAutomaticPortMapping: + enableAutomaticPortMapping ?? this.enableAutomaticPortMapping, + ); } - StartupRemoteAccessDto copyWithWrapped( - {Wrapped? enableRemoteAccess, - Wrapped? enableAutomaticPortMapping}) { + StartupRemoteAccessDto copyWithWrapped({ + Wrapped? enableRemoteAccess, + 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), + ); } } @JsonSerializable(explicitToJson: true) class StartupUserDto { - const StartupUserDto({ - this.name, - this.password, - }); + const StartupUserDto({this.name, this.password}); factory StartupUserDto.fromJson(Map json) => _$StartupUserDtoFromJson(json); @@ -41657,8 +45988,10 @@ class StartupUserDto { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || - const DeepCollectionEquality() - .equals(other.password, password))); + const DeepCollectionEquality().equals( + other.password, + password, + ))); } @override @@ -41674,24 +46007,25 @@ class StartupUserDto { extension $StartupUserDtoExtension on StartupUserDto { StartupUserDto copyWith({String? name, String? password}) { return StartupUserDto( - name: name ?? this.name, password: password ?? this.password); + name: name ?? this.name, + password: password ?? this.password, + ); } - StartupUserDto copyWithWrapped( - {Wrapped? name, Wrapped? password}) { + StartupUserDto copyWithWrapped({ + Wrapped? name, + Wrapped? password, + }) { return StartupUserDto( - name: (name != null ? name.value : this.name), - password: (password != null ? password.value : this.password)); + name: (name != null ? name.value : this.name), + password: (password != null ? password.value : this.password), + ); } } @JsonSerializable(explicitToJson: true) class StringGroupUpdate { - const StringGroupUpdate({ - this.groupId, - this.type, - this.data, - }); + const StringGroupUpdate({this.groupId, this.type, this.data}); factory StringGroupUpdate.fromJson(Map json) => _$StringGroupUpdateFromJson(json); @@ -41717,8 +46051,10 @@ class StringGroupUpdate { return identical(this, other) || (other is StringGroupUpdate && (identical(other.groupId, groupId) || - const DeepCollectionEquality() - .equals(other.groupId, groupId)) && + const DeepCollectionEquality().equals( + other.groupId, + groupId, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.data, data) || @@ -41737,22 +46073,28 @@ class StringGroupUpdate { } extension $StringGroupUpdateExtension on StringGroupUpdate { - StringGroupUpdate copyWith( - {String? groupId, enums.GroupUpdateType? type, String? data}) { + StringGroupUpdate copyWith({ + String? groupId, + enums.GroupUpdateType? type, + String? data, + }) { return StringGroupUpdate( - groupId: groupId ?? this.groupId, - type: type ?? this.type, - data: data ?? this.data); + groupId: groupId ?? this.groupId, + type: type ?? this.type, + data: data ?? this.data, + ); } - StringGroupUpdate copyWithWrapped( - {Wrapped? groupId, - Wrapped? type, - Wrapped? data}) { + StringGroupUpdate copyWithWrapped({ + Wrapped? groupId, + Wrapped? type, + Wrapped? data, + }) { return StringGroupUpdate( - groupId: (groupId != null ? groupId.value : this.groupId), - type: (type != null ? type.value : this.type), - data: (data != null ? data.value : this.data)); + groupId: (groupId != null ? groupId.value : this.groupId), + type: (type != null ? type.value : this.type), + data: (data != null ? data.value : this.data), + ); } } @@ -41781,7 +46123,10 @@ class SubtitleOptions { @JsonKey(name: 'SkipIfAudioTrackMatches', includeIfNull: false) final bool? skipIfAudioTrackMatches; @JsonKey( - name: 'DownloadLanguages', includeIfNull: false, defaultValue: []) + name: 'DownloadLanguages', + includeIfNull: false, + defaultValue: [], + ) final List? downloadLanguages; @JsonKey(name: 'DownloadMovieSubtitles', includeIfNull: false) final bool? downloadMovieSubtitles; @@ -41801,37 +46146,66 @@ class SubtitleOptions { bool operator ==(Object other) { return identical(this, other) || (other is SubtitleOptions && - (identical(other.skipIfEmbeddedSubtitlesPresent, skipIfEmbeddedSubtitlesPresent) || + (identical( + other.skipIfEmbeddedSubtitlesPresent, + skipIfEmbeddedSubtitlesPresent, + ) || const DeepCollectionEquality().equals( - other.skipIfEmbeddedSubtitlesPresent, - skipIfEmbeddedSubtitlesPresent)) && - (identical(other.skipIfAudioTrackMatches, skipIfAudioTrackMatches) || + other.skipIfEmbeddedSubtitlesPresent, + skipIfEmbeddedSubtitlesPresent, + )) && + (identical( + other.skipIfAudioTrackMatches, + skipIfAudioTrackMatches, + ) || const DeepCollectionEquality().equals( - other.skipIfAudioTrackMatches, skipIfAudioTrackMatches)) && + other.skipIfAudioTrackMatches, + skipIfAudioTrackMatches, + )) && (identical(other.downloadLanguages, downloadLanguages) || - const DeepCollectionEquality() - .equals(other.downloadLanguages, downloadLanguages)) && + const DeepCollectionEquality().equals( + other.downloadLanguages, + downloadLanguages, + )) && (identical(other.downloadMovieSubtitles, downloadMovieSubtitles) || const DeepCollectionEquality().equals( - other.downloadMovieSubtitles, downloadMovieSubtitles)) && - (identical(other.downloadEpisodeSubtitles, downloadEpisodeSubtitles) || + other.downloadMovieSubtitles, + downloadMovieSubtitles, + )) && + (identical( + other.downloadEpisodeSubtitles, + downloadEpisodeSubtitles, + ) || const DeepCollectionEquality().equals( - other.downloadEpisodeSubtitles, - downloadEpisodeSubtitles)) && + other.downloadEpisodeSubtitles, + downloadEpisodeSubtitles, + )) && (identical(other.openSubtitlesUsername, openSubtitlesUsername) || const DeepCollectionEquality().equals( - other.openSubtitlesUsername, openSubtitlesUsername)) && - (identical(other.openSubtitlesPasswordHash, openSubtitlesPasswordHash) || + other.openSubtitlesUsername, + openSubtitlesUsername, + )) && + (identical( + other.openSubtitlesPasswordHash, + openSubtitlesPasswordHash, + ) || const DeepCollectionEquality().equals( - other.openSubtitlesPasswordHash, - openSubtitlesPasswordHash)) && - (identical(other.isOpenSubtitleVipAccount, isOpenSubtitleVipAccount) || + other.openSubtitlesPasswordHash, + openSubtitlesPasswordHash, + )) && + (identical( + other.isOpenSubtitleVipAccount, + isOpenSubtitleVipAccount, + ) || const DeepCollectionEquality().equals( - other.isOpenSubtitleVipAccount, - isOpenSubtitleVipAccount)) && + other.isOpenSubtitleVipAccount, + isOpenSubtitleVipAccount, + )) && (identical(other.requirePerfectMatch, requirePerfectMatch) || - const DeepCollectionEquality() - .equals(other.requirePerfectMatch, requirePerfectMatch))); + const DeepCollectionEquality().equals( + other.requirePerfectMatch, + requirePerfectMatch, + ))); } @override @@ -41852,73 +46226,77 @@ class SubtitleOptions { } extension $SubtitleOptionsExtension on SubtitleOptions { - SubtitleOptions copyWith( - {bool? skipIfEmbeddedSubtitlesPresent, - bool? skipIfAudioTrackMatches, - List? downloadLanguages, - bool? downloadMovieSubtitles, - bool? downloadEpisodeSubtitles, - String? openSubtitlesUsername, - String? openSubtitlesPasswordHash, - bool? isOpenSubtitleVipAccount, - bool? requirePerfectMatch}) { + SubtitleOptions copyWith({ + bool? skipIfEmbeddedSubtitlesPresent, + bool? skipIfAudioTrackMatches, + List? downloadLanguages, + bool? downloadMovieSubtitles, + bool? downloadEpisodeSubtitles, + String? openSubtitlesUsername, + String? openSubtitlesPasswordHash, + bool? isOpenSubtitleVipAccount, + bool? requirePerfectMatch, + }) { return SubtitleOptions( - 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, - requirePerfectMatch: requirePerfectMatch ?? this.requirePerfectMatch); + 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, + requirePerfectMatch: requirePerfectMatch ?? this.requirePerfectMatch, + ); } - SubtitleOptions copyWithWrapped( - {Wrapped? skipIfEmbeddedSubtitlesPresent, - Wrapped? skipIfAudioTrackMatches, - Wrapped?>? downloadLanguages, - Wrapped? downloadMovieSubtitles, - Wrapped? downloadEpisodeSubtitles, - Wrapped? openSubtitlesUsername, - Wrapped? openSubtitlesPasswordHash, - Wrapped? isOpenSubtitleVipAccount, - Wrapped? requirePerfectMatch}) { + SubtitleOptions copyWithWrapped({ + Wrapped? skipIfEmbeddedSubtitlesPresent, + Wrapped? skipIfAudioTrackMatches, + Wrapped?>? downloadLanguages, + Wrapped? downloadMovieSubtitles, + Wrapped? downloadEpisodeSubtitles, + Wrapped? openSubtitlesUsername, + Wrapped? openSubtitlesPasswordHash, + Wrapped? isOpenSubtitleVipAccount, + Wrapped? requirePerfectMatch, + }) { return 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)); + 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), + ); } } @@ -41964,14 +46342,20 @@ class SubtitleProfile { (identical(other.method, method) || const DeepCollectionEquality().equals(other.method, method)) && (identical(other.didlMode, didlMode) || - const DeepCollectionEquality() - .equals(other.didlMode, didlMode)) && + const DeepCollectionEquality().equals( + other.didlMode, + didlMode, + )) && (identical(other.language, language) || - const DeepCollectionEquality() - .equals(other.language, language)) && + const DeepCollectionEquality().equals( + other.language, + language, + )) && (identical(other.container, container) || - const DeepCollectionEquality() - .equals(other.container, container))); + const DeepCollectionEquality().equals( + other.container, + container, + ))); } @override @@ -41988,42 +46372,42 @@ class SubtitleProfile { } extension $SubtitleProfileExtension on SubtitleProfile { - SubtitleProfile copyWith( - {String? format, - enums.SubtitleDeliveryMethod? method, - String? didlMode, - String? language, - String? container}) { + SubtitleProfile copyWith({ + String? format, + enums.SubtitleDeliveryMethod? method, + String? didlMode, + String? language, + String? container, + }) { return SubtitleProfile( - format: format ?? this.format, - method: method ?? this.method, - didlMode: didlMode ?? this.didlMode, - language: language ?? this.language, - container: container ?? this.container); + format: format ?? this.format, + method: method ?? this.method, + didlMode: didlMode ?? this.didlMode, + language: language ?? this.language, + container: container ?? this.container, + ); } - SubtitleProfile copyWithWrapped( - {Wrapped? format, - Wrapped? method, - Wrapped? didlMode, - Wrapped? language, - Wrapped? container}) { + SubtitleProfile copyWithWrapped({ + Wrapped? format, + Wrapped? method, + Wrapped? didlMode, + Wrapped? language, + Wrapped? container, + }) { return SubtitleProfile( - format: (format != null ? format.value : this.format), - method: (method != null ? method.value : this.method), - didlMode: (didlMode != null ? didlMode.value : this.didlMode), - language: (language != null ? language.value : this.language), - container: (container != null ? container.value : this.container)); + format: (format != null ? format.value : this.format), + method: (method != null ? method.value : this.method), + didlMode: (didlMode != null ? didlMode.value : this.didlMode), + language: (language != null ? language.value : this.language), + container: (container != null ? container.value : this.container), + ); } } @JsonSerializable(explicitToJson: true) class SyncPlayCommandMessage { - const SyncPlayCommandMessage({ - this.data, - this.messageId, - this.messageType, - }); + const SyncPlayCommandMessage({this.data, this.messageId, this.messageType}); factory SyncPlayCommandMessage.fromJson(Map json) => _$SyncPlayCommandMessageFromJson(json); @@ -42043,9 +46427,11 @@ class SyncPlayCommandMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.syncplaycommand); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.syncplaycommand, + ); static const fromJsonFactory = _$SyncPlayCommandMessageFromJson; @@ -42056,11 +46442,15 @@ class SyncPlayCommandMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -42075,25 +46465,28 @@ class SyncPlayCommandMessage { } extension $SyncPlayCommandMessageExtension on SyncPlayCommandMessage { - SyncPlayCommandMessage copyWith( - {SendCommand? data, - String? messageId, - enums.SessionMessageType? messageType}) { + SyncPlayCommandMessage copyWith({ + SendCommand? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return SyncPlayCommandMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - SyncPlayCommandMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + SyncPlayCommandMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return SyncPlayCommandMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -42106,8 +46499,8 @@ class SyncPlayGroupUpdateCommandMessage { }); factory SyncPlayGroupUpdateCommandMessage.fromJson( - Map json) => - _$SyncPlayGroupUpdateCommandMessageFromJson(json); + Map json, + ) => _$SyncPlayGroupUpdateCommandMessageFromJson(json); static const toJsonFactory = _$SyncPlayGroupUpdateCommandMessageToJson; Map toJson() => @@ -42125,9 +46518,11 @@ class SyncPlayGroupUpdateCommandMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.syncplaygroupupdate); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.syncplaygroupupdate, + ); static const fromJsonFactory = _$SyncPlayGroupUpdateCommandMessageFromJson; @@ -42138,11 +46533,15 @@ class SyncPlayGroupUpdateCommandMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -42158,34 +46557,34 @@ class SyncPlayGroupUpdateCommandMessage { extension $SyncPlayGroupUpdateCommandMessageExtension on SyncPlayGroupUpdateCommandMessage { - SyncPlayGroupUpdateCommandMessage copyWith( - {GroupUpdate? data, - String? messageId, - enums.SessionMessageType? messageType}) { + SyncPlayGroupUpdateCommandMessage copyWith({ + GroupUpdate? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return SyncPlayGroupUpdateCommandMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - SyncPlayGroupUpdateCommandMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + SyncPlayGroupUpdateCommandMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return SyncPlayGroupUpdateCommandMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class SyncPlayQueueItem { - const SyncPlayQueueItem({ - this.itemId, - this.playlistItemId, - }); + const SyncPlayQueueItem({this.itemId, this.playlistItemId}); factory SyncPlayQueueItem.fromJson(Map json) => _$SyncPlayQueueItemFromJson(json); @@ -42206,8 +46605,10 @@ class SyncPlayQueueItem { (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.playlistItemId, playlistItemId) || - const DeepCollectionEquality() - .equals(other.playlistItemId, playlistItemId))); + const DeepCollectionEquality().equals( + other.playlistItemId, + playlistItemId, + ))); } @override @@ -42223,17 +46624,21 @@ class SyncPlayQueueItem { extension $SyncPlayQueueItemExtension on SyncPlayQueueItem { SyncPlayQueueItem copyWith({String? itemId, String? playlistItemId}) { return SyncPlayQueueItem( - itemId: itemId ?? this.itemId, - playlistItemId: playlistItemId ?? this.playlistItemId); + itemId: itemId ?? this.itemId, + playlistItemId: playlistItemId ?? this.playlistItemId, + ); } - SyncPlayQueueItem copyWithWrapped( - {Wrapped? itemId, Wrapped? playlistItemId}) { + SyncPlayQueueItem copyWithWrapped({ + Wrapped? itemId, + Wrapped? playlistItemId, + }) { return SyncPlayQueueItem( - itemId: (itemId != null ? itemId.value : this.itemId), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId)); + itemId: (itemId != null ? itemId.value : this.itemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + ); } } @@ -42304,15 +46709,19 @@ class SystemInfo { @JsonKey(name: 'WebSocketPortNumber', includeIfNull: false) final int? webSocketPortNumber; @JsonKey( - name: 'CompletedInstallations', - includeIfNull: false, - defaultValue: []) + name: 'CompletedInstallations', + includeIfNull: false, + defaultValue: [], + ) final List? completedInstallations; @JsonKey(name: 'CanSelfRestart', includeIfNull: false, defaultValue: true) @deprecated final bool? canSelfRestart; @JsonKey( - name: 'CanLaunchWebBrowser', includeIfNull: false, defaultValue: false) + name: 'CanLaunchWebBrowser', + includeIfNull: false, + defaultValue: false, + ) @deprecated final bool? canLaunchWebBrowser; @JsonKey(name: 'ProgramDataPath', includeIfNull: false) @@ -42330,12 +46739,16 @@ class SystemInfo { @JsonKey(name: 'TranscodingTempPath', includeIfNull: false) final String? transcodingTempPath; @JsonKey( - name: 'CastReceiverApplications', - includeIfNull: false, - defaultValue: []) + name: 'CastReceiverApplications', + includeIfNull: false, + defaultValue: [], + ) final List? castReceiverApplications; @JsonKey( - name: 'HasUpdateAvailable', includeIfNull: false, defaultValue: false) + name: 'HasUpdateAvailable', + includeIfNull: false, + defaultValue: false, + ) @deprecated final bool? hasUpdateAvailable; @JsonKey(name: 'EncoderLocation', includeIfNull: false) @@ -42351,68 +46764,143 @@ class SystemInfo { return identical(this, other) || (other is SystemInfo && (identical(other.localAddress, localAddress) || - const DeepCollectionEquality() - .equals(other.localAddress, localAddress)) && + const DeepCollectionEquality().equals( + other.localAddress, + localAddress, + )) && (identical(other.serverName, serverName) || - const DeepCollectionEquality() - .equals(other.serverName, serverName)) && + const DeepCollectionEquality().equals( + other.serverName, + serverName, + )) && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.productName, productName) || - const DeepCollectionEquality() - .equals(other.productName, productName)) && + const DeepCollectionEquality().equals( + other.productName, + productName, + )) && (identical(other.operatingSystem, operatingSystem) || - const DeepCollectionEquality() - .equals(other.operatingSystem, operatingSystem)) && + const DeepCollectionEquality().equals( + other.operatingSystem, + operatingSystem, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( - other.startupWizardCompleted, startupWizardCompleted)) && - (identical(other.operatingSystemDisplayName, operatingSystemDisplayName) || + other.startupWizardCompleted, + startupWizardCompleted, + )) && + (identical( + other.operatingSystemDisplayName, + operatingSystemDisplayName, + ) || const DeepCollectionEquality().equals( - other.operatingSystemDisplayName, - operatingSystemDisplayName)) && + other.operatingSystemDisplayName, + operatingSystemDisplayName, + )) && (identical(other.packageName, packageName) || - const DeepCollectionEquality() - .equals(other.packageName, packageName)) && + const DeepCollectionEquality().equals( + other.packageName, + packageName, + )) && (identical(other.hasPendingRestart, hasPendingRestart) || - const DeepCollectionEquality() - .equals(other.hasPendingRestart, hasPendingRestart)) && + const DeepCollectionEquality().equals( + other.hasPendingRestart, + hasPendingRestart, + )) && (identical(other.isShuttingDown, isShuttingDown) || - const DeepCollectionEquality() - .equals(other.isShuttingDown, isShuttingDown)) && + const DeepCollectionEquality().equals( + other.isShuttingDown, + isShuttingDown, + )) && (identical(other.supportsLibraryMonitor, supportsLibraryMonitor) || const DeepCollectionEquality().equals( - other.supportsLibraryMonitor, supportsLibraryMonitor)) && + other.supportsLibraryMonitor, + supportsLibraryMonitor, + )) && (identical(other.webSocketPortNumber, webSocketPortNumber) || - const DeepCollectionEquality() - .equals(other.webSocketPortNumber, webSocketPortNumber)) && + const DeepCollectionEquality().equals( + other.webSocketPortNumber, + webSocketPortNumber, + )) && (identical(other.completedInstallations, completedInstallations) || const DeepCollectionEquality().equals( - other.completedInstallations, completedInstallations)) && + other.completedInstallations, + completedInstallations, + )) && (identical(other.canSelfRestart, canSelfRestart) || - const DeepCollectionEquality() - .equals(other.canSelfRestart, canSelfRestart)) && + const DeepCollectionEquality().equals( + other.canSelfRestart, + canSelfRestart, + )) && (identical(other.canLaunchWebBrowser, canLaunchWebBrowser) || - const DeepCollectionEquality() - .equals(other.canLaunchWebBrowser, canLaunchWebBrowser)) && + const DeepCollectionEquality().equals( + other.canLaunchWebBrowser, + canLaunchWebBrowser, + )) && (identical(other.programDataPath, programDataPath) || - const DeepCollectionEquality() - .equals(other.programDataPath, programDataPath)) && + const DeepCollectionEquality().equals( + other.programDataPath, + programDataPath, + )) && (identical(other.webPath, webPath) || - const DeepCollectionEquality() - .equals(other.webPath, webPath)) && - (identical(other.itemsByNamePath, itemsByNamePath) || const DeepCollectionEquality().equals(other.itemsByNamePath, itemsByNamePath)) && - (identical(other.cachePath, cachePath) || const DeepCollectionEquality().equals(other.cachePath, cachePath)) && - (identical(other.logPath, logPath) || const DeepCollectionEquality().equals(other.logPath, logPath)) && - (identical(other.internalMetadataPath, internalMetadataPath) || const DeepCollectionEquality().equals(other.internalMetadataPath, internalMetadataPath)) && - (identical(other.transcodingTempPath, transcodingTempPath) || const DeepCollectionEquality().equals(other.transcodingTempPath, transcodingTempPath)) && - (identical(other.castReceiverApplications, castReceiverApplications) || const DeepCollectionEquality().equals(other.castReceiverApplications, castReceiverApplications)) && - (identical(other.hasUpdateAvailable, hasUpdateAvailable) || const DeepCollectionEquality().equals(other.hasUpdateAvailable, hasUpdateAvailable)) && - (identical(other.encoderLocation, encoderLocation) || const DeepCollectionEquality().equals(other.encoderLocation, encoderLocation)) && - (identical(other.systemArchitecture, systemArchitecture) || const DeepCollectionEquality().equals(other.systemArchitecture, systemArchitecture))); + const DeepCollectionEquality().equals( + other.webPath, + webPath, + )) && + (identical(other.itemsByNamePath, itemsByNamePath) || + const DeepCollectionEquality().equals( + other.itemsByNamePath, + itemsByNamePath, + )) && + (identical(other.cachePath, cachePath) || + const DeepCollectionEquality().equals( + other.cachePath, + cachePath, + )) && + (identical(other.logPath, logPath) || + const DeepCollectionEquality().equals( + other.logPath, + logPath, + )) && + (identical(other.internalMetadataPath, internalMetadataPath) || + const DeepCollectionEquality().equals( + other.internalMetadataPath, + internalMetadataPath, + )) && + (identical(other.transcodingTempPath, transcodingTempPath) || + const DeepCollectionEquality().equals( + other.transcodingTempPath, + transcodingTempPath, + )) && + (identical( + other.castReceiverApplications, + castReceiverApplications, + ) || + const DeepCollectionEquality().equals( + other.castReceiverApplications, + castReceiverApplications, + )) && + (identical(other.hasUpdateAvailable, hasUpdateAvailable) || + const DeepCollectionEquality().equals( + other.hasUpdateAvailable, + hasUpdateAvailable, + )) && + (identical(other.encoderLocation, encoderLocation) || + const DeepCollectionEquality().equals( + other.encoderLocation, + encoderLocation, + )) && + (identical(other.systemArchitecture, systemArchitecture) || + const DeepCollectionEquality().equals( + other.systemArchitecture, + systemArchitecture, + ))); } @override @@ -42451,164 +46939,167 @@ class SystemInfo { } extension $SystemInfoExtension on SystemInfo { - SystemInfo copyWith( - {String? localAddress, - String? serverName, - String? version, - String? productName, - String? operatingSystem, - String? id, - bool? startupWizardCompleted, - String? operatingSystemDisplayName, - String? packageName, - bool? hasPendingRestart, - bool? isShuttingDown, - bool? supportsLibraryMonitor, - int? webSocketPortNumber, - List? completedInstallations, - bool? canSelfRestart, - bool? canLaunchWebBrowser, - String? programDataPath, - String? webPath, - String? itemsByNamePath, - String? cachePath, - String? logPath, - String? internalMetadataPath, - String? transcodingTempPath, - List? castReceiverApplications, - bool? hasUpdateAvailable, - String? encoderLocation, - String? systemArchitecture}) { + SystemInfo copyWith({ + String? localAddress, + String? serverName, + String? version, + String? productName, + String? operatingSystem, + String? id, + bool? startupWizardCompleted, + String? operatingSystemDisplayName, + String? packageName, + bool? hasPendingRestart, + bool? isShuttingDown, + bool? supportsLibraryMonitor, + int? webSocketPortNumber, + List? completedInstallations, + bool? canSelfRestart, + bool? canLaunchWebBrowser, + String? programDataPath, + String? webPath, + String? itemsByNamePath, + String? cachePath, + String? logPath, + String? internalMetadataPath, + String? transcodingTempPath, + List? castReceiverApplications, + bool? hasUpdateAvailable, + String? encoderLocation, + String? systemArchitecture, + }) { return SystemInfo( - localAddress: localAddress ?? this.localAddress, - serverName: serverName ?? this.serverName, - version: version ?? this.version, - productName: productName ?? this.productName, - operatingSystem: operatingSystem ?? this.operatingSystem, - id: id ?? this.id, - startupWizardCompleted: - startupWizardCompleted ?? this.startupWizardCompleted, - operatingSystemDisplayName: - operatingSystemDisplayName ?? this.operatingSystemDisplayName, - packageName: packageName ?? this.packageName, - hasPendingRestart: hasPendingRestart ?? this.hasPendingRestart, - isShuttingDown: isShuttingDown ?? this.isShuttingDown, - supportsLibraryMonitor: - supportsLibraryMonitor ?? this.supportsLibraryMonitor, - webSocketPortNumber: webSocketPortNumber ?? this.webSocketPortNumber, - completedInstallations: - completedInstallations ?? this.completedInstallations, - canSelfRestart: canSelfRestart ?? this.canSelfRestart, - canLaunchWebBrowser: canLaunchWebBrowser ?? this.canLaunchWebBrowser, - programDataPath: programDataPath ?? this.programDataPath, - webPath: webPath ?? this.webPath, - itemsByNamePath: itemsByNamePath ?? this.itemsByNamePath, - cachePath: cachePath ?? this.cachePath, - logPath: logPath ?? this.logPath, - internalMetadataPath: internalMetadataPath ?? this.internalMetadataPath, - transcodingTempPath: transcodingTempPath ?? this.transcodingTempPath, - castReceiverApplications: - castReceiverApplications ?? this.castReceiverApplications, - hasUpdateAvailable: hasUpdateAvailable ?? this.hasUpdateAvailable, - encoderLocation: encoderLocation ?? this.encoderLocation, - systemArchitecture: systemArchitecture ?? this.systemArchitecture); + localAddress: localAddress ?? this.localAddress, + serverName: serverName ?? this.serverName, + version: version ?? this.version, + productName: productName ?? this.productName, + operatingSystem: operatingSystem ?? this.operatingSystem, + id: id ?? this.id, + startupWizardCompleted: + startupWizardCompleted ?? this.startupWizardCompleted, + operatingSystemDisplayName: + operatingSystemDisplayName ?? this.operatingSystemDisplayName, + packageName: packageName ?? this.packageName, + hasPendingRestart: hasPendingRestart ?? this.hasPendingRestart, + isShuttingDown: isShuttingDown ?? this.isShuttingDown, + supportsLibraryMonitor: + supportsLibraryMonitor ?? this.supportsLibraryMonitor, + webSocketPortNumber: webSocketPortNumber ?? this.webSocketPortNumber, + completedInstallations: + completedInstallations ?? this.completedInstallations, + canSelfRestart: canSelfRestart ?? this.canSelfRestart, + canLaunchWebBrowser: canLaunchWebBrowser ?? this.canLaunchWebBrowser, + programDataPath: programDataPath ?? this.programDataPath, + webPath: webPath ?? this.webPath, + itemsByNamePath: itemsByNamePath ?? this.itemsByNamePath, + cachePath: cachePath ?? this.cachePath, + logPath: logPath ?? this.logPath, + internalMetadataPath: internalMetadataPath ?? this.internalMetadataPath, + transcodingTempPath: transcodingTempPath ?? this.transcodingTempPath, + castReceiverApplications: + castReceiverApplications ?? this.castReceiverApplications, + hasUpdateAvailable: hasUpdateAvailable ?? this.hasUpdateAvailable, + encoderLocation: encoderLocation ?? this.encoderLocation, + systemArchitecture: systemArchitecture ?? this.systemArchitecture, + ); } - SystemInfo copyWithWrapped( - {Wrapped? localAddress, - Wrapped? serverName, - Wrapped? version, - Wrapped? productName, - Wrapped? operatingSystem, - Wrapped? id, - Wrapped? startupWizardCompleted, - Wrapped? operatingSystemDisplayName, - Wrapped? packageName, - Wrapped? hasPendingRestart, - Wrapped? isShuttingDown, - Wrapped? supportsLibraryMonitor, - Wrapped? webSocketPortNumber, - Wrapped?>? completedInstallations, - Wrapped? canSelfRestart, - Wrapped? canLaunchWebBrowser, - Wrapped? programDataPath, - Wrapped? webPath, - Wrapped? itemsByNamePath, - Wrapped? cachePath, - Wrapped? logPath, - Wrapped? internalMetadataPath, - Wrapped? transcodingTempPath, - Wrapped?>? castReceiverApplications, - Wrapped? hasUpdateAvailable, - Wrapped? encoderLocation, - Wrapped? systemArchitecture}) { + SystemInfo copyWithWrapped({ + Wrapped? localAddress, + Wrapped? serverName, + Wrapped? version, + Wrapped? productName, + Wrapped? operatingSystem, + Wrapped? id, + Wrapped? startupWizardCompleted, + Wrapped? operatingSystemDisplayName, + Wrapped? packageName, + Wrapped? hasPendingRestart, + Wrapped? isShuttingDown, + Wrapped? supportsLibraryMonitor, + Wrapped? webSocketPortNumber, + Wrapped?>? completedInstallations, + Wrapped? canSelfRestart, + Wrapped? canLaunchWebBrowser, + Wrapped? programDataPath, + Wrapped? webPath, + Wrapped? itemsByNamePath, + Wrapped? cachePath, + Wrapped? logPath, + Wrapped? internalMetadataPath, + Wrapped? transcodingTempPath, + Wrapped?>? castReceiverApplications, + Wrapped? hasUpdateAvailable, + Wrapped? encoderLocation, + Wrapped? systemArchitecture, + }) { return SystemInfo( - 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), - id: (id != null ? id.value : this.id), - 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), - webPath: (webPath != null ? webPath.value : this.webPath), - 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)); + 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), + id: (id != null ? id.value : this.id), + 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), + webPath: (webPath != null ? webPath.value : this.webPath), + 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), + ); } } @@ -42649,7 +47140,10 @@ class TaskInfo { @JsonKey(name: 'LastExecutionResult', includeIfNull: false) final TaskResult? lastExecutionResult; @JsonKey( - name: 'Triggers', includeIfNull: false, defaultValue: []) + name: 'Triggers', + includeIfNull: false, + defaultValue: [], + ) final List? triggers; @JsonKey(name: 'Description', includeIfNull: false) final String? description; @@ -42669,28 +47163,41 @@ class TaskInfo { const DeepCollectionEquality().equals(other.name, name)) && (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && - (identical(other.currentProgressPercentage, - currentProgressPercentage) || + (identical( + other.currentProgressPercentage, + currentProgressPercentage, + ) || const DeepCollectionEquality().equals( - other.currentProgressPercentage, - currentProgressPercentage)) && + other.currentProgressPercentage, + currentProgressPercentage, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastExecutionResult, lastExecutionResult) || - const DeepCollectionEquality() - .equals(other.lastExecutionResult, lastExecutionResult)) && + const DeepCollectionEquality().equals( + other.lastExecutionResult, + lastExecutionResult, + )) && (identical(other.triggers, triggers) || - const DeepCollectionEquality() - .equals(other.triggers, triggers)) && + const DeepCollectionEquality().equals( + other.triggers, + triggers, + )) && (identical(other.description, description) || - const DeepCollectionEquality() - .equals(other.description, description)) && + const DeepCollectionEquality().equals( + other.description, + description, + )) && (identical(other.category, category) || - const DeepCollectionEquality() - .equals(other.category, category)) && + const DeepCollectionEquality().equals( + other.category, + category, + )) && (identical(other.isHidden, isHidden) || - const DeepCollectionEquality() - .equals(other.isHidden, isHidden)) && + const DeepCollectionEquality().equals( + other.isHidden, + isHidden, + )) && (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key))); } @@ -42714,58 +47221,61 @@ class TaskInfo { } extension $TaskInfoExtension on TaskInfo { - TaskInfo copyWith( - {String? name, - enums.TaskState? state, - double? currentProgressPercentage, - String? id, - TaskResult? lastExecutionResult, - List? triggers, - String? description, - String? category, - bool? isHidden, - String? key}) { + TaskInfo copyWith({ + String? name, + enums.TaskState? state, + double? currentProgressPercentage, + String? id, + TaskResult? lastExecutionResult, + List? triggers, + String? description, + String? category, + bool? isHidden, + String? key, + }) { return TaskInfo( - name: name ?? this.name, - state: state ?? this.state, - currentProgressPercentage: - currentProgressPercentage ?? this.currentProgressPercentage, - id: id ?? this.id, - lastExecutionResult: lastExecutionResult ?? this.lastExecutionResult, - triggers: triggers ?? this.triggers, - description: description ?? this.description, - category: category ?? this.category, - isHidden: isHidden ?? this.isHidden, - key: key ?? this.key); + name: name ?? this.name, + state: state ?? this.state, + currentProgressPercentage: + currentProgressPercentage ?? this.currentProgressPercentage, + id: id ?? this.id, + lastExecutionResult: lastExecutionResult ?? this.lastExecutionResult, + triggers: triggers ?? this.triggers, + description: description ?? this.description, + category: category ?? this.category, + isHidden: isHidden ?? this.isHidden, + key: key ?? this.key, + ); } - TaskInfo copyWithWrapped( - {Wrapped? name, - Wrapped? state, - Wrapped? currentProgressPercentage, - Wrapped? id, - Wrapped? lastExecutionResult, - Wrapped?>? triggers, - Wrapped? description, - Wrapped? category, - Wrapped? isHidden, - Wrapped? key}) { + TaskInfo copyWithWrapped({ + Wrapped? name, + Wrapped? state, + Wrapped? currentProgressPercentage, + Wrapped? id, + Wrapped? lastExecutionResult, + Wrapped?>? triggers, + Wrapped? description, + Wrapped? category, + Wrapped? isHidden, + Wrapped? key, + }) { return TaskInfo( - name: (name != null ? name.value : this.name), - state: (state != null ? state.value : this.state), - currentProgressPercentage: (currentProgressPercentage != null - ? currentProgressPercentage.value - : this.currentProgressPercentage), - id: (id != null ? id.value : this.id), - 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), - isHidden: (isHidden != null ? isHidden.value : this.isHidden), - key: (key != null ? key.value : this.key)); + name: (name != null ? name.value : this.name), + state: (state != null ? state.value : this.state), + currentProgressPercentage: (currentProgressPercentage != null + ? currentProgressPercentage.value + : this.currentProgressPercentage), + id: (id != null ? id.value : this.id), + 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), + isHidden: (isHidden != null ? isHidden.value : this.isHidden), + key: (key != null ? key.value : this.key), + ); } } @@ -42816,11 +47326,15 @@ class TaskResult { return identical(this, other) || (other is TaskResult && (identical(other.startTimeUtc, startTimeUtc) || - const DeepCollectionEquality() - .equals(other.startTimeUtc, startTimeUtc)) && + const DeepCollectionEquality().equals( + other.startTimeUtc, + startTimeUtc, + )) && (identical(other.endTimeUtc, endTimeUtc) || - const DeepCollectionEquality() - .equals(other.endTimeUtc, endTimeUtc)) && + const DeepCollectionEquality().equals( + other.endTimeUtc, + endTimeUtc, + )) && (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.name, name) || @@ -42830,11 +47344,15 @@ class TaskResult { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.errorMessage, errorMessage) || - const DeepCollectionEquality() - .equals(other.errorMessage, errorMessage)) && + const DeepCollectionEquality().equals( + other.errorMessage, + errorMessage, + )) && (identical(other.longErrorMessage, longErrorMessage) || - const DeepCollectionEquality() - .equals(other.longErrorMessage, longErrorMessage))); + const DeepCollectionEquality().equals( + other.longErrorMessage, + longErrorMessage, + ))); } @override @@ -42854,48 +47372,54 @@ class TaskResult { } extension $TaskResultExtension on TaskResult { - TaskResult copyWith( - {DateTime? startTimeUtc, - DateTime? endTimeUtc, - enums.TaskCompletionStatus? status, - String? name, - String? key, - String? id, - String? errorMessage, - String? longErrorMessage}) { + TaskResult copyWith({ + DateTime? startTimeUtc, + DateTime? endTimeUtc, + enums.TaskCompletionStatus? status, + String? name, + String? key, + String? id, + String? errorMessage, + String? longErrorMessage, + }) { return TaskResult( - startTimeUtc: startTimeUtc ?? this.startTimeUtc, - endTimeUtc: endTimeUtc ?? this.endTimeUtc, - status: status ?? this.status, - name: name ?? this.name, - key: key ?? this.key, - id: id ?? this.id, - errorMessage: errorMessage ?? this.errorMessage, - longErrorMessage: longErrorMessage ?? this.longErrorMessage); + startTimeUtc: startTimeUtc ?? this.startTimeUtc, + endTimeUtc: endTimeUtc ?? this.endTimeUtc, + status: status ?? this.status, + name: name ?? this.name, + key: key ?? this.key, + id: id ?? this.id, + errorMessage: errorMessage ?? this.errorMessage, + longErrorMessage: longErrorMessage ?? this.longErrorMessage, + ); } - TaskResult copyWithWrapped( - {Wrapped? startTimeUtc, - Wrapped? endTimeUtc, - Wrapped? status, - Wrapped? name, - Wrapped? key, - Wrapped? id, - Wrapped? errorMessage, - Wrapped? longErrorMessage}) { + TaskResult copyWithWrapped({ + Wrapped? startTimeUtc, + Wrapped? endTimeUtc, + Wrapped? status, + Wrapped? name, + Wrapped? key, + Wrapped? id, + Wrapped? errorMessage, + Wrapped? longErrorMessage, + }) { return TaskResult( - 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)); + 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), + ); } } @@ -42939,17 +47463,25 @@ class TaskTriggerInfo { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.timeOfDayTicks, timeOfDayTicks) || - const DeepCollectionEquality() - .equals(other.timeOfDayTicks, timeOfDayTicks)) && + const DeepCollectionEquality().equals( + other.timeOfDayTicks, + timeOfDayTicks, + )) && (identical(other.intervalTicks, intervalTicks) || - const DeepCollectionEquality() - .equals(other.intervalTicks, intervalTicks)) && + const DeepCollectionEquality().equals( + other.intervalTicks, + intervalTicks, + )) && (identical(other.dayOfWeek, dayOfWeek) || - const DeepCollectionEquality() - .equals(other.dayOfWeek, dayOfWeek)) && + const DeepCollectionEquality().equals( + other.dayOfWeek, + dayOfWeek, + )) && (identical(other.maxRuntimeTicks, maxRuntimeTicks) || - const DeepCollectionEquality() - .equals(other.maxRuntimeTicks, maxRuntimeTicks))); + const DeepCollectionEquality().equals( + other.maxRuntimeTicks, + maxRuntimeTicks, + ))); } @override @@ -42966,37 +47498,42 @@ class TaskTriggerInfo { } extension $TaskTriggerInfoExtension on TaskTriggerInfo { - TaskTriggerInfo copyWith( - {String? type, - int? timeOfDayTicks, - int? intervalTicks, - enums.DayOfWeek? dayOfWeek, - int? maxRuntimeTicks}) { + TaskTriggerInfo copyWith({ + String? type, + int? timeOfDayTicks, + int? intervalTicks, + enums.DayOfWeek? dayOfWeek, + int? maxRuntimeTicks, + }) { return TaskTriggerInfo( - type: type ?? this.type, - timeOfDayTicks: timeOfDayTicks ?? this.timeOfDayTicks, - intervalTicks: intervalTicks ?? this.intervalTicks, - dayOfWeek: dayOfWeek ?? this.dayOfWeek, - maxRuntimeTicks: maxRuntimeTicks ?? this.maxRuntimeTicks); + type: type ?? this.type, + timeOfDayTicks: timeOfDayTicks ?? this.timeOfDayTicks, + intervalTicks: intervalTicks ?? this.intervalTicks, + dayOfWeek: dayOfWeek ?? this.dayOfWeek, + maxRuntimeTicks: maxRuntimeTicks ?? this.maxRuntimeTicks, + ); } - TaskTriggerInfo copyWithWrapped( - {Wrapped? type, - Wrapped? timeOfDayTicks, - Wrapped? intervalTicks, - Wrapped? dayOfWeek, - Wrapped? maxRuntimeTicks}) { + TaskTriggerInfo copyWithWrapped({ + Wrapped? type, + Wrapped? timeOfDayTicks, + Wrapped? intervalTicks, + Wrapped? dayOfWeek, + Wrapped? maxRuntimeTicks, + }) { return TaskTriggerInfo( - type: (type != null ? type.value : this.type), - 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)); + type: (type != null ? type.value : this.type), + 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), + ); } } @@ -43032,11 +47569,15 @@ class ThemeMediaResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex)) && + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + )) && (identical(other.ownerId, ownerId) || const DeepCollectionEquality().equals(other.ownerId, ownerId))); } @@ -43054,40 +47595,40 @@ class ThemeMediaResult { } extension $ThemeMediaResultExtension on ThemeMediaResult { - ThemeMediaResult copyWith( - {List? items, - int? totalRecordCount, - int? startIndex, - String? ownerId}) { + ThemeMediaResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + String? ownerId, + }) { return ThemeMediaResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex, - ownerId: ownerId ?? this.ownerId); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ownerId: ownerId ?? this.ownerId, + ); } - ThemeMediaResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex, - Wrapped? ownerId}) { + ThemeMediaResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + Wrapped? ownerId, + }) { return ThemeMediaResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex), - ownerId: (ownerId != null ? ownerId.value : this.ownerId)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ownerId: (ownerId != null ? ownerId.value : this.ownerId), + ); } } @JsonSerializable(explicitToJson: true) class TimerCancelledMessage { - const TimerCancelledMessage({ - this.data, - this.messageId, - this.messageType, - }); + const TimerCancelledMessage({this.data, this.messageId, this.messageType}); factory TimerCancelledMessage.fromJson(Map json) => _$TimerCancelledMessageFromJson(json); @@ -43107,9 +47648,11 @@ class TimerCancelledMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.timercancelled); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.timercancelled, + ); static const fromJsonFactory = _$TimerCancelledMessageFromJson; @@ -43120,11 +47663,15 @@ class TimerCancelledMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -43139,35 +47686,34 @@ class TimerCancelledMessage { } extension $TimerCancelledMessageExtension on TimerCancelledMessage { - TimerCancelledMessage copyWith( - {TimerEventInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + TimerCancelledMessage copyWith({ + TimerEventInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return TimerCancelledMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - TimerCancelledMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + TimerCancelledMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return TimerCancelledMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class TimerCreatedMessage { - const TimerCreatedMessage({ - this.data, - this.messageId, - this.messageType, - }); + const TimerCreatedMessage({this.data, this.messageId, this.messageType}); factory TimerCreatedMessage.fromJson(Map json) => _$TimerCreatedMessageFromJson(json); @@ -43187,9 +47733,11 @@ class TimerCreatedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.timercreated); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.timercreated, + ); static const fromJsonFactory = _$TimerCreatedMessageFromJson; @@ -43200,11 +47748,15 @@ class TimerCreatedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -43219,34 +47771,34 @@ class TimerCreatedMessage { } extension $TimerCreatedMessageExtension on TimerCreatedMessage { - TimerCreatedMessage copyWith( - {TimerEventInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + TimerCreatedMessage copyWith({ + TimerEventInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return TimerCreatedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - TimerCreatedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + TimerCreatedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return TimerCreatedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class TimerEventInfo { - const TimerEventInfo({ - this.id, - this.programId, - }); + const TimerEventInfo({this.id, this.programId}); factory TimerEventInfo.fromJson(Map json) => _$TimerEventInfoFromJson(json); @@ -43267,8 +47819,10 @@ class TimerEventInfo { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.programId, programId) || - const DeepCollectionEquality() - .equals(other.programId, programId))); + const DeepCollectionEquality().equals( + other.programId, + programId, + ))); } @override @@ -43284,14 +47838,19 @@ class TimerEventInfo { extension $TimerEventInfoExtension on TimerEventInfo { TimerEventInfo copyWith({String? id, String? programId}) { return TimerEventInfo( - id: id ?? this.id, programId: programId ?? this.programId); + id: id ?? this.id, + programId: programId ?? this.programId, + ); } - TimerEventInfo copyWithWrapped( - {Wrapped? id, Wrapped? programId}) { + TimerEventInfo copyWithWrapped({ + Wrapped? id, + Wrapped? programId, + }) { return TimerEventInfo( - id: (id != null ? id.value : this.id), - programId: (programId != null ? programId.value : this.programId)); + id: (id != null ? id.value : this.id), + programId: (programId != null ? programId.value : this.programId), + ); } } @@ -43375,9 +47934,10 @@ class TimerInfoDto { @JsonKey(name: 'ParentBackdropItemId', includeIfNull: false) final String? parentBackdropItemId; @JsonKey( - name: 'ParentBackdropImageTags', - includeIfNull: false, - defaultValue: []) + name: 'ParentBackdropImageTags', + includeIfNull: false, + defaultValue: [], + ) final List? parentBackdropImageTags; @JsonKey(name: 'IsPostPaddingRequired', includeIfNull: false) final bool? isPostPaddingRequired; @@ -43414,70 +47974,132 @@ class TimerInfoDto { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || - const DeepCollectionEquality() - .equals(other.serverId, serverId)) && + const DeepCollectionEquality().equals( + other.serverId, + serverId, + )) && (identical(other.externalId, externalId) || - const DeepCollectionEquality() - .equals(other.externalId, externalId)) && + const DeepCollectionEquality().equals( + other.externalId, + externalId, + )) && (identical(other.channelId, channelId) || - const DeepCollectionEquality() - .equals(other.channelId, channelId)) && + const DeepCollectionEquality().equals( + other.channelId, + channelId, + )) && (identical(other.externalChannelId, externalChannelId) || - const DeepCollectionEquality() - .equals(other.externalChannelId, externalChannelId)) && + const DeepCollectionEquality().equals( + other.externalChannelId, + externalChannelId, + )) && (identical(other.channelName, channelName) || - const DeepCollectionEquality() - .equals(other.channelName, channelName)) && + const DeepCollectionEquality().equals( + other.channelName, + channelName, + )) && (identical(other.channelPrimaryImageTag, channelPrimaryImageTag) || const DeepCollectionEquality().equals( - other.channelPrimaryImageTag, channelPrimaryImageTag)) && + other.channelPrimaryImageTag, + channelPrimaryImageTag, + )) && (identical(other.programId, programId) || - const DeepCollectionEquality() - .equals(other.programId, programId)) && + const DeepCollectionEquality().equals( + other.programId, + programId, + )) && (identical(other.externalProgramId, externalProgramId) || - const DeepCollectionEquality() - .equals(other.externalProgramId, externalProgramId)) && + const DeepCollectionEquality().equals( + other.externalProgramId, + externalProgramId, + )) && (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || - const DeepCollectionEquality() - .equals(other.overview, overview)) && + const DeepCollectionEquality().equals( + other.overview, + overview, + )) && (identical(other.startDate, startDate) || - const DeepCollectionEquality() - .equals(other.startDate, startDate)) && + const DeepCollectionEquality().equals( + other.startDate, + startDate, + )) && (identical(other.endDate, endDate) || - const DeepCollectionEquality() - .equals(other.endDate, endDate)) && + const DeepCollectionEquality().equals( + other.endDate, + endDate, + )) && (identical(other.serviceName, serviceName) || - const DeepCollectionEquality() - .equals(other.serviceName, serviceName)) && + const DeepCollectionEquality().equals( + other.serviceName, + serviceName, + )) && (identical(other.priority, priority) || - const DeepCollectionEquality() - .equals(other.priority, priority)) && + const DeepCollectionEquality().equals( + other.priority, + priority, + )) && (identical(other.prePaddingSeconds, prePaddingSeconds) || - const DeepCollectionEquality() - .equals(other.prePaddingSeconds, prePaddingSeconds)) && + const DeepCollectionEquality().equals( + other.prePaddingSeconds, + prePaddingSeconds, + )) && (identical(other.postPaddingSeconds, postPaddingSeconds) || - const DeepCollectionEquality() - .equals(other.postPaddingSeconds, postPaddingSeconds)) && + const DeepCollectionEquality().equals( + other.postPaddingSeconds, + postPaddingSeconds, + )) && (identical(other.isPrePaddingRequired, isPrePaddingRequired) || const DeepCollectionEquality().equals( - other.isPrePaddingRequired, isPrePaddingRequired)) && + other.isPrePaddingRequired, + isPrePaddingRequired, + )) && (identical(other.parentBackdropItemId, parentBackdropItemId) || const DeepCollectionEquality().equals( - other.parentBackdropItemId, parentBackdropItemId)) && - (identical(other.parentBackdropImageTags, parentBackdropImageTags) || + other.parentBackdropItemId, + parentBackdropItemId, + )) && + (identical( + other.parentBackdropImageTags, + parentBackdropImageTags, + ) || const DeepCollectionEquality().equals( - other.parentBackdropImageTags, parentBackdropImageTags)) && + other.parentBackdropImageTags, + parentBackdropImageTags, + )) && (identical(other.isPostPaddingRequired, isPostPaddingRequired) || const DeepCollectionEquality().equals( - other.isPostPaddingRequired, isPostPaddingRequired)) && - (identical(other.keepUntil, keepUntil) || const DeepCollectionEquality().equals(other.keepUntil, keepUntil)) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.seriesTimerId, seriesTimerId) || const DeepCollectionEquality().equals(other.seriesTimerId, seriesTimerId)) && - (identical(other.externalSeriesTimerId, externalSeriesTimerId) || const DeepCollectionEquality().equals(other.externalSeriesTimerId, externalSeriesTimerId)) && - (identical(other.runTimeTicks, runTimeTicks) || const DeepCollectionEquality().equals(other.runTimeTicks, runTimeTicks)) && - (identical(other.programInfo, programInfo) || const DeepCollectionEquality().equals(other.programInfo, programInfo))); + other.isPostPaddingRequired, + isPostPaddingRequired, + )) && + (identical(other.keepUntil, keepUntil) || + const DeepCollectionEquality().equals( + other.keepUntil, + keepUntil, + )) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.seriesTimerId, seriesTimerId) || + const DeepCollectionEquality().equals( + other.seriesTimerId, + seriesTimerId, + )) && + (identical(other.externalSeriesTimerId, externalSeriesTimerId) || + const DeepCollectionEquality().equals( + other.externalSeriesTimerId, + externalSeriesTimerId, + )) && + (identical(other.runTimeTicks, runTimeTicks) || + const DeepCollectionEquality().equals( + other.runTimeTicks, + runTimeTicks, + )) && + (identical(other.programInfo, programInfo) || + const DeepCollectionEquality().equals( + other.programInfo, + programInfo, + ))); } @override @@ -43517,153 +48139,156 @@ class TimerInfoDto { } extension $TimerInfoDtoExtension on TimerInfoDto { - TimerInfoDto copyWith( - {String? id, - String? type, - String? serverId, - String? externalId, - String? channelId, - String? externalChannelId, - String? channelName, - String? channelPrimaryImageTag, - String? programId, - String? externalProgramId, - String? name, - String? overview, - DateTime? startDate, - DateTime? endDate, - String? serviceName, - int? priority, - int? prePaddingSeconds, - int? postPaddingSeconds, - bool? isPrePaddingRequired, - String? parentBackdropItemId, - List? parentBackdropImageTags, - bool? isPostPaddingRequired, - enums.KeepUntil? keepUntil, - enums.RecordingStatus? status, - String? seriesTimerId, - String? externalSeriesTimerId, - int? runTimeTicks, - BaseItemDto? programInfo}) { + TimerInfoDto copyWith({ + String? id, + String? type, + String? serverId, + String? externalId, + String? channelId, + String? externalChannelId, + String? channelName, + String? channelPrimaryImageTag, + String? programId, + String? externalProgramId, + String? name, + String? overview, + DateTime? startDate, + DateTime? endDate, + String? serviceName, + int? priority, + int? prePaddingSeconds, + int? postPaddingSeconds, + bool? isPrePaddingRequired, + String? parentBackdropItemId, + List? parentBackdropImageTags, + bool? isPostPaddingRequired, + enums.KeepUntil? keepUntil, + enums.RecordingStatus? status, + String? seriesTimerId, + String? externalSeriesTimerId, + int? runTimeTicks, + BaseItemDto? programInfo, + }) { return TimerInfoDto( - id: id ?? this.id, - type: type ?? this.type, - serverId: serverId ?? this.serverId, - externalId: externalId ?? this.externalId, - channelId: channelId ?? this.channelId, - externalChannelId: externalChannelId ?? this.externalChannelId, - channelName: channelName ?? this.channelName, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, - programId: programId ?? this.programId, - externalProgramId: externalProgramId ?? this.externalProgramId, - name: name ?? this.name, - overview: overview ?? this.overview, - startDate: startDate ?? this.startDate, - endDate: endDate ?? this.endDate, - serviceName: serviceName ?? this.serviceName, - priority: priority ?? this.priority, - prePaddingSeconds: prePaddingSeconds ?? this.prePaddingSeconds, - postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, - isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, - parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: - isPostPaddingRequired ?? this.isPostPaddingRequired, - keepUntil: keepUntil ?? this.keepUntil, - status: status ?? this.status, - seriesTimerId: seriesTimerId ?? this.seriesTimerId, - externalSeriesTimerId: - externalSeriesTimerId ?? this.externalSeriesTimerId, - runTimeTicks: runTimeTicks ?? this.runTimeTicks, - programInfo: programInfo ?? this.programInfo); + id: id ?? this.id, + type: type ?? this.type, + serverId: serverId ?? this.serverId, + externalId: externalId ?? this.externalId, + channelId: channelId ?? this.channelId, + externalChannelId: externalChannelId ?? this.externalChannelId, + channelName: channelName ?? this.channelName, + channelPrimaryImageTag: + channelPrimaryImageTag ?? this.channelPrimaryImageTag, + programId: programId ?? this.programId, + externalProgramId: externalProgramId ?? this.externalProgramId, + name: name ?? this.name, + overview: overview ?? this.overview, + startDate: startDate ?? this.startDate, + endDate: endDate ?? this.endDate, + serviceName: serviceName ?? this.serviceName, + priority: priority ?? this.priority, + prePaddingSeconds: prePaddingSeconds ?? this.prePaddingSeconds, + postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, + isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, + parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, + parentBackdropImageTags: + parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: + isPostPaddingRequired ?? this.isPostPaddingRequired, + keepUntil: keepUntil ?? this.keepUntil, + status: status ?? this.status, + seriesTimerId: seriesTimerId ?? this.seriesTimerId, + externalSeriesTimerId: + externalSeriesTimerId ?? this.externalSeriesTimerId, + runTimeTicks: runTimeTicks ?? this.runTimeTicks, + programInfo: programInfo ?? this.programInfo, + ); } - TimerInfoDto copyWithWrapped( - {Wrapped? id, - Wrapped? type, - Wrapped? serverId, - Wrapped? externalId, - Wrapped? channelId, - Wrapped? externalChannelId, - Wrapped? channelName, - Wrapped? channelPrimaryImageTag, - Wrapped? programId, - Wrapped? externalProgramId, - Wrapped? name, - Wrapped? overview, - Wrapped? startDate, - Wrapped? endDate, - Wrapped? serviceName, - Wrapped? priority, - Wrapped? prePaddingSeconds, - Wrapped? postPaddingSeconds, - Wrapped? isPrePaddingRequired, - Wrapped? parentBackdropItemId, - Wrapped?>? parentBackdropImageTags, - Wrapped? isPostPaddingRequired, - Wrapped? keepUntil, - Wrapped? status, - Wrapped? seriesTimerId, - Wrapped? externalSeriesTimerId, - Wrapped? runTimeTicks, - Wrapped? programInfo}) { + TimerInfoDto copyWithWrapped({ + Wrapped? id, + Wrapped? type, + Wrapped? serverId, + Wrapped? externalId, + Wrapped? channelId, + Wrapped? externalChannelId, + Wrapped? channelName, + Wrapped? channelPrimaryImageTag, + Wrapped? programId, + Wrapped? externalProgramId, + Wrapped? name, + Wrapped? overview, + Wrapped? startDate, + Wrapped? endDate, + Wrapped? serviceName, + Wrapped? priority, + Wrapped? prePaddingSeconds, + Wrapped? postPaddingSeconds, + Wrapped? isPrePaddingRequired, + Wrapped? parentBackdropItemId, + Wrapped?>? parentBackdropImageTags, + Wrapped? isPostPaddingRequired, + Wrapped? keepUntil, + Wrapped? status, + Wrapped? seriesTimerId, + Wrapped? externalSeriesTimerId, + Wrapped? runTimeTicks, + Wrapped? programInfo, + }) { return TimerInfoDto( - id: (id != null ? id.value : this.id), - type: (type != null ? type.value : this.type), - 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), - channelName: - (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), - programId: (programId != null ? programId.value : this.programId), - 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), - 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), - programInfo: - (programInfo != null ? programInfo.value : this.programInfo)); + id: (id != null ? id.value : this.id), + type: (type != null ? type.value : this.type), + 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), + channelName: (channelName != null ? channelName.value : this.channelName), + channelPrimaryImageTag: (channelPrimaryImageTag != null + ? channelPrimaryImageTag.value + : this.channelPrimaryImageTag), + programId: (programId != null ? programId.value : this.programId), + 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), + 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), + programInfo: (programInfo != null ? programInfo.value : this.programInfo), + ); } } @@ -43696,11 +48321,15 @@ class TimerInfoDtoQueryResult { (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || - const DeepCollectionEquality() - .equals(other.totalRecordCount, totalRecordCount)) && + const DeepCollectionEquality().equals( + other.totalRecordCount, + totalRecordCount, + )) && (identical(other.startIndex, startIndex) || - const DeepCollectionEquality() - .equals(other.startIndex, startIndex))); + const DeepCollectionEquality().equals( + other.startIndex, + startIndex, + ))); } @override @@ -43715,24 +48344,30 @@ class TimerInfoDtoQueryResult { } extension $TimerInfoDtoQueryResultExtension on TimerInfoDtoQueryResult { - TimerInfoDtoQueryResult copyWith( - {List? items, int? totalRecordCount, int? startIndex}) { + TimerInfoDtoQueryResult copyWith({ + List? items, + int? totalRecordCount, + int? startIndex, + }) { return TimerInfoDtoQueryResult( - items: items ?? this.items, - totalRecordCount: totalRecordCount ?? this.totalRecordCount, - startIndex: startIndex ?? this.startIndex); + items: items ?? this.items, + totalRecordCount: totalRecordCount ?? this.totalRecordCount, + startIndex: startIndex ?? this.startIndex, + ); } - TimerInfoDtoQueryResult copyWithWrapped( - {Wrapped?>? items, - Wrapped? totalRecordCount, - Wrapped? startIndex}) { + TimerInfoDtoQueryResult copyWithWrapped({ + Wrapped?>? items, + Wrapped? totalRecordCount, + Wrapped? startIndex, + }) { return TimerInfoDtoQueryResult( - items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), - startIndex: (startIndex != null ? startIndex.value : this.startIndex)); + items: (items != null ? items.value : this.items), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), + startIndex: (startIndex != null ? startIndex.value : this.startIndex), + ); } } @@ -43789,33 +48424,49 @@ class TrailerInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || - const DeepCollectionEquality() - .equals(other.originalTitle, originalTitle)) && + const DeepCollectionEquality().equals( + other.originalTitle, + originalTitle, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || - const DeepCollectionEquality() - .equals(other.metadataLanguage, metadataLanguage)) && + const DeepCollectionEquality().equals( + other.metadataLanguage, + metadataLanguage, + )) && (identical(other.metadataCountryCode, metadataCountryCode) || - const DeepCollectionEquality() - .equals(other.metadataCountryCode, metadataCountryCode)) && + const DeepCollectionEquality().equals( + other.metadataCountryCode, + metadataCountryCode, + )) && (identical(other.providerIds, providerIds) || - const DeepCollectionEquality() - .equals(other.providerIds, providerIds)) && + const DeepCollectionEquality().equals( + other.providerIds, + providerIds, + )) && (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || - const DeepCollectionEquality() - .equals(other.indexNumber, indexNumber)) && + const DeepCollectionEquality().equals( + other.indexNumber, + indexNumber, + )) && (identical(other.parentIndexNumber, parentIndexNumber) || - const DeepCollectionEquality() - .equals(other.parentIndexNumber, parentIndexNumber)) && + const DeepCollectionEquality().equals( + other.parentIndexNumber, + parentIndexNumber, + )) && (identical(other.premiereDate, premiereDate) || - const DeepCollectionEquality() - .equals(other.premiereDate, premiereDate)) && + const DeepCollectionEquality().equals( + other.premiereDate, + premiereDate, + )) && (identical(other.isAutomated, isAutomated) || - const DeepCollectionEquality() - .equals(other.isAutomated, isAutomated))); + const DeepCollectionEquality().equals( + other.isAutomated, + isAutomated, + ))); } @override @@ -43838,67 +48489,70 @@ class TrailerInfo { } extension $TrailerInfoExtension on TrailerInfo { - TrailerInfo copyWith( - {String? name, - String? originalTitle, - String? path, - String? metadataLanguage, - String? metadataCountryCode, - Map? providerIds, - int? year, - int? indexNumber, - int? parentIndexNumber, - DateTime? premiereDate, - bool? isAutomated}) { + TrailerInfo copyWith({ + String? name, + String? originalTitle, + String? path, + String? metadataLanguage, + String? metadataCountryCode, + Map? providerIds, + int? year, + int? indexNumber, + int? parentIndexNumber, + DateTime? premiereDate, + bool? isAutomated, + }) { return TrailerInfo( - name: name ?? this.name, - originalTitle: originalTitle ?? this.originalTitle, - path: path ?? this.path, - metadataLanguage: metadataLanguage ?? this.metadataLanguage, - metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - providerIds: providerIds ?? this.providerIds, - year: year ?? this.year, - indexNumber: indexNumber ?? this.indexNumber, - parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, - premiereDate: premiereDate ?? this.premiereDate, - isAutomated: isAutomated ?? this.isAutomated); + name: name ?? this.name, + originalTitle: originalTitle ?? this.originalTitle, + path: path ?? this.path, + metadataLanguage: metadataLanguage ?? this.metadataLanguage, + metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, + providerIds: providerIds ?? this.providerIds, + year: year ?? this.year, + indexNumber: indexNumber ?? this.indexNumber, + parentIndexNumber: parentIndexNumber ?? this.parentIndexNumber, + premiereDate: premiereDate ?? this.premiereDate, + isAutomated: isAutomated ?? this.isAutomated, + ); } - TrailerInfo copyWithWrapped( - {Wrapped? name, - Wrapped? originalTitle, - Wrapped? path, - Wrapped? metadataLanguage, - Wrapped? metadataCountryCode, - Wrapped?>? providerIds, - Wrapped? year, - Wrapped? indexNumber, - Wrapped? parentIndexNumber, - Wrapped? premiereDate, - Wrapped? isAutomated}) { + TrailerInfo copyWithWrapped({ + Wrapped? name, + Wrapped? originalTitle, + Wrapped? path, + Wrapped? metadataLanguage, + Wrapped? metadataCountryCode, + Wrapped?>? providerIds, + Wrapped? year, + Wrapped? indexNumber, + Wrapped? parentIndexNumber, + Wrapped? premiereDate, + Wrapped? isAutomated, + }) { return TrailerInfo( - name: (name != null ? name.value : this.name), - 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), - 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), - isAutomated: - (isAutomated != null ? isAutomated.value : this.isAutomated)); + name: (name != null ? name.value : this.name), + 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), + 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), + isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), + ); } } @@ -43932,17 +48586,25 @@ class TrailerInfoRemoteSearchQuery { return identical(this, other) || (other is TrailerInfoRemoteSearchQuery && (identical(other.searchInfo, searchInfo) || - const DeepCollectionEquality() - .equals(other.searchInfo, searchInfo)) && + const DeepCollectionEquality().equals( + other.searchInfo, + searchInfo, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || - const DeepCollectionEquality() - .equals(other.searchProviderName, searchProviderName)) && - (identical( - other.includeDisabledProviders, includeDisabledProviders) || const DeepCollectionEquality().equals( - other.includeDisabledProviders, includeDisabledProviders))); + other.searchProviderName, + searchProviderName, + )) && + (identical( + other.includeDisabledProviders, + includeDisabledProviders, + ) || + const DeepCollectionEquality().equals( + other.includeDisabledProviders, + includeDisabledProviders, + ))); } @override @@ -43959,33 +48621,37 @@ class TrailerInfoRemoteSearchQuery { extension $TrailerInfoRemoteSearchQueryExtension on TrailerInfoRemoteSearchQuery { - TrailerInfoRemoteSearchQuery copyWith( - {TrailerInfo? searchInfo, - String? itemId, - String? searchProviderName, - bool? includeDisabledProviders}) { + TrailerInfoRemoteSearchQuery copyWith({ + TrailerInfo? searchInfo, + String? itemId, + String? searchProviderName, + bool? includeDisabledProviders, + }) { return TrailerInfoRemoteSearchQuery( - searchInfo: searchInfo ?? this.searchInfo, - itemId: itemId ?? this.itemId, - searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders); + searchInfo: searchInfo ?? this.searchInfo, + itemId: itemId ?? this.itemId, + searchProviderName: searchProviderName ?? this.searchProviderName, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, + ); } - TrailerInfoRemoteSearchQuery copyWithWrapped( - {Wrapped? searchInfo, - Wrapped? itemId, - Wrapped? searchProviderName, - Wrapped? includeDisabledProviders}) { + TrailerInfoRemoteSearchQuery copyWithWrapped({ + Wrapped? searchInfo, + Wrapped? itemId, + Wrapped? searchProviderName, + Wrapped? includeDisabledProviders, + }) { 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)); + 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), + ); } } @@ -44056,44 +48722,67 @@ class TranscodingInfo { return identical(this, other) || (other is TranscodingInfo && (identical(other.audioCodec, audioCodec) || - const DeepCollectionEquality() - .equals(other.audioCodec, audioCodec)) && + const DeepCollectionEquality().equals( + other.audioCodec, + audioCodec, + )) && (identical(other.videoCodec, videoCodec) || - const DeepCollectionEquality() - .equals(other.videoCodec, videoCodec)) && + const DeepCollectionEquality().equals( + other.videoCodec, + videoCodec, + )) && (identical(other.container, container) || - const DeepCollectionEquality() - .equals(other.container, container)) && + const DeepCollectionEquality().equals( + other.container, + container, + )) && (identical(other.isVideoDirect, isVideoDirect) || - const DeepCollectionEquality() - .equals(other.isVideoDirect, isVideoDirect)) && + const DeepCollectionEquality().equals( + other.isVideoDirect, + isVideoDirect, + )) && (identical(other.isAudioDirect, isAudioDirect) || - const DeepCollectionEquality() - .equals(other.isAudioDirect, isAudioDirect)) && + const DeepCollectionEquality().equals( + other.isAudioDirect, + isAudioDirect, + )) && (identical(other.bitrate, bitrate) || - const DeepCollectionEquality() - .equals(other.bitrate, bitrate)) && + const DeepCollectionEquality().equals( + other.bitrate, + bitrate, + )) && (identical(other.framerate, framerate) || - const DeepCollectionEquality() - .equals(other.framerate, framerate)) && + const DeepCollectionEquality().equals( + other.framerate, + framerate, + )) && (identical(other.completionPercentage, completionPercentage) || const DeepCollectionEquality().equals( - other.completionPercentage, completionPercentage)) && + 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.audioChannels, audioChannels) || - const DeepCollectionEquality() - .equals(other.audioChannels, audioChannels)) && - (identical( - other.hardwareAccelerationType, hardwareAccelerationType) || const DeepCollectionEquality().equals( - other.hardwareAccelerationType, - hardwareAccelerationType)) && + other.audioChannels, + audioChannels, + )) && + (identical( + other.hardwareAccelerationType, + hardwareAccelerationType, + ) || + const DeepCollectionEquality().equals( + other.hardwareAccelerationType, + hardwareAccelerationType, + )) && (identical(other.transcodeReasons, transcodeReasons) || - const DeepCollectionEquality() - .equals(other.transcodeReasons, transcodeReasons))); + const DeepCollectionEquality().equals( + other.transcodeReasons, + transcodeReasons, + ))); } @override @@ -44118,74 +48807,81 @@ class TranscodingInfo { } extension $TranscodingInfoExtension on TranscodingInfo { - TranscodingInfo copyWith( - {String? audioCodec, - String? videoCodec, - String? container, - bool? isVideoDirect, - bool? isAudioDirect, - int? bitrate, - double? framerate, - double? completionPercentage, - int? width, - int? height, - int? audioChannels, - enums.HardwareAccelerationType? hardwareAccelerationType, - List? transcodeReasons}) { + TranscodingInfo copyWith({ + String? audioCodec, + String? videoCodec, + String? container, + bool? isVideoDirect, + bool? isAudioDirect, + int? bitrate, + double? framerate, + double? completionPercentage, + int? width, + int? height, + int? audioChannels, + enums.HardwareAccelerationType? hardwareAccelerationType, + List? transcodeReasons, + }) { return TranscodingInfo( - audioCodec: audioCodec ?? this.audioCodec, - videoCodec: videoCodec ?? this.videoCodec, - container: container ?? this.container, - isVideoDirect: isVideoDirect ?? this.isVideoDirect, - isAudioDirect: isAudioDirect ?? this.isAudioDirect, - bitrate: bitrate ?? this.bitrate, - framerate: framerate ?? this.framerate, - completionPercentage: completionPercentage ?? this.completionPercentage, - width: width ?? this.width, - height: height ?? this.height, - audioChannels: audioChannels ?? this.audioChannels, - hardwareAccelerationType: - hardwareAccelerationType ?? this.hardwareAccelerationType, - transcodeReasons: transcodeReasons ?? this.transcodeReasons); + audioCodec: audioCodec ?? this.audioCodec, + videoCodec: videoCodec ?? this.videoCodec, + container: container ?? this.container, + isVideoDirect: isVideoDirect ?? this.isVideoDirect, + isAudioDirect: isAudioDirect ?? this.isAudioDirect, + bitrate: bitrate ?? this.bitrate, + framerate: framerate ?? this.framerate, + completionPercentage: completionPercentage ?? this.completionPercentage, + width: width ?? this.width, + height: height ?? this.height, + audioChannels: audioChannels ?? this.audioChannels, + hardwareAccelerationType: + hardwareAccelerationType ?? this.hardwareAccelerationType, + transcodeReasons: transcodeReasons ?? this.transcodeReasons, + ); } - TranscodingInfo copyWithWrapped( - {Wrapped? audioCodec, - Wrapped? videoCodec, - Wrapped? container, - Wrapped? isVideoDirect, - Wrapped? isAudioDirect, - Wrapped? bitrate, - Wrapped? framerate, - Wrapped? completionPercentage, - Wrapped? width, - Wrapped? height, - Wrapped? audioChannels, - Wrapped? hardwareAccelerationType, - Wrapped?>? transcodeReasons}) { + TranscodingInfo copyWithWrapped({ + Wrapped? audioCodec, + Wrapped? videoCodec, + Wrapped? container, + Wrapped? isVideoDirect, + Wrapped? isAudioDirect, + Wrapped? bitrate, + Wrapped? framerate, + Wrapped? completionPercentage, + Wrapped? width, + Wrapped? height, + Wrapped? audioChannels, + Wrapped? hardwareAccelerationType, + Wrapped?>? transcodeReasons, + }) { return 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), - bitrate: (bitrate != null ? bitrate.value : this.bitrate), - framerate: (framerate != null ? framerate.value : this.framerate), - 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)); + 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), + bitrate: (bitrate != null ? bitrate.value : this.bitrate), + framerate: (framerate != null ? framerate.value : this.framerate), + 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), + ); } } @@ -44238,10 +48934,16 @@ class TranscodingProfile { ) final enums.MediaStreamProtocol? protocol; @JsonKey( - name: 'EstimateContentLength', includeIfNull: false, defaultValue: false) + name: 'EstimateContentLength', + includeIfNull: false, + defaultValue: false, + ) final bool? estimateContentLength; @JsonKey( - name: 'EnableMpegtsM2TsMode', includeIfNull: false, defaultValue: false) + name: 'EnableMpegtsM2TsMode', + includeIfNull: false, + defaultValue: false, + ) final bool? enableMpegtsM2TsMode; @JsonKey( name: 'TranscodeSeekInfo', @@ -44251,9 +48953,8 @@ class TranscodingProfile { ) final enums.TranscodeSeekInfo? transcodeSeekInfo; static enums.TranscodeSeekInfo? - transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => - transcodeSeekInfoNullableFromJson( - value, enums.TranscodeSeekInfo.auto); + transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => + transcodeSeekInfoNullableFromJson(value, enums.TranscodeSeekInfo.auto); @JsonKey(name: 'CopyTimestamps', includeIfNull: false, defaultValue: false) final bool? copyTimestamps; @@ -44265,13 +48966,14 @@ class TranscodingProfile { ) final enums.EncodingContext? context; static enums.EncodingContext? encodingContextContextNullableFromJson( - Object? value) => - encodingContextNullableFromJson(value, enums.EncodingContext.streaming); + Object? value, + ) => encodingContextNullableFromJson(value, enums.EncodingContext.streaming); @JsonKey( - name: 'EnableSubtitlesInManifest', - includeIfNull: false, - defaultValue: false) + name: 'EnableSubtitlesInManifest', + includeIfNull: false, + defaultValue: false, + ) final bool? enableSubtitlesInManifest; @JsonKey(name: 'MaxAudioChannels', includeIfNull: false) final String? maxAudioChannels; @@ -44280,15 +48982,22 @@ class TranscodingProfile { @JsonKey(name: 'SegmentLength', includeIfNull: false) final int? segmentLength; @JsonKey( - name: 'BreakOnNonKeyFrames', includeIfNull: false, defaultValue: false) + name: 'BreakOnNonKeyFrames', + includeIfNull: false, + defaultValue: false, + ) final bool? breakOnNonKeyFrames; @JsonKey( - name: 'Conditions', - includeIfNull: false, - defaultValue: []) + name: 'Conditions', + includeIfNull: false, + defaultValue: [], + ) final List? conditions; @JsonKey( - name: 'EnableAudioVbrEncoding', includeIfNull: false, defaultValue: true) + name: 'EnableAudioVbrEncoding', + includeIfNull: false, + defaultValue: true, + ) final bool? enableAudioVbrEncoding; static const fromJsonFactory = _$TranscodingProfileFromJson; @@ -44297,57 +49006,90 @@ class TranscodingProfile { return identical(this, other) || (other is TranscodingProfile && (identical(other.container, container) || - const DeepCollectionEquality() - .equals(other.container, container)) && + const DeepCollectionEquality().equals( + other.container, + container, + )) && (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.videoCodec, videoCodec) || - const DeepCollectionEquality() - .equals(other.videoCodec, videoCodec)) && + const DeepCollectionEquality().equals( + other.videoCodec, + videoCodec, + )) && (identical(other.audioCodec, audioCodec) || - const DeepCollectionEquality() - .equals(other.audioCodec, audioCodec)) && + const DeepCollectionEquality().equals( + other.audioCodec, + audioCodec, + )) && (identical(other.protocol, protocol) || - const DeepCollectionEquality() - .equals(other.protocol, protocol)) && + const DeepCollectionEquality().equals( + other.protocol, + protocol, + )) && (identical(other.estimateContentLength, estimateContentLength) || const DeepCollectionEquality().equals( - other.estimateContentLength, estimateContentLength)) && + other.estimateContentLength, + estimateContentLength, + )) && (identical(other.enableMpegtsM2TsMode, enableMpegtsM2TsMode) || const DeepCollectionEquality().equals( - other.enableMpegtsM2TsMode, enableMpegtsM2TsMode)) && + other.enableMpegtsM2TsMode, + enableMpegtsM2TsMode, + )) && (identical(other.transcodeSeekInfo, transcodeSeekInfo) || - const DeepCollectionEquality() - .equals(other.transcodeSeekInfo, transcodeSeekInfo)) && - (identical(other.copyTimestamps, copyTimestamps) || - const DeepCollectionEquality() - .equals(other.copyTimestamps, copyTimestamps)) && - (identical(other.context, context) || - const DeepCollectionEquality() - .equals(other.context, context)) && - (identical(other.enableSubtitlesInManifest, - enableSubtitlesInManifest) || const DeepCollectionEquality().equals( - other.enableSubtitlesInManifest, - enableSubtitlesInManifest)) && + other.transcodeSeekInfo, + transcodeSeekInfo, + )) && + (identical(other.copyTimestamps, copyTimestamps) || + const DeepCollectionEquality().equals( + other.copyTimestamps, + copyTimestamps, + )) && + (identical(other.context, context) || + const DeepCollectionEquality().equals( + other.context, + context, + )) && + (identical( + other.enableSubtitlesInManifest, + enableSubtitlesInManifest, + ) || + const DeepCollectionEquality().equals( + other.enableSubtitlesInManifest, + enableSubtitlesInManifest, + )) && (identical(other.maxAudioChannels, maxAudioChannels) || - const DeepCollectionEquality() - .equals(other.maxAudioChannels, maxAudioChannels)) && + const DeepCollectionEquality().equals( + other.maxAudioChannels, + maxAudioChannels, + )) && (identical(other.minSegments, minSegments) || - const DeepCollectionEquality() - .equals(other.minSegments, minSegments)) && + const DeepCollectionEquality().equals( + other.minSegments, + minSegments, + )) && (identical(other.segmentLength, segmentLength) || - const DeepCollectionEquality() - .equals(other.segmentLength, segmentLength)) && + const DeepCollectionEquality().equals( + other.segmentLength, + segmentLength, + )) && (identical(other.breakOnNonKeyFrames, breakOnNonKeyFrames) || - const DeepCollectionEquality() - .equals(other.breakOnNonKeyFrames, breakOnNonKeyFrames)) && + const DeepCollectionEquality().equals( + other.breakOnNonKeyFrames, + breakOnNonKeyFrames, + )) && (identical(other.conditions, conditions) || - const DeepCollectionEquality() - .equals(other.conditions, conditions)) && + const DeepCollectionEquality().equals( + other.conditions, + conditions, + )) && (identical(other.enableAudioVbrEncoding, enableAudioVbrEncoding) || const DeepCollectionEquality().equals( - other.enableAudioVbrEncoding, enableAudioVbrEncoding))); + other.enableAudioVbrEncoding, + enableAudioVbrEncoding, + ))); } @override @@ -44376,101 +49118,105 @@ class TranscodingProfile { } extension $TranscodingProfileExtension on TranscodingProfile { - TranscodingProfile copyWith( - {String? container, - enums.DlnaProfileType? type, - String? videoCodec, - String? audioCodec, - enums.MediaStreamProtocol? protocol, - bool? estimateContentLength, - bool? enableMpegtsM2TsMode, - enums.TranscodeSeekInfo? transcodeSeekInfo, - bool? copyTimestamps, - enums.EncodingContext? context, - bool? enableSubtitlesInManifest, - String? maxAudioChannels, - int? minSegments, - int? segmentLength, - bool? breakOnNonKeyFrames, - List? conditions, - bool? enableAudioVbrEncoding}) { + TranscodingProfile copyWith({ + String? container, + enums.DlnaProfileType? type, + String? videoCodec, + String? audioCodec, + enums.MediaStreamProtocol? protocol, + bool? estimateContentLength, + bool? enableMpegtsM2TsMode, + enums.TranscodeSeekInfo? transcodeSeekInfo, + bool? copyTimestamps, + enums.EncodingContext? context, + bool? enableSubtitlesInManifest, + String? maxAudioChannels, + int? minSegments, + int? segmentLength, + bool? breakOnNonKeyFrames, + List? conditions, + bool? enableAudioVbrEncoding, + }) { return TranscodingProfile( - container: container ?? this.container, - type: type ?? this.type, - videoCodec: videoCodec ?? this.videoCodec, - audioCodec: audioCodec ?? this.audioCodec, - protocol: protocol ?? this.protocol, - estimateContentLength: - estimateContentLength ?? this.estimateContentLength, - enableMpegtsM2TsMode: enableMpegtsM2TsMode ?? this.enableMpegtsM2TsMode, - transcodeSeekInfo: transcodeSeekInfo ?? this.transcodeSeekInfo, - copyTimestamps: copyTimestamps ?? this.copyTimestamps, - context: context ?? this.context, - 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); + container: container ?? this.container, + type: type ?? this.type, + videoCodec: videoCodec ?? this.videoCodec, + audioCodec: audioCodec ?? this.audioCodec, + protocol: protocol ?? this.protocol, + estimateContentLength: + estimateContentLength ?? this.estimateContentLength, + enableMpegtsM2TsMode: enableMpegtsM2TsMode ?? this.enableMpegtsM2TsMode, + transcodeSeekInfo: transcodeSeekInfo ?? this.transcodeSeekInfo, + copyTimestamps: copyTimestamps ?? this.copyTimestamps, + context: context ?? this.context, + 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, + ); } - TranscodingProfile copyWithWrapped( - {Wrapped? container, - Wrapped? type, - Wrapped? videoCodec, - Wrapped? audioCodec, - Wrapped? protocol, - Wrapped? estimateContentLength, - Wrapped? enableMpegtsM2TsMode, - Wrapped? transcodeSeekInfo, - Wrapped? copyTimestamps, - Wrapped? context, - Wrapped? enableSubtitlesInManifest, - Wrapped? maxAudioChannels, - Wrapped? minSegments, - Wrapped? segmentLength, - Wrapped? breakOnNonKeyFrames, - Wrapped?>? conditions, - Wrapped? enableAudioVbrEncoding}) { + TranscodingProfile copyWithWrapped({ + Wrapped? container, + Wrapped? type, + Wrapped? videoCodec, + Wrapped? audioCodec, + Wrapped? protocol, + Wrapped? estimateContentLength, + Wrapped? enableMpegtsM2TsMode, + Wrapped? transcodeSeekInfo, + Wrapped? copyTimestamps, + Wrapped? context, + Wrapped? enableSubtitlesInManifest, + Wrapped? maxAudioChannels, + Wrapped? minSegments, + Wrapped? segmentLength, + Wrapped? breakOnNonKeyFrames, + Wrapped?>? conditions, + Wrapped? enableAudioVbrEncoding, + }) { return TranscodingProfile( - container: (container != null ? container.value : this.container), - type: (type != null ? type.value : this.type), - 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), - context: (context != null ? context.value : this.context), - 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), - conditions: (conditions != null ? conditions.value : this.conditions), - enableAudioVbrEncoding: (enableAudioVbrEncoding != null - ? enableAudioVbrEncoding.value - : this.enableAudioVbrEncoding)); + container: (container != null ? container.value : this.container), + type: (type != null ? type.value : this.type), + 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), + context: (context != null ? context.value : this.context), + 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), + conditions: (conditions != null ? conditions.value : this.conditions), + enableAudioVbrEncoding: (enableAudioVbrEncoding != null + ? enableAudioVbrEncoding.value + : this.enableAudioVbrEncoding), + ); } } @@ -44517,20 +49263,30 @@ class TrickplayInfo { (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.tileWidth, tileWidth) || - const DeepCollectionEquality() - .equals(other.tileWidth, tileWidth)) && + const DeepCollectionEquality().equals( + other.tileWidth, + tileWidth, + )) && (identical(other.tileHeight, tileHeight) || - const DeepCollectionEquality() - .equals(other.tileHeight, tileHeight)) && + const DeepCollectionEquality().equals( + other.tileHeight, + tileHeight, + )) && (identical(other.thumbnailCount, thumbnailCount) || - const DeepCollectionEquality() - .equals(other.thumbnailCount, thumbnailCount)) && + const DeepCollectionEquality().equals( + other.thumbnailCount, + thumbnailCount, + )) && (identical(other.interval, interval) || - const DeepCollectionEquality() - .equals(other.interval, interval)) && + const DeepCollectionEquality().equals( + other.interval, + interval, + )) && (identical(other.bandwidth, bandwidth) || - const DeepCollectionEquality() - .equals(other.bandwidth, bandwidth))); + const DeepCollectionEquality().equals( + other.bandwidth, + bandwidth, + ))); } @override @@ -44549,42 +49305,46 @@ class TrickplayInfo { } extension $TrickplayInfoExtension on TrickplayInfo { - TrickplayInfo copyWith( - {int? width, - int? height, - int? tileWidth, - int? tileHeight, - int? thumbnailCount, - int? interval, - int? bandwidth}) { + TrickplayInfo copyWith({ + int? width, + int? height, + int? tileWidth, + int? tileHeight, + int? thumbnailCount, + int? interval, + int? bandwidth, + }) { return TrickplayInfo( - width: width ?? this.width, - height: height ?? this.height, - tileWidth: tileWidth ?? this.tileWidth, - tileHeight: tileHeight ?? this.tileHeight, - thumbnailCount: thumbnailCount ?? this.thumbnailCount, - interval: interval ?? this.interval, - bandwidth: bandwidth ?? this.bandwidth); + width: width ?? this.width, + height: height ?? this.height, + tileWidth: tileWidth ?? this.tileWidth, + tileHeight: tileHeight ?? this.tileHeight, + thumbnailCount: thumbnailCount ?? this.thumbnailCount, + interval: interval ?? this.interval, + bandwidth: bandwidth ?? this.bandwidth, + ); } - TrickplayInfo copyWithWrapped( - {Wrapped? width, - Wrapped? height, - Wrapped? tileWidth, - Wrapped? tileHeight, - Wrapped? thumbnailCount, - Wrapped? interval, - Wrapped? bandwidth}) { + TrickplayInfo copyWithWrapped({ + Wrapped? width, + Wrapped? height, + Wrapped? tileWidth, + Wrapped? tileHeight, + Wrapped? thumbnailCount, + Wrapped? interval, + Wrapped? bandwidth, + }) { return TrickplayInfo( - width: (width != null ? width.value : this.width), - 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), - interval: (interval != null ? interval.value : this.interval), - bandwidth: (bandwidth != null ? bandwidth.value : this.bandwidth)); + width: (width != null ? width.value : this.width), + 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), + interval: (interval != null ? interval.value : this.interval), + bandwidth: (bandwidth != null ? bandwidth.value : this.bandwidth), + ); } } @@ -44634,7 +49394,10 @@ class TrickplayOptions { @JsonKey(name: 'Interval', includeIfNull: false) final int? interval; @JsonKey( - name: 'WidthResolutions', includeIfNull: false, defaultValue: []) + name: 'WidthResolutions', + includeIfNull: false, + defaultValue: [], + ) final List? widthResolutions; @JsonKey(name: 'TileWidth', includeIfNull: false) final int? tileWidth; @@ -44654,41 +49417,64 @@ class TrickplayOptions { (other is TrickplayOptions && (identical(other.enableHwAcceleration, enableHwAcceleration) || const DeepCollectionEquality().equals( - other.enableHwAcceleration, enableHwAcceleration)) && + other.enableHwAcceleration, + enableHwAcceleration, + )) && (identical(other.enableHwEncoding, enableHwEncoding) || - const DeepCollectionEquality() - .equals(other.enableHwEncoding, enableHwEncoding)) && - (identical(other.enableKeyFrameOnlyExtraction, - enableKeyFrameOnlyExtraction) || const DeepCollectionEquality().equals( - other.enableKeyFrameOnlyExtraction, - enableKeyFrameOnlyExtraction)) && + other.enableHwEncoding, + enableHwEncoding, + )) && + (identical( + other.enableKeyFrameOnlyExtraction, + enableKeyFrameOnlyExtraction, + ) || + const DeepCollectionEquality().equals( + other.enableKeyFrameOnlyExtraction, + enableKeyFrameOnlyExtraction, + )) && (identical(other.scanBehavior, scanBehavior) || - const DeepCollectionEquality() - .equals(other.scanBehavior, scanBehavior)) && + const DeepCollectionEquality().equals( + other.scanBehavior, + scanBehavior, + )) && (identical(other.processPriority, processPriority) || - const DeepCollectionEquality() - .equals(other.processPriority, processPriority)) && + const DeepCollectionEquality().equals( + other.processPriority, + processPriority, + )) && (identical(other.interval, interval) || - const DeepCollectionEquality() - .equals(other.interval, interval)) && + const DeepCollectionEquality().equals( + other.interval, + interval, + )) && (identical(other.widthResolutions, widthResolutions) || - const DeepCollectionEquality() - .equals(other.widthResolutions, widthResolutions)) && + const DeepCollectionEquality().equals( + other.widthResolutions, + widthResolutions, + )) && (identical(other.tileWidth, tileWidth) || - const DeepCollectionEquality() - .equals(other.tileWidth, tileWidth)) && + const DeepCollectionEquality().equals( + other.tileWidth, + tileWidth, + )) && (identical(other.tileHeight, tileHeight) || - const DeepCollectionEquality() - .equals(other.tileHeight, tileHeight)) && + const DeepCollectionEquality().equals( + other.tileHeight, + tileHeight, + )) && (identical(other.qscale, qscale) || const DeepCollectionEquality().equals(other.qscale, qscale)) && (identical(other.jpegQuality, jpegQuality) || - const DeepCollectionEquality() - .equals(other.jpegQuality, jpegQuality)) && + const DeepCollectionEquality().equals( + other.jpegQuality, + jpegQuality, + )) && (identical(other.processThreads, processThreads) || - const DeepCollectionEquality() - .equals(other.processThreads, processThreads))); + const DeepCollectionEquality().equals( + other.processThreads, + processThreads, + ))); } @override @@ -44712,75 +49498,79 @@ class TrickplayOptions { } extension $TrickplayOptionsExtension on TrickplayOptions { - TrickplayOptions copyWith( - {bool? enableHwAcceleration, - bool? enableHwEncoding, - bool? enableKeyFrameOnlyExtraction, - enums.TrickplayScanBehavior? scanBehavior, - enums.ProcessPriorityClass? processPriority, - int? interval, - List? widthResolutions, - int? tileWidth, - int? tileHeight, - int? qscale, - int? jpegQuality, - int? processThreads}) { + TrickplayOptions copyWith({ + bool? enableHwAcceleration, + bool? enableHwEncoding, + bool? enableKeyFrameOnlyExtraction, + enums.TrickplayScanBehavior? scanBehavior, + enums.ProcessPriorityClass? processPriority, + int? interval, + List? widthResolutions, + int? tileWidth, + int? tileHeight, + int? qscale, + int? jpegQuality, + int? processThreads, + }) { return TrickplayOptions( - enableHwAcceleration: enableHwAcceleration ?? this.enableHwAcceleration, - enableHwEncoding: enableHwEncoding ?? this.enableHwEncoding, - enableKeyFrameOnlyExtraction: - enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, - scanBehavior: scanBehavior ?? this.scanBehavior, - processPriority: processPriority ?? this.processPriority, - interval: interval ?? this.interval, - widthResolutions: widthResolutions ?? this.widthResolutions, - tileWidth: tileWidth ?? this.tileWidth, - tileHeight: tileHeight ?? this.tileHeight, - qscale: qscale ?? this.qscale, - jpegQuality: jpegQuality ?? this.jpegQuality, - processThreads: processThreads ?? this.processThreads); + enableHwAcceleration: enableHwAcceleration ?? this.enableHwAcceleration, + enableHwEncoding: enableHwEncoding ?? this.enableHwEncoding, + enableKeyFrameOnlyExtraction: + enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, + scanBehavior: scanBehavior ?? this.scanBehavior, + processPriority: processPriority ?? this.processPriority, + interval: interval ?? this.interval, + widthResolutions: widthResolutions ?? this.widthResolutions, + tileWidth: tileWidth ?? this.tileWidth, + tileHeight: tileHeight ?? this.tileHeight, + qscale: qscale ?? this.qscale, + jpegQuality: jpegQuality ?? this.jpegQuality, + processThreads: processThreads ?? this.processThreads, + ); } - TrickplayOptions copyWithWrapped( - {Wrapped? enableHwAcceleration, - Wrapped? enableHwEncoding, - Wrapped? enableKeyFrameOnlyExtraction, - Wrapped? scanBehavior, - Wrapped? processPriority, - Wrapped? interval, - Wrapped?>? widthResolutions, - Wrapped? tileWidth, - Wrapped? tileHeight, - Wrapped? qscale, - Wrapped? jpegQuality, - Wrapped? processThreads}) { + TrickplayOptions copyWithWrapped({ + Wrapped? enableHwAcceleration, + Wrapped? enableHwEncoding, + Wrapped? enableKeyFrameOnlyExtraction, + Wrapped? scanBehavior, + Wrapped? processPriority, + Wrapped? interval, + Wrapped?>? widthResolutions, + Wrapped? tileWidth, + Wrapped? tileHeight, + Wrapped? qscale, + Wrapped? jpegQuality, + Wrapped? processThreads, + }) { return TrickplayOptions( - 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), - interval: (interval != null ? interval.value : this.interval), - 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)); + 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), + interval: (interval != null ? interval.value : this.interval), + 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), + ); } } @@ -44816,11 +49606,15 @@ class TunerChannelMapping { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerChannelName, providerChannelName) || - const DeepCollectionEquality() - .equals(other.providerChannelName, providerChannelName)) && + const DeepCollectionEquality().equals( + other.providerChannelName, + providerChannelName, + )) && (identical(other.providerChannelId, providerChannelId) || - const DeepCollectionEquality() - .equals(other.providerChannelId, providerChannelId)) && + const DeepCollectionEquality().equals( + other.providerChannelId, + providerChannelId, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @@ -44838,32 +49632,36 @@ class TunerChannelMapping { } extension $TunerChannelMappingExtension on TunerChannelMapping { - TunerChannelMapping copyWith( - {String? name, - String? providerChannelName, - String? providerChannelId, - String? id}) { + TunerChannelMapping copyWith({ + String? name, + String? providerChannelName, + String? providerChannelId, + String? id, + }) { return TunerChannelMapping( - name: name ?? this.name, - providerChannelName: providerChannelName ?? this.providerChannelName, - providerChannelId: providerChannelId ?? this.providerChannelId, - id: id ?? this.id); + name: name ?? this.name, + providerChannelName: providerChannelName ?? this.providerChannelName, + providerChannelId: providerChannelId ?? this.providerChannelId, + id: id ?? this.id, + ); } - TunerChannelMapping copyWithWrapped( - {Wrapped? name, - Wrapped? providerChannelName, - Wrapped? providerChannelId, - Wrapped? id}) { + TunerChannelMapping copyWithWrapped({ + Wrapped? name, + Wrapped? providerChannelName, + Wrapped? providerChannelId, + Wrapped? id, + }) { return TunerChannelMapping( - name: (name != null ? name.value : this.name), - providerChannelName: (providerChannelName != null - ? providerChannelName.value - : this.providerChannelName), - providerChannelId: (providerChannelId != null - ? providerChannelId.value - : this.providerChannelId), - id: (id != null ? id.value : this.id)); + name: (name != null ? name.value : this.name), + providerChannelName: (providerChannelName != null + ? providerChannelName.value + : this.providerChannelName), + providerChannelId: (providerChannelId != null + ? providerChannelId.value + : this.providerChannelId), + id: (id != null ? id.value : this.id), + ); } } @@ -44936,44 +49734,68 @@ class TunerHostInfo { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.deviceId, deviceId) || - const DeepCollectionEquality() - .equals(other.deviceId, deviceId)) && + const DeepCollectionEquality().equals( + other.deviceId, + deviceId, + )) && (identical(other.friendlyName, friendlyName) || - const DeepCollectionEquality() - .equals(other.friendlyName, friendlyName)) && + const DeepCollectionEquality().equals( + other.friendlyName, + friendlyName, + )) && (identical(other.importFavoritesOnly, importFavoritesOnly) || - const DeepCollectionEquality() - .equals(other.importFavoritesOnly, importFavoritesOnly)) && + const DeepCollectionEquality().equals( + other.importFavoritesOnly, + importFavoritesOnly, + )) && (identical(other.allowHWTranscoding, allowHWTranscoding) || - const DeepCollectionEquality() - .equals(other.allowHWTranscoding, allowHWTranscoding)) && - (identical(other.allowFmp4TranscodingContainer, - allowFmp4TranscodingContainer) || const DeepCollectionEquality().equals( - other.allowFmp4TranscodingContainer, - allowFmp4TranscodingContainer)) && + other.allowHWTranscoding, + allowHWTranscoding, + )) && + (identical( + other.allowFmp4TranscodingContainer, + allowFmp4TranscodingContainer, + ) || + const DeepCollectionEquality().equals( + other.allowFmp4TranscodingContainer, + allowFmp4TranscodingContainer, + )) && (identical(other.allowStreamSharing, allowStreamSharing) || - const DeepCollectionEquality() - .equals(other.allowStreamSharing, allowStreamSharing)) && - (identical(other.fallbackMaxStreamingBitrate, - fallbackMaxStreamingBitrate) || const DeepCollectionEquality().equals( - other.fallbackMaxStreamingBitrate, - fallbackMaxStreamingBitrate)) && + other.allowStreamSharing, + allowStreamSharing, + )) && + (identical( + other.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate, + ) || + const DeepCollectionEquality().equals( + other.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate, + )) && (identical(other.enableStreamLooping, enableStreamLooping) || - const DeepCollectionEquality() - .equals(other.enableStreamLooping, enableStreamLooping)) && + const DeepCollectionEquality().equals( + other.enableStreamLooping, + enableStreamLooping, + )) && (identical(other.source, source) || const DeepCollectionEquality().equals(other.source, source)) && (identical(other.tunerCount, tunerCount) || - const DeepCollectionEquality() - .equals(other.tunerCount, tunerCount)) && + const DeepCollectionEquality().equals( + other.tunerCount, + tunerCount, + )) && (identical(other.userAgent, userAgent) || - const DeepCollectionEquality() - .equals(other.userAgent, userAgent)) && + const DeepCollectionEquality().equals( + other.userAgent, + userAgent, + )) && (identical(other.ignoreDts, ignoreDts) || - const DeepCollectionEquality() - .equals(other.ignoreDts, ignoreDts))); + const DeepCollectionEquality().equals( + other.ignoreDts, + ignoreDts, + ))); } @override @@ -45000,87 +49822,92 @@ class TunerHostInfo { } extension $TunerHostInfoExtension on TunerHostInfo { - TunerHostInfo copyWith( - {String? id, - String? url, - String? type, - String? deviceId, - String? friendlyName, - bool? importFavoritesOnly, - bool? allowHWTranscoding, - bool? allowFmp4TranscodingContainer, - bool? allowStreamSharing, - int? fallbackMaxStreamingBitrate, - bool? enableStreamLooping, - String? source, - int? tunerCount, - String? userAgent, - bool? ignoreDts}) { + TunerHostInfo copyWith({ + String? id, + String? url, + String? type, + String? deviceId, + String? friendlyName, + bool? importFavoritesOnly, + bool? allowHWTranscoding, + bool? allowFmp4TranscodingContainer, + bool? allowStreamSharing, + int? fallbackMaxStreamingBitrate, + bool? enableStreamLooping, + String? source, + int? tunerCount, + String? userAgent, + bool? ignoreDts, + }) { return TunerHostInfo( - id: id ?? this.id, - url: url ?? this.url, - type: type ?? this.type, - deviceId: deviceId ?? this.deviceId, - friendlyName: friendlyName ?? this.friendlyName, - importFavoritesOnly: importFavoritesOnly ?? this.importFavoritesOnly, - allowHWTranscoding: allowHWTranscoding ?? this.allowHWTranscoding, - allowFmp4TranscodingContainer: - allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, - allowStreamSharing: allowStreamSharing ?? this.allowStreamSharing, - fallbackMaxStreamingBitrate: - fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, - enableStreamLooping: enableStreamLooping ?? this.enableStreamLooping, - source: source ?? this.source, - tunerCount: tunerCount ?? this.tunerCount, - userAgent: userAgent ?? this.userAgent, - ignoreDts: ignoreDts ?? this.ignoreDts); + id: id ?? this.id, + url: url ?? this.url, + type: type ?? this.type, + deviceId: deviceId ?? this.deviceId, + friendlyName: friendlyName ?? this.friendlyName, + importFavoritesOnly: importFavoritesOnly ?? this.importFavoritesOnly, + allowHWTranscoding: allowHWTranscoding ?? this.allowHWTranscoding, + allowFmp4TranscodingContainer: + allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, + allowStreamSharing: allowStreamSharing ?? this.allowStreamSharing, + fallbackMaxStreamingBitrate: + fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + enableStreamLooping: enableStreamLooping ?? this.enableStreamLooping, + source: source ?? this.source, + tunerCount: tunerCount ?? this.tunerCount, + userAgent: userAgent ?? this.userAgent, + ignoreDts: ignoreDts ?? this.ignoreDts, + ); } - TunerHostInfo copyWithWrapped( - {Wrapped? id, - Wrapped? url, - Wrapped? type, - Wrapped? deviceId, - Wrapped? friendlyName, - Wrapped? importFavoritesOnly, - Wrapped? allowHWTranscoding, - Wrapped? allowFmp4TranscodingContainer, - Wrapped? allowStreamSharing, - Wrapped? fallbackMaxStreamingBitrate, - Wrapped? enableStreamLooping, - Wrapped? source, - Wrapped? tunerCount, - Wrapped? userAgent, - Wrapped? ignoreDts}) { + TunerHostInfo copyWithWrapped({ + Wrapped? id, + Wrapped? url, + Wrapped? type, + Wrapped? deviceId, + Wrapped? friendlyName, + Wrapped? importFavoritesOnly, + Wrapped? allowHWTranscoding, + Wrapped? allowFmp4TranscodingContainer, + Wrapped? allowStreamSharing, + Wrapped? fallbackMaxStreamingBitrate, + Wrapped? enableStreamLooping, + Wrapped? source, + Wrapped? tunerCount, + Wrapped? userAgent, + Wrapped? ignoreDts, + }) { return TunerHostInfo( - id: (id != null ? id.value : this.id), - 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), - 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), - 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)); + id: (id != null ? id.value : this.id), + 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), + 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), + 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), + ); } } @@ -45104,21 +49931,34 @@ class TypeOptions { @JsonKey(name: 'Type', includeIfNull: false) final String? type; @JsonKey( - name: 'MetadataFetchers', includeIfNull: false, defaultValue: []) + name: 'MetadataFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? metadataFetchers; @JsonKey( - name: 'MetadataFetcherOrder', - includeIfNull: false, - defaultValue: []) + name: 'MetadataFetcherOrder', + includeIfNull: false, + defaultValue: [], + ) final List? metadataFetcherOrder; @JsonKey( - name: 'ImageFetchers', includeIfNull: false, defaultValue: []) + name: 'ImageFetchers', + includeIfNull: false, + defaultValue: [], + ) final List? imageFetchers; @JsonKey( - name: 'ImageFetcherOrder', includeIfNull: false, defaultValue: []) + name: 'ImageFetcherOrder', + includeIfNull: false, + defaultValue: [], + ) final List? imageFetcherOrder; @JsonKey( - name: 'ImageOptions', includeIfNull: false, defaultValue: []) + name: 'ImageOptions', + includeIfNull: false, + defaultValue: [], + ) final List? imageOptions; static const fromJsonFactory = _$TypeOptionsFromJson; @@ -45129,20 +49969,30 @@ class TypeOptions { (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || - const DeepCollectionEquality() - .equals(other.metadataFetchers, metadataFetchers)) && + const DeepCollectionEquality().equals( + other.metadataFetchers, + metadataFetchers, + )) && (identical(other.metadataFetcherOrder, metadataFetcherOrder) || const DeepCollectionEquality().equals( - other.metadataFetcherOrder, metadataFetcherOrder)) && + other.metadataFetcherOrder, + metadataFetcherOrder, + )) && (identical(other.imageFetchers, imageFetchers) || - const DeepCollectionEquality() - .equals(other.imageFetchers, imageFetchers)) && + const DeepCollectionEquality().equals( + other.imageFetchers, + imageFetchers, + )) && (identical(other.imageFetcherOrder, imageFetcherOrder) || - const DeepCollectionEquality() - .equals(other.imageFetcherOrder, imageFetcherOrder)) && + const DeepCollectionEquality().equals( + other.imageFetcherOrder, + imageFetcherOrder, + )) && (identical(other.imageOptions, imageOptions) || - const DeepCollectionEquality() - .equals(other.imageOptions, imageOptions))); + const DeepCollectionEquality().equals( + other.imageOptions, + imageOptions, + ))); } @override @@ -45160,53 +50010,56 @@ class TypeOptions { } extension $TypeOptionsExtension on TypeOptions { - TypeOptions copyWith( - {String? type, - List? metadataFetchers, - List? metadataFetcherOrder, - List? imageFetchers, - List? imageFetcherOrder, - List? imageOptions}) { + TypeOptions copyWith({ + String? type, + List? metadataFetchers, + List? metadataFetcherOrder, + List? imageFetchers, + List? imageFetcherOrder, + List? imageOptions, + }) { return TypeOptions( - type: type ?? this.type, - metadataFetchers: metadataFetchers ?? this.metadataFetchers, - metadataFetcherOrder: metadataFetcherOrder ?? this.metadataFetcherOrder, - imageFetchers: imageFetchers ?? this.imageFetchers, - imageFetcherOrder: imageFetcherOrder ?? this.imageFetcherOrder, - imageOptions: imageOptions ?? this.imageOptions); + type: type ?? this.type, + metadataFetchers: metadataFetchers ?? this.metadataFetchers, + metadataFetcherOrder: metadataFetcherOrder ?? this.metadataFetcherOrder, + imageFetchers: imageFetchers ?? this.imageFetchers, + imageFetcherOrder: imageFetcherOrder ?? this.imageFetcherOrder, + imageOptions: imageOptions ?? this.imageOptions, + ); } - TypeOptions copyWithWrapped( - {Wrapped? type, - Wrapped?>? metadataFetchers, - Wrapped?>? metadataFetcherOrder, - Wrapped?>? imageFetchers, - Wrapped?>? imageFetcherOrder, - Wrapped?>? imageOptions}) { + TypeOptions copyWithWrapped({ + Wrapped? type, + Wrapped?>? metadataFetchers, + Wrapped?>? metadataFetcherOrder, + Wrapped?>? imageFetchers, + Wrapped?>? imageFetcherOrder, + Wrapped?>? imageOptions, + }) { 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)); + 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), + ); } } @JsonSerializable(explicitToJson: true) class UpdateLibraryOptionsDto { - const UpdateLibraryOptionsDto({ - this.id, - this.libraryOptions, - }); + const UpdateLibraryOptionsDto({this.id, this.libraryOptions}); factory UpdateLibraryOptionsDto.fromJson(Map json) => _$UpdateLibraryOptionsDtoFromJson(json); @@ -45227,8 +50080,10 @@ class UpdateLibraryOptionsDto { (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.libraryOptions, libraryOptions) || - const DeepCollectionEquality() - .equals(other.libraryOptions, libraryOptions))); + const DeepCollectionEquality().equals( + other.libraryOptions, + libraryOptions, + ))); } @override @@ -45242,29 +50097,32 @@ class UpdateLibraryOptionsDto { } extension $UpdateLibraryOptionsDtoExtension on UpdateLibraryOptionsDto { - UpdateLibraryOptionsDto copyWith( - {String? id, LibraryOptions? libraryOptions}) { + UpdateLibraryOptionsDto copyWith({ + String? id, + LibraryOptions? libraryOptions, + }) { return UpdateLibraryOptionsDto( - id: id ?? this.id, - libraryOptions: libraryOptions ?? this.libraryOptions); + id: id ?? this.id, + libraryOptions: libraryOptions ?? this.libraryOptions, + ); } - UpdateLibraryOptionsDto copyWithWrapped( - {Wrapped? id, Wrapped? libraryOptions}) { + UpdateLibraryOptionsDto copyWithWrapped({ + Wrapped? id, + Wrapped? libraryOptions, + }) { return UpdateLibraryOptionsDto( - id: (id != null ? id.value : this.id), - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions)); + id: (id != null ? id.value : this.id), + libraryOptions: (libraryOptions != null + ? libraryOptions.value + : this.libraryOptions), + ); } } @JsonSerializable(explicitToJson: true) class UpdateMediaPathRequestDto { - const UpdateMediaPathRequestDto({ - required this.name, - required this.pathInfo, - }); + const UpdateMediaPathRequestDto({required this.name, required this.pathInfo}); factory UpdateMediaPathRequestDto.fromJson(Map json) => _$UpdateMediaPathRequestDtoFromJson(json); @@ -45285,8 +50143,10 @@ class UpdateMediaPathRequestDto { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.pathInfo, pathInfo) || - const DeepCollectionEquality() - .equals(other.pathInfo, pathInfo))); + const DeepCollectionEquality().equals( + other.pathInfo, + pathInfo, + ))); } @override @@ -45302,25 +50162,25 @@ class UpdateMediaPathRequestDto { extension $UpdateMediaPathRequestDtoExtension on UpdateMediaPathRequestDto { UpdateMediaPathRequestDto copyWith({String? name, MediaPathInfo? pathInfo}) { return UpdateMediaPathRequestDto( - name: name ?? this.name, pathInfo: pathInfo ?? this.pathInfo); + name: name ?? this.name, + pathInfo: pathInfo ?? this.pathInfo, + ); } - UpdateMediaPathRequestDto copyWithWrapped( - {Wrapped? name, Wrapped? pathInfo}) { + UpdateMediaPathRequestDto copyWithWrapped({ + Wrapped? name, + Wrapped? pathInfo, + }) { return UpdateMediaPathRequestDto( - name: (name != null ? name.value : this.name), - pathInfo: (pathInfo != null ? pathInfo.value : this.pathInfo)); + name: (name != null ? name.value : this.name), + pathInfo: (pathInfo != null ? pathInfo.value : this.pathInfo), + ); } } @JsonSerializable(explicitToJson: true) class UpdatePlaylistDto { - const UpdatePlaylistDto({ - this.name, - this.ids, - this.users, - this.isPublic, - }); + const UpdatePlaylistDto({this.name, this.ids, this.users, this.isPublic}); factory UpdatePlaylistDto.fromJson(Map json) => _$UpdatePlaylistDtoFromJson(json); @@ -45333,9 +50193,10 @@ class UpdatePlaylistDto { @JsonKey(name: 'Ids', includeIfNull: false, defaultValue: []) final List? ids; @JsonKey( - name: 'Users', - includeIfNull: false, - defaultValue: []) + name: 'Users', + includeIfNull: false, + defaultValue: [], + ) final List? users; @JsonKey(name: 'IsPublic', includeIfNull: false) final bool? isPublic; @@ -45352,8 +50213,10 @@ class UpdatePlaylistDto { (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || - const DeepCollectionEquality() - .equals(other.isPublic, isPublic))); + const DeepCollectionEquality().equals( + other.isPublic, + isPublic, + ))); } @override @@ -45369,36 +50232,38 @@ class UpdatePlaylistDto { } extension $UpdatePlaylistDtoExtension on UpdatePlaylistDto { - UpdatePlaylistDto copyWith( - {String? name, - List? ids, - List? users, - bool? isPublic}) { + UpdatePlaylistDto copyWith({ + String? name, + List? ids, + List? users, + bool? isPublic, + }) { return UpdatePlaylistDto( - name: name ?? this.name, - ids: ids ?? this.ids, - users: users ?? this.users, - isPublic: isPublic ?? this.isPublic); + name: name ?? this.name, + ids: ids ?? this.ids, + users: users ?? this.users, + isPublic: isPublic ?? this.isPublic, + ); } - UpdatePlaylistDto copyWithWrapped( - {Wrapped? name, - Wrapped?>? ids, - Wrapped?>? users, - Wrapped? isPublic}) { + UpdatePlaylistDto copyWithWrapped({ + Wrapped? name, + Wrapped?>? ids, + Wrapped?>? users, + Wrapped? isPublic, + }) { return UpdatePlaylistDto( - name: (name != null ? name.value : this.name), - ids: (ids != null ? ids.value : this.ids), - users: (users != null ? users.value : this.users), - isPublic: (isPublic != null ? isPublic.value : this.isPublic)); + name: (name != null ? name.value : this.name), + ids: (ids != null ? ids.value : this.ids), + users: (users != null ? users.value : this.users), + isPublic: (isPublic != null ? isPublic.value : this.isPublic), + ); } } @JsonSerializable(explicitToJson: true) class UpdatePlaylistUserDto { - const UpdatePlaylistUserDto({ - this.canEdit, - }); + const UpdatePlaylistUserDto({this.canEdit}); factory UpdatePlaylistUserDto.fromJson(Map json) => _$UpdatePlaylistUserDtoFromJson(json); @@ -45433,7 +50298,8 @@ extension $UpdatePlaylistUserDtoExtension on UpdatePlaylistUserDto { UpdatePlaylistUserDto copyWithWrapped({Wrapped? canEdit}) { return UpdatePlaylistUserDto( - canEdit: (canEdit != null ? canEdit.value : this.canEdit)); + canEdit: (canEdit != null ? canEdit.value : this.canEdit), + ); } } @@ -45490,25 +50356,37 @@ class UpdateUserItemDataDto { (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || - const DeepCollectionEquality() - .equals(other.playedPercentage, playedPercentage)) && + const DeepCollectionEquality().equals( + other.playedPercentage, + playedPercentage, + )) && (identical(other.unplayedItemCount, unplayedItemCount) || - const DeepCollectionEquality() - .equals(other.unplayedItemCount, unplayedItemCount)) && + const DeepCollectionEquality().equals( + other.unplayedItemCount, + unplayedItemCount, + )) && (identical(other.playbackPositionTicks, playbackPositionTicks) || const DeepCollectionEquality().equals( - other.playbackPositionTicks, playbackPositionTicks)) && + other.playbackPositionTicks, + playbackPositionTicks, + )) && (identical(other.playCount, playCount) || - const DeepCollectionEquality() - .equals(other.playCount, playCount)) && + const DeepCollectionEquality().equals( + other.playCount, + playCount, + )) && (identical(other.isFavorite, isFavorite) || - const DeepCollectionEquality() - .equals(other.isFavorite, isFavorite)) && + const DeepCollectionEquality().equals( + other.isFavorite, + isFavorite, + )) && (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || - const DeepCollectionEquality() - .equals(other.lastPlayedDate, lastPlayedDate)) && + const DeepCollectionEquality().equals( + other.lastPlayedDate, + lastPlayedDate, + )) && (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && (identical(other.key, key) || @@ -45537,65 +50415,69 @@ class UpdateUserItemDataDto { } extension $UpdateUserItemDataDtoExtension on UpdateUserItemDataDto { - UpdateUserItemDataDto copyWith( - {double? rating, - double? playedPercentage, - int? unplayedItemCount, - int? playbackPositionTicks, - int? playCount, - bool? isFavorite, - bool? likes, - DateTime? lastPlayedDate, - bool? played, - String? key, - String? itemId}) { + UpdateUserItemDataDto copyWith({ + double? rating, + double? playedPercentage, + int? unplayedItemCount, + int? playbackPositionTicks, + int? playCount, + bool? isFavorite, + bool? likes, + DateTime? lastPlayedDate, + bool? played, + String? key, + String? itemId, + }) { return UpdateUserItemDataDto( - rating: rating ?? this.rating, - playedPercentage: playedPercentage ?? this.playedPercentage, - unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: - playbackPositionTicks ?? this.playbackPositionTicks, - playCount: playCount ?? this.playCount, - isFavorite: isFavorite ?? this.isFavorite, - likes: likes ?? this.likes, - lastPlayedDate: lastPlayedDate ?? this.lastPlayedDate, - played: played ?? this.played, - key: key ?? this.key, - itemId: itemId ?? this.itemId); + rating: rating ?? this.rating, + playedPercentage: playedPercentage ?? this.playedPercentage, + unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, + playbackPositionTicks: + playbackPositionTicks ?? this.playbackPositionTicks, + playCount: playCount ?? this.playCount, + isFavorite: isFavorite ?? this.isFavorite, + likes: likes ?? this.likes, + lastPlayedDate: lastPlayedDate ?? this.lastPlayedDate, + played: played ?? this.played, + key: key ?? this.key, + itemId: itemId ?? this.itemId, + ); } - UpdateUserItemDataDto copyWithWrapped( - {Wrapped? rating, - Wrapped? playedPercentage, - Wrapped? unplayedItemCount, - Wrapped? playbackPositionTicks, - Wrapped? playCount, - Wrapped? isFavorite, - Wrapped? likes, - Wrapped? lastPlayedDate, - Wrapped? played, - Wrapped? key, - Wrapped? itemId}) { + UpdateUserItemDataDto copyWithWrapped({ + Wrapped? rating, + Wrapped? playedPercentage, + Wrapped? unplayedItemCount, + Wrapped? playbackPositionTicks, + Wrapped? playCount, + Wrapped? isFavorite, + Wrapped? likes, + Wrapped? lastPlayedDate, + Wrapped? played, + Wrapped? key, + Wrapped? itemId, + }) { 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), - 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), - played: (played != null ? played.value : this.played), - key: (key != null ? key.value : this.key), - itemId: (itemId != null ? itemId.value : this.itemId)); + 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), + 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), + played: (played != null ? played.value : this.played), + key: (key != null ? key.value : this.key), + itemId: (itemId != null ? itemId.value : this.itemId), + ); } } @@ -45629,16 +50511,22 @@ class UpdateUserPassword { return identical(this, other) || (other is UpdateUserPassword && (identical(other.currentPassword, currentPassword) || - const DeepCollectionEquality() - .equals(other.currentPassword, currentPassword)) && + const DeepCollectionEquality().equals( + other.currentPassword, + currentPassword, + )) && (identical(other.currentPw, currentPw) || - const DeepCollectionEquality() - .equals(other.currentPw, currentPw)) && + const DeepCollectionEquality().equals( + other.currentPw, + currentPw, + )) && (identical(other.newPw, newPw) || const DeepCollectionEquality().equals(other.newPw, newPw)) && (identical(other.resetPassword, resetPassword) || - const DeepCollectionEquality() - .equals(other.resetPassword, resetPassword))); + const DeepCollectionEquality().equals( + other.resetPassword, + resetPassword, + ))); } @override @@ -45654,31 +50542,36 @@ class UpdateUserPassword { } extension $UpdateUserPasswordExtension on UpdateUserPassword { - UpdateUserPassword copyWith( - {String? currentPassword, - String? currentPw, - String? newPw, - bool? resetPassword}) { + UpdateUserPassword copyWith({ + String? currentPassword, + String? currentPw, + String? newPw, + bool? resetPassword, + }) { return UpdateUserPassword( - currentPassword: currentPassword ?? this.currentPassword, - currentPw: currentPw ?? this.currentPw, - newPw: newPw ?? this.newPw, - resetPassword: resetPassword ?? this.resetPassword); + currentPassword: currentPassword ?? this.currentPassword, + currentPw: currentPw ?? this.currentPw, + newPw: newPw ?? this.newPw, + resetPassword: resetPassword ?? this.resetPassword, + ); } - UpdateUserPassword copyWithWrapped( - {Wrapped? currentPassword, - Wrapped? currentPw, - Wrapped? newPw, - Wrapped? resetPassword}) { + UpdateUserPassword copyWithWrapped({ + Wrapped? currentPassword, + Wrapped? currentPw, + Wrapped? newPw, + Wrapped? resetPassword, + }) { return UpdateUserPassword( - 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)); + 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), + ); } } @@ -45715,16 +50608,22 @@ class UploadSubtitleDto { return identical(this, other) || (other is UploadSubtitleDto && (identical(other.language, language) || - const DeepCollectionEquality() - .equals(other.language, language)) && + const DeepCollectionEquality().equals( + other.language, + language, + )) && (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && (identical(other.isForced, isForced) || - const DeepCollectionEquality() - .equals(other.isForced, isForced)) && + const DeepCollectionEquality().equals( + other.isForced, + isForced, + )) && (identical(other.isHearingImpaired, isHearingImpaired) || - const DeepCollectionEquality() - .equals(other.isHearingImpaired, isHearingImpaired)) && + const DeepCollectionEquality().equals( + other.isHearingImpaired, + isHearingImpaired, + )) && (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data))); } @@ -45743,34 +50642,38 @@ class UploadSubtitleDto { } extension $UploadSubtitleDtoExtension on UploadSubtitleDto { - UploadSubtitleDto copyWith( - {String? language, - String? format, - bool? isForced, - bool? isHearingImpaired, - String? data}) { + UploadSubtitleDto copyWith({ + String? language, + String? format, + bool? isForced, + bool? isHearingImpaired, + String? data, + }) { return UploadSubtitleDto( - language: language ?? this.language, - format: format ?? this.format, - isForced: isForced ?? this.isForced, - isHearingImpaired: isHearingImpaired ?? this.isHearingImpaired, - data: data ?? this.data); + language: language ?? this.language, + format: format ?? this.format, + isForced: isForced ?? this.isForced, + isHearingImpaired: isHearingImpaired ?? this.isHearingImpaired, + data: data ?? this.data, + ); } - UploadSubtitleDto copyWithWrapped( - {Wrapped? language, - Wrapped? format, - Wrapped? isForced, - Wrapped? isHearingImpaired, - Wrapped? data}) { + UploadSubtitleDto copyWithWrapped({ + Wrapped? language, + Wrapped? format, + Wrapped? isForced, + Wrapped? isHearingImpaired, + Wrapped? data, + }) { return 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), - data: (data != null ? data.value : this.data)); + 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), + data: (data != null ? data.value : this.data), + ); } } @@ -45810,7 +50713,10 @@ class UserConfiguration { @JsonKey(name: 'DisplayMissingEpisodes', includeIfNull: false) final bool? displayMissingEpisodes; @JsonKey( - name: 'GroupedFolders', includeIfNull: false, defaultValue: []) + name: 'GroupedFolders', + includeIfNull: false, + defaultValue: [], + ) final List? groupedFolders; @JsonKey( name: 'SubtitleMode', @@ -45826,12 +50732,16 @@ class UserConfiguration { @JsonKey(name: 'OrderedViews', includeIfNull: false, defaultValue: []) final List? orderedViews; @JsonKey( - name: 'LatestItemsExcludes', - includeIfNull: false, - defaultValue: []) + name: 'LatestItemsExcludes', + includeIfNull: false, + defaultValue: [], + ) final List? latestItemsExcludes; @JsonKey( - name: 'MyMediaExcludes', includeIfNull: false, defaultValue: []) + name: 'MyMediaExcludes', + includeIfNull: false, + defaultValue: [], + ) final List? myMediaExcludes; @JsonKey(name: 'HidePlayedInLatest', includeIfNull: false) final bool? hidePlayedInLatest; @@ -45849,48 +50759,101 @@ class UserConfiguration { bool operator ==(Object other) { return identical(this, other) || (other is UserConfiguration && - (identical(other.audioLanguagePreference, audioLanguagePreference) || + (identical( + other.audioLanguagePreference, + audioLanguagePreference, + ) || const DeepCollectionEquality().equals( - other.audioLanguagePreference, audioLanguagePreference)) && + other.audioLanguagePreference, + audioLanguagePreference, + )) && (identical(other.playDefaultAudioTrack, playDefaultAudioTrack) || const DeepCollectionEquality().equals( - other.playDefaultAudioTrack, playDefaultAudioTrack)) && - (identical(other.subtitleLanguagePreference, subtitleLanguagePreference) || + other.playDefaultAudioTrack, + playDefaultAudioTrack, + )) && + (identical( + other.subtitleLanguagePreference, + subtitleLanguagePreference, + ) || const DeepCollectionEquality().equals( - other.subtitleLanguagePreference, - subtitleLanguagePreference)) && + other.subtitleLanguagePreference, + subtitleLanguagePreference, + )) && (identical(other.displayMissingEpisodes, displayMissingEpisodes) || const DeepCollectionEquality().equals( - other.displayMissingEpisodes, displayMissingEpisodes)) && + other.displayMissingEpisodes, + displayMissingEpisodes, + )) && (identical(other.groupedFolders, groupedFolders) || - const DeepCollectionEquality() - .equals(other.groupedFolders, groupedFolders)) && + const DeepCollectionEquality().equals( + other.groupedFolders, + groupedFolders, + )) && (identical(other.subtitleMode, subtitleMode) || - const DeepCollectionEquality() - .equals(other.subtitleMode, subtitleMode)) && + const DeepCollectionEquality().equals( + other.subtitleMode, + subtitleMode, + )) && (identical(other.displayCollectionsView, displayCollectionsView) || const DeepCollectionEquality().equals( - other.displayCollectionsView, displayCollectionsView)) && + other.displayCollectionsView, + displayCollectionsView, + )) && (identical(other.enableLocalPassword, enableLocalPassword) || - const DeepCollectionEquality() - .equals(other.enableLocalPassword, enableLocalPassword)) && + const DeepCollectionEquality().equals( + other.enableLocalPassword, + enableLocalPassword, + )) && (identical(other.orderedViews, orderedViews) || - const DeepCollectionEquality() - .equals(other.orderedViews, orderedViews)) && + const DeepCollectionEquality().equals( + other.orderedViews, + orderedViews, + )) && (identical(other.latestItemsExcludes, latestItemsExcludes) || - const DeepCollectionEquality() - .equals(other.latestItemsExcludes, latestItemsExcludes)) && + const DeepCollectionEquality().equals( + other.latestItemsExcludes, + latestItemsExcludes, + )) && (identical(other.myMediaExcludes, myMediaExcludes) || - const DeepCollectionEquality() - .equals(other.myMediaExcludes, myMediaExcludes)) && + const DeepCollectionEquality().equals( + other.myMediaExcludes, + myMediaExcludes, + )) && (identical(other.hidePlayedInLatest, hidePlayedInLatest) || - const DeepCollectionEquality() - .equals(other.hidePlayedInLatest, hidePlayedInLatest)) && - (identical(other.rememberAudioSelections, rememberAudioSelections) || - const DeepCollectionEquality().equals(other.rememberAudioSelections, rememberAudioSelections)) && - (identical(other.rememberSubtitleSelections, rememberSubtitleSelections) || const DeepCollectionEquality().equals(other.rememberSubtitleSelections, rememberSubtitleSelections)) && - (identical(other.enableNextEpisodeAutoPlay, enableNextEpisodeAutoPlay) || const DeepCollectionEquality().equals(other.enableNextEpisodeAutoPlay, enableNextEpisodeAutoPlay)) && - (identical(other.castReceiverId, castReceiverId) || const DeepCollectionEquality().equals(other.castReceiverId, castReceiverId))); + const DeepCollectionEquality().equals( + other.hidePlayedInLatest, + hidePlayedInLatest, + )) && + (identical( + other.rememberAudioSelections, + rememberAudioSelections, + ) || + const DeepCollectionEquality().equals( + other.rememberAudioSelections, + rememberAudioSelections, + )) && + (identical( + other.rememberSubtitleSelections, + rememberSubtitleSelections, + ) || + const DeepCollectionEquality().equals( + other.rememberSubtitleSelections, + rememberSubtitleSelections, + )) && + (identical( + other.enableNextEpisodeAutoPlay, + enableNextEpisodeAutoPlay, + ) || + const DeepCollectionEquality().equals( + other.enableNextEpisodeAutoPlay, + enableNextEpisodeAutoPlay, + )) && + (identical(other.castReceiverId, castReceiverId) || + const DeepCollectionEquality().equals( + other.castReceiverId, + castReceiverId, + ))); } @override @@ -45918,124 +50881,126 @@ class UserConfiguration { } extension $UserConfigurationExtension on UserConfiguration { - UserConfiguration copyWith( - {String? audioLanguagePreference, - bool? playDefaultAudioTrack, - String? subtitleLanguagePreference, - bool? displayMissingEpisodes, - List? groupedFolders, - enums.SubtitlePlaybackMode? subtitleMode, - bool? displayCollectionsView, - bool? enableLocalPassword, - List? orderedViews, - List? latestItemsExcludes, - List? myMediaExcludes, - bool? hidePlayedInLatest, - bool? rememberAudioSelections, - bool? rememberSubtitleSelections, - bool? enableNextEpisodeAutoPlay, - String? castReceiverId}) { + UserConfiguration copyWith({ + String? audioLanguagePreference, + bool? playDefaultAudioTrack, + String? subtitleLanguagePreference, + bool? displayMissingEpisodes, + List? groupedFolders, + enums.SubtitlePlaybackMode? subtitleMode, + bool? displayCollectionsView, + bool? enableLocalPassword, + List? orderedViews, + List? latestItemsExcludes, + List? myMediaExcludes, + bool? hidePlayedInLatest, + bool? rememberAudioSelections, + bool? rememberSubtitleSelections, + bool? enableNextEpisodeAutoPlay, + String? castReceiverId, + }) { return UserConfiguration( - 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, - 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, - castReceiverId: castReceiverId ?? this.castReceiverId); + 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, + 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, + castReceiverId: castReceiverId ?? this.castReceiverId, + ); } - UserConfiguration copyWithWrapped( - {Wrapped? audioLanguagePreference, - Wrapped? playDefaultAudioTrack, - Wrapped? subtitleLanguagePreference, - Wrapped? displayMissingEpisodes, - Wrapped?>? groupedFolders, - Wrapped? subtitleMode, - Wrapped? displayCollectionsView, - Wrapped? enableLocalPassword, - Wrapped?>? orderedViews, - Wrapped?>? latestItemsExcludes, - Wrapped?>? myMediaExcludes, - Wrapped? hidePlayedInLatest, - Wrapped? rememberAudioSelections, - Wrapped? rememberSubtitleSelections, - Wrapped? enableNextEpisodeAutoPlay, - Wrapped? castReceiverId}) { + UserConfiguration copyWithWrapped({ + Wrapped? audioLanguagePreference, + Wrapped? playDefaultAudioTrack, + Wrapped? subtitleLanguagePreference, + Wrapped? displayMissingEpisodes, + Wrapped?>? groupedFolders, + Wrapped? subtitleMode, + Wrapped? displayCollectionsView, + Wrapped? enableLocalPassword, + Wrapped?>? orderedViews, + Wrapped?>? latestItemsExcludes, + Wrapped?>? myMediaExcludes, + Wrapped? hidePlayedInLatest, + Wrapped? rememberAudioSelections, + Wrapped? rememberSubtitleSelections, + Wrapped? enableNextEpisodeAutoPlay, + 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), + ); } } @JsonSerializable(explicitToJson: true) class UserDataChangedMessage { - const UserDataChangedMessage({ - this.data, - this.messageId, - this.messageType, - }); + const UserDataChangedMessage({this.data, this.messageId, this.messageType}); factory UserDataChangedMessage.fromJson(Map json) => _$UserDataChangedMessageFromJson(json); @@ -46055,9 +51020,11 @@ class UserDataChangedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.userdatachanged); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.userdatachanged, + ); static const fromJsonFactory = _$UserDataChangedMessageFromJson; @@ -46068,11 +51035,15 @@ class UserDataChangedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -46087,34 +51058,34 @@ class UserDataChangedMessage { } extension $UserDataChangedMessageExtension on UserDataChangedMessage { - UserDataChangedMessage copyWith( - {UserDataChangeInfo? data, - String? messageId, - enums.SessionMessageType? messageType}) { + UserDataChangedMessage copyWith({ + UserDataChangeInfo? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return UserDataChangedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - UserDataChangedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + UserDataChangedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return UserDataChangedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @JsonSerializable(explicitToJson: true) class UserDataChangeInfo { - const UserDataChangeInfo({ - this.userId, - this.userDataList, - }); + const UserDataChangeInfo({this.userId, this.userDataList}); factory UserDataChangeInfo.fromJson(Map json) => _$UserDataChangeInfoFromJson(json); @@ -46125,9 +51096,10 @@ class UserDataChangeInfo { @JsonKey(name: 'UserId', includeIfNull: false) final String? userId; @JsonKey( - name: 'UserDataList', - includeIfNull: false, - defaultValue: []) + name: 'UserDataList', + includeIfNull: false, + defaultValue: [], + ) final List? userDataList; static const fromJsonFactory = _$UserDataChangeInfoFromJson; @@ -46138,8 +51110,10 @@ class UserDataChangeInfo { (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userDataList, userDataList) || - const DeepCollectionEquality() - .equals(other.userDataList, userDataList))); + const DeepCollectionEquality().equals( + other.userDataList, + userDataList, + ))); } @override @@ -46153,30 +51127,32 @@ class UserDataChangeInfo { } extension $UserDataChangeInfoExtension on UserDataChangeInfo { - UserDataChangeInfo copyWith( - {String? userId, List? userDataList}) { + UserDataChangeInfo copyWith({ + String? userId, + List? userDataList, + }) { return UserDataChangeInfo( - userId: userId ?? this.userId, - userDataList: userDataList ?? this.userDataList); + userId: userId ?? this.userId, + userDataList: userDataList ?? this.userDataList, + ); } - UserDataChangeInfo copyWithWrapped( - {Wrapped? userId, - Wrapped?>? userDataList}) { + UserDataChangeInfo copyWithWrapped({ + Wrapped? userId, + Wrapped?>? userDataList, + }) { return UserDataChangeInfo( - userId: (userId != null ? userId.value : this.userId), - userDataList: - (userDataList != null ? userDataList.value : this.userDataList)); + userId: (userId != null ? userId.value : this.userId), + userDataList: (userDataList != null + ? userDataList.value + : this.userDataList), + ); } } @JsonSerializable(explicitToJson: true) class UserDeletedMessage { - const UserDeletedMessage({ - this.data, - this.messageId, - this.messageType, - }); + const UserDeletedMessage({this.data, this.messageId, this.messageType}); factory UserDeletedMessage.fromJson(Map json) => _$UserDeletedMessageFromJson(json); @@ -46196,9 +51172,11 @@ class UserDeletedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.userdeleted); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.userdeleted, + ); static const fromJsonFactory = _$UserDeletedMessageFromJson; @@ -46209,11 +51187,15 @@ class UserDeletedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -46228,25 +51210,28 @@ class UserDeletedMessage { } extension $UserDeletedMessageExtension on UserDeletedMessage { - UserDeletedMessage copyWith( - {String? data, - String? messageId, - enums.SessionMessageType? messageType}) { + UserDeletedMessage copyWith({ + String? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return UserDeletedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - UserDeletedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + UserDeletedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return UserDeletedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -46313,45 +51298,70 @@ class UserDto { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.serverId, serverId) || - const DeepCollectionEquality() - .equals(other.serverId, serverId)) && + const DeepCollectionEquality().equals( + other.serverId, + serverId, + )) && (identical(other.serverName, serverName) || - const DeepCollectionEquality() - .equals(other.serverName, serverName)) && + const DeepCollectionEquality().equals( + other.serverName, + serverName, + )) && (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.primaryImageTag, primaryImageTag) || - const DeepCollectionEquality() - .equals(other.primaryImageTag, primaryImageTag)) && + const DeepCollectionEquality().equals( + other.primaryImageTag, + primaryImageTag, + )) && (identical(other.hasPassword, hasPassword) || - const DeepCollectionEquality() - .equals(other.hasPassword, hasPassword)) && + const DeepCollectionEquality().equals( + other.hasPassword, + hasPassword, + )) && (identical(other.hasConfiguredPassword, hasConfiguredPassword) || const DeepCollectionEquality().equals( - other.hasConfiguredPassword, hasConfiguredPassword)) && - (identical(other.hasConfiguredEasyPassword, - hasConfiguredEasyPassword) || + other.hasConfiguredPassword, + hasConfiguredPassword, + )) && + (identical( + other.hasConfiguredEasyPassword, + hasConfiguredEasyPassword, + ) || const DeepCollectionEquality().equals( - other.hasConfiguredEasyPassword, - hasConfiguredEasyPassword)) && + other.hasConfiguredEasyPassword, + hasConfiguredEasyPassword, + )) && (identical(other.enableAutoLogin, enableAutoLogin) || - const DeepCollectionEquality() - .equals(other.enableAutoLogin, enableAutoLogin)) && + const DeepCollectionEquality().equals( + other.enableAutoLogin, + enableAutoLogin, + )) && (identical(other.lastLoginDate, lastLoginDate) || - const DeepCollectionEquality() - .equals(other.lastLoginDate, lastLoginDate)) && + const DeepCollectionEquality().equals( + other.lastLoginDate, + lastLoginDate, + )) && (identical(other.lastActivityDate, lastActivityDate) || - const DeepCollectionEquality() - .equals(other.lastActivityDate, lastActivityDate)) && + const DeepCollectionEquality().equals( + other.lastActivityDate, + lastActivityDate, + )) && (identical(other.configuration, configuration) || - const DeepCollectionEquality() - .equals(other.configuration, configuration)) && + const DeepCollectionEquality().equals( + other.configuration, + configuration, + )) && (identical(other.policy, policy) || const DeepCollectionEquality().equals(other.policy, policy)) && (identical( - other.primaryImageAspectRatio, primaryImageAspectRatio) || + other.primaryImageAspectRatio, + primaryImageAspectRatio, + ) || const DeepCollectionEquality().equals( - other.primaryImageAspectRatio, primaryImageAspectRatio))); + other.primaryImageAspectRatio, + primaryImageAspectRatio, + ))); } @override @@ -46377,86 +51387,91 @@ class UserDto { } extension $UserDtoExtension on UserDto { - UserDto copyWith( - {String? name, - String? serverId, - String? serverName, - String? id, - String? primaryImageTag, - bool? hasPassword, - bool? hasConfiguredPassword, - bool? hasConfiguredEasyPassword, - bool? enableAutoLogin, - DateTime? lastLoginDate, - DateTime? lastActivityDate, - UserConfiguration? configuration, - UserPolicy? policy, - double? primaryImageAspectRatio}) { + UserDto copyWith({ + String? name, + String? serverId, + String? serverName, + String? id, + String? primaryImageTag, + bool? hasPassword, + bool? hasConfiguredPassword, + bool? hasConfiguredEasyPassword, + bool? enableAutoLogin, + DateTime? lastLoginDate, + DateTime? lastActivityDate, + UserConfiguration? configuration, + UserPolicy? policy, + double? primaryImageAspectRatio, + }) { return UserDto( - name: name ?? this.name, - serverId: serverId ?? this.serverId, - serverName: serverName ?? this.serverName, - id: id ?? this.id, - primaryImageTag: primaryImageTag ?? this.primaryImageTag, - hasPassword: hasPassword ?? this.hasPassword, - 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); + name: name ?? this.name, + serverId: serverId ?? this.serverId, + serverName: serverName ?? this.serverName, + id: id ?? this.id, + primaryImageTag: primaryImageTag ?? this.primaryImageTag, + hasPassword: hasPassword ?? this.hasPassword, + 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, + ); } - UserDto copyWithWrapped( - {Wrapped? name, - Wrapped? serverId, - Wrapped? serverName, - Wrapped? id, - Wrapped? primaryImageTag, - Wrapped? hasPassword, - Wrapped? hasConfiguredPassword, - Wrapped? hasConfiguredEasyPassword, - Wrapped? enableAutoLogin, - Wrapped? lastLoginDate, - Wrapped? lastActivityDate, - Wrapped? configuration, - Wrapped? policy, - Wrapped? primaryImageAspectRatio}) { + UserDto copyWithWrapped({ + Wrapped? name, + Wrapped? serverId, + Wrapped? serverName, + Wrapped? id, + Wrapped? primaryImageTag, + Wrapped? hasPassword, + Wrapped? hasConfiguredPassword, + Wrapped? hasConfiguredEasyPassword, + Wrapped? enableAutoLogin, + Wrapped? lastLoginDate, + Wrapped? lastActivityDate, + Wrapped? configuration, + Wrapped? policy, + Wrapped? primaryImageAspectRatio, + }) { return UserDto( - name: (name != null ? name.value : this.name), - 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), - 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), - policy: (policy != null ? policy.value : this.policy), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio)); + name: (name != null ? name.value : this.name), + 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), + 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), + policy: (policy != null ? policy.value : this.policy), + primaryImageAspectRatio: (primaryImageAspectRatio != null + ? primaryImageAspectRatio.value + : this.primaryImageAspectRatio), + ); } } @@ -46513,25 +51528,37 @@ class UserItemDataDto { (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || - const DeepCollectionEquality() - .equals(other.playedPercentage, playedPercentage)) && + const DeepCollectionEquality().equals( + other.playedPercentage, + playedPercentage, + )) && (identical(other.unplayedItemCount, unplayedItemCount) || - const DeepCollectionEquality() - .equals(other.unplayedItemCount, unplayedItemCount)) && + const DeepCollectionEquality().equals( + other.unplayedItemCount, + unplayedItemCount, + )) && (identical(other.playbackPositionTicks, playbackPositionTicks) || const DeepCollectionEquality().equals( - other.playbackPositionTicks, playbackPositionTicks)) && + other.playbackPositionTicks, + playbackPositionTicks, + )) && (identical(other.playCount, playCount) || - const DeepCollectionEquality() - .equals(other.playCount, playCount)) && + const DeepCollectionEquality().equals( + other.playCount, + playCount, + )) && (identical(other.isFavorite, isFavorite) || - const DeepCollectionEquality() - .equals(other.isFavorite, isFavorite)) && + const DeepCollectionEquality().equals( + other.isFavorite, + isFavorite, + )) && (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || - const DeepCollectionEquality() - .equals(other.lastPlayedDate, lastPlayedDate)) && + const DeepCollectionEquality().equals( + other.lastPlayedDate, + lastPlayedDate, + )) && (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && (identical(other.key, key) || @@ -46560,65 +51587,69 @@ class UserItemDataDto { } extension $UserItemDataDtoExtension on UserItemDataDto { - UserItemDataDto copyWith( - {double? rating, - double? playedPercentage, - int? unplayedItemCount, - int? playbackPositionTicks, - int? playCount, - bool? isFavorite, - bool? likes, - DateTime? lastPlayedDate, - bool? played, - String? key, - String? itemId}) { + UserItemDataDto copyWith({ + double? rating, + double? playedPercentage, + int? unplayedItemCount, + int? playbackPositionTicks, + int? playCount, + bool? isFavorite, + bool? likes, + DateTime? lastPlayedDate, + bool? played, + String? key, + String? itemId, + }) { return UserItemDataDto( - rating: rating ?? this.rating, - playedPercentage: playedPercentage ?? this.playedPercentage, - unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: - playbackPositionTicks ?? this.playbackPositionTicks, - playCount: playCount ?? this.playCount, - isFavorite: isFavorite ?? this.isFavorite, - likes: likes ?? this.likes, - lastPlayedDate: lastPlayedDate ?? this.lastPlayedDate, - played: played ?? this.played, - key: key ?? this.key, - itemId: itemId ?? this.itemId); + rating: rating ?? this.rating, + playedPercentage: playedPercentage ?? this.playedPercentage, + unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, + playbackPositionTicks: + playbackPositionTicks ?? this.playbackPositionTicks, + playCount: playCount ?? this.playCount, + isFavorite: isFavorite ?? this.isFavorite, + likes: likes ?? this.likes, + lastPlayedDate: lastPlayedDate ?? this.lastPlayedDate, + played: played ?? this.played, + key: key ?? this.key, + itemId: itemId ?? this.itemId, + ); } - UserItemDataDto copyWithWrapped( - {Wrapped? rating, - Wrapped? playedPercentage, - Wrapped? unplayedItemCount, - Wrapped? playbackPositionTicks, - Wrapped? playCount, - Wrapped? isFavorite, - Wrapped? likes, - Wrapped? lastPlayedDate, - Wrapped? played, - Wrapped? key, - Wrapped? itemId}) { + UserItemDataDto copyWithWrapped({ + Wrapped? rating, + Wrapped? playedPercentage, + Wrapped? unplayedItemCount, + Wrapped? playbackPositionTicks, + Wrapped? playCount, + Wrapped? isFavorite, + Wrapped? likes, + Wrapped? lastPlayedDate, + Wrapped? played, + Wrapped? key, + Wrapped? itemId, + }) { 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), - 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), - played: (played != null ? played.value : this.played), - key: (key != null ? key.value : this.key), - itemId: (itemId != null ? itemId.value : this.itemId)); + 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), + 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), + played: (played != null ? played.value : this.played), + key: (key != null ? key.value : this.key), + itemId: (itemId != null ? itemId.value : this.itemId), + ); } } @@ -46681,17 +51712,22 @@ class UserPolicy { @JsonKey(name: 'IsHidden', includeIfNull: false) final bool? isHidden; @JsonKey( - name: 'EnableCollectionManagement', - includeIfNull: false, - defaultValue: false) + name: 'EnableCollectionManagement', + includeIfNull: false, + defaultValue: false, + ) final bool? enableCollectionManagement; @JsonKey( - name: 'EnableSubtitleManagement', - includeIfNull: false, - defaultValue: false) + name: 'EnableSubtitleManagement', + includeIfNull: false, + defaultValue: false, + ) final bool? enableSubtitleManagement; @JsonKey( - name: 'EnableLyricManagement', includeIfNull: false, defaultValue: false) + name: 'EnableLyricManagement', + includeIfNull: false, + defaultValue: false, + ) final bool? enableLyricManagement; @JsonKey(name: 'IsDisabled', includeIfNull: false) final bool? isDisabled; @@ -46704,9 +51740,10 @@ class UserPolicy { @JsonKey(name: 'EnableUserPreferenceAccess', includeIfNull: false) final bool? enableUserPreferenceAccess; @JsonKey( - name: 'AccessSchedules', - includeIfNull: false, - defaultValue: []) + name: 'AccessSchedules', + includeIfNull: false, + defaultValue: [], + ) final List? accessSchedules; @JsonKey( name: 'BlockUnratedItems', @@ -46738,9 +51775,10 @@ class UserPolicy { @JsonKey(name: 'EnableContentDeletion', includeIfNull: false) final bool? enableContentDeletion; @JsonKey( - name: 'EnableContentDeletionFromFolders', - includeIfNull: false, - defaultValue: []) + name: 'EnableContentDeletionFromFolders', + includeIfNull: false, + defaultValue: [], + ) final List? enableContentDeletionFromFolders; @JsonKey(name: 'EnableContentDownloading', includeIfNull: false) final bool? enableContentDownloading; @@ -46749,17 +51787,26 @@ class UserPolicy { @JsonKey(name: 'EnableMediaConversion', includeIfNull: false) final bool? enableMediaConversion; @JsonKey( - name: 'EnabledDevices', includeIfNull: false, defaultValue: []) + name: 'EnabledDevices', + includeIfNull: false, + defaultValue: [], + ) final List? enabledDevices; @JsonKey(name: 'EnableAllDevices', includeIfNull: false) final bool? enableAllDevices; @JsonKey( - name: 'EnabledChannels', includeIfNull: false, defaultValue: []) + name: 'EnabledChannels', + includeIfNull: false, + defaultValue: [], + ) final List? enabledChannels; @JsonKey(name: 'EnableAllChannels', includeIfNull: false) final bool? enableAllChannels; @JsonKey( - name: 'EnabledFolders', includeIfNull: false, defaultValue: []) + name: 'EnabledFolders', + includeIfNull: false, + defaultValue: [], + ) final List? enabledFolders; @JsonKey(name: 'EnableAllFolders', includeIfNull: false) final bool? enableAllFolders; @@ -46772,12 +51819,16 @@ class UserPolicy { @JsonKey(name: 'EnablePublicSharing', includeIfNull: false) final bool? enablePublicSharing; @JsonKey( - name: 'BlockedMediaFolders', - includeIfNull: false, - defaultValue: []) + name: 'BlockedMediaFolders', + includeIfNull: false, + defaultValue: [], + ) final List? blockedMediaFolders; @JsonKey( - name: 'BlockedChannels', includeIfNull: false, defaultValue: []) + name: 'BlockedChannels', + includeIfNull: false, + defaultValue: [], + ) final List? blockedChannels; @JsonKey(name: 'RemoteClientBitrateLimit', includeIfNull: false) final int? remoteClientBitrateLimit; @@ -46799,76 +51850,265 @@ class UserPolicy { return identical(this, other) || (other is UserPolicy && (identical(other.isAdministrator, isAdministrator) || - const DeepCollectionEquality() - .equals(other.isAdministrator, isAdministrator)) && + const DeepCollectionEquality().equals( + other.isAdministrator, + isAdministrator, + )) && (identical(other.isHidden, isHidden) || - const DeepCollectionEquality() - .equals(other.isHidden, isHidden)) && - (identical(other.enableCollectionManagement, enableCollectionManagement) || const DeepCollectionEquality().equals( - other.enableCollectionManagement, - enableCollectionManagement)) && - (identical(other.enableSubtitleManagement, enableSubtitleManagement) || + other.isHidden, + isHidden, + )) && + (identical( + other.enableCollectionManagement, + enableCollectionManagement, + ) || const DeepCollectionEquality().equals( - other.enableSubtitleManagement, - enableSubtitleManagement)) && + other.enableCollectionManagement, + enableCollectionManagement, + )) && + (identical( + other.enableSubtitleManagement, + enableSubtitleManagement, + ) || + const DeepCollectionEquality().equals( + other.enableSubtitleManagement, + enableSubtitleManagement, + )) && (identical(other.enableLyricManagement, enableLyricManagement) || const DeepCollectionEquality().equals( - other.enableLyricManagement, enableLyricManagement)) && + other.enableLyricManagement, + enableLyricManagement, + )) && (identical(other.isDisabled, isDisabled) || - const DeepCollectionEquality() - .equals(other.isDisabled, isDisabled)) && - (identical(other.maxParentalRating, maxParentalRating) || - const DeepCollectionEquality() - .equals(other.maxParentalRating, maxParentalRating)) && - (identical(other.blockedTags, blockedTags) || - const DeepCollectionEquality() - .equals(other.blockedTags, blockedTags)) && - (identical(other.allowedTags, allowedTags) || - const DeepCollectionEquality() - .equals(other.allowedTags, allowedTags)) && - (identical(other.enableUserPreferenceAccess, enableUserPreferenceAccess) || const DeepCollectionEquality().equals( - other.enableUserPreferenceAccess, - enableUserPreferenceAccess)) && + other.isDisabled, + isDisabled, + )) && + (identical(other.maxParentalRating, maxParentalRating) || + const DeepCollectionEquality().equals( + other.maxParentalRating, + maxParentalRating, + )) && + (identical(other.blockedTags, blockedTags) || + const DeepCollectionEquality().equals( + other.blockedTags, + blockedTags, + )) && + (identical(other.allowedTags, allowedTags) || + const DeepCollectionEquality().equals( + other.allowedTags, + allowedTags, + )) && + (identical( + other.enableUserPreferenceAccess, + enableUserPreferenceAccess, + ) || + const DeepCollectionEquality().equals( + other.enableUserPreferenceAccess, + enableUserPreferenceAccess, + )) && (identical(other.accessSchedules, accessSchedules) || - const DeepCollectionEquality() - .equals(other.accessSchedules, accessSchedules)) && + const DeepCollectionEquality().equals( + other.accessSchedules, + accessSchedules, + )) && (identical(other.blockUnratedItems, blockUnratedItems) || - const DeepCollectionEquality() - .equals(other.blockUnratedItems, blockUnratedItems)) && - (identical(other.enableRemoteControlOfOtherUsers, enableRemoteControlOfOtherUsers) || - const DeepCollectionEquality().equals(other.enableRemoteControlOfOtherUsers, enableRemoteControlOfOtherUsers)) && - (identical(other.enableSharedDeviceControl, enableSharedDeviceControl) || const DeepCollectionEquality().equals(other.enableSharedDeviceControl, enableSharedDeviceControl)) && - (identical(other.enableRemoteAccess, enableRemoteAccess) || const DeepCollectionEquality().equals(other.enableRemoteAccess, enableRemoteAccess)) && - (identical(other.enableLiveTvManagement, enableLiveTvManagement) || const DeepCollectionEquality().equals(other.enableLiveTvManagement, enableLiveTvManagement)) && - (identical(other.enableLiveTvAccess, enableLiveTvAccess) || const DeepCollectionEquality().equals(other.enableLiveTvAccess, enableLiveTvAccess)) && - (identical(other.enableMediaPlayback, enableMediaPlayback) || const DeepCollectionEquality().equals(other.enableMediaPlayback, enableMediaPlayback)) && - (identical(other.enableAudioPlaybackTranscoding, enableAudioPlaybackTranscoding) || const DeepCollectionEquality().equals(other.enableAudioPlaybackTranscoding, enableAudioPlaybackTranscoding)) && - (identical(other.enableVideoPlaybackTranscoding, enableVideoPlaybackTranscoding) || const DeepCollectionEquality().equals(other.enableVideoPlaybackTranscoding, enableVideoPlaybackTranscoding)) && - (identical(other.enablePlaybackRemuxing, enablePlaybackRemuxing) || const DeepCollectionEquality().equals(other.enablePlaybackRemuxing, enablePlaybackRemuxing)) && - (identical(other.forceRemoteSourceTranscoding, forceRemoteSourceTranscoding) || const DeepCollectionEquality().equals(other.forceRemoteSourceTranscoding, forceRemoteSourceTranscoding)) && - (identical(other.enableContentDeletion, enableContentDeletion) || const DeepCollectionEquality().equals(other.enableContentDeletion, enableContentDeletion)) && - (identical(other.enableContentDeletionFromFolders, enableContentDeletionFromFolders) || const DeepCollectionEquality().equals(other.enableContentDeletionFromFolders, enableContentDeletionFromFolders)) && - (identical(other.enableContentDownloading, enableContentDownloading) || const DeepCollectionEquality().equals(other.enableContentDownloading, enableContentDownloading)) && - (identical(other.enableSyncTranscoding, enableSyncTranscoding) || const DeepCollectionEquality().equals(other.enableSyncTranscoding, enableSyncTranscoding)) && - (identical(other.enableMediaConversion, enableMediaConversion) || const DeepCollectionEquality().equals(other.enableMediaConversion, enableMediaConversion)) && - (identical(other.enabledDevices, enabledDevices) || const DeepCollectionEquality().equals(other.enabledDevices, enabledDevices)) && - (identical(other.enableAllDevices, enableAllDevices) || const DeepCollectionEquality().equals(other.enableAllDevices, enableAllDevices)) && - (identical(other.enabledChannels, enabledChannels) || const DeepCollectionEquality().equals(other.enabledChannels, enabledChannels)) && - (identical(other.enableAllChannels, enableAllChannels) || const DeepCollectionEquality().equals(other.enableAllChannels, enableAllChannels)) && - (identical(other.enabledFolders, enabledFolders) || const DeepCollectionEquality().equals(other.enabledFolders, enabledFolders)) && - (identical(other.enableAllFolders, enableAllFolders) || const DeepCollectionEquality().equals(other.enableAllFolders, enableAllFolders)) && - (identical(other.invalidLoginAttemptCount, invalidLoginAttemptCount) || const DeepCollectionEquality().equals(other.invalidLoginAttemptCount, invalidLoginAttemptCount)) && - (identical(other.loginAttemptsBeforeLockout, loginAttemptsBeforeLockout) || const DeepCollectionEquality().equals(other.loginAttemptsBeforeLockout, loginAttemptsBeforeLockout)) && - (identical(other.maxActiveSessions, maxActiveSessions) || const DeepCollectionEquality().equals(other.maxActiveSessions, maxActiveSessions)) && - (identical(other.enablePublicSharing, enablePublicSharing) || const DeepCollectionEquality().equals(other.enablePublicSharing, enablePublicSharing)) && - (identical(other.blockedMediaFolders, blockedMediaFolders) || const DeepCollectionEquality().equals(other.blockedMediaFolders, blockedMediaFolders)) && - (identical(other.blockedChannels, blockedChannels) || const DeepCollectionEquality().equals(other.blockedChannels, blockedChannels)) && - (identical(other.remoteClientBitrateLimit, remoteClientBitrateLimit) || const DeepCollectionEquality().equals(other.remoteClientBitrateLimit, remoteClientBitrateLimit)) && - (identical(other.authenticationProviderId, authenticationProviderId) || const DeepCollectionEquality().equals(other.authenticationProviderId, authenticationProviderId)) && - (identical(other.passwordResetProviderId, passwordResetProviderId) || const DeepCollectionEquality().equals(other.passwordResetProviderId, passwordResetProviderId)) && - (identical(other.syncPlayAccess, syncPlayAccess) || const DeepCollectionEquality().equals(other.syncPlayAccess, syncPlayAccess))); + const DeepCollectionEquality().equals( + other.blockUnratedItems, + blockUnratedItems, + )) && + (identical( + other.enableRemoteControlOfOtherUsers, + enableRemoteControlOfOtherUsers, + ) || + const DeepCollectionEquality().equals( + other.enableRemoteControlOfOtherUsers, + enableRemoteControlOfOtherUsers, + )) && + (identical( + other.enableSharedDeviceControl, + enableSharedDeviceControl, + ) || + const DeepCollectionEquality().equals( + other.enableSharedDeviceControl, + enableSharedDeviceControl, + )) && + (identical(other.enableRemoteAccess, enableRemoteAccess) || + const DeepCollectionEquality().equals( + other.enableRemoteAccess, + enableRemoteAccess, + )) && + (identical(other.enableLiveTvManagement, enableLiveTvManagement) || + const DeepCollectionEquality().equals( + other.enableLiveTvManagement, + enableLiveTvManagement, + )) && + (identical(other.enableLiveTvAccess, enableLiveTvAccess) || + const DeepCollectionEquality().equals( + other.enableLiveTvAccess, + enableLiveTvAccess, + )) && + (identical(other.enableMediaPlayback, enableMediaPlayback) || + const DeepCollectionEquality().equals( + other.enableMediaPlayback, + enableMediaPlayback, + )) && + (identical( + other.enableAudioPlaybackTranscoding, + enableAudioPlaybackTranscoding, + ) || + const DeepCollectionEquality().equals( + other.enableAudioPlaybackTranscoding, + enableAudioPlaybackTranscoding, + )) && + (identical( + other.enableVideoPlaybackTranscoding, + enableVideoPlaybackTranscoding, + ) || + const DeepCollectionEquality().equals( + other.enableVideoPlaybackTranscoding, + enableVideoPlaybackTranscoding, + )) && + (identical(other.enablePlaybackRemuxing, enablePlaybackRemuxing) || + const DeepCollectionEquality().equals( + other.enablePlaybackRemuxing, + enablePlaybackRemuxing, + )) && + (identical( + other.forceRemoteSourceTranscoding, + forceRemoteSourceTranscoding, + ) || + const DeepCollectionEquality().equals( + other.forceRemoteSourceTranscoding, + forceRemoteSourceTranscoding, + )) && + (identical(other.enableContentDeletion, enableContentDeletion) || + const DeepCollectionEquality().equals( + other.enableContentDeletion, + enableContentDeletion, + )) && + (identical( + other.enableContentDeletionFromFolders, + enableContentDeletionFromFolders, + ) || + const DeepCollectionEquality().equals( + other.enableContentDeletionFromFolders, + enableContentDeletionFromFolders, + )) && + (identical( + other.enableContentDownloading, + enableContentDownloading, + ) || + const DeepCollectionEquality().equals( + other.enableContentDownloading, + enableContentDownloading, + )) && + (identical(other.enableSyncTranscoding, enableSyncTranscoding) || + const DeepCollectionEquality().equals( + other.enableSyncTranscoding, + enableSyncTranscoding, + )) && + (identical(other.enableMediaConversion, enableMediaConversion) || + const DeepCollectionEquality().equals( + other.enableMediaConversion, + enableMediaConversion, + )) && + (identical(other.enabledDevices, enabledDevices) || + const DeepCollectionEquality().equals( + other.enabledDevices, + enabledDevices, + )) && + (identical(other.enableAllDevices, enableAllDevices) || + const DeepCollectionEquality().equals( + other.enableAllDevices, + enableAllDevices, + )) && + (identical(other.enabledChannels, enabledChannels) || + const DeepCollectionEquality().equals( + other.enabledChannels, + enabledChannels, + )) && + (identical(other.enableAllChannels, enableAllChannels) || + const DeepCollectionEquality().equals( + other.enableAllChannels, + enableAllChannels, + )) && + (identical(other.enabledFolders, enabledFolders) || + const DeepCollectionEquality().equals( + other.enabledFolders, + enabledFolders, + )) && + (identical(other.enableAllFolders, enableAllFolders) || + const DeepCollectionEquality().equals( + other.enableAllFolders, + enableAllFolders, + )) && + (identical( + other.invalidLoginAttemptCount, + invalidLoginAttemptCount, + ) || + const DeepCollectionEquality().equals( + other.invalidLoginAttemptCount, + invalidLoginAttemptCount, + )) && + (identical( + other.loginAttemptsBeforeLockout, + loginAttemptsBeforeLockout, + ) || + const DeepCollectionEquality().equals( + other.loginAttemptsBeforeLockout, + loginAttemptsBeforeLockout, + )) && + (identical(other.maxActiveSessions, maxActiveSessions) || + const DeepCollectionEquality().equals( + other.maxActiveSessions, + maxActiveSessions, + )) && + (identical(other.enablePublicSharing, enablePublicSharing) || + const DeepCollectionEquality().equals( + other.enablePublicSharing, + enablePublicSharing, + )) && + (identical(other.blockedMediaFolders, blockedMediaFolders) || + const DeepCollectionEquality().equals( + other.blockedMediaFolders, + blockedMediaFolders, + )) && + (identical(other.blockedChannels, blockedChannels) || + const DeepCollectionEquality().equals( + other.blockedChannels, + blockedChannels, + )) && + (identical( + other.remoteClientBitrateLimit, + remoteClientBitrateLimit, + ) || + const DeepCollectionEquality().equals( + other.remoteClientBitrateLimit, + remoteClientBitrateLimit, + )) && + (identical( + other.authenticationProviderId, + authenticationProviderId, + ) || + const DeepCollectionEquality().equals( + other.authenticationProviderId, + authenticationProviderId, + )) && + (identical( + other.passwordResetProviderId, + passwordResetProviderId, + ) || + const DeepCollectionEquality().equals( + other.passwordResetProviderId, + passwordResetProviderId, + )) && + (identical(other.syncPlayAccess, syncPlayAccess) || + const DeepCollectionEquality().equals( + other.syncPlayAccess, + syncPlayAccess, + ))); } @override @@ -46923,287 +52163,296 @@ class UserPolicy { } extension $UserPolicyExtension on UserPolicy { - UserPolicy copyWith( - {bool? isAdministrator, - bool? isHidden, - bool? enableCollectionManagement, - bool? enableSubtitleManagement, - bool? enableLyricManagement, - bool? isDisabled, - int? maxParentalRating, - List? blockedTags, - List? allowedTags, - bool? enableUserPreferenceAccess, - List? accessSchedules, - List? blockUnratedItems, - bool? enableRemoteControlOfOtherUsers, - bool? enableSharedDeviceControl, - bool? enableRemoteAccess, - bool? enableLiveTvManagement, - bool? enableLiveTvAccess, - bool? enableMediaPlayback, - bool? enableAudioPlaybackTranscoding, - bool? enableVideoPlaybackTranscoding, - bool? enablePlaybackRemuxing, - bool? forceRemoteSourceTranscoding, - bool? enableContentDeletion, - List? enableContentDeletionFromFolders, - bool? enableContentDownloading, - bool? enableSyncTranscoding, - bool? enableMediaConversion, - List? enabledDevices, - bool? enableAllDevices, - List? enabledChannels, - bool? enableAllChannels, - List? enabledFolders, - bool? enableAllFolders, - int? invalidLoginAttemptCount, - int? loginAttemptsBeforeLockout, - int? maxActiveSessions, - bool? enablePublicSharing, - List? blockedMediaFolders, - List? blockedChannels, - int? remoteClientBitrateLimit, - String? authenticationProviderId, - String? passwordResetProviderId, - enums.SyncPlayUserAccessType? syncPlayAccess}) { + UserPolicy copyWith({ + bool? isAdministrator, + bool? isHidden, + bool? enableCollectionManagement, + bool? enableSubtitleManagement, + bool? enableLyricManagement, + bool? isDisabled, + int? maxParentalRating, + List? blockedTags, + List? allowedTags, + bool? enableUserPreferenceAccess, + List? accessSchedules, + List? blockUnratedItems, + bool? enableRemoteControlOfOtherUsers, + bool? enableSharedDeviceControl, + bool? enableRemoteAccess, + bool? enableLiveTvManagement, + bool? enableLiveTvAccess, + bool? enableMediaPlayback, + bool? enableAudioPlaybackTranscoding, + bool? enableVideoPlaybackTranscoding, + bool? enablePlaybackRemuxing, + bool? forceRemoteSourceTranscoding, + bool? enableContentDeletion, + List? enableContentDeletionFromFolders, + bool? enableContentDownloading, + bool? enableSyncTranscoding, + bool? enableMediaConversion, + List? enabledDevices, + bool? enableAllDevices, + List? enabledChannels, + bool? enableAllChannels, + List? enabledFolders, + bool? enableAllFolders, + int? invalidLoginAttemptCount, + int? loginAttemptsBeforeLockout, + int? maxActiveSessions, + bool? enablePublicSharing, + List? blockedMediaFolders, + List? blockedChannels, + int? remoteClientBitrateLimit, + String? authenticationProviderId, + String? passwordResetProviderId, + enums.SyncPlayUserAccessType? syncPlayAccess, + }) { return UserPolicy( - isAdministrator: isAdministrator ?? this.isAdministrator, - isHidden: isHidden ?? this.isHidden, - enableCollectionManagement: - enableCollectionManagement ?? this.enableCollectionManagement, - enableSubtitleManagement: - enableSubtitleManagement ?? this.enableSubtitleManagement, - enableLyricManagement: - enableLyricManagement ?? this.enableLyricManagement, - isDisabled: isDisabled ?? this.isDisabled, - maxParentalRating: maxParentalRating ?? this.maxParentalRating, - blockedTags: blockedTags ?? this.blockedTags, - allowedTags: allowedTags ?? this.allowedTags, - enableUserPreferenceAccess: - enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, - accessSchedules: accessSchedules ?? this.accessSchedules, - blockUnratedItems: blockUnratedItems ?? this.blockUnratedItems, - enableRemoteControlOfOtherUsers: enableRemoteControlOfOtherUsers ?? - this.enableRemoteControlOfOtherUsers, - enableSharedDeviceControl: - enableSharedDeviceControl ?? this.enableSharedDeviceControl, - enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - 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, - 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, - 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, - syncPlayAccess: syncPlayAccess ?? this.syncPlayAccess); + isAdministrator: isAdministrator ?? this.isAdministrator, + isHidden: isHidden ?? this.isHidden, + enableCollectionManagement: + enableCollectionManagement ?? this.enableCollectionManagement, + enableSubtitleManagement: + enableSubtitleManagement ?? this.enableSubtitleManagement, + enableLyricManagement: + enableLyricManagement ?? this.enableLyricManagement, + isDisabled: isDisabled ?? this.isDisabled, + maxParentalRating: maxParentalRating ?? this.maxParentalRating, + blockedTags: blockedTags ?? this.blockedTags, + allowedTags: allowedTags ?? this.allowedTags, + enableUserPreferenceAccess: + enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, + accessSchedules: accessSchedules ?? this.accessSchedules, + blockUnratedItems: blockUnratedItems ?? this.blockUnratedItems, + enableRemoteControlOfOtherUsers: + enableRemoteControlOfOtherUsers ?? + this.enableRemoteControlOfOtherUsers, + enableSharedDeviceControl: + enableSharedDeviceControl ?? this.enableSharedDeviceControl, + enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, + 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, + 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, + 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, + syncPlayAccess: syncPlayAccess ?? this.syncPlayAccess, + ); } - UserPolicy copyWithWrapped( - {Wrapped? isAdministrator, - Wrapped? isHidden, - Wrapped? enableCollectionManagement, - Wrapped? enableSubtitleManagement, - Wrapped? enableLyricManagement, - Wrapped? isDisabled, - Wrapped? maxParentalRating, - Wrapped?>? blockedTags, - Wrapped?>? allowedTags, - Wrapped? enableUserPreferenceAccess, - Wrapped?>? accessSchedules, - Wrapped?>? blockUnratedItems, - Wrapped? enableRemoteControlOfOtherUsers, - Wrapped? enableSharedDeviceControl, - Wrapped? enableRemoteAccess, - Wrapped? enableLiveTvManagement, - Wrapped? enableLiveTvAccess, - Wrapped? enableMediaPlayback, - Wrapped? enableAudioPlaybackTranscoding, - Wrapped? enableVideoPlaybackTranscoding, - Wrapped? enablePlaybackRemuxing, - Wrapped? forceRemoteSourceTranscoding, - Wrapped? enableContentDeletion, - Wrapped?>? enableContentDeletionFromFolders, - Wrapped? enableContentDownloading, - Wrapped? enableSyncTranscoding, - Wrapped? enableMediaConversion, - Wrapped?>? enabledDevices, - Wrapped? enableAllDevices, - Wrapped?>? enabledChannels, - Wrapped? enableAllChannels, - Wrapped?>? enabledFolders, - Wrapped? enableAllFolders, - Wrapped? invalidLoginAttemptCount, - Wrapped? loginAttemptsBeforeLockout, - Wrapped? maxActiveSessions, - Wrapped? enablePublicSharing, - Wrapped?>? blockedMediaFolders, - Wrapped?>? blockedChannels, - Wrapped? remoteClientBitrateLimit, - Wrapped? authenticationProviderId, - Wrapped? passwordResetProviderId, - Wrapped? syncPlayAccess}) { + UserPolicy copyWithWrapped({ + Wrapped? isAdministrator, + Wrapped? isHidden, + Wrapped? enableCollectionManagement, + Wrapped? enableSubtitleManagement, + Wrapped? enableLyricManagement, + Wrapped? isDisabled, + Wrapped? maxParentalRating, + Wrapped?>? blockedTags, + Wrapped?>? allowedTags, + Wrapped? enableUserPreferenceAccess, + Wrapped?>? accessSchedules, + Wrapped?>? blockUnratedItems, + Wrapped? enableRemoteControlOfOtherUsers, + Wrapped? enableSharedDeviceControl, + Wrapped? enableRemoteAccess, + Wrapped? enableLiveTvManagement, + Wrapped? enableLiveTvAccess, + Wrapped? enableMediaPlayback, + Wrapped? enableAudioPlaybackTranscoding, + Wrapped? enableVideoPlaybackTranscoding, + Wrapped? enablePlaybackRemuxing, + Wrapped? forceRemoteSourceTranscoding, + Wrapped? enableContentDeletion, + Wrapped?>? enableContentDeletionFromFolders, + Wrapped? enableContentDownloading, + Wrapped? enableSyncTranscoding, + Wrapped? enableMediaConversion, + Wrapped?>? enabledDevices, + Wrapped? enableAllDevices, + Wrapped?>? enabledChannels, + Wrapped? enableAllChannels, + Wrapped?>? enabledFolders, + Wrapped? enableAllFolders, + Wrapped? invalidLoginAttemptCount, + Wrapped? loginAttemptsBeforeLockout, + Wrapped? maxActiveSessions, + Wrapped? enablePublicSharing, + Wrapped?>? blockedMediaFolders, + Wrapped?>? blockedChannels, + Wrapped? remoteClientBitrateLimit, + Wrapped? authenticationProviderId, + Wrapped? passwordResetProviderId, + Wrapped? syncPlayAccess, + }) { return UserPolicy( - 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), - isDisabled: (isDisabled != null ? isDisabled.value : this.isDisabled), - maxParentalRating: (maxParentalRating != null - ? maxParentalRating.value - : this.maxParentalRating), - 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), - 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), - enableAudioPlaybackTranscoding: (enableAudioPlaybackTranscoding != null - ? enableAudioPlaybackTranscoding.value - : this.enableAudioPlaybackTranscoding), - enableVideoPlaybackTranscoding: (enableVideoPlaybackTranscoding != null - ? enableVideoPlaybackTranscoding.value - : this.enableVideoPlaybackTranscoding), - enablePlaybackRemuxing: (enablePlaybackRemuxing != null - ? enablePlaybackRemuxing.value - : this.enablePlaybackRemuxing), - forceRemoteSourceTranscoding: (forceRemoteSourceTranscoding != null - ? forceRemoteSourceTranscoding.value - : this.forceRemoteSourceTranscoding), - 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)); + 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), + isDisabled: (isDisabled != null ? isDisabled.value : this.isDisabled), + maxParentalRating: (maxParentalRating != null + ? maxParentalRating.value + : this.maxParentalRating), + 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), + 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), + enableAudioPlaybackTranscoding: (enableAudioPlaybackTranscoding != null + ? enableAudioPlaybackTranscoding.value + : this.enableAudioPlaybackTranscoding), + enableVideoPlaybackTranscoding: (enableVideoPlaybackTranscoding != null + ? enableVideoPlaybackTranscoding.value + : this.enableVideoPlaybackTranscoding), + enablePlaybackRemuxing: (enablePlaybackRemuxing != null + ? enablePlaybackRemuxing.value + : this.enablePlaybackRemuxing), + forceRemoteSourceTranscoding: (forceRemoteSourceTranscoding != null + ? forceRemoteSourceTranscoding.value + : this.forceRemoteSourceTranscoding), + 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), + ); } } @JsonSerializable(explicitToJson: true) class UserUpdatedMessage { - const UserUpdatedMessage({ - this.data, - this.messageId, - this.messageType, - }); + const UserUpdatedMessage({this.data, this.messageId, this.messageType}); factory UserUpdatedMessage.fromJson(Map json) => _$UserUpdatedMessageFromJson(json); @@ -47223,9 +52472,11 @@ class UserUpdatedMessage { ) final enums.SessionMessageType? messageType; static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => - sessionMessageTypeNullableFromJson( - value, enums.SessionMessageType.userupdated); + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + sessionMessageTypeNullableFromJson( + value, + enums.SessionMessageType.userupdated, + ); static const fromJsonFactory = _$UserUpdatedMessageFromJson; @@ -47236,11 +52487,15 @@ class UserUpdatedMessage { (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || - const DeepCollectionEquality() - .equals(other.messageId, messageId)) && + const DeepCollectionEquality().equals( + other.messageId, + messageId, + )) && (identical(other.messageType, messageType) || - const DeepCollectionEquality() - .equals(other.messageType, messageType))); + const DeepCollectionEquality().equals( + other.messageType, + messageType, + ))); } @override @@ -47255,25 +52510,28 @@ class UserUpdatedMessage { } extension $UserUpdatedMessageExtension on UserUpdatedMessage { - UserUpdatedMessage copyWith( - {UserDto? data, - String? messageId, - enums.SessionMessageType? messageType}) { + UserUpdatedMessage copyWith({ + UserDto? data, + String? messageId, + enums.SessionMessageType? messageType, + }) { return UserUpdatedMessage( - data: data ?? this.data, - messageId: messageId ?? this.messageId, - messageType: messageType ?? this.messageType); + data: data ?? this.data, + messageId: messageId ?? this.messageId, + messageType: messageType ?? this.messageType, + ); } - UserUpdatedMessage copyWithWrapped( - {Wrapped? data, - Wrapped? messageId, - Wrapped? messageType}) { + UserUpdatedMessage copyWithWrapped({ + Wrapped? data, + Wrapped? messageId, + Wrapped? messageType, + }) { return UserUpdatedMessage( - data: (data != null ? data.value : this.data), - messageId: (messageId != null ? messageId.value : this.messageId), - messageType: - (messageType != null ? messageType.value : this.messageType)); + data: (data != null ? data.value : this.data), + messageId: (messageId != null ? messageId.value : this.messageId), + messageType: (messageType != null ? messageType.value : this.messageType), + ); } } @@ -47302,11 +52560,17 @@ class UtcTimeResponse { (other is UtcTimeResponse && (identical(other.requestReceptionTime, requestReceptionTime) || const DeepCollectionEquality().equals( - other.requestReceptionTime, requestReceptionTime)) && + other.requestReceptionTime, + requestReceptionTime, + )) && (identical( - other.responseTransmissionTime, responseTransmissionTime) || + other.responseTransmissionTime, + responseTransmissionTime, + ) || const DeepCollectionEquality().equals( - other.responseTransmissionTime, responseTransmissionTime))); + other.responseTransmissionTime, + responseTransmissionTime, + ))); } @override @@ -47320,34 +52584,35 @@ class UtcTimeResponse { } extension $UtcTimeResponseExtension on UtcTimeResponse { - UtcTimeResponse copyWith( - {DateTime? requestReceptionTime, DateTime? responseTransmissionTime}) { + UtcTimeResponse copyWith({ + DateTime? requestReceptionTime, + DateTime? responseTransmissionTime, + }) { return UtcTimeResponse( - requestReceptionTime: requestReceptionTime ?? this.requestReceptionTime, - responseTransmissionTime: - responseTransmissionTime ?? this.responseTransmissionTime); + requestReceptionTime: requestReceptionTime ?? this.requestReceptionTime, + responseTransmissionTime: + responseTransmissionTime ?? this.responseTransmissionTime, + ); } - UtcTimeResponse copyWithWrapped( - {Wrapped? requestReceptionTime, - Wrapped? responseTransmissionTime}) { + UtcTimeResponse copyWithWrapped({ + Wrapped? requestReceptionTime, + 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), + ); } } @JsonSerializable(explicitToJson: true) class ValidatePathDto { - const ValidatePathDto({ - this.validateWritable, - this.path, - this.isFile, - }); + const ValidatePathDto({this.validateWritable, this.path, this.isFile}); factory ValidatePathDto.fromJson(Map json) => _$ValidatePathDtoFromJson(json); @@ -47368,8 +52633,10 @@ class ValidatePathDto { return identical(this, other) || (other is ValidatePathDto && (identical(other.validateWritable, validateWritable) || - const DeepCollectionEquality() - .equals(other.validateWritable, validateWritable)) && + const DeepCollectionEquality().equals( + other.validateWritable, + validateWritable, + )) && (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.isFile, isFile) || @@ -47388,24 +52655,30 @@ class ValidatePathDto { } extension $ValidatePathDtoExtension on ValidatePathDto { - ValidatePathDto copyWith( - {bool? validateWritable, String? path, bool? isFile}) { + ValidatePathDto copyWith({ + bool? validateWritable, + String? path, + bool? isFile, + }) { return ValidatePathDto( - validateWritable: validateWritable ?? this.validateWritable, - path: path ?? this.path, - isFile: isFile ?? this.isFile); + validateWritable: validateWritable ?? this.validateWritable, + path: path ?? this.path, + isFile: isFile ?? this.isFile, + ); } - ValidatePathDto copyWithWrapped( - {Wrapped? validateWritable, - Wrapped? path, - Wrapped? isFile}) { + ValidatePathDto copyWithWrapped({ + Wrapped? validateWritable, + Wrapped? path, + Wrapped? isFile, + }) { return ValidatePathDto( - validateWritable: (validateWritable != null - ? validateWritable.value - : this.validateWritable), - path: (path != null ? path.value : this.path), - isFile: (isFile != null ? isFile.value : this.isFile)); + validateWritable: (validateWritable != null + ? validateWritable.value + : this.validateWritable), + path: (path != null ? path.value : this.path), + isFile: (isFile != null ? isFile.value : this.isFile), + ); } } @@ -47454,32 +52727,50 @@ class VersionInfo { return identical(this, other) || (other is VersionInfo && (identical(other.version, version) || - const DeepCollectionEquality() - .equals(other.version, version)) && + const DeepCollectionEquality().equals( + other.version, + version, + )) && (identical(other.versionNumber, versionNumber) || - const DeepCollectionEquality() - .equals(other.versionNumber, versionNumber)) && + const DeepCollectionEquality().equals( + other.versionNumber, + versionNumber, + )) && (identical(other.changelog, changelog) || - const DeepCollectionEquality() - .equals(other.changelog, changelog)) && + const DeepCollectionEquality().equals( + other.changelog, + changelog, + )) && (identical(other.targetAbi, targetAbi) || - const DeepCollectionEquality() - .equals(other.targetAbi, targetAbi)) && + const DeepCollectionEquality().equals( + other.targetAbi, + targetAbi, + )) && (identical(other.sourceUrl, sourceUrl) || - const DeepCollectionEquality() - .equals(other.sourceUrl, sourceUrl)) && + const DeepCollectionEquality().equals( + other.sourceUrl, + sourceUrl, + )) && (identical(other.checksum, checksum) || - const DeepCollectionEquality() - .equals(other.checksum, checksum)) && + const DeepCollectionEquality().equals( + other.checksum, + checksum, + )) && (identical(other.timestamp, timestamp) || - const DeepCollectionEquality() - .equals(other.timestamp, timestamp)) && + const DeepCollectionEquality().equals( + other.timestamp, + timestamp, + )) && (identical(other.repositoryName, repositoryName) || - const DeepCollectionEquality() - .equals(other.repositoryName, repositoryName)) && + const DeepCollectionEquality().equals( + other.repositoryName, + repositoryName, + )) && (identical(other.repositoryUrl, repositoryUrl) || - const DeepCollectionEquality() - .equals(other.repositoryUrl, repositoryUrl))); + const DeepCollectionEquality().equals( + other.repositoryUrl, + repositoryUrl, + ))); } @override @@ -47500,52 +52791,58 @@ class VersionInfo { } extension $VersionInfoExtension on VersionInfo { - VersionInfo copyWith( - {String? version, - String? versionNumber, - String? changelog, - String? targetAbi, - String? sourceUrl, - String? checksum, - String? timestamp, - String? repositoryName, - String? repositoryUrl}) { + VersionInfo copyWith({ + String? version, + String? versionNumber, + String? changelog, + String? targetAbi, + String? sourceUrl, + String? checksum, + String? timestamp, + String? repositoryName, + String? repositoryUrl, + }) { return VersionInfo( - version: version ?? this.version, - versionNumber: versionNumber ?? this.versionNumber, - changelog: changelog ?? this.changelog, - targetAbi: targetAbi ?? this.targetAbi, - sourceUrl: sourceUrl ?? this.sourceUrl, - checksum: checksum ?? this.checksum, - timestamp: timestamp ?? this.timestamp, - repositoryName: repositoryName ?? this.repositoryName, - repositoryUrl: repositoryUrl ?? this.repositoryUrl); + version: version ?? this.version, + versionNumber: versionNumber ?? this.versionNumber, + changelog: changelog ?? this.changelog, + targetAbi: targetAbi ?? this.targetAbi, + sourceUrl: sourceUrl ?? this.sourceUrl, + checksum: checksum ?? this.checksum, + timestamp: timestamp ?? this.timestamp, + repositoryName: repositoryName ?? this.repositoryName, + repositoryUrl: repositoryUrl ?? this.repositoryUrl, + ); } - VersionInfo copyWithWrapped( - {Wrapped? version, - Wrapped? versionNumber, - Wrapped? changelog, - Wrapped? targetAbi, - Wrapped? sourceUrl, - Wrapped? checksum, - Wrapped? timestamp, - Wrapped? repositoryName, - Wrapped? repositoryUrl}) { + VersionInfo copyWithWrapped({ + Wrapped? version, + Wrapped? versionNumber, + Wrapped? changelog, + Wrapped? targetAbi, + Wrapped? sourceUrl, + Wrapped? checksum, + Wrapped? timestamp, + Wrapped? repositoryName, + Wrapped? repositoryUrl, + }) { return VersionInfo( - version: (version != null ? version.value : this.version), - 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)); + version: (version != null ? version.value : this.version), + 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), + ); } } @@ -47598,25 +52895,37 @@ class VirtualFolderInfo { (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.locations, locations) || - const DeepCollectionEquality() - .equals(other.locations, locations)) && + const DeepCollectionEquality().equals( + other.locations, + locations, + )) && (identical(other.collectionType, collectionType) || - const DeepCollectionEquality() - .equals(other.collectionType, collectionType)) && + const DeepCollectionEquality().equals( + other.collectionType, + collectionType, + )) && (identical(other.libraryOptions, libraryOptions) || - const DeepCollectionEquality() - .equals(other.libraryOptions, libraryOptions)) && + const DeepCollectionEquality().equals( + other.libraryOptions, + libraryOptions, + )) && (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.primaryImageItemId, primaryImageItemId) || - const DeepCollectionEquality() - .equals(other.primaryImageItemId, primaryImageItemId)) && + const DeepCollectionEquality().equals( + other.primaryImageItemId, + primaryImageItemId, + )) && (identical(other.refreshProgress, refreshProgress) || - const DeepCollectionEquality() - .equals(other.refreshProgress, refreshProgress)) && + const DeepCollectionEquality().equals( + other.refreshProgress, + refreshProgress, + )) && (identical(other.refreshStatus, refreshStatus) || - const DeepCollectionEquality() - .equals(other.refreshStatus, refreshStatus))); + const DeepCollectionEquality().equals( + other.refreshStatus, + refreshStatus, + ))); } @override @@ -47636,62 +52945,64 @@ class VirtualFolderInfo { } extension $VirtualFolderInfoExtension on VirtualFolderInfo { - VirtualFolderInfo copyWith( - {String? name, - List? locations, - enums.CollectionTypeOptions? collectionType, - LibraryOptions? libraryOptions, - String? itemId, - String? primaryImageItemId, - double? refreshProgress, - String? refreshStatus}) { + VirtualFolderInfo copyWith({ + String? name, + List? locations, + enums.CollectionTypeOptions? collectionType, + LibraryOptions? libraryOptions, + String? itemId, + String? primaryImageItemId, + double? refreshProgress, + String? refreshStatus, + }) { return VirtualFolderInfo( - name: name ?? this.name, - locations: locations ?? this.locations, - collectionType: collectionType ?? this.collectionType, - libraryOptions: libraryOptions ?? this.libraryOptions, - itemId: itemId ?? this.itemId, - primaryImageItemId: primaryImageItemId ?? this.primaryImageItemId, - refreshProgress: refreshProgress ?? this.refreshProgress, - refreshStatus: refreshStatus ?? this.refreshStatus); + name: name ?? this.name, + locations: locations ?? this.locations, + collectionType: collectionType ?? this.collectionType, + libraryOptions: libraryOptions ?? this.libraryOptions, + itemId: itemId ?? this.itemId, + primaryImageItemId: primaryImageItemId ?? this.primaryImageItemId, + refreshProgress: refreshProgress ?? this.refreshProgress, + refreshStatus: refreshStatus ?? this.refreshStatus, + ); } - VirtualFolderInfo copyWithWrapped( - {Wrapped? name, - Wrapped?>? locations, - Wrapped? collectionType, - Wrapped? libraryOptions, - Wrapped? itemId, - Wrapped? primaryImageItemId, - Wrapped? refreshProgress, - Wrapped? refreshStatus}) { + VirtualFolderInfo copyWithWrapped({ + Wrapped? name, + Wrapped?>? locations, + Wrapped? collectionType, + Wrapped? libraryOptions, + Wrapped? itemId, + Wrapped? primaryImageItemId, + Wrapped? refreshProgress, + Wrapped? refreshStatus, + }) { 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), - 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)); + 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), + 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), + ); } } @JsonSerializable(explicitToJson: true) class WakeOnLanInfo { - const WakeOnLanInfo({ - this.macAddress, - this.port, - }); + const WakeOnLanInfo({this.macAddress, this.port}); factory WakeOnLanInfo.fromJson(Map json) => _$WakeOnLanInfoFromJson(json); @@ -47710,8 +53021,10 @@ class WakeOnLanInfo { return identical(this, other) || (other is WakeOnLanInfo && (identical(other.macAddress, macAddress) || - const DeepCollectionEquality() - .equals(other.macAddress, macAddress)) && + const DeepCollectionEquality().equals( + other.macAddress, + macAddress, + )) && (identical(other.port, port) || const DeepCollectionEquality().equals(other.port, port))); } @@ -47729,14 +53042,19 @@ class WakeOnLanInfo { extension $WakeOnLanInfoExtension on WakeOnLanInfo { WakeOnLanInfo copyWith({String? macAddress, int? port}) { return WakeOnLanInfo( - macAddress: macAddress ?? this.macAddress, port: port ?? this.port); + macAddress: macAddress ?? this.macAddress, + port: port ?? this.port, + ); } - WakeOnLanInfo copyWithWrapped( - {Wrapped? macAddress, Wrapped? port}) { + WakeOnLanInfo copyWithWrapped({ + Wrapped? macAddress, + Wrapped? port, + }) { return WakeOnLanInfo( - macAddress: (macAddress != null ? macAddress.value : this.macAddress), - port: (port != null ? port.value : this.port)); + macAddress: (macAddress != null ? macAddress.value : this.macAddress), + port: (port != null ? port.value : this.port), + ); } } @@ -47794,19 +53112,28 @@ class XbmcMetadataOptions { (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.releaseDateFormat, releaseDateFormat) || - const DeepCollectionEquality() - .equals(other.releaseDateFormat, releaseDateFormat)) && + const DeepCollectionEquality().equals( + other.releaseDateFormat, + releaseDateFormat, + )) && (identical(other.saveImagePathsInNfo, saveImagePathsInNfo) || - const DeepCollectionEquality() - .equals(other.saveImagePathsInNfo, saveImagePathsInNfo)) && + const DeepCollectionEquality().equals( + other.saveImagePathsInNfo, + saveImagePathsInNfo, + )) && (identical(other.enablePathSubstitution, enablePathSubstitution) || const DeepCollectionEquality().equals( - other.enablePathSubstitution, enablePathSubstitution)) && - (identical(other.enableExtraThumbsDuplication, - enableExtraThumbsDuplication) || + other.enablePathSubstitution, + enablePathSubstitution, + )) && + (identical( + other.enableExtraThumbsDuplication, + enableExtraThumbsDuplication, + ) || const DeepCollectionEquality().equals( - other.enableExtraThumbsDuplication, - enableExtraThumbsDuplication))); + other.enableExtraThumbsDuplication, + enableExtraThumbsDuplication, + ))); } @override @@ -47823,42 +53150,46 @@ class XbmcMetadataOptions { } extension $XbmcMetadataOptionsExtension on XbmcMetadataOptions { - XbmcMetadataOptions copyWith( - {String? userId, - String? releaseDateFormat, - bool? saveImagePathsInNfo, - bool? enablePathSubstitution, - bool? enableExtraThumbsDuplication}) { + XbmcMetadataOptions copyWith({ + String? userId, + String? releaseDateFormat, + bool? saveImagePathsInNfo, + bool? enablePathSubstitution, + bool? enableExtraThumbsDuplication, + }) { return XbmcMetadataOptions( - userId: userId ?? this.userId, - releaseDateFormat: releaseDateFormat ?? this.releaseDateFormat, - saveImagePathsInNfo: saveImagePathsInNfo ?? this.saveImagePathsInNfo, - enablePathSubstitution: - enablePathSubstitution ?? this.enablePathSubstitution, - enableExtraThumbsDuplication: - enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication); + userId: userId ?? this.userId, + releaseDateFormat: releaseDateFormat ?? this.releaseDateFormat, + saveImagePathsInNfo: saveImagePathsInNfo ?? this.saveImagePathsInNfo, + enablePathSubstitution: + enablePathSubstitution ?? this.enablePathSubstitution, + enableExtraThumbsDuplication: + enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication, + ); } - XbmcMetadataOptions copyWithWrapped( - {Wrapped? userId, - Wrapped? releaseDateFormat, - Wrapped? saveImagePathsInNfo, - Wrapped? enablePathSubstitution, - Wrapped? enableExtraThumbsDuplication}) { + XbmcMetadataOptions copyWithWrapped({ + Wrapped? userId, + Wrapped? releaseDateFormat, + Wrapped? saveImagePathsInNfo, + Wrapped? enablePathSubstitution, + Wrapped? enableExtraThumbsDuplication, + }) { 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), - enableExtraThumbsDuplication: (enableExtraThumbsDuplication != null - ? enableExtraThumbsDuplication.value - : this.enableExtraThumbsDuplication)); + 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), + enableExtraThumbsDuplication: (enableExtraThumbsDuplication != null + ? enableExtraThumbsDuplication.value + : this.enableExtraThumbsDuplication), + ); } } @@ -47919,13 +53250,17 @@ class BaseItemDto$ImageBlurHashes { return identical(this, other) || (other is BaseItemDto$ImageBlurHashes && (identical(other.primary, primary) || - const DeepCollectionEquality() - .equals(other.primary, primary)) && + const DeepCollectionEquality().equals( + other.primary, + primary, + )) && (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || - const DeepCollectionEquality() - .equals(other.backdrop, backdrop)) && + const DeepCollectionEquality().equals( + other.backdrop, + backdrop, + )) && (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && (identical(other.logo, logo) || @@ -47937,16 +53272,22 @@ class BaseItemDto$ImageBlurHashes { (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || - const DeepCollectionEquality() - .equals(other.screenshot, screenshot)) && + const DeepCollectionEquality().equals( + other.screenshot, + screenshot, + )) && (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || - const DeepCollectionEquality() - .equals(other.chapter, chapter)) && + const DeepCollectionEquality().equals( + other.chapter, + chapter, + )) && (identical(other.boxRear, boxRear) || - const DeepCollectionEquality() - .equals(other.boxRear, boxRear)) && + const DeepCollectionEquality().equals( + other.boxRear, + boxRear, + )) && (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); } @@ -47973,64 +53314,68 @@ class BaseItemDto$ImageBlurHashes { } extension $BaseItemDto$ImageBlurHashesExtension on BaseItemDto$ImageBlurHashes { - BaseItemDto$ImageBlurHashes copyWith( - {Map? primary, - Map? art, - Map? backdrop, - Map? banner, - Map? logo, - Map? thumb, - Map? disc, - Map? box, - Map? screenshot, - Map? menu, - Map? chapter, - Map? boxRear, - Map? profile}) { + BaseItemDto$ImageBlurHashes copyWith({ + Map? primary, + Map? art, + Map? backdrop, + Map? banner, + Map? logo, + Map? thumb, + Map? disc, + Map? box, + Map? screenshot, + Map? menu, + Map? chapter, + Map? boxRear, + Map? profile, + }) { return BaseItemDto$ImageBlurHashes( - primary: primary ?? this.primary, - art: art ?? this.art, - backdrop: backdrop ?? this.backdrop, - banner: banner ?? this.banner, - logo: logo ?? this.logo, - thumb: thumb ?? this.thumb, - disc: disc ?? this.disc, - box: box ?? this.box, - screenshot: screenshot ?? this.screenshot, - menu: menu ?? this.menu, - chapter: chapter ?? this.chapter, - boxRear: boxRear ?? this.boxRear, - profile: profile ?? this.profile); + primary: primary ?? this.primary, + art: art ?? this.art, + backdrop: backdrop ?? this.backdrop, + banner: banner ?? this.banner, + logo: logo ?? this.logo, + thumb: thumb ?? this.thumb, + disc: disc ?? this.disc, + box: box ?? this.box, + screenshot: screenshot ?? this.screenshot, + menu: menu ?? this.menu, + chapter: chapter ?? this.chapter, + boxRear: boxRear ?? this.boxRear, + profile: profile ?? this.profile, + ); } - BaseItemDto$ImageBlurHashes copyWithWrapped( - {Wrapped?>? primary, - Wrapped?>? art, - Wrapped?>? backdrop, - Wrapped?>? banner, - Wrapped?>? logo, - Wrapped?>? thumb, - Wrapped?>? disc, - Wrapped?>? box, - Wrapped?>? screenshot, - Wrapped?>? menu, - Wrapped?>? chapter, - Wrapped?>? boxRear, - Wrapped?>? profile}) { + BaseItemDto$ImageBlurHashes copyWithWrapped({ + Wrapped?>? primary, + Wrapped?>? art, + Wrapped?>? backdrop, + Wrapped?>? banner, + Wrapped?>? logo, + Wrapped?>? thumb, + Wrapped?>? disc, + Wrapped?>? box, + Wrapped?>? screenshot, + Wrapped?>? menu, + Wrapped?>? chapter, + Wrapped?>? boxRear, + Wrapped?>? profile, + }) { return BaseItemDto$ImageBlurHashes( - primary: (primary != null ? primary.value : this.primary), - art: (art != null ? art.value : this.art), - backdrop: (backdrop != null ? backdrop.value : this.backdrop), - banner: (banner != null ? banner.value : this.banner), - logo: (logo != null ? logo.value : this.logo), - thumb: (thumb != null ? thumb.value : this.thumb), - disc: (disc != null ? disc.value : this.disc), - box: (box != null ? box.value : this.box), - screenshot: (screenshot != null ? screenshot.value : this.screenshot), - menu: (menu != null ? menu.value : this.menu), - chapter: (chapter != null ? chapter.value : this.chapter), - boxRear: (boxRear != null ? boxRear.value : this.boxRear), - profile: (profile != null ? profile.value : this.profile)); + primary: (primary != null ? primary.value : this.primary), + art: (art != null ? art.value : this.art), + backdrop: (backdrop != null ? backdrop.value : this.backdrop), + banner: (banner != null ? banner.value : this.banner), + logo: (logo != null ? logo.value : this.logo), + thumb: (thumb != null ? thumb.value : this.thumb), + disc: (disc != null ? disc.value : this.disc), + box: (box != null ? box.value : this.box), + screenshot: (screenshot != null ? screenshot.value : this.screenshot), + menu: (menu != null ? menu.value : this.menu), + chapter: (chapter != null ? chapter.value : this.chapter), + boxRear: (boxRear != null ? boxRear.value : this.boxRear), + profile: (profile != null ? profile.value : this.profile), + ); } } @@ -48091,13 +53436,17 @@ class BaseItemPerson$ImageBlurHashes { return identical(this, other) || (other is BaseItemPerson$ImageBlurHashes && (identical(other.primary, primary) || - const DeepCollectionEquality() - .equals(other.primary, primary)) && + const DeepCollectionEquality().equals( + other.primary, + primary, + )) && (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || - const DeepCollectionEquality() - .equals(other.backdrop, backdrop)) && + const DeepCollectionEquality().equals( + other.backdrop, + backdrop, + )) && (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && (identical(other.logo, logo) || @@ -48109,16 +53458,22 @@ class BaseItemPerson$ImageBlurHashes { (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || - const DeepCollectionEquality() - .equals(other.screenshot, screenshot)) && + const DeepCollectionEquality().equals( + other.screenshot, + screenshot, + )) && (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || - const DeepCollectionEquality() - .equals(other.chapter, chapter)) && + const DeepCollectionEquality().equals( + other.chapter, + chapter, + )) && (identical(other.boxRear, boxRear) || - const DeepCollectionEquality() - .equals(other.boxRear, boxRear)) && + const DeepCollectionEquality().equals( + other.boxRear, + boxRear, + )) && (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); } @@ -48146,69 +53501,74 @@ class BaseItemPerson$ImageBlurHashes { extension $BaseItemPerson$ImageBlurHashesExtension on BaseItemPerson$ImageBlurHashes { - BaseItemPerson$ImageBlurHashes copyWith( - {Map? primary, - Map? art, - Map? backdrop, - Map? banner, - Map? logo, - Map? thumb, - Map? disc, - Map? box, - Map? screenshot, - Map? menu, - Map? chapter, - Map? boxRear, - Map? profile}) { + BaseItemPerson$ImageBlurHashes copyWith({ + Map? primary, + Map? art, + Map? backdrop, + Map? banner, + Map? logo, + Map? thumb, + Map? disc, + Map? box, + Map? screenshot, + Map? menu, + Map? chapter, + Map? boxRear, + Map? profile, + }) { return BaseItemPerson$ImageBlurHashes( - primary: primary ?? this.primary, - art: art ?? this.art, - backdrop: backdrop ?? this.backdrop, - banner: banner ?? this.banner, - logo: logo ?? this.logo, - thumb: thumb ?? this.thumb, - disc: disc ?? this.disc, - box: box ?? this.box, - screenshot: screenshot ?? this.screenshot, - menu: menu ?? this.menu, - chapter: chapter ?? this.chapter, - boxRear: boxRear ?? this.boxRear, - profile: profile ?? this.profile); + primary: primary ?? this.primary, + art: art ?? this.art, + backdrop: backdrop ?? this.backdrop, + banner: banner ?? this.banner, + logo: logo ?? this.logo, + thumb: thumb ?? this.thumb, + disc: disc ?? this.disc, + box: box ?? this.box, + screenshot: screenshot ?? this.screenshot, + menu: menu ?? this.menu, + chapter: chapter ?? this.chapter, + boxRear: boxRear ?? this.boxRear, + profile: profile ?? this.profile, + ); } - BaseItemPerson$ImageBlurHashes copyWithWrapped( - {Wrapped?>? primary, - Wrapped?>? art, - Wrapped?>? backdrop, - Wrapped?>? banner, - Wrapped?>? logo, - Wrapped?>? thumb, - Wrapped?>? disc, - Wrapped?>? box, - Wrapped?>? screenshot, - Wrapped?>? menu, - Wrapped?>? chapter, - Wrapped?>? boxRear, - Wrapped?>? profile}) { + BaseItemPerson$ImageBlurHashes copyWithWrapped({ + Wrapped?>? primary, + Wrapped?>? art, + Wrapped?>? backdrop, + Wrapped?>? banner, + Wrapped?>? logo, + Wrapped?>? thumb, + Wrapped?>? disc, + Wrapped?>? box, + Wrapped?>? screenshot, + Wrapped?>? menu, + Wrapped?>? chapter, + Wrapped?>? boxRear, + Wrapped?>? profile, + }) { return BaseItemPerson$ImageBlurHashes( - primary: (primary != null ? primary.value : this.primary), - art: (art != null ? art.value : this.art), - backdrop: (backdrop != null ? backdrop.value : this.backdrop), - banner: (banner != null ? banner.value : this.banner), - logo: (logo != null ? logo.value : this.logo), - thumb: (thumb != null ? thumb.value : this.thumb), - disc: (disc != null ? disc.value : this.disc), - box: (box != null ? box.value : this.box), - screenshot: (screenshot != null ? screenshot.value : this.screenshot), - menu: (menu != null ? menu.value : this.menu), - chapter: (chapter != null ? chapter.value : this.chapter), - boxRear: (boxRear != null ? boxRear.value : this.boxRear), - profile: (profile != null ? profile.value : this.profile)); + primary: (primary != null ? primary.value : this.primary), + art: (art != null ? art.value : this.art), + backdrop: (backdrop != null ? backdrop.value : this.backdrop), + banner: (banner != null ? banner.value : this.banner), + logo: (logo != null ? logo.value : this.logo), + thumb: (thumb != null ? thumb.value : this.thumb), + disc: (disc != null ? disc.value : this.disc), + box: (box != null ? box.value : this.box), + screenshot: (screenshot != null ? screenshot.value : this.screenshot), + menu: (menu != null ? menu.value : this.menu), + chapter: (chapter != null ? chapter.value : this.chapter), + boxRear: (boxRear != null ? boxRear.value : this.boxRear), + profile: (profile != null ? profile.value : this.profile), + ); } } String? audioSpatialFormatNullableToJson( - enums.AudioSpatialFormat? audioSpatialFormat) { + enums.AudioSpatialFormat? audioSpatialFormat, +) { return audioSpatialFormat?.value; } @@ -48220,8 +53580,9 @@ enums.AudioSpatialFormat audioSpatialFormatFromJson( Object? audioSpatialFormat, [ enums.AudioSpatialFormat? defaultValue, ]) { - return enums.AudioSpatialFormat.values - .firstWhereOrNull((e) => e.value == audioSpatialFormat) ?? + return enums.AudioSpatialFormat.values.firstWhereOrNull( + (e) => e.value == audioSpatialFormat, + ) ?? defaultValue ?? enums.AudioSpatialFormat.swaggerGeneratedUnknown; } @@ -48233,18 +53594,21 @@ enums.AudioSpatialFormat? audioSpatialFormatNullableFromJson( if (audioSpatialFormat == null) { return null; } - return enums.AudioSpatialFormat.values - .firstWhereOrNull((e) => e.value == audioSpatialFormat) ?? + return enums.AudioSpatialFormat.values.firstWhereOrNull( + (e) => e.value == audioSpatialFormat, + ) ?? defaultValue; } String audioSpatialFormatExplodedListToJson( - List? audioSpatialFormat) { + List? audioSpatialFormat, +) { return audioSpatialFormat?.map((e) => e.value!).join(',') ?? ''; } List audioSpatialFormatListToJson( - List? audioSpatialFormat) { + List? audioSpatialFormat, +) { if (audioSpatialFormat == null) { return []; } @@ -48290,8 +53654,9 @@ enums.BaseItemKind baseItemKindFromJson( Object? baseItemKind, [ enums.BaseItemKind? defaultValue, ]) { - return enums.BaseItemKind.values - .firstWhereOrNull((e) => e.value == baseItemKind) ?? + return enums.BaseItemKind.values.firstWhereOrNull( + (e) => e.value == baseItemKind, + ) ?? defaultValue ?? enums.BaseItemKind.swaggerGeneratedUnknown; } @@ -48303,8 +53668,9 @@ enums.BaseItemKind? baseItemKindNullableFromJson( if (baseItemKind == null) { return null; } - return enums.BaseItemKind.values - .firstWhereOrNull((e) => e.value == baseItemKind) ?? + return enums.BaseItemKind.values.firstWhereOrNull( + (e) => e.value == baseItemKind, + ) ?? defaultValue; } @@ -48343,12 +53709,14 @@ List? baseItemKindNullableListFromJson( } String? channelItemSortFieldNullableToJson( - enums.ChannelItemSortField? channelItemSortField) { + enums.ChannelItemSortField? channelItemSortField, +) { return channelItemSortField?.value; } String? channelItemSortFieldToJson( - enums.ChannelItemSortField channelItemSortField) { + enums.ChannelItemSortField channelItemSortField, +) { return channelItemSortField.value; } @@ -48356,8 +53724,9 @@ enums.ChannelItemSortField channelItemSortFieldFromJson( Object? channelItemSortField, [ enums.ChannelItemSortField? defaultValue, ]) { - return enums.ChannelItemSortField.values - .firstWhereOrNull((e) => e.value == channelItemSortField) ?? + return enums.ChannelItemSortField.values.firstWhereOrNull( + (e) => e.value == channelItemSortField, + ) ?? defaultValue ?? enums.ChannelItemSortField.swaggerGeneratedUnknown; } @@ -48369,18 +53738,21 @@ enums.ChannelItemSortField? channelItemSortFieldNullableFromJson( if (channelItemSortField == null) { return null; } - return enums.ChannelItemSortField.values - .firstWhereOrNull((e) => e.value == channelItemSortField) ?? + return enums.ChannelItemSortField.values.firstWhereOrNull( + (e) => e.value == channelItemSortField, + ) ?? defaultValue; } String channelItemSortFieldExplodedListToJson( - List? channelItemSortField) { + List? channelItemSortField, +) { return channelItemSortField?.map((e) => e.value!).join(',') ?? ''; } List channelItemSortFieldListToJson( - List? channelItemSortField) { + List? channelItemSortField, +) { if (channelItemSortField == null) { return []; } @@ -48415,12 +53787,14 @@ List? channelItemSortFieldNullableListFromJson( } String? channelMediaContentTypeNullableToJson( - enums.ChannelMediaContentType? channelMediaContentType) { + enums.ChannelMediaContentType? channelMediaContentType, +) { return channelMediaContentType?.value; } String? channelMediaContentTypeToJson( - enums.ChannelMediaContentType channelMediaContentType) { + enums.ChannelMediaContentType channelMediaContentType, +) { return channelMediaContentType.value; } @@ -48428,8 +53802,9 @@ enums.ChannelMediaContentType channelMediaContentTypeFromJson( Object? channelMediaContentType, [ enums.ChannelMediaContentType? defaultValue, ]) { - return enums.ChannelMediaContentType.values - .firstWhereOrNull((e) => e.value == channelMediaContentType) ?? + return enums.ChannelMediaContentType.values.firstWhereOrNull( + (e) => e.value == channelMediaContentType, + ) ?? defaultValue ?? enums.ChannelMediaContentType.swaggerGeneratedUnknown; } @@ -48441,18 +53816,21 @@ enums.ChannelMediaContentType? channelMediaContentTypeNullableFromJson( if (channelMediaContentType == null) { return null; } - return enums.ChannelMediaContentType.values - .firstWhereOrNull((e) => e.value == channelMediaContentType) ?? + return enums.ChannelMediaContentType.values.firstWhereOrNull( + (e) => e.value == channelMediaContentType, + ) ?? defaultValue; } String channelMediaContentTypeExplodedListToJson( - List? channelMediaContentType) { + List? channelMediaContentType, +) { return channelMediaContentType?.map((e) => e.value!).join(',') ?? ''; } List channelMediaContentTypeListToJson( - List? channelMediaContentType) { + List? channelMediaContentType, +) { if (channelMediaContentType == null) { return []; } @@ -48474,7 +53852,7 @@ List channelMediaContentTypeListFromJson( } List? - channelMediaContentTypeNullableListFromJson( +channelMediaContentTypeNullableListFromJson( List? channelMediaContentType, [ List? defaultValue, ]) { @@ -48488,7 +53866,8 @@ List? } String? channelMediaTypeNullableToJson( - enums.ChannelMediaType? channelMediaType) { + enums.ChannelMediaType? channelMediaType, +) { return channelMediaType?.value; } @@ -48500,8 +53879,9 @@ enums.ChannelMediaType channelMediaTypeFromJson( Object? channelMediaType, [ enums.ChannelMediaType? defaultValue, ]) { - return enums.ChannelMediaType.values - .firstWhereOrNull((e) => e.value == channelMediaType) ?? + return enums.ChannelMediaType.values.firstWhereOrNull( + (e) => e.value == channelMediaType, + ) ?? defaultValue ?? enums.ChannelMediaType.swaggerGeneratedUnknown; } @@ -48513,18 +53893,21 @@ enums.ChannelMediaType? channelMediaTypeNullableFromJson( if (channelMediaType == null) { return null; } - return enums.ChannelMediaType.values - .firstWhereOrNull((e) => e.value == channelMediaType) ?? + return enums.ChannelMediaType.values.firstWhereOrNull( + (e) => e.value == channelMediaType, + ) ?? defaultValue; } String channelMediaTypeExplodedListToJson( - List? channelMediaType) { + List? channelMediaType, +) { return channelMediaType?.map((e) => e.value!).join(',') ?? ''; } List channelMediaTypeListToJson( - List? channelMediaType) { + List? channelMediaType, +) { if (channelMediaType == null) { return []; } @@ -48570,8 +53953,9 @@ enums.ChannelType channelTypeFromJson( Object? channelType, [ enums.ChannelType? defaultValue, ]) { - return enums.ChannelType.values - .firstWhereOrNull((e) => e.value == channelType) ?? + return enums.ChannelType.values.firstWhereOrNull( + (e) => e.value == channelType, + ) ?? defaultValue ?? enums.ChannelType.swaggerGeneratedUnknown; } @@ -48583,8 +53967,9 @@ enums.ChannelType? channelTypeNullableFromJson( if (channelType == null) { return null; } - return enums.ChannelType.values - .firstWhereOrNull((e) => e.value == channelType) ?? + return enums.ChannelType.values.firstWhereOrNull( + (e) => e.value == channelType, + ) ?? defaultValue; } @@ -48696,8 +54081,9 @@ enums.CollectionType collectionTypeFromJson( Object? collectionType, [ enums.CollectionType? defaultValue, ]) { - return enums.CollectionType.values - .firstWhereOrNull((e) => e.value == collectionType) ?? + return enums.CollectionType.values.firstWhereOrNull( + (e) => e.value == collectionType, + ) ?? defaultValue ?? enums.CollectionType.swaggerGeneratedUnknown; } @@ -48709,18 +54095,21 @@ enums.CollectionType? collectionTypeNullableFromJson( if (collectionType == null) { return null; } - return enums.CollectionType.values - .firstWhereOrNull((e) => e.value == collectionType) ?? + return enums.CollectionType.values.firstWhereOrNull( + (e) => e.value == collectionType, + ) ?? defaultValue; } String collectionTypeExplodedListToJson( - List? collectionType) { + List? collectionType, +) { return collectionType?.map((e) => e.value!).join(',') ?? ''; } List collectionTypeListToJson( - List? collectionType) { + List? collectionType, +) { if (collectionType == null) { return []; } @@ -48755,12 +54144,14 @@ List? collectionTypeNullableListFromJson( } String? collectionTypeOptionsNullableToJson( - enums.CollectionTypeOptions? collectionTypeOptions) { + enums.CollectionTypeOptions? collectionTypeOptions, +) { return collectionTypeOptions?.value; } String? collectionTypeOptionsToJson( - enums.CollectionTypeOptions collectionTypeOptions) { + enums.CollectionTypeOptions collectionTypeOptions, +) { return collectionTypeOptions.value; } @@ -48768,8 +54159,9 @@ enums.CollectionTypeOptions collectionTypeOptionsFromJson( Object? collectionTypeOptions, [ enums.CollectionTypeOptions? defaultValue, ]) { - return enums.CollectionTypeOptions.values - .firstWhereOrNull((e) => e.value == collectionTypeOptions) ?? + return enums.CollectionTypeOptions.values.firstWhereOrNull( + (e) => e.value == collectionTypeOptions, + ) ?? defaultValue ?? enums.CollectionTypeOptions.swaggerGeneratedUnknown; } @@ -48781,18 +54173,21 @@ enums.CollectionTypeOptions? collectionTypeOptionsNullableFromJson( if (collectionTypeOptions == null) { return null; } - return enums.CollectionTypeOptions.values - .firstWhereOrNull((e) => e.value == collectionTypeOptions) ?? + return enums.CollectionTypeOptions.values.firstWhereOrNull( + (e) => e.value == collectionTypeOptions, + ) ?? defaultValue; } String collectionTypeOptionsExplodedListToJson( - List? collectionTypeOptions) { + List? collectionTypeOptions, +) { return collectionTypeOptions?.map((e) => e.value!).join(',') ?? ''; } List collectionTypeOptionsListToJson( - List? collectionTypeOptions) { + List? collectionTypeOptions, +) { if (collectionTypeOptions == null) { return []; } @@ -48900,8 +54295,9 @@ enums.DayPattern dayPatternFromJson( Object? dayPattern, [ enums.DayPattern? defaultValue, ]) { - return enums.DayPattern.values - .firstWhereOrNull((e) => e.value == dayPattern) ?? + return enums.DayPattern.values.firstWhereOrNull( + (e) => e.value == dayPattern, + ) ?? defaultValue ?? enums.DayPattern.swaggerGeneratedUnknown; } @@ -48913,8 +54309,9 @@ enums.DayPattern? dayPatternNullableFromJson( if (dayPattern == null) { return null; } - return enums.DayPattern.values - .firstWhereOrNull((e) => e.value == dayPattern) ?? + return enums.DayPattern.values.firstWhereOrNull( + (e) => e.value == dayPattern, + ) ?? defaultValue; } @@ -48953,7 +54350,8 @@ List? dayPatternNullableListFromJson( } String? deinterlaceMethodNullableToJson( - enums.DeinterlaceMethod? deinterlaceMethod) { + enums.DeinterlaceMethod? deinterlaceMethod, +) { return deinterlaceMethod?.value; } @@ -48965,8 +54363,9 @@ enums.DeinterlaceMethod deinterlaceMethodFromJson( Object? deinterlaceMethod, [ enums.DeinterlaceMethod? defaultValue, ]) { - return enums.DeinterlaceMethod.values - .firstWhereOrNull((e) => e.value == deinterlaceMethod) ?? + return enums.DeinterlaceMethod.values.firstWhereOrNull( + (e) => e.value == deinterlaceMethod, + ) ?? defaultValue ?? enums.DeinterlaceMethod.swaggerGeneratedUnknown; } @@ -48978,18 +54377,21 @@ enums.DeinterlaceMethod? deinterlaceMethodNullableFromJson( if (deinterlaceMethod == null) { return null; } - return enums.DeinterlaceMethod.values - .firstWhereOrNull((e) => e.value == deinterlaceMethod) ?? + return enums.DeinterlaceMethod.values.firstWhereOrNull( + (e) => e.value == deinterlaceMethod, + ) ?? defaultValue; } String deinterlaceMethodExplodedListToJson( - List? deinterlaceMethod) { + List? deinterlaceMethod, +) { return deinterlaceMethod?.map((e) => e.value!).join(',') ?? ''; } List deinterlaceMethodListToJson( - List? deinterlaceMethod) { + List? deinterlaceMethod, +) { if (deinterlaceMethod == null) { return []; } @@ -49035,8 +54437,9 @@ enums.DlnaProfileType dlnaProfileTypeFromJson( Object? dlnaProfileType, [ enums.DlnaProfileType? defaultValue, ]) { - return enums.DlnaProfileType.values - .firstWhereOrNull((e) => e.value == dlnaProfileType) ?? + return enums.DlnaProfileType.values.firstWhereOrNull( + (e) => e.value == dlnaProfileType, + ) ?? defaultValue ?? enums.DlnaProfileType.swaggerGeneratedUnknown; } @@ -49048,18 +54451,21 @@ enums.DlnaProfileType? dlnaProfileTypeNullableFromJson( if (dlnaProfileType == null) { return null; } - return enums.DlnaProfileType.values - .firstWhereOrNull((e) => e.value == dlnaProfileType) ?? + return enums.DlnaProfileType.values.firstWhereOrNull( + (e) => e.value == dlnaProfileType, + ) ?? defaultValue; } String dlnaProfileTypeExplodedListToJson( - List? dlnaProfileType) { + List? dlnaProfileType, +) { return dlnaProfileType?.map((e) => e.value!).join(',') ?? ''; } List dlnaProfileTypeListToJson( - List? dlnaProfileType) { + List? dlnaProfileType, +) { if (dlnaProfileType == null) { return []; } @@ -49094,12 +54500,14 @@ List? dlnaProfileTypeNullableListFromJson( } String? downMixStereoAlgorithmsNullableToJson( - enums.DownMixStereoAlgorithms? downMixStereoAlgorithms) { + enums.DownMixStereoAlgorithms? downMixStereoAlgorithms, +) { return downMixStereoAlgorithms?.value; } String? downMixStereoAlgorithmsToJson( - enums.DownMixStereoAlgorithms downMixStereoAlgorithms) { + enums.DownMixStereoAlgorithms downMixStereoAlgorithms, +) { return downMixStereoAlgorithms.value; } @@ -49107,8 +54515,9 @@ enums.DownMixStereoAlgorithms downMixStereoAlgorithmsFromJson( Object? downMixStereoAlgorithms, [ enums.DownMixStereoAlgorithms? defaultValue, ]) { - return enums.DownMixStereoAlgorithms.values - .firstWhereOrNull((e) => e.value == downMixStereoAlgorithms) ?? + return enums.DownMixStereoAlgorithms.values.firstWhereOrNull( + (e) => e.value == downMixStereoAlgorithms, + ) ?? defaultValue ?? enums.DownMixStereoAlgorithms.swaggerGeneratedUnknown; } @@ -49120,18 +54529,21 @@ enums.DownMixStereoAlgorithms? downMixStereoAlgorithmsNullableFromJson( if (downMixStereoAlgorithms == null) { return null; } - return enums.DownMixStereoAlgorithms.values - .firstWhereOrNull((e) => e.value == downMixStereoAlgorithms) ?? + return enums.DownMixStereoAlgorithms.values.firstWhereOrNull( + (e) => e.value == downMixStereoAlgorithms, + ) ?? defaultValue; } String downMixStereoAlgorithmsExplodedListToJson( - List? downMixStereoAlgorithms) { + List? downMixStereoAlgorithms, +) { return downMixStereoAlgorithms?.map((e) => e.value!).join(',') ?? ''; } List downMixStereoAlgorithmsListToJson( - List? downMixStereoAlgorithms) { + List? downMixStereoAlgorithms, +) { if (downMixStereoAlgorithms == null) { return []; } @@ -49153,7 +54565,7 @@ List downMixStereoAlgorithmsListFromJson( } List? - downMixStereoAlgorithmsNullableListFromJson( +downMixStereoAlgorithmsNullableListFromJson( List? downMixStereoAlgorithms, [ List? defaultValue, ]) { @@ -49167,7 +54579,8 @@ List? } String? dynamicDayOfWeekNullableToJson( - enums.DynamicDayOfWeek? dynamicDayOfWeek) { + enums.DynamicDayOfWeek? dynamicDayOfWeek, +) { return dynamicDayOfWeek?.value; } @@ -49179,8 +54592,9 @@ enums.DynamicDayOfWeek dynamicDayOfWeekFromJson( Object? dynamicDayOfWeek, [ enums.DynamicDayOfWeek? defaultValue, ]) { - return enums.DynamicDayOfWeek.values - .firstWhereOrNull((e) => e.value == dynamicDayOfWeek) ?? + return enums.DynamicDayOfWeek.values.firstWhereOrNull( + (e) => e.value == dynamicDayOfWeek, + ) ?? defaultValue ?? enums.DynamicDayOfWeek.swaggerGeneratedUnknown; } @@ -49192,18 +54606,21 @@ enums.DynamicDayOfWeek? dynamicDayOfWeekNullableFromJson( if (dynamicDayOfWeek == null) { return null; } - return enums.DynamicDayOfWeek.values - .firstWhereOrNull((e) => e.value == dynamicDayOfWeek) ?? + return enums.DynamicDayOfWeek.values.firstWhereOrNull( + (e) => e.value == dynamicDayOfWeek, + ) ?? defaultValue; } String dynamicDayOfWeekExplodedListToJson( - List? dynamicDayOfWeek) { + List? dynamicDayOfWeek, +) { return dynamicDayOfWeek?.map((e) => e.value!).join(',') ?? ''; } List dynamicDayOfWeekListToJson( - List? dynamicDayOfWeek) { + List? dynamicDayOfWeek, +) { if (dynamicDayOfWeek == null) { return []; } @@ -49238,12 +54655,14 @@ List? dynamicDayOfWeekNullableListFromJson( } String? embeddedSubtitleOptionsNullableToJson( - enums.EmbeddedSubtitleOptions? embeddedSubtitleOptions) { + enums.EmbeddedSubtitleOptions? embeddedSubtitleOptions, +) { return embeddedSubtitleOptions?.value; } String? embeddedSubtitleOptionsToJson( - enums.EmbeddedSubtitleOptions embeddedSubtitleOptions) { + enums.EmbeddedSubtitleOptions embeddedSubtitleOptions, +) { return embeddedSubtitleOptions.value; } @@ -49251,8 +54670,9 @@ enums.EmbeddedSubtitleOptions embeddedSubtitleOptionsFromJson( Object? embeddedSubtitleOptions, [ enums.EmbeddedSubtitleOptions? defaultValue, ]) { - return enums.EmbeddedSubtitleOptions.values - .firstWhereOrNull((e) => e.value == embeddedSubtitleOptions) ?? + return enums.EmbeddedSubtitleOptions.values.firstWhereOrNull( + (e) => e.value == embeddedSubtitleOptions, + ) ?? defaultValue ?? enums.EmbeddedSubtitleOptions.swaggerGeneratedUnknown; } @@ -49264,18 +54684,21 @@ enums.EmbeddedSubtitleOptions? embeddedSubtitleOptionsNullableFromJson( if (embeddedSubtitleOptions == null) { return null; } - return enums.EmbeddedSubtitleOptions.values - .firstWhereOrNull((e) => e.value == embeddedSubtitleOptions) ?? + return enums.EmbeddedSubtitleOptions.values.firstWhereOrNull( + (e) => e.value == embeddedSubtitleOptions, + ) ?? defaultValue; } String embeddedSubtitleOptionsExplodedListToJson( - List? embeddedSubtitleOptions) { + List? embeddedSubtitleOptions, +) { return embeddedSubtitleOptions?.map((e) => e.value!).join(',') ?? ''; } List embeddedSubtitleOptionsListToJson( - List? embeddedSubtitleOptions) { + List? embeddedSubtitleOptions, +) { if (embeddedSubtitleOptions == null) { return []; } @@ -49297,7 +54720,7 @@ List embeddedSubtitleOptionsListFromJson( } List? - embeddedSubtitleOptionsNullableListFromJson( +embeddedSubtitleOptionsNullableListFromJson( List? embeddedSubtitleOptions, [ List? defaultValue, ]) { @@ -49322,8 +54745,9 @@ enums.EncoderPreset encoderPresetFromJson( Object? encoderPreset, [ enums.EncoderPreset? defaultValue, ]) { - return enums.EncoderPreset.values - .firstWhereOrNull((e) => e.value == encoderPreset) ?? + return enums.EncoderPreset.values.firstWhereOrNull( + (e) => e.value == encoderPreset, + ) ?? defaultValue ?? enums.EncoderPreset.swaggerGeneratedUnknown; } @@ -49335,13 +54759,15 @@ enums.EncoderPreset? encoderPresetNullableFromJson( if (encoderPreset == null) { return null; } - return enums.EncoderPreset.values - .firstWhereOrNull((e) => e.value == encoderPreset) ?? + return enums.EncoderPreset.values.firstWhereOrNull( + (e) => e.value == encoderPreset, + ) ?? defaultValue; } String encoderPresetExplodedListToJson( - List? encoderPreset) { + List? encoderPreset, +) { return encoderPreset?.map((e) => e.value!).join(',') ?? ''; } @@ -49387,8 +54813,9 @@ enums.EncodingContext encodingContextFromJson( Object? encodingContext, [ enums.EncodingContext? defaultValue, ]) { - return enums.EncodingContext.values - .firstWhereOrNull((e) => e.value == encodingContext) ?? + return enums.EncodingContext.values.firstWhereOrNull( + (e) => e.value == encodingContext, + ) ?? defaultValue ?? enums.EncodingContext.swaggerGeneratedUnknown; } @@ -49400,18 +54827,21 @@ enums.EncodingContext? encodingContextNullableFromJson( if (encodingContext == null) { return null; } - return enums.EncodingContext.values - .firstWhereOrNull((e) => e.value == encodingContext) ?? + return enums.EncodingContext.values.firstWhereOrNull( + (e) => e.value == encodingContext, + ) ?? defaultValue; } String encodingContextExplodedListToJson( - List? encodingContext) { + List? encodingContext, +) { return encodingContext?.map((e) => e.value!).join(',') ?? ''; } List encodingContextListToJson( - List? encodingContext) { + List? encodingContext, +) { if (encodingContext == null) { return []; } @@ -49446,12 +54876,14 @@ List? encodingContextNullableListFromJson( } String? externalIdMediaTypeNullableToJson( - enums.ExternalIdMediaType? externalIdMediaType) { + enums.ExternalIdMediaType? externalIdMediaType, +) { return externalIdMediaType?.value; } String? externalIdMediaTypeToJson( - enums.ExternalIdMediaType externalIdMediaType) { + enums.ExternalIdMediaType externalIdMediaType, +) { return externalIdMediaType.value; } @@ -49459,8 +54891,9 @@ enums.ExternalIdMediaType externalIdMediaTypeFromJson( Object? externalIdMediaType, [ enums.ExternalIdMediaType? defaultValue, ]) { - return enums.ExternalIdMediaType.values - .firstWhereOrNull((e) => e.value == externalIdMediaType) ?? + return enums.ExternalIdMediaType.values.firstWhereOrNull( + (e) => e.value == externalIdMediaType, + ) ?? defaultValue ?? enums.ExternalIdMediaType.swaggerGeneratedUnknown; } @@ -49472,18 +54905,21 @@ enums.ExternalIdMediaType? externalIdMediaTypeNullableFromJson( if (externalIdMediaType == null) { return null; } - return enums.ExternalIdMediaType.values - .firstWhereOrNull((e) => e.value == externalIdMediaType) ?? + return enums.ExternalIdMediaType.values.firstWhereOrNull( + (e) => e.value == externalIdMediaType, + ) ?? defaultValue; } String externalIdMediaTypeExplodedListToJson( - List? externalIdMediaType) { + List? externalIdMediaType, +) { return externalIdMediaType?.map((e) => e.value!).join(',') ?? ''; } List externalIdMediaTypeListToJson( - List? externalIdMediaType) { + List? externalIdMediaType, +) { if (externalIdMediaType == null) { return []; } @@ -49580,12 +55016,14 @@ List? extraTypeNullableListFromJson( } String? fileSystemEntryTypeNullableToJson( - enums.FileSystemEntryType? fileSystemEntryType) { + enums.FileSystemEntryType? fileSystemEntryType, +) { return fileSystemEntryType?.value; } String? fileSystemEntryTypeToJson( - enums.FileSystemEntryType fileSystemEntryType) { + enums.FileSystemEntryType fileSystemEntryType, +) { return fileSystemEntryType.value; } @@ -49593,8 +55031,9 @@ enums.FileSystemEntryType fileSystemEntryTypeFromJson( Object? fileSystemEntryType, [ enums.FileSystemEntryType? defaultValue, ]) { - return enums.FileSystemEntryType.values - .firstWhereOrNull((e) => e.value == fileSystemEntryType) ?? + return enums.FileSystemEntryType.values.firstWhereOrNull( + (e) => e.value == fileSystemEntryType, + ) ?? defaultValue ?? enums.FileSystemEntryType.swaggerGeneratedUnknown; } @@ -49606,18 +55045,21 @@ enums.FileSystemEntryType? fileSystemEntryTypeNullableFromJson( if (fileSystemEntryType == null) { return null; } - return enums.FileSystemEntryType.values - .firstWhereOrNull((e) => e.value == fileSystemEntryType) ?? + return enums.FileSystemEntryType.values.firstWhereOrNull( + (e) => e.value == fileSystemEntryType, + ) ?? defaultValue; } String fileSystemEntryTypeExplodedListToJson( - List? fileSystemEntryType) { + List? fileSystemEntryType, +) { return fileSystemEntryType?.map((e) => e.value!).join(',') ?? ''; } List fileSystemEntryTypeListToJson( - List? fileSystemEntryType) { + List? fileSystemEntryType, +) { if (fileSystemEntryType == null) { return []; } @@ -49652,12 +55094,14 @@ List? fileSystemEntryTypeNullableListFromJson( } String? forgotPasswordActionNullableToJson( - enums.ForgotPasswordAction? forgotPasswordAction) { + enums.ForgotPasswordAction? forgotPasswordAction, +) { return forgotPasswordAction?.value; } String? forgotPasswordActionToJson( - enums.ForgotPasswordAction forgotPasswordAction) { + enums.ForgotPasswordAction forgotPasswordAction, +) { return forgotPasswordAction.value; } @@ -49665,8 +55109,9 @@ enums.ForgotPasswordAction forgotPasswordActionFromJson( Object? forgotPasswordAction, [ enums.ForgotPasswordAction? defaultValue, ]) { - return enums.ForgotPasswordAction.values - .firstWhereOrNull((e) => e.value == forgotPasswordAction) ?? + return enums.ForgotPasswordAction.values.firstWhereOrNull( + (e) => e.value == forgotPasswordAction, + ) ?? defaultValue ?? enums.ForgotPasswordAction.swaggerGeneratedUnknown; } @@ -49678,18 +55123,21 @@ enums.ForgotPasswordAction? forgotPasswordActionNullableFromJson( if (forgotPasswordAction == null) { return null; } - return enums.ForgotPasswordAction.values - .firstWhereOrNull((e) => e.value == forgotPasswordAction) ?? + return enums.ForgotPasswordAction.values.firstWhereOrNull( + (e) => e.value == forgotPasswordAction, + ) ?? defaultValue; } String forgotPasswordActionExplodedListToJson( - List? forgotPasswordAction) { + List? forgotPasswordAction, +) { return forgotPasswordAction?.map((e) => e.value!).join(',') ?? ''; } List forgotPasswordActionListToJson( - List? forgotPasswordAction) { + List? forgotPasswordAction, +) { if (forgotPasswordAction == null) { return []; } @@ -49724,7 +55172,8 @@ List? forgotPasswordActionNullableListFromJson( } String? generalCommandTypeNullableToJson( - enums.GeneralCommandType? generalCommandType) { + enums.GeneralCommandType? generalCommandType, +) { return generalCommandType?.value; } @@ -49736,8 +55185,9 @@ enums.GeneralCommandType generalCommandTypeFromJson( Object? generalCommandType, [ enums.GeneralCommandType? defaultValue, ]) { - return enums.GeneralCommandType.values - .firstWhereOrNull((e) => e.value == generalCommandType) ?? + return enums.GeneralCommandType.values.firstWhereOrNull( + (e) => e.value == generalCommandType, + ) ?? defaultValue ?? enums.GeneralCommandType.swaggerGeneratedUnknown; } @@ -49749,18 +55199,21 @@ enums.GeneralCommandType? generalCommandTypeNullableFromJson( if (generalCommandType == null) { return null; } - return enums.GeneralCommandType.values - .firstWhereOrNull((e) => e.value == generalCommandType) ?? + return enums.GeneralCommandType.values.firstWhereOrNull( + (e) => e.value == generalCommandType, + ) ?? defaultValue; } String generalCommandTypeExplodedListToJson( - List? generalCommandType) { + List? generalCommandType, +) { return generalCommandType?.map((e) => e.value!).join(',') ?? ''; } List generalCommandTypeListToJson( - List? generalCommandType) { + List? generalCommandType, +) { if (generalCommandType == null) { return []; } @@ -49806,8 +55259,9 @@ enums.GroupQueueMode groupQueueModeFromJson( Object? groupQueueMode, [ enums.GroupQueueMode? defaultValue, ]) { - return enums.GroupQueueMode.values - .firstWhereOrNull((e) => e.value == groupQueueMode) ?? + return enums.GroupQueueMode.values.firstWhereOrNull( + (e) => e.value == groupQueueMode, + ) ?? defaultValue ?? enums.GroupQueueMode.swaggerGeneratedUnknown; } @@ -49819,18 +55273,21 @@ enums.GroupQueueMode? groupQueueModeNullableFromJson( if (groupQueueMode == null) { return null; } - return enums.GroupQueueMode.values - .firstWhereOrNull((e) => e.value == groupQueueMode) ?? + return enums.GroupQueueMode.values.firstWhereOrNull( + (e) => e.value == groupQueueMode, + ) ?? defaultValue; } String groupQueueModeExplodedListToJson( - List? groupQueueMode) { + List? groupQueueMode, +) { return groupQueueMode?.map((e) => e.value!).join(',') ?? ''; } List groupQueueModeListToJson( - List? groupQueueMode) { + List? groupQueueMode, +) { if (groupQueueMode == null) { return []; } @@ -49876,8 +55333,9 @@ enums.GroupRepeatMode groupRepeatModeFromJson( Object? groupRepeatMode, [ enums.GroupRepeatMode? defaultValue, ]) { - return enums.GroupRepeatMode.values - .firstWhereOrNull((e) => e.value == groupRepeatMode) ?? + return enums.GroupRepeatMode.values.firstWhereOrNull( + (e) => e.value == groupRepeatMode, + ) ?? defaultValue ?? enums.GroupRepeatMode.swaggerGeneratedUnknown; } @@ -49889,18 +55347,21 @@ enums.GroupRepeatMode? groupRepeatModeNullableFromJson( if (groupRepeatMode == null) { return null; } - return enums.GroupRepeatMode.values - .firstWhereOrNull((e) => e.value == groupRepeatMode) ?? + return enums.GroupRepeatMode.values.firstWhereOrNull( + (e) => e.value == groupRepeatMode, + ) ?? defaultValue; } String groupRepeatModeExplodedListToJson( - List? groupRepeatMode) { + List? groupRepeatMode, +) { return groupRepeatMode?.map((e) => e.value!).join(',') ?? ''; } List groupRepeatModeListToJson( - List? groupRepeatMode) { + List? groupRepeatMode, +) { if (groupRepeatMode == null) { return []; } @@ -49935,7 +55396,8 @@ List? groupRepeatModeNullableListFromJson( } String? groupShuffleModeNullableToJson( - enums.GroupShuffleMode? groupShuffleMode) { + enums.GroupShuffleMode? groupShuffleMode, +) { return groupShuffleMode?.value; } @@ -49947,8 +55409,9 @@ enums.GroupShuffleMode groupShuffleModeFromJson( Object? groupShuffleMode, [ enums.GroupShuffleMode? defaultValue, ]) { - return enums.GroupShuffleMode.values - .firstWhereOrNull((e) => e.value == groupShuffleMode) ?? + return enums.GroupShuffleMode.values.firstWhereOrNull( + (e) => e.value == groupShuffleMode, + ) ?? defaultValue ?? enums.GroupShuffleMode.swaggerGeneratedUnknown; } @@ -49960,18 +55423,21 @@ enums.GroupShuffleMode? groupShuffleModeNullableFromJson( if (groupShuffleMode == null) { return null; } - return enums.GroupShuffleMode.values - .firstWhereOrNull((e) => e.value == groupShuffleMode) ?? + return enums.GroupShuffleMode.values.firstWhereOrNull( + (e) => e.value == groupShuffleMode, + ) ?? defaultValue; } String groupShuffleModeExplodedListToJson( - List? groupShuffleMode) { + List? groupShuffleMode, +) { return groupShuffleMode?.map((e) => e.value!).join(',') ?? ''; } List groupShuffleModeListToJson( - List? groupShuffleMode) { + List? groupShuffleMode, +) { if (groupShuffleMode == null) { return []; } @@ -50017,8 +55483,9 @@ enums.GroupStateType groupStateTypeFromJson( Object? groupStateType, [ enums.GroupStateType? defaultValue, ]) { - return enums.GroupStateType.values - .firstWhereOrNull((e) => e.value == groupStateType) ?? + return enums.GroupStateType.values.firstWhereOrNull( + (e) => e.value == groupStateType, + ) ?? defaultValue ?? enums.GroupStateType.swaggerGeneratedUnknown; } @@ -50030,18 +55497,21 @@ enums.GroupStateType? groupStateTypeNullableFromJson( if (groupStateType == null) { return null; } - return enums.GroupStateType.values - .firstWhereOrNull((e) => e.value == groupStateType) ?? + return enums.GroupStateType.values.firstWhereOrNull( + (e) => e.value == groupStateType, + ) ?? defaultValue; } String groupStateTypeExplodedListToJson( - List? groupStateType) { + List? groupStateType, +) { return groupStateType?.map((e) => e.value!).join(',') ?? ''; } List groupStateTypeListToJson( - List? groupStateType) { + List? groupStateType, +) { if (groupStateType == null) { return []; } @@ -50087,8 +55557,9 @@ enums.GroupUpdateType groupUpdateTypeFromJson( Object? groupUpdateType, [ enums.GroupUpdateType? defaultValue, ]) { - return enums.GroupUpdateType.values - .firstWhereOrNull((e) => e.value == groupUpdateType) ?? + return enums.GroupUpdateType.values.firstWhereOrNull( + (e) => e.value == groupUpdateType, + ) ?? defaultValue ?? enums.GroupUpdateType.swaggerGeneratedUnknown; } @@ -50100,18 +55571,21 @@ enums.GroupUpdateType? groupUpdateTypeNullableFromJson( if (groupUpdateType == null) { return null; } - return enums.GroupUpdateType.values - .firstWhereOrNull((e) => e.value == groupUpdateType) ?? + return enums.GroupUpdateType.values.firstWhereOrNull( + (e) => e.value == groupUpdateType, + ) ?? defaultValue; } String groupUpdateTypeExplodedListToJson( - List? groupUpdateType) { + List? groupUpdateType, +) { return groupUpdateType?.map((e) => e.value!).join(',') ?? ''; } List groupUpdateTypeListToJson( - List? groupUpdateType) { + List? groupUpdateType, +) { if (groupUpdateType == null) { return []; } @@ -50146,12 +55620,14 @@ List? groupUpdateTypeNullableListFromJson( } String? hardwareAccelerationTypeNullableToJson( - enums.HardwareAccelerationType? hardwareAccelerationType) { + enums.HardwareAccelerationType? hardwareAccelerationType, +) { return hardwareAccelerationType?.value; } String? hardwareAccelerationTypeToJson( - enums.HardwareAccelerationType hardwareAccelerationType) { + enums.HardwareAccelerationType hardwareAccelerationType, +) { return hardwareAccelerationType.value; } @@ -50159,8 +55635,9 @@ enums.HardwareAccelerationType hardwareAccelerationTypeFromJson( Object? hardwareAccelerationType, [ enums.HardwareAccelerationType? defaultValue, ]) { - return enums.HardwareAccelerationType.values - .firstWhereOrNull((e) => e.value == hardwareAccelerationType) ?? + return enums.HardwareAccelerationType.values.firstWhereOrNull( + (e) => e.value == hardwareAccelerationType, + ) ?? defaultValue ?? enums.HardwareAccelerationType.swaggerGeneratedUnknown; } @@ -50172,18 +55649,21 @@ enums.HardwareAccelerationType? hardwareAccelerationTypeNullableFromJson( if (hardwareAccelerationType == null) { return null; } - return enums.HardwareAccelerationType.values - .firstWhereOrNull((e) => e.value == hardwareAccelerationType) ?? + return enums.HardwareAccelerationType.values.firstWhereOrNull( + (e) => e.value == hardwareAccelerationType, + ) ?? defaultValue; } String hardwareAccelerationTypeExplodedListToJson( - List? hardwareAccelerationType) { + List? hardwareAccelerationType, +) { return hardwareAccelerationType?.map((e) => e.value!).join(',') ?? ''; } List hardwareAccelerationTypeListToJson( - List? hardwareAccelerationType) { + List? hardwareAccelerationType, +) { if (hardwareAccelerationType == null) { return []; } @@ -50205,7 +55685,7 @@ List hardwareAccelerationTypeListFromJson( } List? - hardwareAccelerationTypeNullableListFromJson( +hardwareAccelerationTypeNullableListFromJson( List? hardwareAccelerationType, [ List? defaultValue, ]) { @@ -50230,8 +55710,9 @@ enums.ImageFormat imageFormatFromJson( Object? imageFormat, [ enums.ImageFormat? defaultValue, ]) { - return enums.ImageFormat.values - .firstWhereOrNull((e) => e.value == imageFormat) ?? + return enums.ImageFormat.values.firstWhereOrNull( + (e) => e.value == imageFormat, + ) ?? defaultValue ?? enums.ImageFormat.swaggerGeneratedUnknown; } @@ -50243,8 +55724,9 @@ enums.ImageFormat? imageFormatNullableFromJson( if (imageFormat == null) { return null; } - return enums.ImageFormat.values - .firstWhereOrNull((e) => e.value == imageFormat) ?? + return enums.ImageFormat.values.firstWhereOrNull( + (e) => e.value == imageFormat, + ) ?? defaultValue; } @@ -50283,7 +55765,8 @@ List? imageFormatNullableListFromJson( } String? imageOrientationNullableToJson( - enums.ImageOrientation? imageOrientation) { + enums.ImageOrientation? imageOrientation, +) { return imageOrientation?.value; } @@ -50295,8 +55778,9 @@ enums.ImageOrientation imageOrientationFromJson( Object? imageOrientation, [ enums.ImageOrientation? defaultValue, ]) { - return enums.ImageOrientation.values - .firstWhereOrNull((e) => e.value == imageOrientation) ?? + return enums.ImageOrientation.values.firstWhereOrNull( + (e) => e.value == imageOrientation, + ) ?? defaultValue ?? enums.ImageOrientation.swaggerGeneratedUnknown; } @@ -50308,18 +55792,21 @@ enums.ImageOrientation? imageOrientationNullableFromJson( if (imageOrientation == null) { return null; } - return enums.ImageOrientation.values - .firstWhereOrNull((e) => e.value == imageOrientation) ?? + return enums.ImageOrientation.values.firstWhereOrNull( + (e) => e.value == imageOrientation, + ) ?? defaultValue; } String imageOrientationExplodedListToJson( - List? imageOrientation) { + List? imageOrientation, +) { return imageOrientation?.map((e) => e.value!).join(',') ?? ''; } List imageOrientationListToJson( - List? imageOrientation) { + List? imageOrientation, +) { if (imageOrientation == null) { return []; } @@ -50365,8 +55852,9 @@ enums.ImageResolution imageResolutionFromJson( Object? imageResolution, [ enums.ImageResolution? defaultValue, ]) { - return enums.ImageResolution.values - .firstWhereOrNull((e) => e.value == imageResolution) ?? + return enums.ImageResolution.values.firstWhereOrNull( + (e) => e.value == imageResolution, + ) ?? defaultValue ?? enums.ImageResolution.swaggerGeneratedUnknown; } @@ -50378,18 +55866,21 @@ enums.ImageResolution? imageResolutionNullableFromJson( if (imageResolution == null) { return null; } - return enums.ImageResolution.values - .firstWhereOrNull((e) => e.value == imageResolution) ?? + return enums.ImageResolution.values.firstWhereOrNull( + (e) => e.value == imageResolution, + ) ?? defaultValue; } String imageResolutionExplodedListToJson( - List? imageResolution) { + List? imageResolution, +) { return imageResolution?.map((e) => e.value!).join(',') ?? ''; } List imageResolutionListToJson( - List? imageResolution) { + List? imageResolution, +) { if (imageResolution == null) { return []; } @@ -50424,12 +55915,14 @@ List? imageResolutionNullableListFromJson( } String? imageSavingConventionNullableToJson( - enums.ImageSavingConvention? imageSavingConvention) { + enums.ImageSavingConvention? imageSavingConvention, +) { return imageSavingConvention?.value; } String? imageSavingConventionToJson( - enums.ImageSavingConvention imageSavingConvention) { + enums.ImageSavingConvention imageSavingConvention, +) { return imageSavingConvention.value; } @@ -50437,8 +55930,9 @@ enums.ImageSavingConvention imageSavingConventionFromJson( Object? imageSavingConvention, [ enums.ImageSavingConvention? defaultValue, ]) { - return enums.ImageSavingConvention.values - .firstWhereOrNull((e) => e.value == imageSavingConvention) ?? + return enums.ImageSavingConvention.values.firstWhereOrNull( + (e) => e.value == imageSavingConvention, + ) ?? defaultValue ?? enums.ImageSavingConvention.swaggerGeneratedUnknown; } @@ -50450,18 +55944,21 @@ enums.ImageSavingConvention? imageSavingConventionNullableFromJson( if (imageSavingConvention == null) { return null; } - return enums.ImageSavingConvention.values - .firstWhereOrNull((e) => e.value == imageSavingConvention) ?? + return enums.ImageSavingConvention.values.firstWhereOrNull( + (e) => e.value == imageSavingConvention, + ) ?? defaultValue; } String imageSavingConventionExplodedListToJson( - List? imageSavingConvention) { + List? imageSavingConvention, +) { return imageSavingConvention?.map((e) => e.value!).join(',') ?? ''; } List imageSavingConventionListToJson( - List? imageSavingConvention) { + List? imageSavingConvention, +) { if (imageSavingConvention == null) { return []; } @@ -50565,10 +56062,7 @@ String? isoTypeToJson(enums.IsoType isoType) { return isoType.value; } -enums.IsoType isoTypeFromJson( - Object? isoType, [ - enums.IsoType? defaultValue, -]) { +enums.IsoType isoTypeFromJson(Object? isoType, [enums.IsoType? defaultValue]) { return enums.IsoType.values.firstWhereOrNull((e) => e.value == isoType) ?? defaultValue ?? enums.IsoType.swaggerGeneratedUnknown; @@ -50631,8 +56125,9 @@ enums.ItemFields itemFieldsFromJson( Object? itemFields, [ enums.ItemFields? defaultValue, ]) { - return enums.ItemFields.values - .firstWhereOrNull((e) => e.value == itemFields) ?? + return enums.ItemFields.values.firstWhereOrNull( + (e) => e.value == itemFields, + ) ?? defaultValue ?? enums.ItemFields.swaggerGeneratedUnknown; } @@ -50644,8 +56139,9 @@ enums.ItemFields? itemFieldsNullableFromJson( if (itemFields == null) { return null; } - return enums.ItemFields.values - .firstWhereOrNull((e) => e.value == itemFields) ?? + return enums.ItemFields.values.firstWhereOrNull( + (e) => e.value == itemFields, + ) ?? defaultValue; } @@ -50695,8 +56191,9 @@ enums.ItemFilter itemFilterFromJson( Object? itemFilter, [ enums.ItemFilter? defaultValue, ]) { - return enums.ItemFilter.values - .firstWhereOrNull((e) => e.value == itemFilter) ?? + return enums.ItemFilter.values.firstWhereOrNull( + (e) => e.value == itemFilter, + ) ?? defaultValue ?? enums.ItemFilter.swaggerGeneratedUnknown; } @@ -50708,8 +56205,9 @@ enums.ItemFilter? itemFilterNullableFromJson( if (itemFilter == null) { return null; } - return enums.ItemFilter.values - .firstWhereOrNull((e) => e.value == itemFilter) ?? + return enums.ItemFilter.values.firstWhereOrNull( + (e) => e.value == itemFilter, + ) ?? defaultValue; } @@ -50759,8 +56257,9 @@ enums.ItemSortBy itemSortByFromJson( Object? itemSortBy, [ enums.ItemSortBy? defaultValue, ]) { - return enums.ItemSortBy.values - .firstWhereOrNull((e) => e.value == itemSortBy) ?? + return enums.ItemSortBy.values.firstWhereOrNull( + (e) => e.value == itemSortBy, + ) ?? defaultValue ?? enums.ItemSortBy.swaggerGeneratedUnknown; } @@ -50772,8 +56271,9 @@ enums.ItemSortBy? itemSortByNullableFromJson( if (itemSortBy == null) { return null; } - return enums.ItemSortBy.values - .firstWhereOrNull((e) => e.value == itemSortBy) ?? + return enums.ItemSortBy.values.firstWhereOrNull( + (e) => e.value == itemSortBy, + ) ?? defaultValue; } @@ -50874,12 +56374,14 @@ List? keepUntilNullableListFromJson( } String? liveTvServiceStatusNullableToJson( - enums.LiveTvServiceStatus? liveTvServiceStatus) { + enums.LiveTvServiceStatus? liveTvServiceStatus, +) { return liveTvServiceStatus?.value; } String? liveTvServiceStatusToJson( - enums.LiveTvServiceStatus liveTvServiceStatus) { + enums.LiveTvServiceStatus liveTvServiceStatus, +) { return liveTvServiceStatus.value; } @@ -50887,8 +56389,9 @@ enums.LiveTvServiceStatus liveTvServiceStatusFromJson( Object? liveTvServiceStatus, [ enums.LiveTvServiceStatus? defaultValue, ]) { - return enums.LiveTvServiceStatus.values - .firstWhereOrNull((e) => e.value == liveTvServiceStatus) ?? + return enums.LiveTvServiceStatus.values.firstWhereOrNull( + (e) => e.value == liveTvServiceStatus, + ) ?? defaultValue ?? enums.LiveTvServiceStatus.swaggerGeneratedUnknown; } @@ -50900,18 +56403,21 @@ enums.LiveTvServiceStatus? liveTvServiceStatusNullableFromJson( if (liveTvServiceStatus == null) { return null; } - return enums.LiveTvServiceStatus.values - .firstWhereOrNull((e) => e.value == liveTvServiceStatus) ?? + return enums.LiveTvServiceStatus.values.firstWhereOrNull( + (e) => e.value == liveTvServiceStatus, + ) ?? defaultValue; } String liveTvServiceStatusExplodedListToJson( - List? liveTvServiceStatus) { + List? liveTvServiceStatus, +) { return liveTvServiceStatus?.map((e) => e.value!).join(',') ?? ''; } List liveTvServiceStatusListToJson( - List? liveTvServiceStatus) { + List? liveTvServiceStatus, +) { if (liveTvServiceStatus == null) { return []; } @@ -50957,8 +56463,9 @@ enums.LocationType locationTypeFromJson( Object? locationType, [ enums.LocationType? defaultValue, ]) { - return enums.LocationType.values - .firstWhereOrNull((e) => e.value == locationType) ?? + return enums.LocationType.values.firstWhereOrNull( + (e) => e.value == locationType, + ) ?? defaultValue ?? enums.LocationType.swaggerGeneratedUnknown; } @@ -50970,8 +56477,9 @@ enums.LocationType? locationTypeNullableFromJson( if (locationType == null) { return null; } - return enums.LocationType.values - .firstWhereOrNull((e) => e.value == locationType) ?? + return enums.LocationType.values.firstWhereOrNull( + (e) => e.value == locationType, + ) ?? defaultValue; } @@ -51083,8 +56591,9 @@ enums.MediaProtocol mediaProtocolFromJson( Object? mediaProtocol, [ enums.MediaProtocol? defaultValue, ]) { - return enums.MediaProtocol.values - .firstWhereOrNull((e) => e.value == mediaProtocol) ?? + return enums.MediaProtocol.values.firstWhereOrNull( + (e) => e.value == mediaProtocol, + ) ?? defaultValue ?? enums.MediaProtocol.swaggerGeneratedUnknown; } @@ -51096,13 +56605,15 @@ enums.MediaProtocol? mediaProtocolNullableFromJson( if (mediaProtocol == null) { return null; } - return enums.MediaProtocol.values - .firstWhereOrNull((e) => e.value == mediaProtocol) ?? + return enums.MediaProtocol.values.firstWhereOrNull( + (e) => e.value == mediaProtocol, + ) ?? defaultValue; } String mediaProtocolExplodedListToJson( - List? mediaProtocol) { + List? mediaProtocol, +) { return mediaProtocol?.map((e) => e.value!).join(',') ?? ''; } @@ -51137,7 +56648,8 @@ List? mediaProtocolNullableListFromJson( } String? mediaSegmentTypeNullableToJson( - enums.MediaSegmentType? mediaSegmentType) { + enums.MediaSegmentType? mediaSegmentType, +) { return mediaSegmentType?.value; } @@ -51149,8 +56661,9 @@ enums.MediaSegmentType mediaSegmentTypeFromJson( Object? mediaSegmentType, [ enums.MediaSegmentType? defaultValue, ]) { - return enums.MediaSegmentType.values - .firstWhereOrNull((e) => e.value == mediaSegmentType) ?? + return enums.MediaSegmentType.values.firstWhereOrNull( + (e) => e.value == mediaSegmentType, + ) ?? defaultValue ?? enums.MediaSegmentType.swaggerGeneratedUnknown; } @@ -51162,18 +56675,21 @@ enums.MediaSegmentType? mediaSegmentTypeNullableFromJson( if (mediaSegmentType == null) { return null; } - return enums.MediaSegmentType.values - .firstWhereOrNull((e) => e.value == mediaSegmentType) ?? + return enums.MediaSegmentType.values.firstWhereOrNull( + (e) => e.value == mediaSegmentType, + ) ?? defaultValue; } String mediaSegmentTypeExplodedListToJson( - List? mediaSegmentType) { + List? mediaSegmentType, +) { return mediaSegmentType?.map((e) => e.value!).join(',') ?? ''; } List mediaSegmentTypeListToJson( - List? mediaSegmentType) { + List? mediaSegmentType, +) { if (mediaSegmentType == null) { return []; } @@ -51219,8 +56735,9 @@ enums.MediaSourceType mediaSourceTypeFromJson( Object? mediaSourceType, [ enums.MediaSourceType? defaultValue, ]) { - return enums.MediaSourceType.values - .firstWhereOrNull((e) => e.value == mediaSourceType) ?? + return enums.MediaSourceType.values.firstWhereOrNull( + (e) => e.value == mediaSourceType, + ) ?? defaultValue ?? enums.MediaSourceType.swaggerGeneratedUnknown; } @@ -51232,18 +56749,21 @@ enums.MediaSourceType? mediaSourceTypeNullableFromJson( if (mediaSourceType == null) { return null; } - return enums.MediaSourceType.values - .firstWhereOrNull((e) => e.value == mediaSourceType) ?? + return enums.MediaSourceType.values.firstWhereOrNull( + (e) => e.value == mediaSourceType, + ) ?? defaultValue; } String mediaSourceTypeExplodedListToJson( - List? mediaSourceType) { + List? mediaSourceType, +) { return mediaSourceType?.map((e) => e.value!).join(',') ?? ''; } List mediaSourceTypeListToJson( - List? mediaSourceType) { + List? mediaSourceType, +) { if (mediaSourceType == null) { return []; } @@ -51278,12 +56798,14 @@ List? mediaSourceTypeNullableListFromJson( } String? mediaStreamProtocolNullableToJson( - enums.MediaStreamProtocol? mediaStreamProtocol) { + enums.MediaStreamProtocol? mediaStreamProtocol, +) { return mediaStreamProtocol?.value; } String? mediaStreamProtocolToJson( - enums.MediaStreamProtocol mediaStreamProtocol) { + enums.MediaStreamProtocol mediaStreamProtocol, +) { return mediaStreamProtocol.value; } @@ -51291,8 +56813,9 @@ enums.MediaStreamProtocol mediaStreamProtocolFromJson( Object? mediaStreamProtocol, [ enums.MediaStreamProtocol? defaultValue, ]) { - return enums.MediaStreamProtocol.values - .firstWhereOrNull((e) => e.value == mediaStreamProtocol) ?? + return enums.MediaStreamProtocol.values.firstWhereOrNull( + (e) => e.value == mediaStreamProtocol, + ) ?? defaultValue ?? enums.MediaStreamProtocol.swaggerGeneratedUnknown; } @@ -51304,18 +56827,21 @@ enums.MediaStreamProtocol? mediaStreamProtocolNullableFromJson( if (mediaStreamProtocol == null) { return null; } - return enums.MediaStreamProtocol.values - .firstWhereOrNull((e) => e.value == mediaStreamProtocol) ?? + return enums.MediaStreamProtocol.values.firstWhereOrNull( + (e) => e.value == mediaStreamProtocol, + ) ?? defaultValue; } String mediaStreamProtocolExplodedListToJson( - List? mediaStreamProtocol) { + List? mediaStreamProtocol, +) { return mediaStreamProtocol?.map((e) => e.value!).join(',') ?? ''; } List mediaStreamProtocolListToJson( - List? mediaStreamProtocol) { + List? mediaStreamProtocol, +) { if (mediaStreamProtocol == null) { return []; } @@ -51361,8 +56887,9 @@ enums.MediaStreamType mediaStreamTypeFromJson( Object? mediaStreamType, [ enums.MediaStreamType? defaultValue, ]) { - return enums.MediaStreamType.values - .firstWhereOrNull((e) => e.value == mediaStreamType) ?? + return enums.MediaStreamType.values.firstWhereOrNull( + (e) => e.value == mediaStreamType, + ) ?? defaultValue ?? enums.MediaStreamType.swaggerGeneratedUnknown; } @@ -51374,18 +56901,21 @@ enums.MediaStreamType? mediaStreamTypeNullableFromJson( if (mediaStreamType == null) { return null; } - return enums.MediaStreamType.values - .firstWhereOrNull((e) => e.value == mediaStreamType) ?? + return enums.MediaStreamType.values.firstWhereOrNull( + (e) => e.value == mediaStreamType, + ) ?? defaultValue; } String mediaStreamTypeExplodedListToJson( - List? mediaStreamType) { + List? mediaStreamType, +) { return mediaStreamType?.map((e) => e.value!).join(',') ?? ''; } List mediaStreamTypeListToJson( - List? mediaStreamType) { + List? mediaStreamType, +) { if (mediaStreamType == null) { return []; } @@ -51493,8 +57023,9 @@ enums.MetadataField metadataFieldFromJson( Object? metadataField, [ enums.MetadataField? defaultValue, ]) { - return enums.MetadataField.values - .firstWhereOrNull((e) => e.value == metadataField) ?? + return enums.MetadataField.values.firstWhereOrNull( + (e) => e.value == metadataField, + ) ?? defaultValue ?? enums.MetadataField.swaggerGeneratedUnknown; } @@ -51506,13 +57037,15 @@ enums.MetadataField? metadataFieldNullableFromJson( if (metadataField == null) { return null; } - return enums.MetadataField.values - .firstWhereOrNull((e) => e.value == metadataField) ?? + return enums.MetadataField.values.firstWhereOrNull( + (e) => e.value == metadataField, + ) ?? defaultValue; } String metadataFieldExplodedListToJson( - List? metadataField) { + List? metadataField, +) { return metadataField?.map((e) => e.value!).join(',') ?? ''; } @@ -51547,12 +57080,14 @@ List? metadataFieldNullableListFromJson( } String? metadataRefreshModeNullableToJson( - enums.MetadataRefreshMode? metadataRefreshMode) { + enums.MetadataRefreshMode? metadataRefreshMode, +) { return metadataRefreshMode?.value; } String? metadataRefreshModeToJson( - enums.MetadataRefreshMode metadataRefreshMode) { + enums.MetadataRefreshMode metadataRefreshMode, +) { return metadataRefreshMode.value; } @@ -51560,8 +57095,9 @@ enums.MetadataRefreshMode metadataRefreshModeFromJson( Object? metadataRefreshMode, [ enums.MetadataRefreshMode? defaultValue, ]) { - return enums.MetadataRefreshMode.values - .firstWhereOrNull((e) => e.value == metadataRefreshMode) ?? + return enums.MetadataRefreshMode.values.firstWhereOrNull( + (e) => e.value == metadataRefreshMode, + ) ?? defaultValue ?? enums.MetadataRefreshMode.swaggerGeneratedUnknown; } @@ -51573,18 +57109,21 @@ enums.MetadataRefreshMode? metadataRefreshModeNullableFromJson( if (metadataRefreshMode == null) { return null; } - return enums.MetadataRefreshMode.values - .firstWhereOrNull((e) => e.value == metadataRefreshMode) ?? + return enums.MetadataRefreshMode.values.firstWhereOrNull( + (e) => e.value == metadataRefreshMode, + ) ?? defaultValue; } String metadataRefreshModeExplodedListToJson( - List? metadataRefreshMode) { + List? metadataRefreshMode, +) { return metadataRefreshMode?.map((e) => e.value!).join(',') ?? ''; } List metadataRefreshModeListToJson( - List? metadataRefreshMode) { + List? metadataRefreshMode, +) { if (metadataRefreshMode == null) { return []; } @@ -51630,8 +57169,9 @@ enums.PersonKind personKindFromJson( Object? personKind, [ enums.PersonKind? defaultValue, ]) { - return enums.PersonKind.values - .firstWhereOrNull((e) => e.value == personKind) ?? + return enums.PersonKind.values.firstWhereOrNull( + (e) => e.value == personKind, + ) ?? defaultValue ?? enums.PersonKind.swaggerGeneratedUnknown; } @@ -51643,8 +57183,9 @@ enums.PersonKind? personKindNullableFromJson( if (personKind == null) { return null; } - return enums.PersonKind.values - .firstWhereOrNull((e) => e.value == personKind) ?? + return enums.PersonKind.values.firstWhereOrNull( + (e) => e.value == personKind, + ) ?? defaultValue; } @@ -51694,8 +57235,9 @@ enums.PlayAccess playAccessFromJson( Object? playAccess, [ enums.PlayAccess? defaultValue, ]) { - return enums.PlayAccess.values - .firstWhereOrNull((e) => e.value == playAccess) ?? + return enums.PlayAccess.values.firstWhereOrNull( + (e) => e.value == playAccess, + ) ?? defaultValue ?? enums.PlayAccess.swaggerGeneratedUnknown; } @@ -51707,8 +57249,9 @@ enums.PlayAccess? playAccessNullableFromJson( if (playAccess == null) { return null; } - return enums.PlayAccess.values - .firstWhereOrNull((e) => e.value == playAccess) ?? + return enums.PlayAccess.values.firstWhereOrNull( + (e) => e.value == playAccess, + ) ?? defaultValue; } @@ -51747,7 +57290,8 @@ List? playAccessNullableListFromJson( } String? playbackErrorCodeNullableToJson( - enums.PlaybackErrorCode? playbackErrorCode) { + enums.PlaybackErrorCode? playbackErrorCode, +) { return playbackErrorCode?.value; } @@ -51759,8 +57303,9 @@ enums.PlaybackErrorCode playbackErrorCodeFromJson( Object? playbackErrorCode, [ enums.PlaybackErrorCode? defaultValue, ]) { - return enums.PlaybackErrorCode.values - .firstWhereOrNull((e) => e.value == playbackErrorCode) ?? + return enums.PlaybackErrorCode.values.firstWhereOrNull( + (e) => e.value == playbackErrorCode, + ) ?? defaultValue ?? enums.PlaybackErrorCode.swaggerGeneratedUnknown; } @@ -51772,18 +57317,21 @@ enums.PlaybackErrorCode? playbackErrorCodeNullableFromJson( if (playbackErrorCode == null) { return null; } - return enums.PlaybackErrorCode.values - .firstWhereOrNull((e) => e.value == playbackErrorCode) ?? + return enums.PlaybackErrorCode.values.firstWhereOrNull( + (e) => e.value == playbackErrorCode, + ) ?? defaultValue; } String playbackErrorCodeExplodedListToJson( - List? playbackErrorCode) { + List? playbackErrorCode, +) { return playbackErrorCode?.map((e) => e.value!).join(',') ?? ''; } List playbackErrorCodeListToJson( - List? playbackErrorCode) { + List? playbackErrorCode, +) { if (playbackErrorCode == null) { return []; } @@ -51829,8 +57377,9 @@ enums.PlaybackOrder playbackOrderFromJson( Object? playbackOrder, [ enums.PlaybackOrder? defaultValue, ]) { - return enums.PlaybackOrder.values - .firstWhereOrNull((e) => e.value == playbackOrder) ?? + return enums.PlaybackOrder.values.firstWhereOrNull( + (e) => e.value == playbackOrder, + ) ?? defaultValue ?? enums.PlaybackOrder.swaggerGeneratedUnknown; } @@ -51842,13 +57391,15 @@ enums.PlaybackOrder? playbackOrderNullableFromJson( if (playbackOrder == null) { return null; } - return enums.PlaybackOrder.values - .firstWhereOrNull((e) => e.value == playbackOrder) ?? + return enums.PlaybackOrder.values.firstWhereOrNull( + (e) => e.value == playbackOrder, + ) ?? defaultValue; } String playbackOrderExplodedListToJson( - List? playbackOrder) { + List? playbackOrder, +) { return playbackOrder?.map((e) => e.value!).join(',') ?? ''; } @@ -51883,12 +57434,14 @@ List? playbackOrderNullableListFromJson( } String? playbackRequestTypeNullableToJson( - enums.PlaybackRequestType? playbackRequestType) { + enums.PlaybackRequestType? playbackRequestType, +) { return playbackRequestType?.value; } String? playbackRequestTypeToJson( - enums.PlaybackRequestType playbackRequestType) { + enums.PlaybackRequestType playbackRequestType, +) { return playbackRequestType.value; } @@ -51896,8 +57449,9 @@ enums.PlaybackRequestType playbackRequestTypeFromJson( Object? playbackRequestType, [ enums.PlaybackRequestType? defaultValue, ]) { - return enums.PlaybackRequestType.values - .firstWhereOrNull((e) => e.value == playbackRequestType) ?? + return enums.PlaybackRequestType.values.firstWhereOrNull( + (e) => e.value == playbackRequestType, + ) ?? defaultValue ?? enums.PlaybackRequestType.swaggerGeneratedUnknown; } @@ -51909,18 +57463,21 @@ enums.PlaybackRequestType? playbackRequestTypeNullableFromJson( if (playbackRequestType == null) { return null; } - return enums.PlaybackRequestType.values - .firstWhereOrNull((e) => e.value == playbackRequestType) ?? + return enums.PlaybackRequestType.values.firstWhereOrNull( + (e) => e.value == playbackRequestType, + ) ?? defaultValue; } String playbackRequestTypeExplodedListToJson( - List? playbackRequestType) { + List? playbackRequestType, +) { return playbackRequestType?.map((e) => e.value!).join(',') ?? ''; } List playbackRequestTypeListToJson( - List? playbackRequestType) { + List? playbackRequestType, +) { if (playbackRequestType == null) { return []; } @@ -51966,8 +57523,9 @@ enums.PlayCommand playCommandFromJson( Object? playCommand, [ enums.PlayCommand? defaultValue, ]) { - return enums.PlayCommand.values - .firstWhereOrNull((e) => e.value == playCommand) ?? + return enums.PlayCommand.values.firstWhereOrNull( + (e) => e.value == playCommand, + ) ?? defaultValue ?? enums.PlayCommand.swaggerGeneratedUnknown; } @@ -51979,8 +57537,9 @@ enums.PlayCommand? playCommandNullableFromJson( if (playCommand == null) { return null; } - return enums.PlayCommand.values - .firstWhereOrNull((e) => e.value == playCommand) ?? + return enums.PlayCommand.values.firstWhereOrNull( + (e) => e.value == playCommand, + ) ?? defaultValue; } @@ -52030,8 +57589,9 @@ enums.PlayMethod playMethodFromJson( Object? playMethod, [ enums.PlayMethod? defaultValue, ]) { - return enums.PlayMethod.values - .firstWhereOrNull((e) => e.value == playMethod) ?? + return enums.PlayMethod.values.firstWhereOrNull( + (e) => e.value == playMethod, + ) ?? defaultValue ?? enums.PlayMethod.swaggerGeneratedUnknown; } @@ -52043,8 +57603,9 @@ enums.PlayMethod? playMethodNullableFromJson( if (playMethod == null) { return null; } - return enums.PlayMethod.values - .firstWhereOrNull((e) => e.value == playMethod) ?? + return enums.PlayMethod.values.firstWhereOrNull( + (e) => e.value == playMethod, + ) ?? defaultValue; } @@ -52083,12 +57644,14 @@ List? playMethodNullableListFromJson( } String? playQueueUpdateReasonNullableToJson( - enums.PlayQueueUpdateReason? playQueueUpdateReason) { + enums.PlayQueueUpdateReason? playQueueUpdateReason, +) { return playQueueUpdateReason?.value; } String? playQueueUpdateReasonToJson( - enums.PlayQueueUpdateReason playQueueUpdateReason) { + enums.PlayQueueUpdateReason playQueueUpdateReason, +) { return playQueueUpdateReason.value; } @@ -52096,8 +57659,9 @@ enums.PlayQueueUpdateReason playQueueUpdateReasonFromJson( Object? playQueueUpdateReason, [ enums.PlayQueueUpdateReason? defaultValue, ]) { - return enums.PlayQueueUpdateReason.values - .firstWhereOrNull((e) => e.value == playQueueUpdateReason) ?? + return enums.PlayQueueUpdateReason.values.firstWhereOrNull( + (e) => e.value == playQueueUpdateReason, + ) ?? defaultValue ?? enums.PlayQueueUpdateReason.swaggerGeneratedUnknown; } @@ -52109,18 +57673,21 @@ enums.PlayQueueUpdateReason? playQueueUpdateReasonNullableFromJson( if (playQueueUpdateReason == null) { return null; } - return enums.PlayQueueUpdateReason.values - .firstWhereOrNull((e) => e.value == playQueueUpdateReason) ?? + return enums.PlayQueueUpdateReason.values.firstWhereOrNull( + (e) => e.value == playQueueUpdateReason, + ) ?? defaultValue; } String playQueueUpdateReasonExplodedListToJson( - List? playQueueUpdateReason) { + List? playQueueUpdateReason, +) { return playQueueUpdateReason?.map((e) => e.value!).join(',') ?? ''; } List playQueueUpdateReasonListToJson( - List? playQueueUpdateReason) { + List? playQueueUpdateReason, +) { if (playQueueUpdateReason == null) { return []; } @@ -52155,7 +57722,8 @@ List? playQueueUpdateReasonNullableListFromJson( } String? playstateCommandNullableToJson( - enums.PlaystateCommand? playstateCommand) { + enums.PlaystateCommand? playstateCommand, +) { return playstateCommand?.value; } @@ -52167,8 +57735,9 @@ enums.PlaystateCommand playstateCommandFromJson( Object? playstateCommand, [ enums.PlaystateCommand? defaultValue, ]) { - return enums.PlaystateCommand.values - .firstWhereOrNull((e) => e.value == playstateCommand) ?? + return enums.PlaystateCommand.values.firstWhereOrNull( + (e) => e.value == playstateCommand, + ) ?? defaultValue ?? enums.PlaystateCommand.swaggerGeneratedUnknown; } @@ -52180,18 +57749,21 @@ enums.PlaystateCommand? playstateCommandNullableFromJson( if (playstateCommand == null) { return null; } - return enums.PlaystateCommand.values - .firstWhereOrNull((e) => e.value == playstateCommand) ?? + return enums.PlaystateCommand.values.firstWhereOrNull( + (e) => e.value == playstateCommand, + ) ?? defaultValue; } String playstateCommandExplodedListToJson( - List? playstateCommand) { + List? playstateCommand, +) { return playstateCommand?.map((e) => e.value!).join(',') ?? ''; } List playstateCommandListToJson( - List? playstateCommand) { + List? playstateCommand, +) { if (playstateCommand == null) { return []; } @@ -52237,8 +57809,9 @@ enums.PluginStatus pluginStatusFromJson( Object? pluginStatus, [ enums.PluginStatus? defaultValue, ]) { - return enums.PluginStatus.values - .firstWhereOrNull((e) => e.value == pluginStatus) ?? + return enums.PluginStatus.values.firstWhereOrNull( + (e) => e.value == pluginStatus, + ) ?? defaultValue ?? enums.PluginStatus.swaggerGeneratedUnknown; } @@ -52250,8 +57823,9 @@ enums.PluginStatus? pluginStatusNullableFromJson( if (pluginStatus == null) { return null; } - return enums.PluginStatus.values - .firstWhereOrNull((e) => e.value == pluginStatus) ?? + return enums.PluginStatus.values.firstWhereOrNull( + (e) => e.value == pluginStatus, + ) ?? defaultValue; } @@ -52290,12 +57864,14 @@ List? pluginStatusNullableListFromJson( } String? processPriorityClassNullableToJson( - enums.ProcessPriorityClass? processPriorityClass) { + enums.ProcessPriorityClass? processPriorityClass, +) { return processPriorityClass?.value; } String? processPriorityClassToJson( - enums.ProcessPriorityClass processPriorityClass) { + enums.ProcessPriorityClass processPriorityClass, +) { return processPriorityClass.value; } @@ -52303,8 +57879,9 @@ enums.ProcessPriorityClass processPriorityClassFromJson( Object? processPriorityClass, [ enums.ProcessPriorityClass? defaultValue, ]) { - return enums.ProcessPriorityClass.values - .firstWhereOrNull((e) => e.value == processPriorityClass) ?? + return enums.ProcessPriorityClass.values.firstWhereOrNull( + (e) => e.value == processPriorityClass, + ) ?? defaultValue ?? enums.ProcessPriorityClass.swaggerGeneratedUnknown; } @@ -52316,18 +57893,21 @@ enums.ProcessPriorityClass? processPriorityClassNullableFromJson( if (processPriorityClass == null) { return null; } - return enums.ProcessPriorityClass.values - .firstWhereOrNull((e) => e.value == processPriorityClass) ?? + return enums.ProcessPriorityClass.values.firstWhereOrNull( + (e) => e.value == processPriorityClass, + ) ?? defaultValue; } String processPriorityClassExplodedListToJson( - List? processPriorityClass) { + List? processPriorityClass, +) { return processPriorityClass?.map((e) => e.value!).join(',') ?? ''; } List processPriorityClassListToJson( - List? processPriorityClass) { + List? processPriorityClass, +) { if (processPriorityClass == null) { return []; } @@ -52362,12 +57942,14 @@ List? processPriorityClassNullableListFromJson( } String? profileConditionTypeNullableToJson( - enums.ProfileConditionType? profileConditionType) { + enums.ProfileConditionType? profileConditionType, +) { return profileConditionType?.value; } String? profileConditionTypeToJson( - enums.ProfileConditionType profileConditionType) { + enums.ProfileConditionType profileConditionType, +) { return profileConditionType.value; } @@ -52375,8 +57957,9 @@ enums.ProfileConditionType profileConditionTypeFromJson( Object? profileConditionType, [ enums.ProfileConditionType? defaultValue, ]) { - return enums.ProfileConditionType.values - .firstWhereOrNull((e) => e.value == profileConditionType) ?? + return enums.ProfileConditionType.values.firstWhereOrNull( + (e) => e.value == profileConditionType, + ) ?? defaultValue ?? enums.ProfileConditionType.swaggerGeneratedUnknown; } @@ -52388,18 +57971,21 @@ enums.ProfileConditionType? profileConditionTypeNullableFromJson( if (profileConditionType == null) { return null; } - return enums.ProfileConditionType.values - .firstWhereOrNull((e) => e.value == profileConditionType) ?? + return enums.ProfileConditionType.values.firstWhereOrNull( + (e) => e.value == profileConditionType, + ) ?? defaultValue; } String profileConditionTypeExplodedListToJson( - List? profileConditionType) { + List? profileConditionType, +) { return profileConditionType?.map((e) => e.value!).join(',') ?? ''; } List profileConditionTypeListToJson( - List? profileConditionType) { + List? profileConditionType, +) { if (profileConditionType == null) { return []; } @@ -52434,12 +58020,14 @@ List? profileConditionTypeNullableListFromJson( } String? profileConditionValueNullableToJson( - enums.ProfileConditionValue? profileConditionValue) { + enums.ProfileConditionValue? profileConditionValue, +) { return profileConditionValue?.value; } String? profileConditionValueToJson( - enums.ProfileConditionValue profileConditionValue) { + enums.ProfileConditionValue profileConditionValue, +) { return profileConditionValue.value; } @@ -52447,8 +58035,9 @@ enums.ProfileConditionValue profileConditionValueFromJson( Object? profileConditionValue, [ enums.ProfileConditionValue? defaultValue, ]) { - return enums.ProfileConditionValue.values - .firstWhereOrNull((e) => e.value == profileConditionValue) ?? + return enums.ProfileConditionValue.values.firstWhereOrNull( + (e) => e.value == profileConditionValue, + ) ?? defaultValue ?? enums.ProfileConditionValue.swaggerGeneratedUnknown; } @@ -52460,18 +58049,21 @@ enums.ProfileConditionValue? profileConditionValueNullableFromJson( if (profileConditionValue == null) { return null; } - return enums.ProfileConditionValue.values - .firstWhereOrNull((e) => e.value == profileConditionValue) ?? + return enums.ProfileConditionValue.values.firstWhereOrNull( + (e) => e.value == profileConditionValue, + ) ?? defaultValue; } String profileConditionValueExplodedListToJson( - List? profileConditionValue) { + List? profileConditionValue, +) { return profileConditionValue?.map((e) => e.value!).join(',') ?? ''; } List profileConditionValueListToJson( - List? profileConditionValue) { + List? profileConditionValue, +) { if (profileConditionValue == null) { return []; } @@ -52517,8 +58109,9 @@ enums.ProgramAudio programAudioFromJson( Object? programAudio, [ enums.ProgramAudio? defaultValue, ]) { - return enums.ProgramAudio.values - .firstWhereOrNull((e) => e.value == programAudio) ?? + return enums.ProgramAudio.values.firstWhereOrNull( + (e) => e.value == programAudio, + ) ?? defaultValue ?? enums.ProgramAudio.swaggerGeneratedUnknown; } @@ -52530,8 +58123,9 @@ enums.ProgramAudio? programAudioNullableFromJson( if (programAudio == null) { return null; } - return enums.ProgramAudio.values - .firstWhereOrNull((e) => e.value == programAudio) ?? + return enums.ProgramAudio.values.firstWhereOrNull( + (e) => e.value == programAudio, + ) ?? defaultValue; } @@ -52581,8 +58175,9 @@ enums.RatingType ratingTypeFromJson( Object? ratingType, [ enums.RatingType? defaultValue, ]) { - return enums.RatingType.values - .firstWhereOrNull((e) => e.value == ratingType) ?? + return enums.RatingType.values.firstWhereOrNull( + (e) => e.value == ratingType, + ) ?? defaultValue ?? enums.RatingType.swaggerGeneratedUnknown; } @@ -52594,8 +58189,9 @@ enums.RatingType? ratingTypeNullableFromJson( if (ratingType == null) { return null; } - return enums.RatingType.values - .firstWhereOrNull((e) => e.value == ratingType) ?? + return enums.RatingType.values.firstWhereOrNull( + (e) => e.value == ratingType, + ) ?? defaultValue; } @@ -52634,7 +58230,8 @@ List? ratingTypeNullableListFromJson( } String? recommendationTypeNullableToJson( - enums.RecommendationType? recommendationType) { + enums.RecommendationType? recommendationType, +) { return recommendationType?.value; } @@ -52646,8 +58243,9 @@ enums.RecommendationType recommendationTypeFromJson( Object? recommendationType, [ enums.RecommendationType? defaultValue, ]) { - return enums.RecommendationType.values - .firstWhereOrNull((e) => e.value == recommendationType) ?? + return enums.RecommendationType.values.firstWhereOrNull( + (e) => e.value == recommendationType, + ) ?? defaultValue ?? enums.RecommendationType.swaggerGeneratedUnknown; } @@ -52659,18 +58257,21 @@ enums.RecommendationType? recommendationTypeNullableFromJson( if (recommendationType == null) { return null; } - return enums.RecommendationType.values - .firstWhereOrNull((e) => e.value == recommendationType) ?? + return enums.RecommendationType.values.firstWhereOrNull( + (e) => e.value == recommendationType, + ) ?? defaultValue; } String recommendationTypeExplodedListToJson( - List? recommendationType) { + List? recommendationType, +) { return recommendationType?.map((e) => e.value!).join(',') ?? ''; } List recommendationTypeListToJson( - List? recommendationType) { + List? recommendationType, +) { if (recommendationType == null) { return []; } @@ -52716,8 +58317,9 @@ enums.RecordingStatus recordingStatusFromJson( Object? recordingStatus, [ enums.RecordingStatus? defaultValue, ]) { - return enums.RecordingStatus.values - .firstWhereOrNull((e) => e.value == recordingStatus) ?? + return enums.RecordingStatus.values.firstWhereOrNull( + (e) => e.value == recordingStatus, + ) ?? defaultValue ?? enums.RecordingStatus.swaggerGeneratedUnknown; } @@ -52729,18 +58331,21 @@ enums.RecordingStatus? recordingStatusNullableFromJson( if (recordingStatus == null) { return null; } - return enums.RecordingStatus.values - .firstWhereOrNull((e) => e.value == recordingStatus) ?? + return enums.RecordingStatus.values.firstWhereOrNull( + (e) => e.value == recordingStatus, + ) ?? defaultValue; } String recordingStatusExplodedListToJson( - List? recordingStatus) { + List? recordingStatus, +) { return recordingStatus?.map((e) => e.value!).join(',') ?? ''; } List recordingStatusListToJson( - List? recordingStatus) { + List? recordingStatus, +) { if (recordingStatus == null) { return []; } @@ -52786,8 +58391,9 @@ enums.RepeatMode repeatModeFromJson( Object? repeatMode, [ enums.RepeatMode? defaultValue, ]) { - return enums.RepeatMode.values - .firstWhereOrNull((e) => e.value == repeatMode) ?? + return enums.RepeatMode.values.firstWhereOrNull( + (e) => e.value == repeatMode, + ) ?? defaultValue ?? enums.RepeatMode.swaggerGeneratedUnknown; } @@ -52799,8 +58405,9 @@ enums.RepeatMode? repeatModeNullableFromJson( if (repeatMode == null) { return null; } - return enums.RepeatMode.values - .firstWhereOrNull((e) => e.value == repeatMode) ?? + return enums.RepeatMode.values.firstWhereOrNull( + (e) => e.value == repeatMode, + ) ?? defaultValue; } @@ -52850,8 +58457,9 @@ enums.ScrollDirection scrollDirectionFromJson( Object? scrollDirection, [ enums.ScrollDirection? defaultValue, ]) { - return enums.ScrollDirection.values - .firstWhereOrNull((e) => e.value == scrollDirection) ?? + return enums.ScrollDirection.values.firstWhereOrNull( + (e) => e.value == scrollDirection, + ) ?? defaultValue ?? enums.ScrollDirection.swaggerGeneratedUnknown; } @@ -52863,18 +58471,21 @@ enums.ScrollDirection? scrollDirectionNullableFromJson( if (scrollDirection == null) { return null; } - return enums.ScrollDirection.values - .firstWhereOrNull((e) => e.value == scrollDirection) ?? + return enums.ScrollDirection.values.firstWhereOrNull( + (e) => e.value == scrollDirection, + ) ?? defaultValue; } String scrollDirectionExplodedListToJson( - List? scrollDirection) { + List? scrollDirection, +) { return scrollDirection?.map((e) => e.value!).join(',') ?? ''; } List scrollDirectionListToJson( - List? scrollDirection) { + List? scrollDirection, +) { if (scrollDirection == null) { return []; } @@ -52920,8 +58531,9 @@ enums.SendCommandType sendCommandTypeFromJson( Object? sendCommandType, [ enums.SendCommandType? defaultValue, ]) { - return enums.SendCommandType.values - .firstWhereOrNull((e) => e.value == sendCommandType) ?? + return enums.SendCommandType.values.firstWhereOrNull( + (e) => e.value == sendCommandType, + ) ?? defaultValue ?? enums.SendCommandType.swaggerGeneratedUnknown; } @@ -52933,18 +58545,21 @@ enums.SendCommandType? sendCommandTypeNullableFromJson( if (sendCommandType == null) { return null; } - return enums.SendCommandType.values - .firstWhereOrNull((e) => e.value == sendCommandType) ?? + return enums.SendCommandType.values.firstWhereOrNull( + (e) => e.value == sendCommandType, + ) ?? defaultValue; } String sendCommandTypeExplodedListToJson( - List? sendCommandType) { + List? sendCommandType, +) { return sendCommandType?.map((e) => e.value!).join(',') ?? ''; } List sendCommandTypeListToJson( - List? sendCommandType) { + List? sendCommandType, +) { if (sendCommandType == null) { return []; } @@ -52990,8 +58605,9 @@ enums.SeriesStatus seriesStatusFromJson( Object? seriesStatus, [ enums.SeriesStatus? defaultValue, ]) { - return enums.SeriesStatus.values - .firstWhereOrNull((e) => e.value == seriesStatus) ?? + return enums.SeriesStatus.values.firstWhereOrNull( + (e) => e.value == seriesStatus, + ) ?? defaultValue ?? enums.SeriesStatus.swaggerGeneratedUnknown; } @@ -53003,8 +58619,9 @@ enums.SeriesStatus? seriesStatusNullableFromJson( if (seriesStatus == null) { return null; } - return enums.SeriesStatus.values - .firstWhereOrNull((e) => e.value == seriesStatus) ?? + return enums.SeriesStatus.values.firstWhereOrNull( + (e) => e.value == seriesStatus, + ) ?? defaultValue; } @@ -53043,7 +58660,8 @@ List? seriesStatusNullableListFromJson( } String? sessionMessageTypeNullableToJson( - enums.SessionMessageType? sessionMessageType) { + enums.SessionMessageType? sessionMessageType, +) { return sessionMessageType?.value; } @@ -53055,8 +58673,9 @@ enums.SessionMessageType sessionMessageTypeFromJson( Object? sessionMessageType, [ enums.SessionMessageType? defaultValue, ]) { - return enums.SessionMessageType.values - .firstWhereOrNull((e) => e.value == sessionMessageType) ?? + return enums.SessionMessageType.values.firstWhereOrNull( + (e) => e.value == sessionMessageType, + ) ?? defaultValue ?? enums.SessionMessageType.swaggerGeneratedUnknown; } @@ -53068,18 +58687,21 @@ enums.SessionMessageType? sessionMessageTypeNullableFromJson( if (sessionMessageType == null) { return null; } - return enums.SessionMessageType.values - .firstWhereOrNull((e) => e.value == sessionMessageType) ?? + return enums.SessionMessageType.values.firstWhereOrNull( + (e) => e.value == sessionMessageType, + ) ?? defaultValue; } String sessionMessageTypeExplodedListToJson( - List? sessionMessageType) { + List? sessionMessageType, +) { return sessionMessageType?.map((e) => e.value!).join(',') ?? ''; } List sessionMessageTypeListToJson( - List? sessionMessageType) { + List? sessionMessageType, +) { if (sessionMessageType == null) { return []; } @@ -53176,12 +58798,14 @@ List? sortOrderNullableListFromJson( } String? subtitleDeliveryMethodNullableToJson( - enums.SubtitleDeliveryMethod? subtitleDeliveryMethod) { + enums.SubtitleDeliveryMethod? subtitleDeliveryMethod, +) { return subtitleDeliveryMethod?.value; } String? subtitleDeliveryMethodToJson( - enums.SubtitleDeliveryMethod subtitleDeliveryMethod) { + enums.SubtitleDeliveryMethod subtitleDeliveryMethod, +) { return subtitleDeliveryMethod.value; } @@ -53189,8 +58813,9 @@ enums.SubtitleDeliveryMethod subtitleDeliveryMethodFromJson( Object? subtitleDeliveryMethod, [ enums.SubtitleDeliveryMethod? defaultValue, ]) { - return enums.SubtitleDeliveryMethod.values - .firstWhereOrNull((e) => e.value == subtitleDeliveryMethod) ?? + return enums.SubtitleDeliveryMethod.values.firstWhereOrNull( + (e) => e.value == subtitleDeliveryMethod, + ) ?? defaultValue ?? enums.SubtitleDeliveryMethod.swaggerGeneratedUnknown; } @@ -53202,18 +58827,21 @@ enums.SubtitleDeliveryMethod? subtitleDeliveryMethodNullableFromJson( if (subtitleDeliveryMethod == null) { return null; } - return enums.SubtitleDeliveryMethod.values - .firstWhereOrNull((e) => e.value == subtitleDeliveryMethod) ?? + return enums.SubtitleDeliveryMethod.values.firstWhereOrNull( + (e) => e.value == subtitleDeliveryMethod, + ) ?? defaultValue; } String subtitleDeliveryMethodExplodedListToJson( - List? subtitleDeliveryMethod) { + List? subtitleDeliveryMethod, +) { return subtitleDeliveryMethod?.map((e) => e.value!).join(',') ?? ''; } List subtitleDeliveryMethodListToJson( - List? subtitleDeliveryMethod) { + List? subtitleDeliveryMethod, +) { if (subtitleDeliveryMethod == null) { return []; } @@ -53248,12 +58876,14 @@ List? subtitleDeliveryMethodNullableListFromJson( } String? subtitlePlaybackModeNullableToJson( - enums.SubtitlePlaybackMode? subtitlePlaybackMode) { + enums.SubtitlePlaybackMode? subtitlePlaybackMode, +) { return subtitlePlaybackMode?.value; } String? subtitlePlaybackModeToJson( - enums.SubtitlePlaybackMode subtitlePlaybackMode) { + enums.SubtitlePlaybackMode subtitlePlaybackMode, +) { return subtitlePlaybackMode.value; } @@ -53261,8 +58891,9 @@ enums.SubtitlePlaybackMode subtitlePlaybackModeFromJson( Object? subtitlePlaybackMode, [ enums.SubtitlePlaybackMode? defaultValue, ]) { - return enums.SubtitlePlaybackMode.values - .firstWhereOrNull((e) => e.value == subtitlePlaybackMode) ?? + return enums.SubtitlePlaybackMode.values.firstWhereOrNull( + (e) => e.value == subtitlePlaybackMode, + ) ?? defaultValue ?? enums.SubtitlePlaybackMode.swaggerGeneratedUnknown; } @@ -53274,18 +58905,21 @@ enums.SubtitlePlaybackMode? subtitlePlaybackModeNullableFromJson( if (subtitlePlaybackMode == null) { return null; } - return enums.SubtitlePlaybackMode.values - .firstWhereOrNull((e) => e.value == subtitlePlaybackMode) ?? + return enums.SubtitlePlaybackMode.values.firstWhereOrNull( + (e) => e.value == subtitlePlaybackMode, + ) ?? defaultValue; } String subtitlePlaybackModeExplodedListToJson( - List? subtitlePlaybackMode) { + List? subtitlePlaybackMode, +) { return subtitlePlaybackMode?.map((e) => e.value!).join(',') ?? ''; } List subtitlePlaybackModeListToJson( - List? subtitlePlaybackMode) { + List? subtitlePlaybackMode, +) { if (subtitlePlaybackMode == null) { return []; } @@ -53320,12 +58954,14 @@ List? subtitlePlaybackModeNullableListFromJson( } String? syncPlayUserAccessTypeNullableToJson( - enums.SyncPlayUserAccessType? syncPlayUserAccessType) { + enums.SyncPlayUserAccessType? syncPlayUserAccessType, +) { return syncPlayUserAccessType?.value; } String? syncPlayUserAccessTypeToJson( - enums.SyncPlayUserAccessType syncPlayUserAccessType) { + enums.SyncPlayUserAccessType syncPlayUserAccessType, +) { return syncPlayUserAccessType.value; } @@ -53333,8 +58969,9 @@ enums.SyncPlayUserAccessType syncPlayUserAccessTypeFromJson( Object? syncPlayUserAccessType, [ enums.SyncPlayUserAccessType? defaultValue, ]) { - return enums.SyncPlayUserAccessType.values - .firstWhereOrNull((e) => e.value == syncPlayUserAccessType) ?? + return enums.SyncPlayUserAccessType.values.firstWhereOrNull( + (e) => e.value == syncPlayUserAccessType, + ) ?? defaultValue ?? enums.SyncPlayUserAccessType.swaggerGeneratedUnknown; } @@ -53346,18 +58983,21 @@ enums.SyncPlayUserAccessType? syncPlayUserAccessTypeNullableFromJson( if (syncPlayUserAccessType == null) { return null; } - return enums.SyncPlayUserAccessType.values - .firstWhereOrNull((e) => e.value == syncPlayUserAccessType) ?? + return enums.SyncPlayUserAccessType.values.firstWhereOrNull( + (e) => e.value == syncPlayUserAccessType, + ) ?? defaultValue; } String syncPlayUserAccessTypeExplodedListToJson( - List? syncPlayUserAccessType) { + List? syncPlayUserAccessType, +) { return syncPlayUserAccessType?.map((e) => e.value!).join(',') ?? ''; } List syncPlayUserAccessTypeListToJson( - List? syncPlayUserAccessType) { + List? syncPlayUserAccessType, +) { if (syncPlayUserAccessType == null) { return []; } @@ -53392,12 +59032,14 @@ List? syncPlayUserAccessTypeNullableListFromJson( } String? taskCompletionStatusNullableToJson( - enums.TaskCompletionStatus? taskCompletionStatus) { + enums.TaskCompletionStatus? taskCompletionStatus, +) { return taskCompletionStatus?.value; } String? taskCompletionStatusToJson( - enums.TaskCompletionStatus taskCompletionStatus) { + enums.TaskCompletionStatus taskCompletionStatus, +) { return taskCompletionStatus.value; } @@ -53405,8 +59047,9 @@ enums.TaskCompletionStatus taskCompletionStatusFromJson( Object? taskCompletionStatus, [ enums.TaskCompletionStatus? defaultValue, ]) { - return enums.TaskCompletionStatus.values - .firstWhereOrNull((e) => e.value == taskCompletionStatus) ?? + return enums.TaskCompletionStatus.values.firstWhereOrNull( + (e) => e.value == taskCompletionStatus, + ) ?? defaultValue ?? enums.TaskCompletionStatus.swaggerGeneratedUnknown; } @@ -53418,18 +59061,21 @@ enums.TaskCompletionStatus? taskCompletionStatusNullableFromJson( if (taskCompletionStatus == null) { return null; } - return enums.TaskCompletionStatus.values - .firstWhereOrNull((e) => e.value == taskCompletionStatus) ?? + return enums.TaskCompletionStatus.values.firstWhereOrNull( + (e) => e.value == taskCompletionStatus, + ) ?? defaultValue; } String taskCompletionStatusExplodedListToJson( - List? taskCompletionStatus) { + List? taskCompletionStatus, +) { return taskCompletionStatus?.map((e) => e.value!).join(',') ?? ''; } List taskCompletionStatusListToJson( - List? taskCompletionStatus) { + List? taskCompletionStatus, +) { if (taskCompletionStatus == null) { return []; } @@ -53526,12 +59172,14 @@ List? taskStateNullableListFromJson( } String? tonemappingAlgorithmNullableToJson( - enums.TonemappingAlgorithm? tonemappingAlgorithm) { + enums.TonemappingAlgorithm? tonemappingAlgorithm, +) { return tonemappingAlgorithm?.value; } String? tonemappingAlgorithmToJson( - enums.TonemappingAlgorithm tonemappingAlgorithm) { + enums.TonemappingAlgorithm tonemappingAlgorithm, +) { return tonemappingAlgorithm.value; } @@ -53539,8 +59187,9 @@ enums.TonemappingAlgorithm tonemappingAlgorithmFromJson( Object? tonemappingAlgorithm, [ enums.TonemappingAlgorithm? defaultValue, ]) { - return enums.TonemappingAlgorithm.values - .firstWhereOrNull((e) => e.value == tonemappingAlgorithm) ?? + return enums.TonemappingAlgorithm.values.firstWhereOrNull( + (e) => e.value == tonemappingAlgorithm, + ) ?? defaultValue ?? enums.TonemappingAlgorithm.swaggerGeneratedUnknown; } @@ -53552,18 +59201,21 @@ enums.TonemappingAlgorithm? tonemappingAlgorithmNullableFromJson( if (tonemappingAlgorithm == null) { return null; } - return enums.TonemappingAlgorithm.values - .firstWhereOrNull((e) => e.value == tonemappingAlgorithm) ?? + return enums.TonemappingAlgorithm.values.firstWhereOrNull( + (e) => e.value == tonemappingAlgorithm, + ) ?? defaultValue; } String tonemappingAlgorithmExplodedListToJson( - List? tonemappingAlgorithm) { + List? tonemappingAlgorithm, +) { return tonemappingAlgorithm?.map((e) => e.value!).join(',') ?? ''; } List tonemappingAlgorithmListToJson( - List? tonemappingAlgorithm) { + List? tonemappingAlgorithm, +) { if (tonemappingAlgorithm == null) { return []; } @@ -53609,8 +59261,9 @@ enums.TonemappingMode tonemappingModeFromJson( Object? tonemappingMode, [ enums.TonemappingMode? defaultValue, ]) { - return enums.TonemappingMode.values - .firstWhereOrNull((e) => e.value == tonemappingMode) ?? + return enums.TonemappingMode.values.firstWhereOrNull( + (e) => e.value == tonemappingMode, + ) ?? defaultValue ?? enums.TonemappingMode.swaggerGeneratedUnknown; } @@ -53622,18 +59275,21 @@ enums.TonemappingMode? tonemappingModeNullableFromJson( if (tonemappingMode == null) { return null; } - return enums.TonemappingMode.values - .firstWhereOrNull((e) => e.value == tonemappingMode) ?? + return enums.TonemappingMode.values.firstWhereOrNull( + (e) => e.value == tonemappingMode, + ) ?? defaultValue; } String tonemappingModeExplodedListToJson( - List? tonemappingMode) { + List? tonemappingMode, +) { return tonemappingMode?.map((e) => e.value!).join(',') ?? ''; } List tonemappingModeListToJson( - List? tonemappingMode) { + List? tonemappingMode, +) { if (tonemappingMode == null) { return []; } @@ -53668,7 +59324,8 @@ List? tonemappingModeNullableListFromJson( } String? tonemappingRangeNullableToJson( - enums.TonemappingRange? tonemappingRange) { + enums.TonemappingRange? tonemappingRange, +) { return tonemappingRange?.value; } @@ -53680,8 +59337,9 @@ enums.TonemappingRange tonemappingRangeFromJson( Object? tonemappingRange, [ enums.TonemappingRange? defaultValue, ]) { - return enums.TonemappingRange.values - .firstWhereOrNull((e) => e.value == tonemappingRange) ?? + return enums.TonemappingRange.values.firstWhereOrNull( + (e) => e.value == tonemappingRange, + ) ?? defaultValue ?? enums.TonemappingRange.swaggerGeneratedUnknown; } @@ -53693,18 +59351,21 @@ enums.TonemappingRange? tonemappingRangeNullableFromJson( if (tonemappingRange == null) { return null; } - return enums.TonemappingRange.values - .firstWhereOrNull((e) => e.value == tonemappingRange) ?? + return enums.TonemappingRange.values.firstWhereOrNull( + (e) => e.value == tonemappingRange, + ) ?? defaultValue; } String tonemappingRangeExplodedListToJson( - List? tonemappingRange) { + List? tonemappingRange, +) { return tonemappingRange?.map((e) => e.value!).join(',') ?? ''; } List tonemappingRangeListToJson( - List? tonemappingRange) { + List? tonemappingRange, +) { if (tonemappingRange == null) { return []; } @@ -53750,8 +59411,9 @@ enums.TranscodeReason transcodeReasonFromJson( Object? transcodeReason, [ enums.TranscodeReason? defaultValue, ]) { - return enums.TranscodeReason.values - .firstWhereOrNull((e) => e.value == transcodeReason) ?? + return enums.TranscodeReason.values.firstWhereOrNull( + (e) => e.value == transcodeReason, + ) ?? defaultValue ?? enums.TranscodeReason.swaggerGeneratedUnknown; } @@ -53763,18 +59425,21 @@ enums.TranscodeReason? transcodeReasonNullableFromJson( if (transcodeReason == null) { return null; } - return enums.TranscodeReason.values - .firstWhereOrNull((e) => e.value == transcodeReason) ?? + return enums.TranscodeReason.values.firstWhereOrNull( + (e) => e.value == transcodeReason, + ) ?? defaultValue; } String transcodeReasonExplodedListToJson( - List? transcodeReason) { + List? transcodeReason, +) { return transcodeReason?.map((e) => e.value!).join(',') ?? ''; } List transcodeReasonListToJson( - List? transcodeReason) { + List? transcodeReason, +) { if (transcodeReason == null) { return []; } @@ -53809,7 +59474,8 @@ List? transcodeReasonNullableListFromJson( } String? transcodeSeekInfoNullableToJson( - enums.TranscodeSeekInfo? transcodeSeekInfo) { + enums.TranscodeSeekInfo? transcodeSeekInfo, +) { return transcodeSeekInfo?.value; } @@ -53821,8 +59487,9 @@ enums.TranscodeSeekInfo transcodeSeekInfoFromJson( Object? transcodeSeekInfo, [ enums.TranscodeSeekInfo? defaultValue, ]) { - return enums.TranscodeSeekInfo.values - .firstWhereOrNull((e) => e.value == transcodeSeekInfo) ?? + return enums.TranscodeSeekInfo.values.firstWhereOrNull( + (e) => e.value == transcodeSeekInfo, + ) ?? defaultValue ?? enums.TranscodeSeekInfo.swaggerGeneratedUnknown; } @@ -53834,18 +59501,21 @@ enums.TranscodeSeekInfo? transcodeSeekInfoNullableFromJson( if (transcodeSeekInfo == null) { return null; } - return enums.TranscodeSeekInfo.values - .firstWhereOrNull((e) => e.value == transcodeSeekInfo) ?? + return enums.TranscodeSeekInfo.values.firstWhereOrNull( + (e) => e.value == transcodeSeekInfo, + ) ?? defaultValue; } String transcodeSeekInfoExplodedListToJson( - List? transcodeSeekInfo) { + List? transcodeSeekInfo, +) { return transcodeSeekInfo?.map((e) => e.value!).join(',') ?? ''; } List transcodeSeekInfoListToJson( - List? transcodeSeekInfo) { + List? transcodeSeekInfo, +) { if (transcodeSeekInfo == null) { return []; } @@ -53880,12 +59550,14 @@ List? transcodeSeekInfoNullableListFromJson( } String? transcodingInfoTranscodeReasonsNullableToJson( - enums.TranscodingInfoTranscodeReasons? transcodingInfoTranscodeReasons) { + enums.TranscodingInfoTranscodeReasons? transcodingInfoTranscodeReasons, +) { return transcodingInfoTranscodeReasons?.value; } String? transcodingInfoTranscodeReasonsToJson( - enums.TranscodingInfoTranscodeReasons transcodingInfoTranscodeReasons) { + enums.TranscodingInfoTranscodeReasons transcodingInfoTranscodeReasons, +) { return transcodingInfoTranscodeReasons.value; } @@ -53894,13 +59566,14 @@ enums.TranscodingInfoTranscodeReasons transcodingInfoTranscodeReasonsFromJson( enums.TranscodingInfoTranscodeReasons? defaultValue, ]) { return enums.TranscodingInfoTranscodeReasons.values.firstWhereOrNull( - (e) => e.value == transcodingInfoTranscodeReasons) ?? + (e) => e.value == transcodingInfoTranscodeReasons, + ) ?? defaultValue ?? enums.TranscodingInfoTranscodeReasons.swaggerGeneratedUnknown; } enums.TranscodingInfoTranscodeReasons? - transcodingInfoTranscodeReasonsNullableFromJson( +transcodingInfoTranscodeReasonsNullableFromJson( Object? transcodingInfoTranscodeReasons, [ enums.TranscodingInfoTranscodeReasons? defaultValue, ]) { @@ -53908,19 +59581,20 @@ enums.TranscodingInfoTranscodeReasons? return null; } return enums.TranscodingInfoTranscodeReasons.values.firstWhereOrNull( - (e) => e.value == transcodingInfoTranscodeReasons) ?? + (e) => e.value == transcodingInfoTranscodeReasons, + ) ?? defaultValue; } String transcodingInfoTranscodeReasonsExplodedListToJson( - List? - transcodingInfoTranscodeReasons) { + List? transcodingInfoTranscodeReasons, +) { return transcodingInfoTranscodeReasons?.map((e) => e.value!).join(',') ?? ''; } List transcodingInfoTranscodeReasonsListToJson( - List? - transcodingInfoTranscodeReasons) { + List? transcodingInfoTranscodeReasons, +) { if (transcodingInfoTranscodeReasons == null) { return []; } @@ -53929,7 +59603,7 @@ List transcodingInfoTranscodeReasonsListToJson( } List - transcodingInfoTranscodeReasonsListFromJson( +transcodingInfoTranscodeReasonsListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -53943,7 +59617,7 @@ List } List? - transcodingInfoTranscodeReasonsNullableListFromJson( +transcodingInfoTranscodeReasonsNullableListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -53957,12 +59631,14 @@ List? } String? transportStreamTimestampNullableToJson( - enums.TransportStreamTimestamp? transportStreamTimestamp) { + enums.TransportStreamTimestamp? transportStreamTimestamp, +) { return transportStreamTimestamp?.value; } String? transportStreamTimestampToJson( - enums.TransportStreamTimestamp transportStreamTimestamp) { + enums.TransportStreamTimestamp transportStreamTimestamp, +) { return transportStreamTimestamp.value; } @@ -53970,8 +59646,9 @@ enums.TransportStreamTimestamp transportStreamTimestampFromJson( Object? transportStreamTimestamp, [ enums.TransportStreamTimestamp? defaultValue, ]) { - return enums.TransportStreamTimestamp.values - .firstWhereOrNull((e) => e.value == transportStreamTimestamp) ?? + return enums.TransportStreamTimestamp.values.firstWhereOrNull( + (e) => e.value == transportStreamTimestamp, + ) ?? defaultValue ?? enums.TransportStreamTimestamp.swaggerGeneratedUnknown; } @@ -53983,18 +59660,21 @@ enums.TransportStreamTimestamp? transportStreamTimestampNullableFromJson( if (transportStreamTimestamp == null) { return null; } - return enums.TransportStreamTimestamp.values - .firstWhereOrNull((e) => e.value == transportStreamTimestamp) ?? + return enums.TransportStreamTimestamp.values.firstWhereOrNull( + (e) => e.value == transportStreamTimestamp, + ) ?? defaultValue; } String transportStreamTimestampExplodedListToJson( - List? transportStreamTimestamp) { + List? transportStreamTimestamp, +) { return transportStreamTimestamp?.map((e) => e.value!).join(',') ?? ''; } List transportStreamTimestampListToJson( - List? transportStreamTimestamp) { + List? transportStreamTimestamp, +) { if (transportStreamTimestamp == null) { return []; } @@ -54016,7 +59696,7 @@ List transportStreamTimestampListFromJson( } List? - transportStreamTimestampNullableListFromJson( +transportStreamTimestampNullableListFromJson( List? transportStreamTimestamp, [ List? defaultValue, ]) { @@ -54030,12 +59710,14 @@ List? } String? trickplayScanBehaviorNullableToJson( - enums.TrickplayScanBehavior? trickplayScanBehavior) { + enums.TrickplayScanBehavior? trickplayScanBehavior, +) { return trickplayScanBehavior?.value; } String? trickplayScanBehaviorToJson( - enums.TrickplayScanBehavior trickplayScanBehavior) { + enums.TrickplayScanBehavior trickplayScanBehavior, +) { return trickplayScanBehavior.value; } @@ -54043,8 +59725,9 @@ enums.TrickplayScanBehavior trickplayScanBehaviorFromJson( Object? trickplayScanBehavior, [ enums.TrickplayScanBehavior? defaultValue, ]) { - return enums.TrickplayScanBehavior.values - .firstWhereOrNull((e) => e.value == trickplayScanBehavior) ?? + return enums.TrickplayScanBehavior.values.firstWhereOrNull( + (e) => e.value == trickplayScanBehavior, + ) ?? defaultValue ?? enums.TrickplayScanBehavior.swaggerGeneratedUnknown; } @@ -54056,18 +59739,21 @@ enums.TrickplayScanBehavior? trickplayScanBehaviorNullableFromJson( if (trickplayScanBehavior == null) { return null; } - return enums.TrickplayScanBehavior.values - .firstWhereOrNull((e) => e.value == trickplayScanBehavior) ?? + return enums.TrickplayScanBehavior.values.firstWhereOrNull( + (e) => e.value == trickplayScanBehavior, + ) ?? defaultValue; } String trickplayScanBehaviorExplodedListToJson( - List? trickplayScanBehavior) { + List? trickplayScanBehavior, +) { return trickplayScanBehavior?.map((e) => e.value!).join(',') ?? ''; } List trickplayScanBehaviorListToJson( - List? trickplayScanBehavior) { + List? trickplayScanBehavior, +) { if (trickplayScanBehavior == null) { return []; } @@ -54113,8 +59799,9 @@ enums.UnratedItem unratedItemFromJson( Object? unratedItem, [ enums.UnratedItem? defaultValue, ]) { - return enums.UnratedItem.values - .firstWhereOrNull((e) => e.value == unratedItem) ?? + return enums.UnratedItem.values.firstWhereOrNull( + (e) => e.value == unratedItem, + ) ?? defaultValue ?? enums.UnratedItem.swaggerGeneratedUnknown; } @@ -54126,8 +59813,9 @@ enums.UnratedItem? unratedItemNullableFromJson( if (unratedItem == null) { return null; } - return enums.UnratedItem.values - .firstWhereOrNull((e) => e.value == unratedItem) ?? + return enums.UnratedItem.values.firstWhereOrNull( + (e) => e.value == unratedItem, + ) ?? defaultValue; } @@ -54177,8 +59865,9 @@ enums.Video3DFormat video3DFormatFromJson( Object? video3DFormat, [ enums.Video3DFormat? defaultValue, ]) { - return enums.Video3DFormat.values - .firstWhereOrNull((e) => e.value == video3DFormat) ?? + return enums.Video3DFormat.values.firstWhereOrNull( + (e) => e.value == video3DFormat, + ) ?? defaultValue ?? enums.Video3DFormat.swaggerGeneratedUnknown; } @@ -54190,13 +59879,15 @@ enums.Video3DFormat? video3DFormatNullableFromJson( if (video3DFormat == null) { return null; } - return enums.Video3DFormat.values - .firstWhereOrNull((e) => e.value == video3DFormat) ?? + return enums.Video3DFormat.values.firstWhereOrNull( + (e) => e.value == video3DFormat, + ) ?? defaultValue; } String video3DFormatExplodedListToJson( - List? video3DFormat) { + List? video3DFormat, +) { return video3DFormat?.map((e) => e.value!).join(',') ?? ''; } @@ -54242,8 +59933,9 @@ enums.VideoRange videoRangeFromJson( Object? videoRange, [ enums.VideoRange? defaultValue, ]) { - return enums.VideoRange.values - .firstWhereOrNull((e) => e.value == videoRange) ?? + return enums.VideoRange.values.firstWhereOrNull( + (e) => e.value == videoRange, + ) ?? defaultValue ?? enums.VideoRange.swaggerGeneratedUnknown; } @@ -54255,8 +59947,9 @@ enums.VideoRange? videoRangeNullableFromJson( if (videoRange == null) { return null; } - return enums.VideoRange.values - .firstWhereOrNull((e) => e.value == videoRange) ?? + return enums.VideoRange.values.firstWhereOrNull( + (e) => e.value == videoRange, + ) ?? defaultValue; } @@ -54306,8 +59999,9 @@ enums.VideoRangeType videoRangeTypeFromJson( Object? videoRangeType, [ enums.VideoRangeType? defaultValue, ]) { - return enums.VideoRangeType.values - .firstWhereOrNull((e) => e.value == videoRangeType) ?? + return enums.VideoRangeType.values.firstWhereOrNull( + (e) => e.value == videoRangeType, + ) ?? defaultValue ?? enums.VideoRangeType.swaggerGeneratedUnknown; } @@ -54319,18 +60013,21 @@ enums.VideoRangeType? videoRangeTypeNullableFromJson( if (videoRangeType == null) { return null; } - return enums.VideoRangeType.values - .firstWhereOrNull((e) => e.value == videoRangeType) ?? + return enums.VideoRangeType.values.firstWhereOrNull( + (e) => e.value == videoRangeType, + ) ?? defaultValue; } String videoRangeTypeExplodedListToJson( - List? videoRangeType) { + List? videoRangeType, +) { return videoRangeType?.map((e) => e.value!).join(',') ?? ''; } List videoRangeTypeListToJson( - List? videoRangeType) { + List? videoRangeType, +) { if (videoRangeType == null) { return []; } @@ -54427,30 +60124,31 @@ List? videoTypeNullableListFromJson( } String? audioItemIdStreamGetSubtitleMethodNullableToJson( - enums.AudioItemIdStreamGetSubtitleMethod? - audioItemIdStreamGetSubtitleMethod) { + enums.AudioItemIdStreamGetSubtitleMethod? audioItemIdStreamGetSubtitleMethod, +) { return audioItemIdStreamGetSubtitleMethod?.value; } String? audioItemIdStreamGetSubtitleMethodToJson( - enums.AudioItemIdStreamGetSubtitleMethod - audioItemIdStreamGetSubtitleMethod) { + enums.AudioItemIdStreamGetSubtitleMethod audioItemIdStreamGetSubtitleMethod, +) { return audioItemIdStreamGetSubtitleMethod.value; } enums.AudioItemIdStreamGetSubtitleMethod - audioItemIdStreamGetSubtitleMethodFromJson( +audioItemIdStreamGetSubtitleMethodFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { return enums.AudioItemIdStreamGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamGetSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamGetSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdStreamGetSubtitleMethod? - audioItemIdStreamGetSubtitleMethodNullableFromJson( +audioItemIdStreamGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -54458,20 +60156,23 @@ enums.AudioItemIdStreamGetSubtitleMethod? return null; } return enums.AudioItemIdStreamGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamGetSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamGetSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamGetSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamGetSubtitleMethod) { + List? + audioItemIdStreamGetSubtitleMethod, +) { return audioItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamGetSubtitleMethodListToJson( - List? - audioItemIdStreamGetSubtitleMethod) { + List? + audioItemIdStreamGetSubtitleMethod, +) { if (audioItemIdStreamGetSubtitleMethod == null) { return []; } @@ -54480,7 +60181,7 @@ List audioItemIdStreamGetSubtitleMethodListToJson( } List - audioItemIdStreamGetSubtitleMethodListFromJson( +audioItemIdStreamGetSubtitleMethodListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -54494,7 +60195,7 @@ List } List? - audioItemIdStreamGetSubtitleMethodNullableListFromJson( +audioItemIdStreamGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -54508,12 +60209,14 @@ List? } String? audioItemIdStreamGetContextNullableToJson( - enums.AudioItemIdStreamGetContext? audioItemIdStreamGetContext) { + enums.AudioItemIdStreamGetContext? audioItemIdStreamGetContext, +) { return audioItemIdStreamGetContext?.value; } String? audioItemIdStreamGetContextToJson( - enums.AudioItemIdStreamGetContext audioItemIdStreamGetContext) { + enums.AudioItemIdStreamGetContext audioItemIdStreamGetContext, +) { return audioItemIdStreamGetContext.value; } @@ -54521,8 +60224,9 @@ enums.AudioItemIdStreamGetContext audioItemIdStreamGetContextFromJson( Object? audioItemIdStreamGetContext, [ enums.AudioItemIdStreamGetContext? defaultValue, ]) { - return enums.AudioItemIdStreamGetContext.values - .firstWhereOrNull((e) => e.value == audioItemIdStreamGetContext) ?? + return enums.AudioItemIdStreamGetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamGetContext, + ) ?? defaultValue ?? enums.AudioItemIdStreamGetContext.swaggerGeneratedUnknown; } @@ -54534,18 +60238,21 @@ enums.AudioItemIdStreamGetContext? audioItemIdStreamGetContextNullableFromJson( if (audioItemIdStreamGetContext == null) { return null; } - return enums.AudioItemIdStreamGetContext.values - .firstWhereOrNull((e) => e.value == audioItemIdStreamGetContext) ?? + return enums.AudioItemIdStreamGetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamGetContext, + ) ?? defaultValue; } String audioItemIdStreamGetContextExplodedListToJson( - List? audioItemIdStreamGetContext) { + List? audioItemIdStreamGetContext, +) { return audioItemIdStreamGetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamGetContextListToJson( - List? audioItemIdStreamGetContext) { + List? audioItemIdStreamGetContext, +) { if (audioItemIdStreamGetContext == null) { return []; } @@ -54567,7 +60274,7 @@ List audioItemIdStreamGetContextListFromJson( } List? - audioItemIdStreamGetContextNullableListFromJson( +audioItemIdStreamGetContextNullableListFromJson( List? audioItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -54581,30 +60288,32 @@ List? } String? audioItemIdStreamHeadSubtitleMethodNullableToJson( - enums.AudioItemIdStreamHeadSubtitleMethod? - audioItemIdStreamHeadSubtitleMethod) { + enums.AudioItemIdStreamHeadSubtitleMethod? + audioItemIdStreamHeadSubtitleMethod, +) { return audioItemIdStreamHeadSubtitleMethod?.value; } String? audioItemIdStreamHeadSubtitleMethodToJson( - enums.AudioItemIdStreamHeadSubtitleMethod - audioItemIdStreamHeadSubtitleMethod) { + enums.AudioItemIdStreamHeadSubtitleMethod audioItemIdStreamHeadSubtitleMethod, +) { return audioItemIdStreamHeadSubtitleMethod.value; } enums.AudioItemIdStreamHeadSubtitleMethod - audioItemIdStreamHeadSubtitleMethodFromJson( +audioItemIdStreamHeadSubtitleMethodFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { return enums.AudioItemIdStreamHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamHeadSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamHeadSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdStreamHeadSubtitleMethod? - audioItemIdStreamHeadSubtitleMethodNullableFromJson( +audioItemIdStreamHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -54612,20 +60321,23 @@ enums.AudioItemIdStreamHeadSubtitleMethod? return null; } return enums.AudioItemIdStreamHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamHeadSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamHeadSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamHeadSubtitleMethod) { + List? + audioItemIdStreamHeadSubtitleMethod, +) { return audioItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamHeadSubtitleMethodListToJson( - List? - audioItemIdStreamHeadSubtitleMethod) { + List? + audioItemIdStreamHeadSubtitleMethod, +) { if (audioItemIdStreamHeadSubtitleMethod == null) { return []; } @@ -54634,7 +60346,7 @@ List audioItemIdStreamHeadSubtitleMethodListToJson( } List - audioItemIdStreamHeadSubtitleMethodListFromJson( +audioItemIdStreamHeadSubtitleMethodListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -54648,7 +60360,7 @@ List } List? - audioItemIdStreamHeadSubtitleMethodNullableListFromJson( +audioItemIdStreamHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -54662,12 +60374,14 @@ List? } String? audioItemIdStreamHeadContextNullableToJson( - enums.AudioItemIdStreamHeadContext? audioItemIdStreamHeadContext) { + enums.AudioItemIdStreamHeadContext? audioItemIdStreamHeadContext, +) { return audioItemIdStreamHeadContext?.value; } String? audioItemIdStreamHeadContextToJson( - enums.AudioItemIdStreamHeadContext audioItemIdStreamHeadContext) { + enums.AudioItemIdStreamHeadContext audioItemIdStreamHeadContext, +) { return audioItemIdStreamHeadContext.value; } @@ -54675,32 +60389,36 @@ enums.AudioItemIdStreamHeadContext audioItemIdStreamHeadContextFromJson( Object? audioItemIdStreamHeadContext, [ enums.AudioItemIdStreamHeadContext? defaultValue, ]) { - return enums.AudioItemIdStreamHeadContext.values - .firstWhereOrNull((e) => e.value == audioItemIdStreamHeadContext) ?? + return enums.AudioItemIdStreamHeadContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamHeadContext, + ) ?? defaultValue ?? enums.AudioItemIdStreamHeadContext.swaggerGeneratedUnknown; } enums.AudioItemIdStreamHeadContext? - audioItemIdStreamHeadContextNullableFromJson( +audioItemIdStreamHeadContextNullableFromJson( Object? audioItemIdStreamHeadContext, [ enums.AudioItemIdStreamHeadContext? defaultValue, ]) { if (audioItemIdStreamHeadContext == null) { return null; } - return enums.AudioItemIdStreamHeadContext.values - .firstWhereOrNull((e) => e.value == audioItemIdStreamHeadContext) ?? + return enums.AudioItemIdStreamHeadContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamHeadContext, + ) ?? defaultValue; } String audioItemIdStreamHeadContextExplodedListToJson( - List? audioItemIdStreamHeadContext) { + List? audioItemIdStreamHeadContext, +) { return audioItemIdStreamHeadContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamHeadContextListToJson( - List? audioItemIdStreamHeadContext) { + List? audioItemIdStreamHeadContext, +) { if (audioItemIdStreamHeadContext == null) { return []; } @@ -54709,7 +60427,7 @@ List audioItemIdStreamHeadContextListToJson( } List - audioItemIdStreamHeadContextListFromJson( +audioItemIdStreamHeadContextListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -54723,7 +60441,7 @@ List } List? - audioItemIdStreamHeadContextNullableListFromJson( +audioItemIdStreamHeadContextNullableListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -54737,31 +60455,34 @@ List? } 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( +audioItemIdStreamContainerGetSubtitleMethodFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { return enums.AudioItemIdStreamContainerGetSubtitleMethod.values .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdStreamContainerGetSubtitleMethod? - audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( +audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { @@ -54770,13 +60491,15 @@ enums.AudioItemIdStreamContainerGetSubtitleMethod? } return enums.AudioItemIdStreamContainerGetSubtitleMethod.values .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamContainerGetSubtitleMethod) { + List? + audioItemIdStreamContainerGetSubtitleMethod, +) { return audioItemIdStreamContainerGetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -54784,8 +60507,9 @@ String audioItemIdStreamContainerGetSubtitleMethodExplodedListToJson( } List audioItemIdStreamContainerGetSubtitleMethodListToJson( - List? - audioItemIdStreamContainerGetSubtitleMethod) { + List? + audioItemIdStreamContainerGetSubtitleMethod, +) { if (audioItemIdStreamContainerGetSubtitleMethod == null) { return []; } @@ -54796,7 +60520,7 @@ List audioItemIdStreamContainerGetSubtitleMethodListToJson( } List - audioItemIdStreamContainerGetSubtitleMethodListFromJson( +audioItemIdStreamContainerGetSubtitleMethodListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -54805,13 +60529,15 @@ List } return audioItemIdStreamContainerGetSubtitleMethod - .map((e) => - audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString())) + .map( + (e) => + audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + ) .toList(); } List? - audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( +audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -54820,36 +60546,41 @@ List? } return audioItemIdStreamContainerGetSubtitleMethod - .map((e) => - audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString())) + .map( + (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( +audioItemIdStreamContainerGetContextFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { return enums.AudioItemIdStreamContainerGetContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetContext) ?? + (e) => e.value == audioItemIdStreamContainerGetContext, + ) ?? defaultValue ?? enums.AudioItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } enums.AudioItemIdStreamContainerGetContext? - audioItemIdStreamContainerGetContextNullableFromJson( +audioItemIdStreamContainerGetContextNullableFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { @@ -54857,20 +60588,23 @@ enums.AudioItemIdStreamContainerGetContext? return null; } return enums.AudioItemIdStreamContainerGetContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetContext) ?? + (e) => e.value == audioItemIdStreamContainerGetContext, + ) ?? defaultValue; } String audioItemIdStreamContainerGetContextExplodedListToJson( - List? - audioItemIdStreamContainerGetContext) { + List? + audioItemIdStreamContainerGetContext, +) { return audioItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerGetContextListToJson( - List? - audioItemIdStreamContainerGetContext) { + List? + audioItemIdStreamContainerGetContext, +) { if (audioItemIdStreamContainerGetContext == null) { return []; } @@ -54879,7 +60613,7 @@ List audioItemIdStreamContainerGetContextListToJson( } List - audioItemIdStreamContainerGetContextListFromJson( +audioItemIdStreamContainerGetContextListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -54893,7 +60627,7 @@ List } List? - audioItemIdStreamContainerGetContextNullableListFromJson( +audioItemIdStreamContainerGetContextNullableListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -54907,32 +60641,36 @@ List? } 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( +audioItemIdStreamContainerHeadSubtitleMethodFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? enums - .AudioItemIdStreamContainerHeadSubtitleMethod.swaggerGeneratedUnknown; + .AudioItemIdStreamContainerHeadSubtitleMethod + .swaggerGeneratedUnknown; } enums.AudioItemIdStreamContainerHeadSubtitleMethod? - audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { @@ -54941,13 +60679,15 @@ enums.AudioItemIdStreamContainerHeadSubtitleMethod? } return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod) ?? + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamContainerHeadSubtitleMethod) { + List? + audioItemIdStreamContainerHeadSubtitleMethod, +) { return audioItemIdStreamContainerHeadSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -54955,8 +60695,9 @@ String audioItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( } List audioItemIdStreamContainerHeadSubtitleMethodListToJson( - List? - audioItemIdStreamContainerHeadSubtitleMethod) { + List? + audioItemIdStreamContainerHeadSubtitleMethod, +) { if (audioItemIdStreamContainerHeadSubtitleMethod == null) { return []; } @@ -54967,7 +60708,7 @@ List audioItemIdStreamContainerHeadSubtitleMethodListToJson( } List - audioItemIdStreamContainerHeadSubtitleMethodListFromJson( +audioItemIdStreamContainerHeadSubtitleMethodListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -54976,13 +60717,15 @@ List } return audioItemIdStreamContainerHeadSubtitleMethod - .map((e) => - audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString())) + .map( + (e) => + audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + ) .toList(); } List? - audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( +audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -54991,36 +60734,41 @@ List? } return audioItemIdStreamContainerHeadSubtitleMethod - .map((e) => - audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString())) + .map( + (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( +audioItemIdStreamContainerHeadContextFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { return enums.AudioItemIdStreamContainerHeadContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadContext) ?? + (e) => e.value == audioItemIdStreamContainerHeadContext, + ) ?? defaultValue ?? enums.AudioItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } enums.AudioItemIdStreamContainerHeadContext? - audioItemIdStreamContainerHeadContextNullableFromJson( +audioItemIdStreamContainerHeadContextNullableFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -55028,13 +60776,15 @@ enums.AudioItemIdStreamContainerHeadContext? return null; } return enums.AudioItemIdStreamContainerHeadContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadContext) ?? + (e) => e.value == audioItemIdStreamContainerHeadContext, + ) ?? defaultValue; } String audioItemIdStreamContainerHeadContextExplodedListToJson( - List? - audioItemIdStreamContainerHeadContext) { + List? + audioItemIdStreamContainerHeadContext, +) { return audioItemIdStreamContainerHeadContext ?.map((e) => e.value!) .join(',') ?? @@ -55042,8 +60792,9 @@ String audioItemIdStreamContainerHeadContextExplodedListToJson( } List audioItemIdStreamContainerHeadContextListToJson( - List? - audioItemIdStreamContainerHeadContext) { + List? + audioItemIdStreamContainerHeadContext, +) { if (audioItemIdStreamContainerHeadContext == null) { return []; } @@ -55052,7 +60803,7 @@ List audioItemIdStreamContainerHeadContextListToJson( } List - audioItemIdStreamContainerHeadContextListFromJson( +audioItemIdStreamContainerHeadContextListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -55066,7 +60817,7 @@ List } List? - audioItemIdStreamContainerHeadContextNullableListFromJson( +audioItemIdStreamContainerHeadContextNullableListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -55080,57 +60831,65 @@ List? } String? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + defaultValue, ]) { return enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values - .firstWhereOrNull((e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) ?? + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + enums + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } return enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values - .firstWhereOrNull((e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) ?? + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } String - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( - List< - enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod>? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( + List? + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -55138,11 +60897,10 @@ String } List - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( - List< - enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod>? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( + List? + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } @@ -55153,67 +60911,78 @@ List } List - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ List? - defaultValue, + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; } return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString())) + .map( + (e) => + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), + ) .toList(); } List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ List? - defaultValue, + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; } return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString())) + .map( + (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) ?? + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext + enums + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext .swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { @@ -55221,15 +60990,18 @@ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? return null; } return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull((e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext) ?? + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String audioItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( - List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext) { + List? + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, +) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext ?.map((e) => e.value!) .join(',') ?? @@ -55237,8 +61009,9 @@ String audioItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( } List audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( - List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext) { + List? + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, +) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } @@ -55249,62 +61022,71 @@ List audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( } List - audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ List? - defaultValue, + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; } return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( - e.toString())) + .map( + (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + e.toString(), + ), + ) .toList(); } List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ List? - defaultValue, + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; } return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( - e.toString())) + .map( + (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + e.toString(), + ), + ) .toList(); } 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( +audioItemIdMainM3u8GetSubtitleMethodFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { return enums.AudioItemIdMainM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdMainM3u8GetSubtitleMethod) ?? + (e) => e.value == audioItemIdMainM3u8GetSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdMainM3u8GetSubtitleMethod? - audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( +audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -55312,20 +61094,23 @@ enums.AudioItemIdMainM3u8GetSubtitleMethod? return null; } return enums.AudioItemIdMainM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdMainM3u8GetSubtitleMethod) ?? + (e) => e.value == audioItemIdMainM3u8GetSubtitleMethod, + ) ?? defaultValue; } String audioItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? - audioItemIdMainM3u8GetSubtitleMethod) { + List? + audioItemIdMainM3u8GetSubtitleMethod, +) { return audioItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMainM3u8GetSubtitleMethodListToJson( - List? - audioItemIdMainM3u8GetSubtitleMethod) { + List? + audioItemIdMainM3u8GetSubtitleMethod, +) { if (audioItemIdMainM3u8GetSubtitleMethod == null) { return []; } @@ -55334,7 +61119,7 @@ List audioItemIdMainM3u8GetSubtitleMethodListToJson( } List - audioItemIdMainM3u8GetSubtitleMethodListFromJson( +audioItemIdMainM3u8GetSubtitleMethodListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -55348,7 +61133,7 @@ List } List? - audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -55362,12 +61147,14 @@ List? } String? audioItemIdMainM3u8GetContextNullableToJson( - enums.AudioItemIdMainM3u8GetContext? audioItemIdMainM3u8GetContext) { + enums.AudioItemIdMainM3u8GetContext? audioItemIdMainM3u8GetContext, +) { return audioItemIdMainM3u8GetContext?.value; } String? audioItemIdMainM3u8GetContextToJson( - enums.AudioItemIdMainM3u8GetContext audioItemIdMainM3u8GetContext) { + enums.AudioItemIdMainM3u8GetContext audioItemIdMainM3u8GetContext, +) { return audioItemIdMainM3u8GetContext.value; } @@ -55375,32 +61162,36 @@ enums.AudioItemIdMainM3u8GetContext audioItemIdMainM3u8GetContextFromJson( Object? audioItemIdMainM3u8GetContext, [ enums.AudioItemIdMainM3u8GetContext? defaultValue, ]) { - return enums.AudioItemIdMainM3u8GetContext.values - .firstWhereOrNull((e) => e.value == audioItemIdMainM3u8GetContext) ?? + return enums.AudioItemIdMainM3u8GetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdMainM3u8GetContext, + ) ?? defaultValue ?? enums.AudioItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } enums.AudioItemIdMainM3u8GetContext? - audioItemIdMainM3u8GetContextNullableFromJson( +audioItemIdMainM3u8GetContextNullableFromJson( Object? audioItemIdMainM3u8GetContext, [ enums.AudioItemIdMainM3u8GetContext? defaultValue, ]) { if (audioItemIdMainM3u8GetContext == null) { return null; } - return enums.AudioItemIdMainM3u8GetContext.values - .firstWhereOrNull((e) => e.value == audioItemIdMainM3u8GetContext) ?? + return enums.AudioItemIdMainM3u8GetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdMainM3u8GetContext, + ) ?? defaultValue; } String audioItemIdMainM3u8GetContextExplodedListToJson( - List? audioItemIdMainM3u8GetContext) { + List? audioItemIdMainM3u8GetContext, +) { return audioItemIdMainM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMainM3u8GetContextListToJson( - List? audioItemIdMainM3u8GetContext) { + List? audioItemIdMainM3u8GetContext, +) { if (audioItemIdMainM3u8GetContext == null) { return []; } @@ -55409,7 +61200,7 @@ List audioItemIdMainM3u8GetContextListToJson( } List - audioItemIdMainM3u8GetContextListFromJson( +audioItemIdMainM3u8GetContextListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -55423,7 +61214,7 @@ List } List? - audioItemIdMainM3u8GetContextNullableListFromJson( +audioItemIdMainM3u8GetContextNullableListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -55437,30 +61228,33 @@ List? } 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( +audioItemIdMasterM3u8GetSubtitleMethodFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { return enums.AudioItemIdMasterM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8GetSubtitleMethod) ?? + (e) => e.value == audioItemIdMasterM3u8GetSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdMasterM3u8GetSubtitleMethod? - audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -55468,13 +61262,15 @@ enums.AudioItemIdMasterM3u8GetSubtitleMethod? return null; } return enums.AudioItemIdMasterM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8GetSubtitleMethod) ?? + (e) => e.value == audioItemIdMasterM3u8GetSubtitleMethod, + ) ?? defaultValue; } String audioItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? - audioItemIdMasterM3u8GetSubtitleMethod) { + List? + audioItemIdMasterM3u8GetSubtitleMethod, +) { return audioItemIdMasterM3u8GetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -55482,8 +61278,9 @@ String audioItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( } List audioItemIdMasterM3u8GetSubtitleMethodListToJson( - List? - audioItemIdMasterM3u8GetSubtitleMethod) { + List? + audioItemIdMasterM3u8GetSubtitleMethod, +) { if (audioItemIdMasterM3u8GetSubtitleMethod == null) { return []; } @@ -55492,7 +61289,7 @@ List audioItemIdMasterM3u8GetSubtitleMethodListToJson( } List - audioItemIdMasterM3u8GetSubtitleMethodListFromJson( +audioItemIdMasterM3u8GetSubtitleMethodListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -55506,7 +61303,7 @@ List } List? - audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -55520,12 +61317,14 @@ List? } String? audioItemIdMasterM3u8GetContextNullableToJson( - enums.AudioItemIdMasterM3u8GetContext? audioItemIdMasterM3u8GetContext) { + enums.AudioItemIdMasterM3u8GetContext? audioItemIdMasterM3u8GetContext, +) { return audioItemIdMasterM3u8GetContext?.value; } String? audioItemIdMasterM3u8GetContextToJson( - enums.AudioItemIdMasterM3u8GetContext audioItemIdMasterM3u8GetContext) { + enums.AudioItemIdMasterM3u8GetContext audioItemIdMasterM3u8GetContext, +) { return audioItemIdMasterM3u8GetContext.value; } @@ -55534,13 +61333,14 @@ enums.AudioItemIdMasterM3u8GetContext audioItemIdMasterM3u8GetContextFromJson( enums.AudioItemIdMasterM3u8GetContext? defaultValue, ]) { return enums.AudioItemIdMasterM3u8GetContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8GetContext) ?? + (e) => e.value == audioItemIdMasterM3u8GetContext, + ) ?? defaultValue ?? enums.AudioItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } enums.AudioItemIdMasterM3u8GetContext? - audioItemIdMasterM3u8GetContextNullableFromJson( +audioItemIdMasterM3u8GetContextNullableFromJson( Object? audioItemIdMasterM3u8GetContext, [ enums.AudioItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -55548,19 +61348,20 @@ enums.AudioItemIdMasterM3u8GetContext? return null; } return enums.AudioItemIdMasterM3u8GetContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8GetContext) ?? + (e) => e.value == audioItemIdMasterM3u8GetContext, + ) ?? defaultValue; } String audioItemIdMasterM3u8GetContextExplodedListToJson( - List? - audioItemIdMasterM3u8GetContext) { + List? audioItemIdMasterM3u8GetContext, +) { return audioItemIdMasterM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8GetContextListToJson( - List? - audioItemIdMasterM3u8GetContext) { + List? audioItemIdMasterM3u8GetContext, +) { if (audioItemIdMasterM3u8GetContext == null) { return []; } @@ -55569,7 +61370,7 @@ List audioItemIdMasterM3u8GetContextListToJson( } List - audioItemIdMasterM3u8GetContextListFromJson( +audioItemIdMasterM3u8GetContextListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -55583,7 +61384,7 @@ List } List? - audioItemIdMasterM3u8GetContextNullableListFromJson( +audioItemIdMasterM3u8GetContextNullableListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -55597,30 +61398,33 @@ List? } 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( +audioItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { return enums.AudioItemIdMasterM3u8HeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8HeadSubtitleMethod) ?? + (e) => e.value == audioItemIdMasterM3u8HeadSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdMasterM3u8HeadSubtitleMethod? - audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -55628,13 +61432,15 @@ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? return null; } return enums.AudioItemIdMasterM3u8HeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8HeadSubtitleMethod) ?? + (e) => e.value == audioItemIdMasterM3u8HeadSubtitleMethod, + ) ?? defaultValue; } String audioItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? - audioItemIdMasterM3u8HeadSubtitleMethod) { + List? + audioItemIdMasterM3u8HeadSubtitleMethod, +) { return audioItemIdMasterM3u8HeadSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -55642,8 +61448,9 @@ String audioItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( } List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? - audioItemIdMasterM3u8HeadSubtitleMethod) { + List? + audioItemIdMasterM3u8HeadSubtitleMethod, +) { if (audioItemIdMasterM3u8HeadSubtitleMethod == null) { return []; } @@ -55652,7 +61459,7 @@ List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( } List - audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( +audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -55666,7 +61473,7 @@ List } List? - audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -55680,12 +61487,14 @@ List? } String? audioItemIdMasterM3u8HeadContextNullableToJson( - enums.AudioItemIdMasterM3u8HeadContext? audioItemIdMasterM3u8HeadContext) { + enums.AudioItemIdMasterM3u8HeadContext? audioItemIdMasterM3u8HeadContext, +) { return audioItemIdMasterM3u8HeadContext?.value; } String? audioItemIdMasterM3u8HeadContextToJson( - enums.AudioItemIdMasterM3u8HeadContext audioItemIdMasterM3u8HeadContext) { + enums.AudioItemIdMasterM3u8HeadContext audioItemIdMasterM3u8HeadContext, +) { return audioItemIdMasterM3u8HeadContext.value; } @@ -55694,13 +61503,14 @@ enums.AudioItemIdMasterM3u8HeadContext audioItemIdMasterM3u8HeadContextFromJson( enums.AudioItemIdMasterM3u8HeadContext? defaultValue, ]) { return enums.AudioItemIdMasterM3u8HeadContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8HeadContext) ?? + (e) => e.value == audioItemIdMasterM3u8HeadContext, + ) ?? defaultValue ?? enums.AudioItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } enums.AudioItemIdMasterM3u8HeadContext? - audioItemIdMasterM3u8HeadContextNullableFromJson( +audioItemIdMasterM3u8HeadContextNullableFromJson( Object? audioItemIdMasterM3u8HeadContext, [ enums.AudioItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -55708,19 +61518,22 @@ enums.AudioItemIdMasterM3u8HeadContext? return null; } return enums.AudioItemIdMasterM3u8HeadContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdMasterM3u8HeadContext) ?? + (e) => e.value == audioItemIdMasterM3u8HeadContext, + ) ?? defaultValue; } String audioItemIdMasterM3u8HeadContextExplodedListToJson( - List? - audioItemIdMasterM3u8HeadContext) { + List? + audioItemIdMasterM3u8HeadContext, +) { return audioItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8HeadContextListToJson( - List? - audioItemIdMasterM3u8HeadContext) { + List? + audioItemIdMasterM3u8HeadContext, +) { if (audioItemIdMasterM3u8HeadContext == null) { return []; } @@ -55729,7 +61542,7 @@ List audioItemIdMasterM3u8HeadContextListToJson( } List - audioItemIdMasterM3u8HeadContextListFromJson( +audioItemIdMasterM3u8HeadContextListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -55743,7 +61556,7 @@ List } List? - audioItemIdMasterM3u8HeadContextNullableListFromJson( +audioItemIdMasterM3u8HeadContextNullableListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -55757,57 +61570,65 @@ List? } String? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + defaultValue, ]) { return enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values - .firstWhereOrNull((e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) ?? + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + enums + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } return enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values - .firstWhereOrNull((e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) ?? + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } String - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( - List< - enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod>? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( + List? + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -55815,11 +61636,10 @@ String } List - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( - List< - enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod>? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod) { +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( + List? + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, +) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } @@ -55830,67 +61650,78 @@ List } List - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ List? - defaultValue, + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; } return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString())) + .map( + (e) => + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), + ) .toList(); } List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ List? - defaultValue, + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; } return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString())) + .map( + (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) ?? + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext + enums + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext .swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { @@ -55898,15 +61729,18 @@ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? return null; } return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull((e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext) ?? + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String videosItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( - List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext) { + List? + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, +) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext ?.map((e) => e.value!) .join(',') ?? @@ -55914,8 +61748,9 @@ String videosItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( } List videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( - List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext) { + List? + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, +) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } @@ -55926,64 +61761,71 @@ List videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( } List - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ List? - defaultValue, + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; } return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( - e.toString())) + .map( + (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + e.toString(), + ), + ) .toList(); } List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ List? - defaultValue, + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; } return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( - e.toString())) + .map( + (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + e.toString(), + ), + ) .toList(); } 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( +videosItemIdLiveM3u8GetSubtitleMethodFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdLiveM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdLiveM3u8GetSubtitleMethod) ?? + (e) => e.value == videosItemIdLiveM3u8GetSubtitleMethod, + ) ?? defaultValue ?? enums.VideosItemIdLiveM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdLiveM3u8GetSubtitleMethod? - videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( +videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { @@ -55991,13 +61833,15 @@ enums.VideosItemIdLiveM3u8GetSubtitleMethod? return null; } return enums.VideosItemIdLiveM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdLiveM3u8GetSubtitleMethod) ?? + (e) => e.value == videosItemIdLiveM3u8GetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdLiveM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdLiveM3u8GetSubtitleMethod) { + List? + videosItemIdLiveM3u8GetSubtitleMethod, +) { return videosItemIdLiveM3u8GetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -56005,8 +61849,9 @@ String videosItemIdLiveM3u8GetSubtitleMethodExplodedListToJson( } List videosItemIdLiveM3u8GetSubtitleMethodListToJson( - List? - videosItemIdLiveM3u8GetSubtitleMethod) { + List? + videosItemIdLiveM3u8GetSubtitleMethod, +) { if (videosItemIdLiveM3u8GetSubtitleMethod == null) { return []; } @@ -56015,7 +61860,7 @@ List videosItemIdLiveM3u8GetSubtitleMethodListToJson( } List - videosItemIdLiveM3u8GetSubtitleMethodListFromJson( +videosItemIdLiveM3u8GetSubtitleMethodListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -56029,7 +61874,7 @@ List } List? - videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( +videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -56043,12 +61888,14 @@ List? } String? videosItemIdLiveM3u8GetContextNullableToJson( - enums.VideosItemIdLiveM3u8GetContext? videosItemIdLiveM3u8GetContext) { + enums.VideosItemIdLiveM3u8GetContext? videosItemIdLiveM3u8GetContext, +) { return videosItemIdLiveM3u8GetContext?.value; } String? videosItemIdLiveM3u8GetContextToJson( - enums.VideosItemIdLiveM3u8GetContext videosItemIdLiveM3u8GetContext) { + enums.VideosItemIdLiveM3u8GetContext videosItemIdLiveM3u8GetContext, +) { return videosItemIdLiveM3u8GetContext.value; } @@ -56056,34 +61903,36 @@ enums.VideosItemIdLiveM3u8GetContext videosItemIdLiveM3u8GetContextFromJson( Object? videosItemIdLiveM3u8GetContext, [ enums.VideosItemIdLiveM3u8GetContext? defaultValue, ]) { - return enums.VideosItemIdLiveM3u8GetContext.values - .firstWhereOrNull((e) => e.value == videosItemIdLiveM3u8GetContext) ?? + return enums.VideosItemIdLiveM3u8GetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdLiveM3u8GetContext, + ) ?? defaultValue ?? enums.VideosItemIdLiveM3u8GetContext.swaggerGeneratedUnknown; } enums.VideosItemIdLiveM3u8GetContext? - videosItemIdLiveM3u8GetContextNullableFromJson( +videosItemIdLiveM3u8GetContextNullableFromJson( Object? videosItemIdLiveM3u8GetContext, [ enums.VideosItemIdLiveM3u8GetContext? defaultValue, ]) { if (videosItemIdLiveM3u8GetContext == null) { return null; } - return enums.VideosItemIdLiveM3u8GetContext.values - .firstWhereOrNull((e) => e.value == videosItemIdLiveM3u8GetContext) ?? + return enums.VideosItemIdLiveM3u8GetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdLiveM3u8GetContext, + ) ?? defaultValue; } String videosItemIdLiveM3u8GetContextExplodedListToJson( - List? - videosItemIdLiveM3u8GetContext) { + List? videosItemIdLiveM3u8GetContext, +) { return videosItemIdLiveM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdLiveM3u8GetContextListToJson( - List? - videosItemIdLiveM3u8GetContext) { + List? videosItemIdLiveM3u8GetContext, +) { if (videosItemIdLiveM3u8GetContext == null) { return []; } @@ -56092,7 +61941,7 @@ List videosItemIdLiveM3u8GetContextListToJson( } List - videosItemIdLiveM3u8GetContextListFromJson( +videosItemIdLiveM3u8GetContextListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -56106,7 +61955,7 @@ List } List? - videosItemIdLiveM3u8GetContextNullableListFromJson( +videosItemIdLiveM3u8GetContextNullableListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -56120,30 +61969,33 @@ List? } 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( +videosItemIdMainM3u8GetSubtitleMethodFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdMainM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdMainM3u8GetSubtitleMethod) ?? + (e) => e.value == videosItemIdMainM3u8GetSubtitleMethod, + ) ?? defaultValue ?? enums.VideosItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdMainM3u8GetSubtitleMethod? - videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( +videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -56151,13 +62003,15 @@ enums.VideosItemIdMainM3u8GetSubtitleMethod? return null; } return enums.VideosItemIdMainM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdMainM3u8GetSubtitleMethod) ?? + (e) => e.value == videosItemIdMainM3u8GetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdMainM3u8GetSubtitleMethod) { + List? + videosItemIdMainM3u8GetSubtitleMethod, +) { return videosItemIdMainM3u8GetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -56165,8 +62019,9 @@ String videosItemIdMainM3u8GetSubtitleMethodExplodedListToJson( } List videosItemIdMainM3u8GetSubtitleMethodListToJson( - List? - videosItemIdMainM3u8GetSubtitleMethod) { + List? + videosItemIdMainM3u8GetSubtitleMethod, +) { if (videosItemIdMainM3u8GetSubtitleMethod == null) { return []; } @@ -56175,7 +62030,7 @@ List videosItemIdMainM3u8GetSubtitleMethodListToJson( } List - videosItemIdMainM3u8GetSubtitleMethodListFromJson( +videosItemIdMainM3u8GetSubtitleMethodListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -56189,7 +62044,7 @@ List } List? - videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -56203,12 +62058,14 @@ List? } String? videosItemIdMainM3u8GetContextNullableToJson( - enums.VideosItemIdMainM3u8GetContext? videosItemIdMainM3u8GetContext) { + enums.VideosItemIdMainM3u8GetContext? videosItemIdMainM3u8GetContext, +) { return videosItemIdMainM3u8GetContext?.value; } String? videosItemIdMainM3u8GetContextToJson( - enums.VideosItemIdMainM3u8GetContext videosItemIdMainM3u8GetContext) { + enums.VideosItemIdMainM3u8GetContext videosItemIdMainM3u8GetContext, +) { return videosItemIdMainM3u8GetContext.value; } @@ -56216,34 +62073,36 @@ enums.VideosItemIdMainM3u8GetContext videosItemIdMainM3u8GetContextFromJson( Object? videosItemIdMainM3u8GetContext, [ enums.VideosItemIdMainM3u8GetContext? defaultValue, ]) { - return enums.VideosItemIdMainM3u8GetContext.values - .firstWhereOrNull((e) => e.value == videosItemIdMainM3u8GetContext) ?? + return enums.VideosItemIdMainM3u8GetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdMainM3u8GetContext, + ) ?? defaultValue ?? enums.VideosItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } enums.VideosItemIdMainM3u8GetContext? - videosItemIdMainM3u8GetContextNullableFromJson( +videosItemIdMainM3u8GetContextNullableFromJson( Object? videosItemIdMainM3u8GetContext, [ enums.VideosItemIdMainM3u8GetContext? defaultValue, ]) { if (videosItemIdMainM3u8GetContext == null) { return null; } - return enums.VideosItemIdMainM3u8GetContext.values - .firstWhereOrNull((e) => e.value == videosItemIdMainM3u8GetContext) ?? + return enums.VideosItemIdMainM3u8GetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdMainM3u8GetContext, + ) ?? defaultValue; } String videosItemIdMainM3u8GetContextExplodedListToJson( - List? - videosItemIdMainM3u8GetContext) { + List? videosItemIdMainM3u8GetContext, +) { return videosItemIdMainM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMainM3u8GetContextListToJson( - List? - videosItemIdMainM3u8GetContext) { + List? videosItemIdMainM3u8GetContext, +) { if (videosItemIdMainM3u8GetContext == null) { return []; } @@ -56252,7 +62111,7 @@ List videosItemIdMainM3u8GetContextListToJson( } List - videosItemIdMainM3u8GetContextListFromJson( +videosItemIdMainM3u8GetContextListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -56266,7 +62125,7 @@ List } List? - videosItemIdMainM3u8GetContextNullableListFromJson( +videosItemIdMainM3u8GetContextNullableListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -56280,30 +62139,33 @@ List? } 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( +videosItemIdMasterM3u8GetSubtitleMethodFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdMasterM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8GetSubtitleMethod) ?? + (e) => e.value == videosItemIdMasterM3u8GetSubtitleMethod, + ) ?? defaultValue ?? enums.VideosItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdMasterM3u8GetSubtitleMethod? - videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -56311,13 +62173,15 @@ enums.VideosItemIdMasterM3u8GetSubtitleMethod? return null; } return enums.VideosItemIdMasterM3u8GetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8GetSubtitleMethod) ?? + (e) => e.value == videosItemIdMasterM3u8GetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdMasterM3u8GetSubtitleMethod) { + List? + videosItemIdMasterM3u8GetSubtitleMethod, +) { return videosItemIdMasterM3u8GetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -56325,8 +62189,9 @@ String videosItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( } List videosItemIdMasterM3u8GetSubtitleMethodListToJson( - List? - videosItemIdMasterM3u8GetSubtitleMethod) { + List? + videosItemIdMasterM3u8GetSubtitleMethod, +) { if (videosItemIdMasterM3u8GetSubtitleMethod == null) { return []; } @@ -56335,7 +62200,7 @@ List videosItemIdMasterM3u8GetSubtitleMethodListToJson( } List - videosItemIdMasterM3u8GetSubtitleMethodListFromJson( +videosItemIdMasterM3u8GetSubtitleMethodListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -56349,7 +62214,7 @@ List } List? - videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -56363,12 +62228,14 @@ List? } String? videosItemIdMasterM3u8GetContextNullableToJson( - enums.VideosItemIdMasterM3u8GetContext? videosItemIdMasterM3u8GetContext) { + enums.VideosItemIdMasterM3u8GetContext? videosItemIdMasterM3u8GetContext, +) { return videosItemIdMasterM3u8GetContext?.value; } String? videosItemIdMasterM3u8GetContextToJson( - enums.VideosItemIdMasterM3u8GetContext videosItemIdMasterM3u8GetContext) { + enums.VideosItemIdMasterM3u8GetContext videosItemIdMasterM3u8GetContext, +) { return videosItemIdMasterM3u8GetContext.value; } @@ -56377,13 +62244,14 @@ enums.VideosItemIdMasterM3u8GetContext videosItemIdMasterM3u8GetContextFromJson( enums.VideosItemIdMasterM3u8GetContext? defaultValue, ]) { return enums.VideosItemIdMasterM3u8GetContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8GetContext) ?? + (e) => e.value == videosItemIdMasterM3u8GetContext, + ) ?? defaultValue ?? enums.VideosItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } enums.VideosItemIdMasterM3u8GetContext? - videosItemIdMasterM3u8GetContextNullableFromJson( +videosItemIdMasterM3u8GetContextNullableFromJson( Object? videosItemIdMasterM3u8GetContext, [ enums.VideosItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -56391,19 +62259,22 @@ enums.VideosItemIdMasterM3u8GetContext? return null; } return enums.VideosItemIdMasterM3u8GetContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8GetContext) ?? + (e) => e.value == videosItemIdMasterM3u8GetContext, + ) ?? defaultValue; } String videosItemIdMasterM3u8GetContextExplodedListToJson( - List? - videosItemIdMasterM3u8GetContext) { + List? + videosItemIdMasterM3u8GetContext, +) { return videosItemIdMasterM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8GetContextListToJson( - List? - videosItemIdMasterM3u8GetContext) { + List? + videosItemIdMasterM3u8GetContext, +) { if (videosItemIdMasterM3u8GetContext == null) { return []; } @@ -56412,7 +62283,7 @@ List videosItemIdMasterM3u8GetContextListToJson( } List - videosItemIdMasterM3u8GetContextListFromJson( +videosItemIdMasterM3u8GetContextListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -56426,7 +62297,7 @@ List } List? - videosItemIdMasterM3u8GetContextNullableListFromJson( +videosItemIdMasterM3u8GetContextNullableListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -56440,30 +62311,33 @@ List? } 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( +videosItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdMasterM3u8HeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8HeadSubtitleMethod) ?? + (e) => e.value == videosItemIdMasterM3u8HeadSubtitleMethod, + ) ?? defaultValue ?? enums.VideosItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdMasterM3u8HeadSubtitleMethod? - videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -56471,13 +62345,15 @@ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? return null; } return enums.VideosItemIdMasterM3u8HeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8HeadSubtitleMethod) ?? + (e) => e.value == videosItemIdMasterM3u8HeadSubtitleMethod, + ) ?? defaultValue; } String videosItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? - videosItemIdMasterM3u8HeadSubtitleMethod) { + List? + videosItemIdMasterM3u8HeadSubtitleMethod, +) { return videosItemIdMasterM3u8HeadSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -56485,8 +62361,9 @@ String videosItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( } List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? - videosItemIdMasterM3u8HeadSubtitleMethod) { + List? + videosItemIdMasterM3u8HeadSubtitleMethod, +) { if (videosItemIdMasterM3u8HeadSubtitleMethod == null) { return []; } @@ -56495,7 +62372,7 @@ List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( } List - videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( +videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -56505,12 +62382,13 @@ List return videosItemIdMasterM3u8HeadSubtitleMethod .map( - (e) => videosItemIdMasterM3u8HeadSubtitleMethodFromJson(e.toString())) + (e) => videosItemIdMasterM3u8HeadSubtitleMethodFromJson(e.toString()), + ) .toList(); } List? - videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -56520,34 +62398,37 @@ List? return videosItemIdMasterM3u8HeadSubtitleMethod .map( - (e) => videosItemIdMasterM3u8HeadSubtitleMethodFromJson(e.toString())) + (e) => videosItemIdMasterM3u8HeadSubtitleMethodFromJson(e.toString()), + ) .toList(); } String? videosItemIdMasterM3u8HeadContextNullableToJson( - enums.VideosItemIdMasterM3u8HeadContext? - videosItemIdMasterM3u8HeadContext) { + enums.VideosItemIdMasterM3u8HeadContext? videosItemIdMasterM3u8HeadContext, +) { return videosItemIdMasterM3u8HeadContext?.value; } String? videosItemIdMasterM3u8HeadContextToJson( - enums.VideosItemIdMasterM3u8HeadContext videosItemIdMasterM3u8HeadContext) { + enums.VideosItemIdMasterM3u8HeadContext videosItemIdMasterM3u8HeadContext, +) { return videosItemIdMasterM3u8HeadContext.value; } enums.VideosItemIdMasterM3u8HeadContext - videosItemIdMasterM3u8HeadContextFromJson( +videosItemIdMasterM3u8HeadContextFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { return enums.VideosItemIdMasterM3u8HeadContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8HeadContext) ?? + (e) => e.value == videosItemIdMasterM3u8HeadContext, + ) ?? defaultValue ?? enums.VideosItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } enums.VideosItemIdMasterM3u8HeadContext? - videosItemIdMasterM3u8HeadContextNullableFromJson( +videosItemIdMasterM3u8HeadContextNullableFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -56555,20 +62436,23 @@ enums.VideosItemIdMasterM3u8HeadContext? return null; } return enums.VideosItemIdMasterM3u8HeadContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdMasterM3u8HeadContext) ?? + (e) => e.value == videosItemIdMasterM3u8HeadContext, + ) ?? defaultValue; } String videosItemIdMasterM3u8HeadContextExplodedListToJson( - List? - videosItemIdMasterM3u8HeadContext) { + List? + videosItemIdMasterM3u8HeadContext, +) { return videosItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8HeadContextListToJson( - List? - videosItemIdMasterM3u8HeadContext) { + List? + videosItemIdMasterM3u8HeadContext, +) { if (videosItemIdMasterM3u8HeadContext == null) { return []; } @@ -56577,7 +62461,7 @@ List videosItemIdMasterM3u8HeadContextListToJson( } List - videosItemIdMasterM3u8HeadContextListFromJson( +videosItemIdMasterM3u8HeadContextListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -56591,7 +62475,7 @@ List } List? - videosItemIdMasterM3u8HeadContextNullableListFromJson( +videosItemIdMasterM3u8HeadContextNullableListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -56605,32 +62489,36 @@ List? } 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( +artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexGetImageType + enums + .ArtistsNameImagesImageTypeImageIndexGetImageType .swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexGetImageType? - artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { @@ -56638,14 +62526,16 @@ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? return null; } return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexGetImageType) { + List? + artistsNameImagesImageTypeImageIndexGetImageType, +) { return artistsNameImagesImageTypeImageIndexGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -56653,8 +62543,9 @@ String artistsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( } List artistsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - artistsNameImagesImageTypeImageIndexGetImageType) { + List? + artistsNameImagesImageTypeImageIndexGetImageType, +) { if (artistsNameImagesImageTypeImageIndexGetImageType == null) { return []; } @@ -56665,7 +62556,7 @@ List artistsNameImagesImageTypeImageIndexGetImageTypeListToJson( } List - artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( +artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -56674,13 +62565,16 @@ List } return artistsNameImagesImageTypeImageIndexGetImageType - .map((e) => artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -56689,38 +62583,45 @@ List? } return artistsNameImagesImageTypeImageIndexGetImageType - .map((e) => artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +artistsNameImagesImageTypeImageIndexGetFormatFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexGetFormat + enums + .ArtistsNameImagesImageTypeImageIndexGetFormat .swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexGetFormat? - artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { @@ -56728,14 +62629,16 @@ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? return null; } return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexGetFormat) { + List? + artistsNameImagesImageTypeImageIndexGetFormat, +) { return artistsNameImagesImageTypeImageIndexGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -56743,8 +62646,9 @@ String artistsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( } List artistsNameImagesImageTypeImageIndexGetFormatListToJson( - List? - artistsNameImagesImageTypeImageIndexGetFormat) { + List? + artistsNameImagesImageTypeImageIndexGetFormat, +) { if (artistsNameImagesImageTypeImageIndexGetFormat == null) { return []; } @@ -56755,7 +62659,7 @@ List artistsNameImagesImageTypeImageIndexGetFormatListToJson( } List - artistsNameImagesImageTypeImageIndexGetFormatListFromJson( +artistsNameImagesImageTypeImageIndexGetFormatListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -56764,13 +62668,15 @@ List } return artistsNameImagesImageTypeImageIndexGetFormat - .map((e) => - artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (e) => + artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + ) .toList(); } List? - artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -56779,38 +62685,44 @@ List? } return artistsNameImagesImageTypeImageIndexGetFormat - .map((e) => - artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (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( +artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType + enums + .ArtistsNameImagesImageTypeImageIndexHeadImageType .swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? - artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { @@ -56818,14 +62730,16 @@ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? return null; } return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadImageType) { + List? + artistsNameImagesImageTypeImageIndexHeadImageType, +) { return artistsNameImagesImageTypeImageIndexHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -56833,8 +62747,9 @@ String artistsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( } List artistsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadImageType) { + List? + artistsNameImagesImageTypeImageIndexHeadImageType, +) { if (artistsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } @@ -56845,7 +62760,7 @@ List artistsNameImagesImageTypeImageIndexHeadImageTypeListToJson( } List - artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -56854,13 +62769,16 @@ List } return artistsNameImagesImageTypeImageIndexHeadImageType - .map((e) => artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -56869,38 +62787,45 @@ List? } return artistsNameImagesImageTypeImageIndexHeadImageType - .map((e) => artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +artistsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat + enums + .ArtistsNameImagesImageTypeImageIndexHeadFormat .swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? - artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { @@ -56908,14 +62833,16 @@ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? return null; } return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == artistsNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadFormat) { + List? + artistsNameImagesImageTypeImageIndexHeadFormat, +) { return artistsNameImagesImageTypeImageIndexHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -56923,8 +62850,9 @@ String artistsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( } List artistsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadFormat) { + List? + artistsNameImagesImageTypeImageIndexHeadFormat, +) { if (artistsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } @@ -56935,7 +62863,7 @@ List artistsNameImagesImageTypeImageIndexHeadFormatListToJson( } List - artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( +artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -56944,13 +62872,16 @@ List } return artistsNameImagesImageTypeImageIndexHeadFormat - .map((e) => - artistsNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => artistsNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } List? - artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -56959,18 +62890,23 @@ List? } return artistsNameImagesImageTypeImageIndexHeadFormat - .map((e) => - artistsNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => artistsNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } String? brandingSplashscreenGetFormatNullableToJson( - enums.BrandingSplashscreenGetFormat? brandingSplashscreenGetFormat) { + enums.BrandingSplashscreenGetFormat? brandingSplashscreenGetFormat, +) { return brandingSplashscreenGetFormat?.value; } String? brandingSplashscreenGetFormatToJson( - enums.BrandingSplashscreenGetFormat brandingSplashscreenGetFormat) { + enums.BrandingSplashscreenGetFormat brandingSplashscreenGetFormat, +) { return brandingSplashscreenGetFormat.value; } @@ -56978,32 +62914,36 @@ enums.BrandingSplashscreenGetFormat brandingSplashscreenGetFormatFromJson( Object? brandingSplashscreenGetFormat, [ enums.BrandingSplashscreenGetFormat? defaultValue, ]) { - return enums.BrandingSplashscreenGetFormat.values - .firstWhereOrNull((e) => e.value == brandingSplashscreenGetFormat) ?? + return enums.BrandingSplashscreenGetFormat.values.firstWhereOrNull( + (e) => e.value == brandingSplashscreenGetFormat, + ) ?? defaultValue ?? enums.BrandingSplashscreenGetFormat.swaggerGeneratedUnknown; } enums.BrandingSplashscreenGetFormat? - brandingSplashscreenGetFormatNullableFromJson( +brandingSplashscreenGetFormatNullableFromJson( Object? brandingSplashscreenGetFormat, [ enums.BrandingSplashscreenGetFormat? defaultValue, ]) { if (brandingSplashscreenGetFormat == null) { return null; } - return enums.BrandingSplashscreenGetFormat.values - .firstWhereOrNull((e) => e.value == brandingSplashscreenGetFormat) ?? + return enums.BrandingSplashscreenGetFormat.values.firstWhereOrNull( + (e) => e.value == brandingSplashscreenGetFormat, + ) ?? defaultValue; } String brandingSplashscreenGetFormatExplodedListToJson( - List? brandingSplashscreenGetFormat) { + List? brandingSplashscreenGetFormat, +) { return brandingSplashscreenGetFormat?.map((e) => e.value!).join(',') ?? ''; } List brandingSplashscreenGetFormatListToJson( - List? brandingSplashscreenGetFormat) { + List? brandingSplashscreenGetFormat, +) { if (brandingSplashscreenGetFormat == null) { return []; } @@ -57012,7 +62952,7 @@ List brandingSplashscreenGetFormatListToJson( } List - brandingSplashscreenGetFormatListFromJson( +brandingSplashscreenGetFormatListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -57026,7 +62966,7 @@ List } List? - brandingSplashscreenGetFormatNullableListFromJson( +brandingSplashscreenGetFormatNullableListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -57040,30 +62980,33 @@ List? } 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( +genresNameImagesImageTypeGetImageTypeFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { return enums.GenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeGetImageType) ?? + (e) => e.value == genresNameImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.GenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeGetImageType? - genresNameImagesImageTypeGetImageTypeNullableFromJson( +genresNameImagesImageTypeGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -57071,13 +63014,15 @@ enums.GenresNameImagesImageTypeGetImageType? return null; } return enums.GenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeGetImageType) ?? + (e) => e.value == genresNameImagesImageTypeGetImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeGetImageType) { + List? + genresNameImagesImageTypeGetImageType, +) { return genresNameImagesImageTypeGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -57085,8 +63030,9 @@ String genresNameImagesImageTypeGetImageTypeExplodedListToJson( } List genresNameImagesImageTypeGetImageTypeListToJson( - List? - genresNameImagesImageTypeGetImageType) { + List? + genresNameImagesImageTypeGetImageType, +) { if (genresNameImagesImageTypeGetImageType == null) { return []; } @@ -57095,7 +63041,7 @@ List genresNameImagesImageTypeGetImageTypeListToJson( } List - genresNameImagesImageTypeGetImageTypeListFromJson( +genresNameImagesImageTypeGetImageTypeListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -57109,7 +63055,7 @@ List } List? - genresNameImagesImageTypeGetImageTypeNullableListFromJson( +genresNameImagesImageTypeGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -57123,30 +63069,31 @@ List? } String? genresNameImagesImageTypeGetFormatNullableToJson( - enums.GenresNameImagesImageTypeGetFormat? - genresNameImagesImageTypeGetFormat) { + enums.GenresNameImagesImageTypeGetFormat? genresNameImagesImageTypeGetFormat, +) { return genresNameImagesImageTypeGetFormat?.value; } String? genresNameImagesImageTypeGetFormatToJson( - enums.GenresNameImagesImageTypeGetFormat - genresNameImagesImageTypeGetFormat) { + enums.GenresNameImagesImageTypeGetFormat genresNameImagesImageTypeGetFormat, +) { return genresNameImagesImageTypeGetFormat.value; } enums.GenresNameImagesImageTypeGetFormat - genresNameImagesImageTypeGetFormatFromJson( +genresNameImagesImageTypeGetFormatFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { return enums.GenresNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeGetFormat) ?? + (e) => e.value == genresNameImagesImageTypeGetFormat, + ) ?? defaultValue ?? enums.GenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeGetFormat? - genresNameImagesImageTypeGetFormatNullableFromJson( +genresNameImagesImageTypeGetFormatNullableFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -57154,20 +63101,23 @@ enums.GenresNameImagesImageTypeGetFormat? return null; } return enums.GenresNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeGetFormat) ?? + (e) => e.value == genresNameImagesImageTypeGetFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeGetFormatExplodedListToJson( - List? - genresNameImagesImageTypeGetFormat) { + List? + genresNameImagesImageTypeGetFormat, +) { return genresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeGetFormatListToJson( - List? - genresNameImagesImageTypeGetFormat) { + List? + genresNameImagesImageTypeGetFormat, +) { if (genresNameImagesImageTypeGetFormat == null) { return []; } @@ -57176,7 +63126,7 @@ List genresNameImagesImageTypeGetFormatListToJson( } List - genresNameImagesImageTypeGetFormatListFromJson( +genresNameImagesImageTypeGetFormatListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -57190,7 +63140,7 @@ List } List? - genresNameImagesImageTypeGetFormatNullableListFromJson( +genresNameImagesImageTypeGetFormatNullableListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -57204,30 +63154,33 @@ List? } 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( +genresNameImagesImageTypeHeadImageTypeFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { return enums.GenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeHeadImageType) ?? + (e) => e.value == genresNameImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.GenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeHeadImageType? - genresNameImagesImageTypeHeadImageTypeNullableFromJson( +genresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -57235,13 +63188,15 @@ enums.GenresNameImagesImageTypeHeadImageType? return null; } return enums.GenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeHeadImageType) ?? + (e) => e.value == genresNameImagesImageTypeHeadImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeHeadImageType) { + List? + genresNameImagesImageTypeHeadImageType, +) { return genresNameImagesImageTypeHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -57249,8 +63204,9 @@ String genresNameImagesImageTypeHeadImageTypeExplodedListToJson( } List genresNameImagesImageTypeHeadImageTypeListToJson( - List? - genresNameImagesImageTypeHeadImageType) { + List? + genresNameImagesImageTypeHeadImageType, +) { if (genresNameImagesImageTypeHeadImageType == null) { return []; } @@ -57259,7 +63215,7 @@ List genresNameImagesImageTypeHeadImageTypeListToJson( } List - genresNameImagesImageTypeHeadImageTypeListFromJson( +genresNameImagesImageTypeHeadImageTypeListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -57273,7 +63229,7 @@ List } List? - genresNameImagesImageTypeHeadImageTypeNullableListFromJson( +genresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -57287,30 +63243,32 @@ List? } String? genresNameImagesImageTypeHeadFormatNullableToJson( - enums.GenresNameImagesImageTypeHeadFormat? - genresNameImagesImageTypeHeadFormat) { + enums.GenresNameImagesImageTypeHeadFormat? + genresNameImagesImageTypeHeadFormat, +) { return genresNameImagesImageTypeHeadFormat?.value; } String? genresNameImagesImageTypeHeadFormatToJson( - enums.GenresNameImagesImageTypeHeadFormat - genresNameImagesImageTypeHeadFormat) { + enums.GenresNameImagesImageTypeHeadFormat genresNameImagesImageTypeHeadFormat, +) { return genresNameImagesImageTypeHeadFormat.value; } enums.GenresNameImagesImageTypeHeadFormat - genresNameImagesImageTypeHeadFormatFromJson( +genresNameImagesImageTypeHeadFormatFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { return enums.GenresNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeHeadFormat) ?? + (e) => e.value == genresNameImagesImageTypeHeadFormat, + ) ?? defaultValue ?? enums.GenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeHeadFormat? - genresNameImagesImageTypeHeadFormatNullableFromJson( +genresNameImagesImageTypeHeadFormatNullableFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -57318,20 +63276,23 @@ enums.GenresNameImagesImageTypeHeadFormat? return null; } return enums.GenresNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeHeadFormat) ?? + (e) => e.value == genresNameImagesImageTypeHeadFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeHeadFormatExplodedListToJson( - List? - genresNameImagesImageTypeHeadFormat) { + List? + genresNameImagesImageTypeHeadFormat, +) { return genresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeHeadFormatListToJson( - List? - genresNameImagesImageTypeHeadFormat) { + List? + genresNameImagesImageTypeHeadFormat, +) { if (genresNameImagesImageTypeHeadFormat == null) { return []; } @@ -57340,7 +63301,7 @@ List genresNameImagesImageTypeHeadFormatListToJson( } List - genresNameImagesImageTypeHeadFormatListFromJson( +genresNameImagesImageTypeHeadFormatListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -57354,7 +63315,7 @@ List } List? - genresNameImagesImageTypeHeadFormatNullableListFromJson( +genresNameImagesImageTypeHeadFormatNullableListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -57368,32 +63329,36 @@ List? } 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( +genresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { return enums.GenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == genresNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.GenresNameImagesImageTypeImageIndexGetImageType + enums + .GenresNameImagesImageTypeImageIndexGetImageType .swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeImageIndexGetImageType? - genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { @@ -57401,14 +63366,16 @@ enums.GenresNameImagesImageTypeImageIndexGetImageType? return null; } return enums.GenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == genresNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexGetImageType) { + List? + genresNameImagesImageTypeImageIndexGetImageType, +) { return genresNameImagesImageTypeImageIndexGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -57416,8 +63383,9 @@ String genresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( } List genresNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - genresNameImagesImageTypeImageIndexGetImageType) { + List? + genresNameImagesImageTypeImageIndexGetImageType, +) { if (genresNameImagesImageTypeImageIndexGetImageType == null) { return []; } @@ -57428,7 +63396,7 @@ List genresNameImagesImageTypeImageIndexGetImageTypeListToJson( } List - genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( +genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -57437,13 +63405,16 @@ List } return genresNameImagesImageTypeImageIndexGetImageType - .map((e) => - genresNameImagesImageTypeImageIndexGetImageTypeFromJson(e.toString())) + .map( + (e) => genresNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -57452,38 +63423,45 @@ List? } return genresNameImagesImageTypeImageIndexGetImageType - .map((e) => - genresNameImagesImageTypeImageIndexGetImageTypeFromJson(e.toString())) + .map( + (e) => genresNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +genresNameImagesImageTypeImageIndexGetFormatFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { return enums.GenresNameImagesImageTypeImageIndexGetFormat.values .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat) ?? + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? enums - .GenresNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; + .GenresNameImagesImageTypeImageIndexGetFormat + .swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeImageIndexGetFormat? - genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( +genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { @@ -57492,13 +63470,15 @@ enums.GenresNameImagesImageTypeImageIndexGetFormat? } return enums.GenresNameImagesImageTypeImageIndexGetFormat.values .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat) ?? + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexGetFormat) { + List? + genresNameImagesImageTypeImageIndexGetFormat, +) { return genresNameImagesImageTypeImageIndexGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -57506,8 +63486,9 @@ String genresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( } List genresNameImagesImageTypeImageIndexGetFormatListToJson( - List? - genresNameImagesImageTypeImageIndexGetFormat) { + List? + genresNameImagesImageTypeImageIndexGetFormat, +) { if (genresNameImagesImageTypeImageIndexGetFormat == null) { return []; } @@ -57518,7 +63499,7 @@ List genresNameImagesImageTypeImageIndexGetFormatListToJson( } List - genresNameImagesImageTypeImageIndexGetFormatListFromJson( +genresNameImagesImageTypeImageIndexGetFormatListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -57527,13 +63508,15 @@ List } return genresNameImagesImageTypeImageIndexGetFormat - .map((e) => - genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (e) => + genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + ) .toList(); } List? - genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -57542,38 +63525,44 @@ List? } return genresNameImagesImageTypeImageIndexGetFormat - .map((e) => - genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (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( +genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == genresNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.GenresNameImagesImageTypeImageIndexHeadImageType + enums + .GenresNameImagesImageTypeImageIndexHeadImageType .swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeImageIndexHeadImageType? - genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { @@ -57581,14 +63570,16 @@ enums.GenresNameImagesImageTypeImageIndexHeadImageType? return null; } return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == genresNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexHeadImageType) { + List? + genresNameImagesImageTypeImageIndexHeadImageType, +) { return genresNameImagesImageTypeImageIndexHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -57596,8 +63587,9 @@ String genresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( } List genresNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - genresNameImagesImageTypeImageIndexHeadImageType) { + List? + genresNameImagesImageTypeImageIndexHeadImageType, +) { if (genresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } @@ -57608,7 +63600,7 @@ List genresNameImagesImageTypeImageIndexHeadImageTypeListToJson( } List - genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -57617,13 +63609,16 @@ List } return genresNameImagesImageTypeImageIndexHeadImageType - .map((e) => genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -57632,38 +63627,45 @@ List? } return genresNameImagesImageTypeImageIndexHeadImageType - .map((e) => genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +genresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == genresNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.GenresNameImagesImageTypeImageIndexHeadFormat + enums + .GenresNameImagesImageTypeImageIndexHeadFormat .swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeImageIndexHeadFormat? - genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { @@ -57671,14 +63673,16 @@ enums.GenresNameImagesImageTypeImageIndexHeadFormat? return null; } return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == genresNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexHeadFormat) { + List? + genresNameImagesImageTypeImageIndexHeadFormat, +) { return genresNameImagesImageTypeImageIndexHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -57686,8 +63690,9 @@ String genresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( } List genresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - genresNameImagesImageTypeImageIndexHeadFormat) { + List? + genresNameImagesImageTypeImageIndexHeadFormat, +) { if (genresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } @@ -57698,7 +63703,7 @@ List genresNameImagesImageTypeImageIndexHeadFormatListToJson( } List - genresNameImagesImageTypeImageIndexHeadFormatListFromJson( +genresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -57707,13 +63712,15 @@ List } return genresNameImagesImageTypeImageIndexHeadFormat - .map((e) => - genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => + genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), + ) .toList(); } List? - genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -57722,37 +63729,42 @@ List? } return genresNameImagesImageTypeImageIndexHeadFormat - .map((e) => - genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (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( +itemsItemIdImagesImageTypeDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeDeleteImageType.values .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeDeleteImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeDeleteImageType? - itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( +itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { @@ -57761,13 +63773,15 @@ enums.ItemsItemIdImagesImageTypeDeleteImageType? } return enums.ItemsItemIdImagesImageTypeDeleteImageType.values .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeDeleteImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeDeleteImageType) { + List? + itemsItemIdImagesImageTypeDeleteImageType, +) { return itemsItemIdImagesImageTypeDeleteImageType ?.map((e) => e.value!) .join(',') ?? @@ -57775,8 +63789,9 @@ String itemsItemIdImagesImageTypeDeleteImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeDeleteImageTypeListToJson( - List? - itemsItemIdImagesImageTypeDeleteImageType) { + List? + itemsItemIdImagesImageTypeDeleteImageType, +) { if (itemsItemIdImagesImageTypeDeleteImageType == null) { return []; } @@ -57787,7 +63802,7 @@ List itemsItemIdImagesImageTypeDeleteImageTypeListToJson( } List - itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( +itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -57796,13 +63811,14 @@ List } return itemsItemIdImagesImageTypeDeleteImageType - .map((e) => - itemsItemIdImagesImageTypeDeleteImageTypeFromJson(e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeDeleteImageTypeFromJson(e.toString()), + ) .toList(); } List? - itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -57811,36 +63827,40 @@ List? } return itemsItemIdImagesImageTypeDeleteImageType - .map((e) => - itemsItemIdImagesImageTypeDeleteImageTypeFromJson(e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeDeleteImageTypeFromJson(e.toString()), + ) .toList(); } 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( +itemsItemIdImagesImageTypePostImageTypeFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypePostImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypePostImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypePostImageType, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypePostImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypePostImageType? - itemsItemIdImagesImageTypePostImageTypeNullableFromJson( +itemsItemIdImagesImageTypePostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { @@ -57848,13 +63868,15 @@ enums.ItemsItemIdImagesImageTypePostImageType? return null; } return enums.ItemsItemIdImagesImageTypePostImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypePostImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypePostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypePostImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypePostImageType) { + List? + itemsItemIdImagesImageTypePostImageType, +) { return itemsItemIdImagesImageTypePostImageType ?.map((e) => e.value!) .join(',') ?? @@ -57862,8 +63884,9 @@ String itemsItemIdImagesImageTypePostImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypePostImageTypeListToJson( - List? - itemsItemIdImagesImageTypePostImageType) { + List? + itemsItemIdImagesImageTypePostImageType, +) { if (itemsItemIdImagesImageTypePostImageType == null) { return []; } @@ -57872,7 +63895,7 @@ List itemsItemIdImagesImageTypePostImageTypeListToJson( } List - itemsItemIdImagesImageTypePostImageTypeListFromJson( +itemsItemIdImagesImageTypePostImageTypeListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -57886,7 +63909,7 @@ List } List? - itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( +itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -57900,30 +63923,33 @@ List? } 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( +itemsItemIdImagesImageTypeGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeGetImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeGetImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeGetImageType? - itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( +itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { @@ -57931,13 +63957,15 @@ enums.ItemsItemIdImagesImageTypeGetImageType? return null; } return enums.ItemsItemIdImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeGetImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypeGetImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeGetImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeGetImageType) { + List? + itemsItemIdImagesImageTypeGetImageType, +) { return itemsItemIdImagesImageTypeGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -57945,8 +63973,9 @@ String itemsItemIdImagesImageTypeGetImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeGetImageTypeListToJson( - List? - itemsItemIdImagesImageTypeGetImageType) { + List? + itemsItemIdImagesImageTypeGetImageType, +) { if (itemsItemIdImagesImageTypeGetImageType == null) { return []; } @@ -57955,7 +63984,7 @@ List itemsItemIdImagesImageTypeGetImageTypeListToJson( } List - itemsItemIdImagesImageTypeGetImageTypeListFromJson( +itemsItemIdImagesImageTypeGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -57969,7 +63998,7 @@ List } List? - itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -57983,30 +64012,32 @@ List? } String? itemsItemIdImagesImageTypeGetFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeGetFormat? - itemsItemIdImagesImageTypeGetFormat) { + enums.ItemsItemIdImagesImageTypeGetFormat? + itemsItemIdImagesImageTypeGetFormat, +) { return itemsItemIdImagesImageTypeGetFormat?.value; } String? itemsItemIdImagesImageTypeGetFormatToJson( - enums.ItemsItemIdImagesImageTypeGetFormat - itemsItemIdImagesImageTypeGetFormat) { + enums.ItemsItemIdImagesImageTypeGetFormat itemsItemIdImagesImageTypeGetFormat, +) { return itemsItemIdImagesImageTypeGetFormat.value; } enums.ItemsItemIdImagesImageTypeGetFormat - itemsItemIdImagesImageTypeGetFormatFromJson( +itemsItemIdImagesImageTypeGetFormatFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeGetFormat) ?? + (e) => e.value == itemsItemIdImagesImageTypeGetFormat, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeGetFormat.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeGetFormat? - itemsItemIdImagesImageTypeGetFormatNullableFromJson( +itemsItemIdImagesImageTypeGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { @@ -58014,20 +64045,23 @@ enums.ItemsItemIdImagesImageTypeGetFormat? return null; } return enums.ItemsItemIdImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeGetFormat) ?? + (e) => e.value == itemsItemIdImagesImageTypeGetFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeGetFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeGetFormat) { + List? + itemsItemIdImagesImageTypeGetFormat, +) { return itemsItemIdImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeGetFormatListToJson( - List? - itemsItemIdImagesImageTypeGetFormat) { + List? + itemsItemIdImagesImageTypeGetFormat, +) { if (itemsItemIdImagesImageTypeGetFormat == null) { return []; } @@ -58036,7 +64070,7 @@ List itemsItemIdImagesImageTypeGetFormatListToJson( } List - itemsItemIdImagesImageTypeGetFormatListFromJson( +itemsItemIdImagesImageTypeGetFormatListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -58050,7 +64084,7 @@ List } List? - itemsItemIdImagesImageTypeGetFormatNullableListFromJson( +itemsItemIdImagesImageTypeGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -58064,30 +64098,33 @@ List? } 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( +itemsItemIdImagesImageTypeHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeHeadImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeHeadImageType? - itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( +itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { @@ -58095,13 +64132,15 @@ enums.ItemsItemIdImagesImageTypeHeadImageType? return null; } return enums.ItemsItemIdImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeHeadImageType) ?? + (e) => e.value == itemsItemIdImagesImageTypeHeadImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeHeadImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeHeadImageType) { + List? + itemsItemIdImagesImageTypeHeadImageType, +) { return itemsItemIdImagesImageTypeHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -58109,8 +64148,9 @@ String itemsItemIdImagesImageTypeHeadImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeHeadImageTypeListToJson( - List? - itemsItemIdImagesImageTypeHeadImageType) { + List? + itemsItemIdImagesImageTypeHeadImageType, +) { if (itemsItemIdImagesImageTypeHeadImageType == null) { return []; } @@ -58119,7 +64159,7 @@ List itemsItemIdImagesImageTypeHeadImageTypeListToJson( } List - itemsItemIdImagesImageTypeHeadImageTypeListFromJson( +itemsItemIdImagesImageTypeHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -58133,7 +64173,7 @@ List } List? - itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -58147,30 +64187,33 @@ List? } 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( +itemsItemIdImagesImageTypeHeadFormatFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeHeadFormat) ?? + (e) => e.value == itemsItemIdImagesImageTypeHeadFormat, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeHeadFormat? - itemsItemIdImagesImageTypeHeadFormatNullableFromJson( +itemsItemIdImagesImageTypeHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { @@ -58178,20 +64221,23 @@ enums.ItemsItemIdImagesImageTypeHeadFormat? return null; } return enums.ItemsItemIdImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeHeadFormat) ?? + (e) => e.value == itemsItemIdImagesImageTypeHeadFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeHeadFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeHeadFormat) { + List? + itemsItemIdImagesImageTypeHeadFormat, +) { return itemsItemIdImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeHeadFormatListToJson( - List? - itemsItemIdImagesImageTypeHeadFormat) { + List? + itemsItemIdImagesImageTypeHeadFormat, +) { if (itemsItemIdImagesImageTypeHeadFormat == null) { return []; } @@ -58200,7 +64246,7 @@ List itemsItemIdImagesImageTypeHeadFormatListToJson( } List - itemsItemIdImagesImageTypeHeadFormatListFromJson( +itemsItemIdImagesImageTypeHeadFormatListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -58214,7 +64260,7 @@ List } List? - itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( +itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -58228,32 +64274,37 @@ List? } 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( +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType) ?? + .firstWhereOrNull( + (e) => + e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType + enums + .ItemsItemIdImagesImageTypeImageIndexDeleteImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? - itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { @@ -58261,14 +64312,17 @@ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? return null; } return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType) ?? + .firstWhereOrNull( + (e) => + e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexDeleteImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexDeleteImageType) { + List? + itemsItemIdImagesImageTypeImageIndexDeleteImageType, +) { return itemsItemIdImagesImageTypeImageIndexDeleteImageType ?.map((e) => e.value!) .join(',') ?? @@ -58276,8 +64330,9 @@ String itemsItemIdImagesImageTypeImageIndexDeleteImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexDeleteImageType) { + List? + itemsItemIdImagesImageTypeImageIndexDeleteImageType, +) { if (itemsItemIdImagesImageTypeImageIndexDeleteImageType == null) { return []; } @@ -58288,7 +64343,7 @@ List itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListToJson( } List - itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -58297,13 +64352,16 @@ List } return itemsItemIdImagesImageTypeImageIndexDeleteImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -58312,38 +64370,45 @@ List? } return itemsItemIdImagesImageTypeImageIndexDeleteImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexPostImageType) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType + enums + .ItemsItemIdImagesImageTypeImageIndexPostImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { @@ -58351,14 +64416,16 @@ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? return null; } return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexPostImageType) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexPostImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexPostImageType) { + List? + itemsItemIdImagesImageTypeImageIndexPostImageType, +) { return itemsItemIdImagesImageTypeImageIndexPostImageType ?.map((e) => e.value!) .join(',') ?? @@ -58366,8 +64433,9 @@ String itemsItemIdImagesImageTypeImageIndexPostImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeImageIndexPostImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexPostImageType) { + List? + itemsItemIdImagesImageTypeImageIndexPostImageType, +) { if (itemsItemIdImagesImageTypeImageIndexPostImageType == null) { return []; } @@ -58378,7 +64446,7 @@ List itemsItemIdImagesImageTypeImageIndexPostImageTypeListToJson( } List - itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -58387,13 +64455,16 @@ List } return itemsItemIdImagesImageTypeImageIndexPostImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -58402,38 +64473,45 @@ List? } return itemsItemIdImagesImageTypeImageIndexPostImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType + enums + .ItemsItemIdImagesImageTypeImageIndexGetImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? - itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { @@ -58441,14 +64519,16 @@ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? return null; } return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetImageType) { + List? + itemsItemIdImagesImageTypeImageIndexGetImageType, +) { return itemsItemIdImagesImageTypeImageIndexGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -58456,8 +64536,9 @@ String itemsItemIdImagesImageTypeImageIndexGetImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeImageIndexGetImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetImageType) { + List? + itemsItemIdImagesImageTypeImageIndexGetImageType, +) { if (itemsItemIdImagesImageTypeImageIndexGetImageType == null) { return []; } @@ -58468,7 +64549,7 @@ List itemsItemIdImagesImageTypeImageIndexGetImageTypeListToJson( } List - itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -58477,13 +64558,16 @@ List } return itemsItemIdImagesImageTypeImageIndexGetImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -58492,38 +64576,45 @@ List? } return itemsItemIdImagesImageTypeImageIndexGetImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +itemsItemIdImagesImageTypeImageIndexGetFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat + enums + .ItemsItemIdImagesImageTypeImageIndexGetFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? - itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( +itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { @@ -58531,14 +64622,16 @@ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? return null; } return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetFormat) { + List? + itemsItemIdImagesImageTypeImageIndexGetFormat, +) { return itemsItemIdImagesImageTypeImageIndexGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -58546,8 +64639,9 @@ String itemsItemIdImagesImageTypeImageIndexGetFormatExplodedListToJson( } List itemsItemIdImagesImageTypeImageIndexGetFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetFormat) { + List? + itemsItemIdImagesImageTypeImageIndexGetFormat, +) { if (itemsItemIdImagesImageTypeImageIndexGetFormat == null) { return []; } @@ -58558,7 +64652,7 @@ List itemsItemIdImagesImageTypeImageIndexGetFormatListToJson( } List - itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( +itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -58567,13 +64661,15 @@ List } return itemsItemIdImagesImageTypeImageIndexGetFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -58582,38 +64678,44 @@ List? } return itemsItemIdImagesImageTypeImageIndexGetFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (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( +itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType + enums + .ItemsItemIdImagesImageTypeImageIndexHeadImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? - itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { @@ -58621,14 +64723,16 @@ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? return null; } return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadImageType) { + List? + itemsItemIdImagesImageTypeImageIndexHeadImageType, +) { return itemsItemIdImagesImageTypeImageIndexHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -58636,8 +64740,9 @@ String itemsItemIdImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadImageType) { + List? + itemsItemIdImagesImageTypeImageIndexHeadImageType, +) { if (itemsItemIdImagesImageTypeImageIndexHeadImageType == null) { return []; } @@ -58648,7 +64753,7 @@ List itemsItemIdImagesImageTypeImageIndexHeadImageTypeListToJson( } List - itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -58657,13 +64762,16 @@ List } return itemsItemIdImagesImageTypeImageIndexHeadImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -58672,38 +64780,45 @@ List? } return itemsItemIdImagesImageTypeImageIndexHeadImageType - .map((e) => itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat + enums + .ItemsItemIdImagesImageTypeImageIndexHeadFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? - itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( +itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { @@ -58711,14 +64826,16 @@ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? return null; } return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadFormat) { + List? + itemsItemIdImagesImageTypeImageIndexHeadFormat, +) { return itemsItemIdImagesImageTypeImageIndexHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -58726,8 +64843,9 @@ String itemsItemIdImagesImageTypeImageIndexHeadFormatExplodedListToJson( } List itemsItemIdImagesImageTypeImageIndexHeadFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadFormat) { + List? + itemsItemIdImagesImageTypeImageIndexHeadFormat, +) { if (itemsItemIdImagesImageTypeImageIndexHeadFormat == null) { return []; } @@ -58738,7 +64856,7 @@ List itemsItemIdImagesImageTypeImageIndexHeadFormatListToJson( } List - itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( +itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -58747,13 +64865,16 @@ List } return itemsItemIdImagesImageTypeImageIndexHeadFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -58762,56 +64883,59 @@ List? } return itemsItemIdImagesImageTypeImageIndexHeadFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType .value; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? + defaultValue, ]) { return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue ?? enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType .swaggerGeneratedUnknown; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { @@ -58820,17 +64944,21 @@ enums return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue; } -String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType) { +String +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -58838,11 +64966,12 @@ String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlay } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return []; @@ -58854,15 +64983,15 @@ List } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { @@ -58870,22 +64999,25 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { @@ -58893,57 +65025,60 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat .value; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? + defaultValue, ]) { return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue ?? enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat .swaggerGeneratedUnknown; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { @@ -58952,17 +65087,21 @@ enums return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue; } -String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat) { +String +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -58970,11 +65109,12 @@ String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlay } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return []; @@ -58986,15 +65126,15 @@ List } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { @@ -59002,22 +65142,25 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( + e.toString(), + ), + ) .toList(); } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { @@ -59025,57 +65168,60 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( + e.toString(), + ), + ) .toList(); } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType .value; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? + defaultValue, ]) { return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue ?? enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType .swaggerGeneratedUnknown; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { @@ -59084,17 +65230,21 @@ enums return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue; } -String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType) { +String +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -59102,11 +65252,12 @@ String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlay } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return []; @@ -59118,15 +65269,15 @@ List } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { @@ -59134,22 +65285,25 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { @@ -59157,57 +65311,60 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat) { +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat .value; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? + defaultValue, ]) { return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue ?? enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat .swaggerGeneratedUnknown; } -enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { @@ -59216,17 +65373,21 @@ enums return enums .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat .values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue; } -String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat) { +String +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -59234,11 +65395,12 @@ String itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlay } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( - List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return []; @@ -59250,15 +65412,15 @@ List } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { @@ -59266,22 +65428,25 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat>? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ List< - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat>? - defaultValue, + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { @@ -59289,40 +65454,48 @@ List< } return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .map((e) => - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString())) + .map( + (e) => + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( + 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) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType + enums + .ItemsItemIdImagesImageTypeImageIndexIndexPostImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? defaultValue, ]) { @@ -59330,15 +65503,18 @@ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? return null; } return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values - .firstWhereOrNull((e) => - e.value == - itemsItemIdImagesImageTypeImageIndexIndexPostImageType) ?? + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType) { + List? + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, +) { return itemsItemIdImagesImageTypeImageIndexIndexPostImageType ?.map((e) => e.value!) .join(',') ?? @@ -59346,8 +65522,9 @@ String itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeExplodedListToJson( } List itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType) { + List? + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, +) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return []; } @@ -59358,65 +65535,72 @@ List itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListToJson( } List - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ List? - defaultValue, + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue ?? []; } return itemsItemIdImagesImageTypeImageIndexIndexPostImageType - .map((e) => - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ List? - defaultValue, + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue; } return itemsItemIdImagesImageTypeImageIndexIndexPostImageType - .map((e) => - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( - e.toString())) + .map( + (e) => itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +musicGenresNameImagesImageTypeGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { return enums.MusicGenresNameImagesImageTypeGetImageType.values .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType) ?? + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeGetImageType? - musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( +musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -59425,13 +65609,15 @@ enums.MusicGenresNameImagesImageTypeGetImageType? } return enums.MusicGenresNameImagesImageTypeGetImageType.values .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType) ?? + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeGetImageType) { + List? + musicGenresNameImagesImageTypeGetImageType, +) { return musicGenresNameImagesImageTypeGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -59439,8 +65625,9 @@ String musicGenresNameImagesImageTypeGetImageTypeExplodedListToJson( } List musicGenresNameImagesImageTypeGetImageTypeListToJson( - List? - musicGenresNameImagesImageTypeGetImageType) { + List? + musicGenresNameImagesImageTypeGetImageType, +) { if (musicGenresNameImagesImageTypeGetImageType == null) { return []; } @@ -59451,7 +65638,7 @@ List musicGenresNameImagesImageTypeGetImageTypeListToJson( } List - musicGenresNameImagesImageTypeGetImageTypeListFromJson( +musicGenresNameImagesImageTypeGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -59460,13 +65647,14 @@ List } return musicGenresNameImagesImageTypeGetImageType - .map((e) => - musicGenresNameImagesImageTypeGetImageTypeFromJson(e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeGetImageTypeFromJson(e.toString()), + ) .toList(); } List? - musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( +musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -59475,36 +65663,40 @@ List? } return musicGenresNameImagesImageTypeGetImageType - .map((e) => - musicGenresNameImagesImageTypeGetImageTypeFromJson(e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeGetImageTypeFromJson(e.toString()), + ) .toList(); } 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( +musicGenresNameImagesImageTypeGetFormatFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { return enums.MusicGenresNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetFormat) ?? + (e) => e.value == musicGenresNameImagesImageTypeGetFormat, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeGetFormat? - musicGenresNameImagesImageTypeGetFormatNullableFromJson( +musicGenresNameImagesImageTypeGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -59512,13 +65704,15 @@ enums.MusicGenresNameImagesImageTypeGetFormat? return null; } return enums.MusicGenresNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetFormat) ?? + (e) => e.value == musicGenresNameImagesImageTypeGetFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeGetFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeGetFormat) { + List? + musicGenresNameImagesImageTypeGetFormat, +) { return musicGenresNameImagesImageTypeGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -59526,8 +65720,9 @@ String musicGenresNameImagesImageTypeGetFormatExplodedListToJson( } List musicGenresNameImagesImageTypeGetFormatListToJson( - List? - musicGenresNameImagesImageTypeGetFormat) { + List? + musicGenresNameImagesImageTypeGetFormat, +) { if (musicGenresNameImagesImageTypeGetFormat == null) { return []; } @@ -59536,7 +65731,7 @@ List musicGenresNameImagesImageTypeGetFormatListToJson( } List - musicGenresNameImagesImageTypeGetFormatListFromJson( +musicGenresNameImagesImageTypeGetFormatListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -59550,7 +65745,7 @@ List } List? - musicGenresNameImagesImageTypeGetFormatNullableListFromJson( +musicGenresNameImagesImageTypeGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -59564,31 +65759,34 @@ List? } 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( +musicGenresNameImagesImageTypeHeadImageTypeFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { return enums.MusicGenresNameImagesImageTypeHeadImageType.values .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType) ?? + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeHeadImageType? - musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( +musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -59597,13 +65795,15 @@ enums.MusicGenresNameImagesImageTypeHeadImageType? } return enums.MusicGenresNameImagesImageTypeHeadImageType.values .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType) ?? + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeHeadImageType) { + List? + musicGenresNameImagesImageTypeHeadImageType, +) { return musicGenresNameImagesImageTypeHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -59611,8 +65811,9 @@ String musicGenresNameImagesImageTypeHeadImageTypeExplodedListToJson( } List musicGenresNameImagesImageTypeHeadImageTypeListToJson( - List? - musicGenresNameImagesImageTypeHeadImageType) { + List? + musicGenresNameImagesImageTypeHeadImageType, +) { if (musicGenresNameImagesImageTypeHeadImageType == null) { return []; } @@ -59623,7 +65824,7 @@ List musicGenresNameImagesImageTypeHeadImageTypeListToJson( } List - musicGenresNameImagesImageTypeHeadImageTypeListFromJson( +musicGenresNameImagesImageTypeHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -59632,13 +65833,15 @@ List } return musicGenresNameImagesImageTypeHeadImageType - .map((e) => - musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString())) + .map( + (e) => + musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), + ) .toList(); } List? - musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( +musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -59647,36 +65850,41 @@ List? } return musicGenresNameImagesImageTypeHeadImageType - .map((e) => - musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString())) + .map( + (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( +musicGenresNameImagesImageTypeHeadFormatFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { return enums.MusicGenresNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadFormat) ?? + (e) => e.value == musicGenresNameImagesImageTypeHeadFormat, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeHeadFormat? - musicGenresNameImagesImageTypeHeadFormatNullableFromJson( +musicGenresNameImagesImageTypeHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -59684,13 +65892,15 @@ enums.MusicGenresNameImagesImageTypeHeadFormat? return null; } return enums.MusicGenresNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadFormat) ?? + (e) => e.value == musicGenresNameImagesImageTypeHeadFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeHeadFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeHeadFormat) { + List? + musicGenresNameImagesImageTypeHeadFormat, +) { return musicGenresNameImagesImageTypeHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -59698,8 +65908,9 @@ String musicGenresNameImagesImageTypeHeadFormatExplodedListToJson( } List musicGenresNameImagesImageTypeHeadFormatListToJson( - List? - musicGenresNameImagesImageTypeHeadFormat) { + List? + musicGenresNameImagesImageTypeHeadFormat, +) { if (musicGenresNameImagesImageTypeHeadFormat == null) { return []; } @@ -59708,7 +65919,7 @@ List musicGenresNameImagesImageTypeHeadFormatListToJson( } List - musicGenresNameImagesImageTypeHeadFormatListFromJson( +musicGenresNameImagesImageTypeHeadFormatListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -59718,12 +65929,13 @@ List return musicGenresNameImagesImageTypeHeadFormat .map( - (e) => musicGenresNameImagesImageTypeHeadFormatFromJson(e.toString())) + (e) => musicGenresNameImagesImageTypeHeadFormatFromJson(e.toString()), + ) .toList(); } List? - musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( +musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -59733,38 +65945,43 @@ List? return musicGenresNameImagesImageTypeHeadFormat .map( - (e) => musicGenresNameImagesImageTypeHeadFormatFromJson(e.toString())) + (e) => musicGenresNameImagesImageTypeHeadFormatFromJson(e.toString()), + ) .toList(); } 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( +musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == - musicGenresNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType + enums + .MusicGenresNameImagesImageTypeImageIndexGetImageType .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? - musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { @@ -59772,15 +65989,17 @@ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? return null; } return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == - musicGenresNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetImageType) { + List? + musicGenresNameImagesImageTypeImageIndexGetImageType, +) { return musicGenresNameImagesImageTypeImageIndexGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -59788,8 +66007,9 @@ String musicGenresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( } List musicGenresNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetImageType) { + List? + musicGenresNameImagesImageTypeImageIndexGetImageType, +) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return []; } @@ -59800,64 +66020,74 @@ List musicGenresNameImagesImageTypeImageIndexGetImageTypeListToJson( } List - musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( +musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ List? - defaultValue, + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue ?? []; } return musicGenresNameImagesImageTypeImageIndexGetImageType - .map((e) => musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ List? - defaultValue, + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue; } return musicGenresNameImagesImageTypeImageIndexGetImageType - .map((e) => musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == musicGenresNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat + enums + .MusicGenresNameImagesImageTypeImageIndexGetFormat .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? - musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( +musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { @@ -59865,14 +66095,16 @@ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? return null; } return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == musicGenresNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetFormat) { + List? + musicGenresNameImagesImageTypeImageIndexGetFormat, +) { return musicGenresNameImagesImageTypeImageIndexGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -59880,8 +66112,9 @@ String musicGenresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( } List musicGenresNameImagesImageTypeImageIndexGetFormatListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetFormat) { + List? + musicGenresNameImagesImageTypeImageIndexGetFormat, +) { if (musicGenresNameImagesImageTypeImageIndexGetFormat == null) { return []; } @@ -59892,7 +66125,7 @@ List musicGenresNameImagesImageTypeImageIndexGetFormatListToJson( } List - musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( +musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -59901,13 +66134,16 @@ List } return musicGenresNameImagesImageTypeImageIndexGetFormat - .map((e) => musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( + e.toString(), + ), + ) .toList(); } List? - musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -59916,39 +66152,47 @@ List? } return musicGenresNameImagesImageTypeImageIndexGetFormat - .map((e) => musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( + e.toString(), + ), + ) .toList(); } 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) ?? + .firstWhereOrNull( + (e) => + e.value == + musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType + enums + .MusicGenresNameImagesImageTypeImageIndexHeadImageType .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? - musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { @@ -59956,15 +66200,18 @@ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? return null; } return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == - musicGenresNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => + e.value == + musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadImageType) { + List? + musicGenresNameImagesImageTypeImageIndexHeadImageType, +) { return musicGenresNameImagesImageTypeImageIndexHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -59972,8 +66219,9 @@ String musicGenresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( } List musicGenresNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadImageType) { + List? + musicGenresNameImagesImageTypeImageIndexHeadImageType, +) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } @@ -59984,64 +66232,75 @@ List musicGenresNameImagesImageTypeImageIndexHeadImageTypeListToJson( } List - musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ List? - defaultValue, + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue ?? []; } return musicGenresNameImagesImageTypeImageIndexHeadImageType - .map((e) => musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ List? - defaultValue, + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue; } return musicGenresNameImagesImageTypeImageIndexHeadImageType - .map((e) => musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat + enums + .MusicGenresNameImagesImageTypeImageIndexHeadFormat .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? - musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { @@ -60049,14 +66308,17 @@ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? return null; } return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadFormat) { + List? + musicGenresNameImagesImageTypeImageIndexHeadFormat, +) { return musicGenresNameImagesImageTypeImageIndexHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -60064,8 +66326,9 @@ String musicGenresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( } List musicGenresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadFormat) { + List? + musicGenresNameImagesImageTypeImageIndexHeadFormat, +) { if (musicGenresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } @@ -60076,7 +66339,7 @@ List musicGenresNameImagesImageTypeImageIndexHeadFormatListToJson( } List - musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -60085,13 +66348,16 @@ List } return musicGenresNameImagesImageTypeImageIndexHeadFormat - .map((e) => musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } List? - musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -60100,36 +66366,42 @@ List? } return musicGenresNameImagesImageTypeImageIndexHeadFormat - .map((e) => musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( - e.toString())) + .map( + (e) => musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } 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( +personsNameImagesImageTypeGetImageTypeFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { return enums.PersonsNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeGetImageType) ?? + (e) => e.value == personsNameImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.PersonsNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeGetImageType? - personsNameImagesImageTypeGetImageTypeNullableFromJson( +personsNameImagesImageTypeGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -60137,13 +66409,15 @@ enums.PersonsNameImagesImageTypeGetImageType? return null; } return enums.PersonsNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeGetImageType) ?? + (e) => e.value == personsNameImagesImageTypeGetImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeGetImageType) { + List? + personsNameImagesImageTypeGetImageType, +) { return personsNameImagesImageTypeGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -60151,8 +66425,9 @@ String personsNameImagesImageTypeGetImageTypeExplodedListToJson( } List personsNameImagesImageTypeGetImageTypeListToJson( - List? - personsNameImagesImageTypeGetImageType) { + List? + personsNameImagesImageTypeGetImageType, +) { if (personsNameImagesImageTypeGetImageType == null) { return []; } @@ -60161,7 +66436,7 @@ List personsNameImagesImageTypeGetImageTypeListToJson( } List - personsNameImagesImageTypeGetImageTypeListFromJson( +personsNameImagesImageTypeGetImageTypeListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -60175,7 +66450,7 @@ List } List? - personsNameImagesImageTypeGetImageTypeNullableListFromJson( +personsNameImagesImageTypeGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -60189,30 +66464,32 @@ List? } String? personsNameImagesImageTypeGetFormatNullableToJson( - enums.PersonsNameImagesImageTypeGetFormat? - personsNameImagesImageTypeGetFormat) { + enums.PersonsNameImagesImageTypeGetFormat? + personsNameImagesImageTypeGetFormat, +) { return personsNameImagesImageTypeGetFormat?.value; } String? personsNameImagesImageTypeGetFormatToJson( - enums.PersonsNameImagesImageTypeGetFormat - personsNameImagesImageTypeGetFormat) { + enums.PersonsNameImagesImageTypeGetFormat personsNameImagesImageTypeGetFormat, +) { return personsNameImagesImageTypeGetFormat.value; } enums.PersonsNameImagesImageTypeGetFormat - personsNameImagesImageTypeGetFormatFromJson( +personsNameImagesImageTypeGetFormatFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { return enums.PersonsNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeGetFormat) ?? + (e) => e.value == personsNameImagesImageTypeGetFormat, + ) ?? defaultValue ?? enums.PersonsNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeGetFormat? - personsNameImagesImageTypeGetFormatNullableFromJson( +personsNameImagesImageTypeGetFormatNullableFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -60220,20 +66497,23 @@ enums.PersonsNameImagesImageTypeGetFormat? return null; } return enums.PersonsNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeGetFormat) ?? + (e) => e.value == personsNameImagesImageTypeGetFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeGetFormatExplodedListToJson( - List? - personsNameImagesImageTypeGetFormat) { + List? + personsNameImagesImageTypeGetFormat, +) { return personsNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeGetFormatListToJson( - List? - personsNameImagesImageTypeGetFormat) { + List? + personsNameImagesImageTypeGetFormat, +) { if (personsNameImagesImageTypeGetFormat == null) { return []; } @@ -60242,7 +66522,7 @@ List personsNameImagesImageTypeGetFormatListToJson( } List - personsNameImagesImageTypeGetFormatListFromJson( +personsNameImagesImageTypeGetFormatListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -60256,7 +66536,7 @@ List } List? - personsNameImagesImageTypeGetFormatNullableListFromJson( +personsNameImagesImageTypeGetFormatNullableListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -60270,30 +66550,33 @@ List? } 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( +personsNameImagesImageTypeHeadImageTypeFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { return enums.PersonsNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeHeadImageType) ?? + (e) => e.value == personsNameImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.PersonsNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeHeadImageType? - personsNameImagesImageTypeHeadImageTypeNullableFromJson( +personsNameImagesImageTypeHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -60301,13 +66584,15 @@ enums.PersonsNameImagesImageTypeHeadImageType? return null; } return enums.PersonsNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeHeadImageType) ?? + (e) => e.value == personsNameImagesImageTypeHeadImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeHeadImageType) { + List? + personsNameImagesImageTypeHeadImageType, +) { return personsNameImagesImageTypeHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -60315,8 +66600,9 @@ String personsNameImagesImageTypeHeadImageTypeExplodedListToJson( } List personsNameImagesImageTypeHeadImageTypeListToJson( - List? - personsNameImagesImageTypeHeadImageType) { + List? + personsNameImagesImageTypeHeadImageType, +) { if (personsNameImagesImageTypeHeadImageType == null) { return []; } @@ -60325,7 +66611,7 @@ List personsNameImagesImageTypeHeadImageTypeListToJson( } List - personsNameImagesImageTypeHeadImageTypeListFromJson( +personsNameImagesImageTypeHeadImageTypeListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -60339,7 +66625,7 @@ List } List? - personsNameImagesImageTypeHeadImageTypeNullableListFromJson( +personsNameImagesImageTypeHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -60353,30 +66639,33 @@ List? } 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( +personsNameImagesImageTypeHeadFormatFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { return enums.PersonsNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeHeadFormat) ?? + (e) => e.value == personsNameImagesImageTypeHeadFormat, + ) ?? defaultValue ?? enums.PersonsNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeHeadFormat? - personsNameImagesImageTypeHeadFormatNullableFromJson( +personsNameImagesImageTypeHeadFormatNullableFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -60384,20 +66673,23 @@ enums.PersonsNameImagesImageTypeHeadFormat? return null; } return enums.PersonsNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeHeadFormat) ?? + (e) => e.value == personsNameImagesImageTypeHeadFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeHeadFormatExplodedListToJson( - List? - personsNameImagesImageTypeHeadFormat) { + List? + personsNameImagesImageTypeHeadFormat, +) { return personsNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeHeadFormatListToJson( - List? - personsNameImagesImageTypeHeadFormat) { + List? + personsNameImagesImageTypeHeadFormat, +) { if (personsNameImagesImageTypeHeadFormat == null) { return []; } @@ -60406,7 +66698,7 @@ List personsNameImagesImageTypeHeadFormatListToJson( } List - personsNameImagesImageTypeHeadFormatListFromJson( +personsNameImagesImageTypeHeadFormatListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -60420,7 +66712,7 @@ List } List? - personsNameImagesImageTypeHeadFormatNullableListFromJson( +personsNameImagesImageTypeHeadFormatNullableListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -60434,32 +66726,36 @@ List? } 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( +personsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexGetImageType + enums + .PersonsNameImagesImageTypeImageIndexGetImageType .swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexGetImageType? - personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { @@ -60467,14 +66763,16 @@ enums.PersonsNameImagesImageTypeImageIndexGetImageType? return null; } return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexGetImageType) { + List? + personsNameImagesImageTypeImageIndexGetImageType, +) { return personsNameImagesImageTypeImageIndexGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -60482,8 +66780,9 @@ String personsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( } List personsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - personsNameImagesImageTypeImageIndexGetImageType) { + List? + personsNameImagesImageTypeImageIndexGetImageType, +) { if (personsNameImagesImageTypeImageIndexGetImageType == null) { return []; } @@ -60494,7 +66793,7 @@ List personsNameImagesImageTypeImageIndexGetImageTypeListToJson( } List - personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( +personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -60503,13 +66802,16 @@ List } return personsNameImagesImageTypeImageIndexGetImageType - .map((e) => personsNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => personsNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -60518,38 +66820,45 @@ List? } return personsNameImagesImageTypeImageIndexGetImageType - .map((e) => personsNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => personsNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +personsNameImagesImageTypeImageIndexGetFormatFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexGetFormat + enums + .PersonsNameImagesImageTypeImageIndexGetFormat .swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexGetFormat? - personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { @@ -60557,14 +66866,16 @@ enums.PersonsNameImagesImageTypeImageIndexGetFormat? return null; } return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexGetFormat) { + List? + personsNameImagesImageTypeImageIndexGetFormat, +) { return personsNameImagesImageTypeImageIndexGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -60572,8 +66883,9 @@ String personsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( } List personsNameImagesImageTypeImageIndexGetFormatListToJson( - List? - personsNameImagesImageTypeImageIndexGetFormat) { + List? + personsNameImagesImageTypeImageIndexGetFormat, +) { if (personsNameImagesImageTypeImageIndexGetFormat == null) { return []; } @@ -60584,7 +66896,7 @@ List personsNameImagesImageTypeImageIndexGetFormatListToJson( } List - personsNameImagesImageTypeImageIndexGetFormatListFromJson( +personsNameImagesImageTypeImageIndexGetFormatListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -60593,13 +66905,15 @@ List } return personsNameImagesImageTypeImageIndexGetFormat - .map((e) => - personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (e) => + personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + ) .toList(); } List? - personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -60608,38 +66922,44 @@ List? } return personsNameImagesImageTypeImageIndexGetFormat - .map((e) => - personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (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( +personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexHeadImageType + enums + .PersonsNameImagesImageTypeImageIndexHeadImageType .swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexHeadImageType? - personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { @@ -60647,14 +66967,16 @@ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? return null; } return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexHeadImageType) { + List? + personsNameImagesImageTypeImageIndexHeadImageType, +) { return personsNameImagesImageTypeImageIndexHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -60662,8 +66984,9 @@ String personsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( } List personsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - personsNameImagesImageTypeImageIndexHeadImageType) { + List? + personsNameImagesImageTypeImageIndexHeadImageType, +) { if (personsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } @@ -60674,7 +66997,7 @@ List personsNameImagesImageTypeImageIndexHeadImageTypeListToJson( } List - personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -60683,13 +67006,16 @@ List } return personsNameImagesImageTypeImageIndexHeadImageType - .map((e) => personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -60698,38 +67024,45 @@ List? } return personsNameImagesImageTypeImageIndexHeadImageType - .map((e) => personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +personsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexHeadFormat + enums + .PersonsNameImagesImageTypeImageIndexHeadFormat .swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexHeadFormat? - personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { @@ -60737,14 +67070,16 @@ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? return null; } return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == personsNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexHeadFormat) { + List? + personsNameImagesImageTypeImageIndexHeadFormat, +) { return personsNameImagesImageTypeImageIndexHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -60752,8 +67087,9 @@ String personsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( } List personsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - personsNameImagesImageTypeImageIndexHeadFormat) { + List? + personsNameImagesImageTypeImageIndexHeadFormat, +) { if (personsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } @@ -60764,7 +67100,7 @@ List personsNameImagesImageTypeImageIndexHeadFormatListToJson( } List - personsNameImagesImageTypeImageIndexHeadFormatListFromJson( +personsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -60773,13 +67109,16 @@ List } return personsNameImagesImageTypeImageIndexHeadFormat - .map((e) => - personsNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => personsNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } List? - personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -60788,36 +67127,42 @@ List? } return personsNameImagesImageTypeImageIndexHeadFormat - .map((e) => - personsNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => personsNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } 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( +studiosNameImagesImageTypeGetImageTypeFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { return enums.StudiosNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeGetImageType) ?? + (e) => e.value == studiosNameImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.StudiosNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeGetImageType? - studiosNameImagesImageTypeGetImageTypeNullableFromJson( +studiosNameImagesImageTypeGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -60825,13 +67170,15 @@ enums.StudiosNameImagesImageTypeGetImageType? return null; } return enums.StudiosNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeGetImageType) ?? + (e) => e.value == studiosNameImagesImageTypeGetImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeGetImageType) { + List? + studiosNameImagesImageTypeGetImageType, +) { return studiosNameImagesImageTypeGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -60839,8 +67186,9 @@ String studiosNameImagesImageTypeGetImageTypeExplodedListToJson( } List studiosNameImagesImageTypeGetImageTypeListToJson( - List? - studiosNameImagesImageTypeGetImageType) { + List? + studiosNameImagesImageTypeGetImageType, +) { if (studiosNameImagesImageTypeGetImageType == null) { return []; } @@ -60849,7 +67197,7 @@ List studiosNameImagesImageTypeGetImageTypeListToJson( } List - studiosNameImagesImageTypeGetImageTypeListFromJson( +studiosNameImagesImageTypeGetImageTypeListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -60863,7 +67211,7 @@ List } List? - studiosNameImagesImageTypeGetImageTypeNullableListFromJson( +studiosNameImagesImageTypeGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -60877,30 +67225,32 @@ List? } String? studiosNameImagesImageTypeGetFormatNullableToJson( - enums.StudiosNameImagesImageTypeGetFormat? - studiosNameImagesImageTypeGetFormat) { + enums.StudiosNameImagesImageTypeGetFormat? + studiosNameImagesImageTypeGetFormat, +) { return studiosNameImagesImageTypeGetFormat?.value; } String? studiosNameImagesImageTypeGetFormatToJson( - enums.StudiosNameImagesImageTypeGetFormat - studiosNameImagesImageTypeGetFormat) { + enums.StudiosNameImagesImageTypeGetFormat studiosNameImagesImageTypeGetFormat, +) { return studiosNameImagesImageTypeGetFormat.value; } enums.StudiosNameImagesImageTypeGetFormat - studiosNameImagesImageTypeGetFormatFromJson( +studiosNameImagesImageTypeGetFormatFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { return enums.StudiosNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeGetFormat) ?? + (e) => e.value == studiosNameImagesImageTypeGetFormat, + ) ?? defaultValue ?? enums.StudiosNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeGetFormat? - studiosNameImagesImageTypeGetFormatNullableFromJson( +studiosNameImagesImageTypeGetFormatNullableFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -60908,20 +67258,23 @@ enums.StudiosNameImagesImageTypeGetFormat? return null; } return enums.StudiosNameImagesImageTypeGetFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeGetFormat) ?? + (e) => e.value == studiosNameImagesImageTypeGetFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeGetFormatExplodedListToJson( - List? - studiosNameImagesImageTypeGetFormat) { + List? + studiosNameImagesImageTypeGetFormat, +) { return studiosNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeGetFormatListToJson( - List? - studiosNameImagesImageTypeGetFormat) { + List? + studiosNameImagesImageTypeGetFormat, +) { if (studiosNameImagesImageTypeGetFormat == null) { return []; } @@ -60930,7 +67283,7 @@ List studiosNameImagesImageTypeGetFormatListToJson( } List - studiosNameImagesImageTypeGetFormatListFromJson( +studiosNameImagesImageTypeGetFormatListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -60944,7 +67297,7 @@ List } List? - studiosNameImagesImageTypeGetFormatNullableListFromJson( +studiosNameImagesImageTypeGetFormatNullableListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -60958,30 +67311,33 @@ List? } 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( +studiosNameImagesImageTypeHeadImageTypeFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { return enums.StudiosNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeHeadImageType) ?? + (e) => e.value == studiosNameImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.StudiosNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeHeadImageType? - studiosNameImagesImageTypeHeadImageTypeNullableFromJson( +studiosNameImagesImageTypeHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -60989,13 +67345,15 @@ enums.StudiosNameImagesImageTypeHeadImageType? return null; } return enums.StudiosNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeHeadImageType) ?? + (e) => e.value == studiosNameImagesImageTypeHeadImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeHeadImageType) { + List? + studiosNameImagesImageTypeHeadImageType, +) { return studiosNameImagesImageTypeHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -61003,8 +67361,9 @@ String studiosNameImagesImageTypeHeadImageTypeExplodedListToJson( } List studiosNameImagesImageTypeHeadImageTypeListToJson( - List? - studiosNameImagesImageTypeHeadImageType) { + List? + studiosNameImagesImageTypeHeadImageType, +) { if (studiosNameImagesImageTypeHeadImageType == null) { return []; } @@ -61013,7 +67372,7 @@ List studiosNameImagesImageTypeHeadImageTypeListToJson( } List - studiosNameImagesImageTypeHeadImageTypeListFromJson( +studiosNameImagesImageTypeHeadImageTypeListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -61027,7 +67386,7 @@ List } List? - studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( +studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -61041,30 +67400,33 @@ List? } 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( +studiosNameImagesImageTypeHeadFormatFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { return enums.StudiosNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeHeadFormat) ?? + (e) => e.value == studiosNameImagesImageTypeHeadFormat, + ) ?? defaultValue ?? enums.StudiosNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeHeadFormat? - studiosNameImagesImageTypeHeadFormatNullableFromJson( +studiosNameImagesImageTypeHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -61072,20 +67434,23 @@ enums.StudiosNameImagesImageTypeHeadFormat? return null; } return enums.StudiosNameImagesImageTypeHeadFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeHeadFormat) ?? + (e) => e.value == studiosNameImagesImageTypeHeadFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeHeadFormatExplodedListToJson( - List? - studiosNameImagesImageTypeHeadFormat) { + List? + studiosNameImagesImageTypeHeadFormat, +) { return studiosNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeHeadFormatListToJson( - List? - studiosNameImagesImageTypeHeadFormat) { + List? + studiosNameImagesImageTypeHeadFormat, +) { if (studiosNameImagesImageTypeHeadFormat == null) { return []; } @@ -61094,7 +67459,7 @@ List studiosNameImagesImageTypeHeadFormatListToJson( } List - studiosNameImagesImageTypeHeadFormatListFromJson( +studiosNameImagesImageTypeHeadFormatListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -61108,7 +67473,7 @@ List } List? - studiosNameImagesImageTypeHeadFormatNullableListFromJson( +studiosNameImagesImageTypeHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -61122,32 +67487,36 @@ List? } 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( +studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexGetImageType + enums + .StudiosNameImagesImageTypeImageIndexGetImageType .swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexGetImageType? - studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { @@ -61155,14 +67524,16 @@ enums.StudiosNameImagesImageTypeImageIndexGetImageType? return null; } return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexGetImageType) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexGetImageType) { + List? + studiosNameImagesImageTypeImageIndexGetImageType, +) { return studiosNameImagesImageTypeImageIndexGetImageType ?.map((e) => e.value!) .join(',') ?? @@ -61170,8 +67541,9 @@ String studiosNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( } List studiosNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - studiosNameImagesImageTypeImageIndexGetImageType) { + List? + studiosNameImagesImageTypeImageIndexGetImageType, +) { if (studiosNameImagesImageTypeImageIndexGetImageType == null) { return []; } @@ -61182,7 +67554,7 @@ List studiosNameImagesImageTypeImageIndexGetImageTypeListToJson( } List - studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( +studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -61191,13 +67563,16 @@ List } return studiosNameImagesImageTypeImageIndexGetImageType - .map((e) => studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -61206,38 +67581,45 @@ List? } return studiosNameImagesImageTypeImageIndexGetImageType - .map((e) => studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( - e.toString())) + .map( + (e) => studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +studiosNameImagesImageTypeImageIndexGetFormatFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexGetFormat + enums + .StudiosNameImagesImageTypeImageIndexGetFormat .swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexGetFormat? - studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( +studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { @@ -61245,14 +67627,16 @@ enums.StudiosNameImagesImageTypeImageIndexGetFormat? return null; } return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexGetFormat) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexGetFormat) { + List? + studiosNameImagesImageTypeImageIndexGetFormat, +) { return studiosNameImagesImageTypeImageIndexGetFormat ?.map((e) => e.value!) .join(',') ?? @@ -61260,8 +67644,9 @@ String studiosNameImagesImageTypeImageIndexGetFormatExplodedListToJson( } List studiosNameImagesImageTypeImageIndexGetFormatListToJson( - List? - studiosNameImagesImageTypeImageIndexGetFormat) { + List? + studiosNameImagesImageTypeImageIndexGetFormat, +) { if (studiosNameImagesImageTypeImageIndexGetFormat == null) { return []; } @@ -61272,7 +67657,7 @@ List studiosNameImagesImageTypeImageIndexGetFormatListToJson( } List - studiosNameImagesImageTypeImageIndexGetFormatListFromJson( +studiosNameImagesImageTypeImageIndexGetFormatListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -61281,13 +67666,15 @@ List } return studiosNameImagesImageTypeImageIndexGetFormat - .map((e) => - studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (e) => + studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + ) .toList(); } List? - studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -61296,38 +67683,44 @@ List? } return studiosNameImagesImageTypeImageIndexGetFormat - .map((e) => - studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString())) + .map( + (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( +studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexHeadImageType + enums + .StudiosNameImagesImageTypeImageIndexHeadImageType .swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexHeadImageType? - studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { @@ -61335,14 +67728,16 @@ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? return null; } return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexHeadImageType) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadImageType) { + List? + studiosNameImagesImageTypeImageIndexHeadImageType, +) { return studiosNameImagesImageTypeImageIndexHeadImageType ?.map((e) => e.value!) .join(',') ?? @@ -61350,8 +67745,9 @@ String studiosNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( } List studiosNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadImageType) { + List? + studiosNameImagesImageTypeImageIndexHeadImageType, +) { if (studiosNameImagesImageTypeImageIndexHeadImageType == null) { return []; } @@ -61362,7 +67758,7 @@ List studiosNameImagesImageTypeImageIndexHeadImageTypeListToJson( } List - studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -61371,13 +67767,16 @@ List } return studiosNameImagesImageTypeImageIndexHeadImageType - .map((e) => studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -61386,38 +67785,45 @@ List? } return studiosNameImagesImageTypeImageIndexHeadImageType - .map((e) => studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( - e.toString())) + .map( + (e) => studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +studiosNameImagesImageTypeImageIndexHeadFormatFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexHeadFormat + enums + .StudiosNameImagesImageTypeImageIndexHeadFormat .swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexHeadFormat? - studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { @@ -61425,14 +67831,16 @@ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? return null; } return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull((e) => - e.value == studiosNameImagesImageTypeImageIndexHeadFormat) ?? + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadFormat) { + List? + studiosNameImagesImageTypeImageIndexHeadFormat, +) { return studiosNameImagesImageTypeImageIndexHeadFormat ?.map((e) => e.value!) .join(',') ?? @@ -61440,8 +67848,9 @@ String studiosNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( } List studiosNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadFormat) { + List? + studiosNameImagesImageTypeImageIndexHeadFormat, +) { if (studiosNameImagesImageTypeImageIndexHeadFormat == null) { return []; } @@ -61452,7 +67861,7 @@ List studiosNameImagesImageTypeImageIndexHeadFormatListToJson( } List - studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( +studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -61461,13 +67870,16 @@ List } return studiosNameImagesImageTypeImageIndexHeadFormat - .map((e) => - studiosNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => studiosNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } List? - studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -61476,13 +67888,17 @@ List? } return studiosNameImagesImageTypeImageIndexHeadFormat - .map((e) => - studiosNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString())) + .map( + (e) => studiosNameImagesImageTypeImageIndexHeadFormatFromJson( + e.toString(), + ), + ) .toList(); } String? userImageGetFormatNullableToJson( - enums.UserImageGetFormat? userImageGetFormat) { + enums.UserImageGetFormat? userImageGetFormat, +) { return userImageGetFormat?.value; } @@ -61494,8 +67910,9 @@ enums.UserImageGetFormat userImageGetFormatFromJson( Object? userImageGetFormat, [ enums.UserImageGetFormat? defaultValue, ]) { - return enums.UserImageGetFormat.values - .firstWhereOrNull((e) => e.value == userImageGetFormat) ?? + return enums.UserImageGetFormat.values.firstWhereOrNull( + (e) => e.value == userImageGetFormat, + ) ?? defaultValue ?? enums.UserImageGetFormat.swaggerGeneratedUnknown; } @@ -61507,18 +67924,21 @@ enums.UserImageGetFormat? userImageGetFormatNullableFromJson( if (userImageGetFormat == null) { return null; } - return enums.UserImageGetFormat.values - .firstWhereOrNull((e) => e.value == userImageGetFormat) ?? + return enums.UserImageGetFormat.values.firstWhereOrNull( + (e) => e.value == userImageGetFormat, + ) ?? defaultValue; } String userImageGetFormatExplodedListToJson( - List? userImageGetFormat) { + List? userImageGetFormat, +) { return userImageGetFormat?.map((e) => e.value!).join(',') ?? ''; } List userImageGetFormatListToJson( - List? userImageGetFormat) { + List? userImageGetFormat, +) { if (userImageGetFormat == null) { return []; } @@ -61553,12 +67973,14 @@ List? userImageGetFormatNullableListFromJson( } String? userImageHeadFormatNullableToJson( - enums.UserImageHeadFormat? userImageHeadFormat) { + enums.UserImageHeadFormat? userImageHeadFormat, +) { return userImageHeadFormat?.value; } String? userImageHeadFormatToJson( - enums.UserImageHeadFormat userImageHeadFormat) { + enums.UserImageHeadFormat userImageHeadFormat, +) { return userImageHeadFormat.value; } @@ -61566,8 +67988,9 @@ enums.UserImageHeadFormat userImageHeadFormatFromJson( Object? userImageHeadFormat, [ enums.UserImageHeadFormat? defaultValue, ]) { - return enums.UserImageHeadFormat.values - .firstWhereOrNull((e) => e.value == userImageHeadFormat) ?? + return enums.UserImageHeadFormat.values.firstWhereOrNull( + (e) => e.value == userImageHeadFormat, + ) ?? defaultValue ?? enums.UserImageHeadFormat.swaggerGeneratedUnknown; } @@ -61579,18 +68002,21 @@ enums.UserImageHeadFormat? userImageHeadFormatNullableFromJson( if (userImageHeadFormat == null) { return null; } - return enums.UserImageHeadFormat.values - .firstWhereOrNull((e) => e.value == userImageHeadFormat) ?? + return enums.UserImageHeadFormat.values.firstWhereOrNull( + (e) => e.value == userImageHeadFormat, + ) ?? defaultValue; } String userImageHeadFormatExplodedListToJson( - List? userImageHeadFormat) { + List? userImageHeadFormat, +) { return userImageHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List userImageHeadFormatListToJson( - List? userImageHeadFormat) { + List? userImageHeadFormat, +) { if (userImageHeadFormat == null) { return []; } @@ -61625,31 +68051,34 @@ List? userImageHeadFormatNullableListFromJson( } 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( +itemsItemIdRefreshPostMetadataRefreshModeFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values .firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode) ?? + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue ?? enums.ItemsItemIdRefreshPostMetadataRefreshMode.swaggerGeneratedUnknown; } enums.ItemsItemIdRefreshPostMetadataRefreshMode? - itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( +itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { @@ -61658,13 +68087,15 @@ enums.ItemsItemIdRefreshPostMetadataRefreshMode? } return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values .firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode) ?? + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue; } String itemsItemIdRefreshPostMetadataRefreshModeExplodedListToJson( - List? - itemsItemIdRefreshPostMetadataRefreshMode) { + List? + itemsItemIdRefreshPostMetadataRefreshMode, +) { return itemsItemIdRefreshPostMetadataRefreshMode ?.map((e) => e.value!) .join(',') ?? @@ -61672,8 +68103,9 @@ String itemsItemIdRefreshPostMetadataRefreshModeExplodedListToJson( } List itemsItemIdRefreshPostMetadataRefreshModeListToJson( - List? - itemsItemIdRefreshPostMetadataRefreshMode) { + List? + itemsItemIdRefreshPostMetadataRefreshMode, +) { if (itemsItemIdRefreshPostMetadataRefreshMode == null) { return []; } @@ -61684,7 +68116,7 @@ List itemsItemIdRefreshPostMetadataRefreshModeListToJson( } List - itemsItemIdRefreshPostMetadataRefreshModeListFromJson( +itemsItemIdRefreshPostMetadataRefreshModeListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -61693,13 +68125,14 @@ List } return itemsItemIdRefreshPostMetadataRefreshMode - .map((e) => - itemsItemIdRefreshPostMetadataRefreshModeFromJson(e.toString())) + .map( + (e) => itemsItemIdRefreshPostMetadataRefreshModeFromJson(e.toString()), + ) .toList(); } List? - itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( +itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -61708,36 +68141,40 @@ List? } return itemsItemIdRefreshPostMetadataRefreshMode - .map((e) => - itemsItemIdRefreshPostMetadataRefreshModeFromJson(e.toString())) + .map( + (e) => itemsItemIdRefreshPostMetadataRefreshModeFromJson(e.toString()), + ) .toList(); } 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( +itemsItemIdRefreshPostImageRefreshModeFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { return enums.ItemsItemIdRefreshPostImageRefreshMode.values.firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostImageRefreshMode) ?? + (e) => e.value == itemsItemIdRefreshPostImageRefreshMode, + ) ?? defaultValue ?? enums.ItemsItemIdRefreshPostImageRefreshMode.swaggerGeneratedUnknown; } enums.ItemsItemIdRefreshPostImageRefreshMode? - itemsItemIdRefreshPostImageRefreshModeNullableFromJson( +itemsItemIdRefreshPostImageRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { @@ -61745,13 +68182,15 @@ enums.ItemsItemIdRefreshPostImageRefreshMode? return null; } return enums.ItemsItemIdRefreshPostImageRefreshMode.values.firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostImageRefreshMode) ?? + (e) => e.value == itemsItemIdRefreshPostImageRefreshMode, + ) ?? defaultValue; } String itemsItemIdRefreshPostImageRefreshModeExplodedListToJson( - List? - itemsItemIdRefreshPostImageRefreshMode) { + List? + itemsItemIdRefreshPostImageRefreshMode, +) { return itemsItemIdRefreshPostImageRefreshMode ?.map((e) => e.value!) .join(',') ?? @@ -61759,8 +68198,9 @@ String itemsItemIdRefreshPostImageRefreshModeExplodedListToJson( } List itemsItemIdRefreshPostImageRefreshModeListToJson( - List? - itemsItemIdRefreshPostImageRefreshMode) { + List? + itemsItemIdRefreshPostImageRefreshMode, +) { if (itemsItemIdRefreshPostImageRefreshMode == null) { return []; } @@ -61769,7 +68209,7 @@ List itemsItemIdRefreshPostImageRefreshModeListToJson( } List - itemsItemIdRefreshPostImageRefreshModeListFromJson( +itemsItemIdRefreshPostImageRefreshModeListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -61783,7 +68223,7 @@ List } List? - itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( +itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -61797,32 +68237,36 @@ List? } 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( +librariesAvailableOptionsGetLibraryContentTypeFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { return enums.LibrariesAvailableOptionsGetLibraryContentType.values - .firstWhereOrNull((e) => - e.value == librariesAvailableOptionsGetLibraryContentType) ?? + .firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue ?? - enums.LibrariesAvailableOptionsGetLibraryContentType + enums + .LibrariesAvailableOptionsGetLibraryContentType .swaggerGeneratedUnknown; } enums.LibrariesAvailableOptionsGetLibraryContentType? - librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( +librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { @@ -61830,14 +68274,16 @@ enums.LibrariesAvailableOptionsGetLibraryContentType? return null; } return enums.LibrariesAvailableOptionsGetLibraryContentType.values - .firstWhereOrNull((e) => - e.value == librariesAvailableOptionsGetLibraryContentType) ?? + .firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue; } String librariesAvailableOptionsGetLibraryContentTypeExplodedListToJson( - List? - librariesAvailableOptionsGetLibraryContentType) { + List? + librariesAvailableOptionsGetLibraryContentType, +) { return librariesAvailableOptionsGetLibraryContentType ?.map((e) => e.value!) .join(',') ?? @@ -61845,8 +68291,9 @@ String librariesAvailableOptionsGetLibraryContentTypeExplodedListToJson( } List librariesAvailableOptionsGetLibraryContentTypeListToJson( - List? - librariesAvailableOptionsGetLibraryContentType) { + List? + librariesAvailableOptionsGetLibraryContentType, +) { if (librariesAvailableOptionsGetLibraryContentType == null) { return []; } @@ -61857,7 +68304,7 @@ List librariesAvailableOptionsGetLibraryContentTypeListToJson( } List - librariesAvailableOptionsGetLibraryContentTypeListFromJson( +librariesAvailableOptionsGetLibraryContentTypeListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -61866,13 +68313,16 @@ List } return librariesAvailableOptionsGetLibraryContentType - .map((e) => - librariesAvailableOptionsGetLibraryContentTypeFromJson(e.toString())) + .map( + (e) => librariesAvailableOptionsGetLibraryContentTypeFromJson( + e.toString(), + ), + ) .toList(); } List? - librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( +librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -61881,36 +68331,42 @@ List? } return librariesAvailableOptionsGetLibraryContentType - .map((e) => - librariesAvailableOptionsGetLibraryContentTypeFromJson(e.toString())) + .map( + (e) => librariesAvailableOptionsGetLibraryContentTypeFromJson( + e.toString(), + ), + ) .toList(); } 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( +libraryVirtualFoldersPostCollectionTypeFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { return enums.LibraryVirtualFoldersPostCollectionType.values.firstWhereOrNull( - (e) => e.value == libraryVirtualFoldersPostCollectionType) ?? + (e) => e.value == libraryVirtualFoldersPostCollectionType, + ) ?? defaultValue ?? enums.LibraryVirtualFoldersPostCollectionType.swaggerGeneratedUnknown; } enums.LibraryVirtualFoldersPostCollectionType? - libraryVirtualFoldersPostCollectionTypeNullableFromJson( +libraryVirtualFoldersPostCollectionTypeNullableFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { @@ -61918,13 +68374,15 @@ enums.LibraryVirtualFoldersPostCollectionType? return null; } return enums.LibraryVirtualFoldersPostCollectionType.values.firstWhereOrNull( - (e) => e.value == libraryVirtualFoldersPostCollectionType) ?? + (e) => e.value == libraryVirtualFoldersPostCollectionType, + ) ?? defaultValue; } String libraryVirtualFoldersPostCollectionTypeExplodedListToJson( - List? - libraryVirtualFoldersPostCollectionType) { + List? + libraryVirtualFoldersPostCollectionType, +) { return libraryVirtualFoldersPostCollectionType ?.map((e) => e.value!) .join(',') ?? @@ -61932,8 +68390,9 @@ String libraryVirtualFoldersPostCollectionTypeExplodedListToJson( } List libraryVirtualFoldersPostCollectionTypeListToJson( - List? - libraryVirtualFoldersPostCollectionType) { + List? + libraryVirtualFoldersPostCollectionType, +) { if (libraryVirtualFoldersPostCollectionType == null) { return []; } @@ -61942,7 +68401,7 @@ List libraryVirtualFoldersPostCollectionTypeListToJson( } List - libraryVirtualFoldersPostCollectionTypeListFromJson( +libraryVirtualFoldersPostCollectionTypeListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -61956,7 +68415,7 @@ List } List? - libraryVirtualFoldersPostCollectionTypeNullableListFromJson( +libraryVirtualFoldersPostCollectionTypeNullableListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -61970,12 +68429,14 @@ List? } String? liveTvChannelsGetTypeNullableToJson( - enums.LiveTvChannelsGetType? liveTvChannelsGetType) { + enums.LiveTvChannelsGetType? liveTvChannelsGetType, +) { return liveTvChannelsGetType?.value; } String? liveTvChannelsGetTypeToJson( - enums.LiveTvChannelsGetType liveTvChannelsGetType) { + enums.LiveTvChannelsGetType liveTvChannelsGetType, +) { return liveTvChannelsGetType.value; } @@ -61983,8 +68444,9 @@ enums.LiveTvChannelsGetType liveTvChannelsGetTypeFromJson( Object? liveTvChannelsGetType, [ enums.LiveTvChannelsGetType? defaultValue, ]) { - return enums.LiveTvChannelsGetType.values - .firstWhereOrNull((e) => e.value == liveTvChannelsGetType) ?? + return enums.LiveTvChannelsGetType.values.firstWhereOrNull( + (e) => e.value == liveTvChannelsGetType, + ) ?? defaultValue ?? enums.LiveTvChannelsGetType.swaggerGeneratedUnknown; } @@ -61996,18 +68458,21 @@ enums.LiveTvChannelsGetType? liveTvChannelsGetTypeNullableFromJson( if (liveTvChannelsGetType == null) { return null; } - return enums.LiveTvChannelsGetType.values - .firstWhereOrNull((e) => e.value == liveTvChannelsGetType) ?? + return enums.LiveTvChannelsGetType.values.firstWhereOrNull( + (e) => e.value == liveTvChannelsGetType, + ) ?? defaultValue; } String liveTvChannelsGetTypeExplodedListToJson( - List? liveTvChannelsGetType) { + List? liveTvChannelsGetType, +) { return liveTvChannelsGetType?.map((e) => e.value!).join(',') ?? ''; } List liveTvChannelsGetTypeListToJson( - List? liveTvChannelsGetType) { + List? liveTvChannelsGetType, +) { if (liveTvChannelsGetType == null) { return []; } @@ -62042,12 +68507,14 @@ List? liveTvChannelsGetTypeNullableListFromJson( } String? liveTvChannelsGetSortOrderNullableToJson( - enums.LiveTvChannelsGetSortOrder? liveTvChannelsGetSortOrder) { + enums.LiveTvChannelsGetSortOrder? liveTvChannelsGetSortOrder, +) { return liveTvChannelsGetSortOrder?.value; } String? liveTvChannelsGetSortOrderToJson( - enums.LiveTvChannelsGetSortOrder liveTvChannelsGetSortOrder) { + enums.LiveTvChannelsGetSortOrder liveTvChannelsGetSortOrder, +) { return liveTvChannelsGetSortOrder.value; } @@ -62055,8 +68522,9 @@ enums.LiveTvChannelsGetSortOrder liveTvChannelsGetSortOrderFromJson( Object? liveTvChannelsGetSortOrder, [ enums.LiveTvChannelsGetSortOrder? defaultValue, ]) { - return enums.LiveTvChannelsGetSortOrder.values - .firstWhereOrNull((e) => e.value == liveTvChannelsGetSortOrder) ?? + return enums.LiveTvChannelsGetSortOrder.values.firstWhereOrNull( + (e) => e.value == liveTvChannelsGetSortOrder, + ) ?? defaultValue ?? enums.LiveTvChannelsGetSortOrder.swaggerGeneratedUnknown; } @@ -62068,18 +68536,21 @@ enums.LiveTvChannelsGetSortOrder? liveTvChannelsGetSortOrderNullableFromJson( if (liveTvChannelsGetSortOrder == null) { return null; } - return enums.LiveTvChannelsGetSortOrder.values - .firstWhereOrNull((e) => e.value == liveTvChannelsGetSortOrder) ?? + return enums.LiveTvChannelsGetSortOrder.values.firstWhereOrNull( + (e) => e.value == liveTvChannelsGetSortOrder, + ) ?? defaultValue; } String liveTvChannelsGetSortOrderExplodedListToJson( - List? liveTvChannelsGetSortOrder) { + List? liveTvChannelsGetSortOrder, +) { return liveTvChannelsGetSortOrder?.map((e) => e.value!).join(',') ?? ''; } List liveTvChannelsGetSortOrderListToJson( - List? liveTvChannelsGetSortOrder) { + List? liveTvChannelsGetSortOrder, +) { if (liveTvChannelsGetSortOrder == null) { return []; } @@ -62101,7 +68572,7 @@ List liveTvChannelsGetSortOrderListFromJson( } List? - liveTvChannelsGetSortOrderNullableListFromJson( +liveTvChannelsGetSortOrderNullableListFromJson( List? liveTvChannelsGetSortOrder, [ List? defaultValue, ]) { @@ -62115,12 +68586,14 @@ List? } String? liveTvRecordingsGetStatusNullableToJson( - enums.LiveTvRecordingsGetStatus? liveTvRecordingsGetStatus) { + enums.LiveTvRecordingsGetStatus? liveTvRecordingsGetStatus, +) { return liveTvRecordingsGetStatus?.value; } String? liveTvRecordingsGetStatusToJson( - enums.LiveTvRecordingsGetStatus liveTvRecordingsGetStatus) { + enums.LiveTvRecordingsGetStatus liveTvRecordingsGetStatus, +) { return liveTvRecordingsGetStatus.value; } @@ -62128,8 +68601,9 @@ enums.LiveTvRecordingsGetStatus liveTvRecordingsGetStatusFromJson( Object? liveTvRecordingsGetStatus, [ enums.LiveTvRecordingsGetStatus? defaultValue, ]) { - return enums.LiveTvRecordingsGetStatus.values - .firstWhereOrNull((e) => e.value == liveTvRecordingsGetStatus) ?? + return enums.LiveTvRecordingsGetStatus.values.firstWhereOrNull( + (e) => e.value == liveTvRecordingsGetStatus, + ) ?? defaultValue ?? enums.LiveTvRecordingsGetStatus.swaggerGeneratedUnknown; } @@ -62141,18 +68615,21 @@ enums.LiveTvRecordingsGetStatus? liveTvRecordingsGetStatusNullableFromJson( if (liveTvRecordingsGetStatus == null) { return null; } - return enums.LiveTvRecordingsGetStatus.values - .firstWhereOrNull((e) => e.value == liveTvRecordingsGetStatus) ?? + return enums.LiveTvRecordingsGetStatus.values.firstWhereOrNull( + (e) => e.value == liveTvRecordingsGetStatus, + ) ?? defaultValue; } String liveTvRecordingsGetStatusExplodedListToJson( - List? liveTvRecordingsGetStatus) { + List? liveTvRecordingsGetStatus, +) { return liveTvRecordingsGetStatus?.map((e) => e.value!).join(',') ?? ''; } List liveTvRecordingsGetStatusListToJson( - List? liveTvRecordingsGetStatus) { + List? liveTvRecordingsGetStatus, +) { if (liveTvRecordingsGetStatus == null) { return []; } @@ -62174,7 +68651,7 @@ List liveTvRecordingsGetStatusListFromJson( } List? - liveTvRecordingsGetStatusNullableListFromJson( +liveTvRecordingsGetStatusNullableListFromJson( List? liveTvRecordingsGetStatus, [ List? defaultValue, ]) { @@ -62188,12 +68665,14 @@ List? } String? liveTvRecordingsSeriesGetStatusNullableToJson( - enums.LiveTvRecordingsSeriesGetStatus? liveTvRecordingsSeriesGetStatus) { + enums.LiveTvRecordingsSeriesGetStatus? liveTvRecordingsSeriesGetStatus, +) { return liveTvRecordingsSeriesGetStatus?.value; } String? liveTvRecordingsSeriesGetStatusToJson( - enums.LiveTvRecordingsSeriesGetStatus liveTvRecordingsSeriesGetStatus) { + enums.LiveTvRecordingsSeriesGetStatus liveTvRecordingsSeriesGetStatus, +) { return liveTvRecordingsSeriesGetStatus.value; } @@ -62202,13 +68681,14 @@ enums.LiveTvRecordingsSeriesGetStatus liveTvRecordingsSeriesGetStatusFromJson( enums.LiveTvRecordingsSeriesGetStatus? defaultValue, ]) { return enums.LiveTvRecordingsSeriesGetStatus.values.firstWhereOrNull( - (e) => e.value == liveTvRecordingsSeriesGetStatus) ?? + (e) => e.value == liveTvRecordingsSeriesGetStatus, + ) ?? defaultValue ?? enums.LiveTvRecordingsSeriesGetStatus.swaggerGeneratedUnknown; } enums.LiveTvRecordingsSeriesGetStatus? - liveTvRecordingsSeriesGetStatusNullableFromJson( +liveTvRecordingsSeriesGetStatusNullableFromJson( Object? liveTvRecordingsSeriesGetStatus, [ enums.LiveTvRecordingsSeriesGetStatus? defaultValue, ]) { @@ -62216,19 +68696,20 @@ enums.LiveTvRecordingsSeriesGetStatus? return null; } return enums.LiveTvRecordingsSeriesGetStatus.values.firstWhereOrNull( - (e) => e.value == liveTvRecordingsSeriesGetStatus) ?? + (e) => e.value == liveTvRecordingsSeriesGetStatus, + ) ?? defaultValue; } String liveTvRecordingsSeriesGetStatusExplodedListToJson( - List? - liveTvRecordingsSeriesGetStatus) { + List? liveTvRecordingsSeriesGetStatus, +) { return liveTvRecordingsSeriesGetStatus?.map((e) => e.value!).join(',') ?? ''; } List liveTvRecordingsSeriesGetStatusListToJson( - List? - liveTvRecordingsSeriesGetStatus) { + List? liveTvRecordingsSeriesGetStatus, +) { if (liveTvRecordingsSeriesGetStatus == null) { return []; } @@ -62237,7 +68718,7 @@ List liveTvRecordingsSeriesGetStatusListToJson( } List - liveTvRecordingsSeriesGetStatusListFromJson( +liveTvRecordingsSeriesGetStatusListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -62251,7 +68732,7 @@ List } List? - liveTvRecordingsSeriesGetStatusNullableListFromJson( +liveTvRecordingsSeriesGetStatusNullableListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -62265,12 +68746,14 @@ List? } String? liveTvSeriesTimersGetSortOrderNullableToJson( - enums.LiveTvSeriesTimersGetSortOrder? liveTvSeriesTimersGetSortOrder) { + enums.LiveTvSeriesTimersGetSortOrder? liveTvSeriesTimersGetSortOrder, +) { return liveTvSeriesTimersGetSortOrder?.value; } String? liveTvSeriesTimersGetSortOrderToJson( - enums.LiveTvSeriesTimersGetSortOrder liveTvSeriesTimersGetSortOrder) { + enums.LiveTvSeriesTimersGetSortOrder liveTvSeriesTimersGetSortOrder, +) { return liveTvSeriesTimersGetSortOrder.value; } @@ -62278,34 +68761,36 @@ enums.LiveTvSeriesTimersGetSortOrder liveTvSeriesTimersGetSortOrderFromJson( Object? liveTvSeriesTimersGetSortOrder, [ enums.LiveTvSeriesTimersGetSortOrder? defaultValue, ]) { - return enums.LiveTvSeriesTimersGetSortOrder.values - .firstWhereOrNull((e) => e.value == liveTvSeriesTimersGetSortOrder) ?? + return enums.LiveTvSeriesTimersGetSortOrder.values.firstWhereOrNull( + (e) => e.value == liveTvSeriesTimersGetSortOrder, + ) ?? defaultValue ?? enums.LiveTvSeriesTimersGetSortOrder.swaggerGeneratedUnknown; } enums.LiveTvSeriesTimersGetSortOrder? - liveTvSeriesTimersGetSortOrderNullableFromJson( +liveTvSeriesTimersGetSortOrderNullableFromJson( Object? liveTvSeriesTimersGetSortOrder, [ enums.LiveTvSeriesTimersGetSortOrder? defaultValue, ]) { if (liveTvSeriesTimersGetSortOrder == null) { return null; } - return enums.LiveTvSeriesTimersGetSortOrder.values - .firstWhereOrNull((e) => e.value == liveTvSeriesTimersGetSortOrder) ?? + return enums.LiveTvSeriesTimersGetSortOrder.values.firstWhereOrNull( + (e) => e.value == liveTvSeriesTimersGetSortOrder, + ) ?? defaultValue; } String liveTvSeriesTimersGetSortOrderExplodedListToJson( - List? - liveTvSeriesTimersGetSortOrder) { + List? liveTvSeriesTimersGetSortOrder, +) { return liveTvSeriesTimersGetSortOrder?.map((e) => e.value!).join(',') ?? ''; } List liveTvSeriesTimersGetSortOrderListToJson( - List? - liveTvSeriesTimersGetSortOrder) { + List? liveTvSeriesTimersGetSortOrder, +) { if (liveTvSeriesTimersGetSortOrder == null) { return []; } @@ -62314,7 +68799,7 @@ List liveTvSeriesTimersGetSortOrderListToJson( } List - liveTvSeriesTimersGetSortOrderListFromJson( +liveTvSeriesTimersGetSortOrderListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -62328,7 +68813,7 @@ List } List? - liveTvSeriesTimersGetSortOrderNullableListFromJson( +liveTvSeriesTimersGetSortOrderNullableListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -62342,12 +68827,14 @@ List? } String? playlistsPostMediaTypeNullableToJson( - enums.PlaylistsPostMediaType? playlistsPostMediaType) { + enums.PlaylistsPostMediaType? playlistsPostMediaType, +) { return playlistsPostMediaType?.value; } String? playlistsPostMediaTypeToJson( - enums.PlaylistsPostMediaType playlistsPostMediaType) { + enums.PlaylistsPostMediaType playlistsPostMediaType, +) { return playlistsPostMediaType.value; } @@ -62355,8 +68842,9 @@ enums.PlaylistsPostMediaType playlistsPostMediaTypeFromJson( Object? playlistsPostMediaType, [ enums.PlaylistsPostMediaType? defaultValue, ]) { - return enums.PlaylistsPostMediaType.values - .firstWhereOrNull((e) => e.value == playlistsPostMediaType) ?? + return enums.PlaylistsPostMediaType.values.firstWhereOrNull( + (e) => e.value == playlistsPostMediaType, + ) ?? defaultValue ?? enums.PlaylistsPostMediaType.swaggerGeneratedUnknown; } @@ -62368,18 +68856,21 @@ enums.PlaylistsPostMediaType? playlistsPostMediaTypeNullableFromJson( if (playlistsPostMediaType == null) { return null; } - return enums.PlaylistsPostMediaType.values - .firstWhereOrNull((e) => e.value == playlistsPostMediaType) ?? + return enums.PlaylistsPostMediaType.values.firstWhereOrNull( + (e) => e.value == playlistsPostMediaType, + ) ?? defaultValue; } String playlistsPostMediaTypeExplodedListToJson( - List? playlistsPostMediaType) { + List? playlistsPostMediaType, +) { return playlistsPostMediaType?.map((e) => e.value!).join(',') ?? ''; } List playlistsPostMediaTypeListToJson( - List? playlistsPostMediaType) { + List? playlistsPostMediaType, +) { if (playlistsPostMediaType == null) { return []; } @@ -62414,12 +68905,14 @@ List? playlistsPostMediaTypeNullableListFromJson( } String? playingItemsItemIdPostPlayMethodNullableToJson( - enums.PlayingItemsItemIdPostPlayMethod? playingItemsItemIdPostPlayMethod) { + enums.PlayingItemsItemIdPostPlayMethod? playingItemsItemIdPostPlayMethod, +) { return playingItemsItemIdPostPlayMethod?.value; } String? playingItemsItemIdPostPlayMethodToJson( - enums.PlayingItemsItemIdPostPlayMethod playingItemsItemIdPostPlayMethod) { + enums.PlayingItemsItemIdPostPlayMethod playingItemsItemIdPostPlayMethod, +) { return playingItemsItemIdPostPlayMethod.value; } @@ -62428,13 +68921,14 @@ enums.PlayingItemsItemIdPostPlayMethod playingItemsItemIdPostPlayMethodFromJson( enums.PlayingItemsItemIdPostPlayMethod? defaultValue, ]) { return enums.PlayingItemsItemIdPostPlayMethod.values.firstWhereOrNull( - (e) => e.value == playingItemsItemIdPostPlayMethod) ?? + (e) => e.value == playingItemsItemIdPostPlayMethod, + ) ?? defaultValue ?? enums.PlayingItemsItemIdPostPlayMethod.swaggerGeneratedUnknown; } enums.PlayingItemsItemIdPostPlayMethod? - playingItemsItemIdPostPlayMethodNullableFromJson( +playingItemsItemIdPostPlayMethodNullableFromJson( Object? playingItemsItemIdPostPlayMethod, [ enums.PlayingItemsItemIdPostPlayMethod? defaultValue, ]) { @@ -62442,19 +68936,22 @@ enums.PlayingItemsItemIdPostPlayMethod? return null; } return enums.PlayingItemsItemIdPostPlayMethod.values.firstWhereOrNull( - (e) => e.value == playingItemsItemIdPostPlayMethod) ?? + (e) => e.value == playingItemsItemIdPostPlayMethod, + ) ?? defaultValue; } String playingItemsItemIdPostPlayMethodExplodedListToJson( - List? - playingItemsItemIdPostPlayMethod) { + List? + playingItemsItemIdPostPlayMethod, +) { return playingItemsItemIdPostPlayMethod?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdPostPlayMethodListToJson( - List? - playingItemsItemIdPostPlayMethod) { + List? + playingItemsItemIdPostPlayMethod, +) { if (playingItemsItemIdPostPlayMethod == null) { return []; } @@ -62463,7 +68960,7 @@ List playingItemsItemIdPostPlayMethodListToJson( } List - playingItemsItemIdPostPlayMethodListFromJson( +playingItemsItemIdPostPlayMethodListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -62477,7 +68974,7 @@ List } List? - playingItemsItemIdPostPlayMethodNullableListFromJson( +playingItemsItemIdPostPlayMethodNullableListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -62491,30 +68988,33 @@ List? } 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( +playingItemsItemIdProgressPostPlayMethodFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { return enums.PlayingItemsItemIdProgressPostPlayMethod.values.firstWhereOrNull( - (e) => e.value == playingItemsItemIdProgressPostPlayMethod) ?? + (e) => e.value == playingItemsItemIdProgressPostPlayMethod, + ) ?? defaultValue ?? enums.PlayingItemsItemIdProgressPostPlayMethod.swaggerGeneratedUnknown; } enums.PlayingItemsItemIdProgressPostPlayMethod? - playingItemsItemIdProgressPostPlayMethodNullableFromJson( +playingItemsItemIdProgressPostPlayMethodNullableFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { @@ -62522,13 +69022,15 @@ enums.PlayingItemsItemIdProgressPostPlayMethod? return null; } return enums.PlayingItemsItemIdProgressPostPlayMethod.values.firstWhereOrNull( - (e) => e.value == playingItemsItemIdProgressPostPlayMethod) ?? + (e) => e.value == playingItemsItemIdProgressPostPlayMethod, + ) ?? defaultValue; } String playingItemsItemIdProgressPostPlayMethodExplodedListToJson( - List? - playingItemsItemIdProgressPostPlayMethod) { + List? + playingItemsItemIdProgressPostPlayMethod, +) { return playingItemsItemIdProgressPostPlayMethod ?.map((e) => e.value!) .join(',') ?? @@ -62536,8 +69038,9 @@ String playingItemsItemIdProgressPostPlayMethodExplodedListToJson( } List playingItemsItemIdProgressPostPlayMethodListToJson( - List? - playingItemsItemIdProgressPostPlayMethod) { + List? + playingItemsItemIdProgressPostPlayMethod, +) { if (playingItemsItemIdProgressPostPlayMethod == null) { return []; } @@ -62546,7 +69049,7 @@ List playingItemsItemIdProgressPostPlayMethodListToJson( } List - playingItemsItemIdProgressPostPlayMethodListFromJson( +playingItemsItemIdProgressPostPlayMethodListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -62556,12 +69059,13 @@ List return playingItemsItemIdProgressPostPlayMethod .map( - (e) => playingItemsItemIdProgressPostPlayMethodFromJson(e.toString())) + (e) => playingItemsItemIdProgressPostPlayMethodFromJson(e.toString()), + ) .toList(); } List? - playingItemsItemIdProgressPostPlayMethodNullableListFromJson( +playingItemsItemIdProgressPostPlayMethodNullableListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -62571,35 +69075,39 @@ List? return playingItemsItemIdProgressPostPlayMethod .map( - (e) => playingItemsItemIdProgressPostPlayMethodFromJson(e.toString())) + (e) => playingItemsItemIdProgressPostPlayMethodFromJson(e.toString()), + ) .toList(); } 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( +playingItemsItemIdProgressPostRepeatModeFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { return enums.PlayingItemsItemIdProgressPostRepeatMode.values.firstWhereOrNull( - (e) => e.value == playingItemsItemIdProgressPostRepeatMode) ?? + (e) => e.value == playingItemsItemIdProgressPostRepeatMode, + ) ?? defaultValue ?? enums.PlayingItemsItemIdProgressPostRepeatMode.swaggerGeneratedUnknown; } enums.PlayingItemsItemIdProgressPostRepeatMode? - playingItemsItemIdProgressPostRepeatModeNullableFromJson( +playingItemsItemIdProgressPostRepeatModeNullableFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { @@ -62607,13 +69115,15 @@ enums.PlayingItemsItemIdProgressPostRepeatMode? return null; } return enums.PlayingItemsItemIdProgressPostRepeatMode.values.firstWhereOrNull( - (e) => e.value == playingItemsItemIdProgressPostRepeatMode) ?? + (e) => e.value == playingItemsItemIdProgressPostRepeatMode, + ) ?? defaultValue; } String playingItemsItemIdProgressPostRepeatModeExplodedListToJson( - List? - playingItemsItemIdProgressPostRepeatMode) { + List? + playingItemsItemIdProgressPostRepeatMode, +) { return playingItemsItemIdProgressPostRepeatMode ?.map((e) => e.value!) .join(',') ?? @@ -62621,8 +69131,9 @@ String playingItemsItemIdProgressPostRepeatModeExplodedListToJson( } List playingItemsItemIdProgressPostRepeatModeListToJson( - List? - playingItemsItemIdProgressPostRepeatMode) { + List? + playingItemsItemIdProgressPostRepeatMode, +) { if (playingItemsItemIdProgressPostRepeatMode == null) { return []; } @@ -62631,7 +69142,7 @@ List playingItemsItemIdProgressPostRepeatModeListToJson( } List - playingItemsItemIdProgressPostRepeatModeListFromJson( +playingItemsItemIdProgressPostRepeatModeListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -62641,12 +69152,13 @@ List return playingItemsItemIdProgressPostRepeatMode .map( - (e) => playingItemsItemIdProgressPostRepeatModeFromJson(e.toString())) + (e) => playingItemsItemIdProgressPostRepeatModeFromJson(e.toString()), + ) .toList(); } List? - playingItemsItemIdProgressPostRepeatModeNullableListFromJson( +playingItemsItemIdProgressPostRepeatModeNullableListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -62656,17 +69168,20 @@ List? return playingItemsItemIdProgressPostRepeatMode .map( - (e) => playingItemsItemIdProgressPostRepeatModeFromJson(e.toString())) + (e) => playingItemsItemIdProgressPostRepeatModeFromJson(e.toString()), + ) .toList(); } String? itemsItemIdRemoteImagesGetTypeNullableToJson( - enums.ItemsItemIdRemoteImagesGetType? itemsItemIdRemoteImagesGetType) { + enums.ItemsItemIdRemoteImagesGetType? itemsItemIdRemoteImagesGetType, +) { return itemsItemIdRemoteImagesGetType?.value; } String? itemsItemIdRemoteImagesGetTypeToJson( - enums.ItemsItemIdRemoteImagesGetType itemsItemIdRemoteImagesGetType) { + enums.ItemsItemIdRemoteImagesGetType itemsItemIdRemoteImagesGetType, +) { return itemsItemIdRemoteImagesGetType.value; } @@ -62674,34 +69189,36 @@ enums.ItemsItemIdRemoteImagesGetType itemsItemIdRemoteImagesGetTypeFromJson( Object? itemsItemIdRemoteImagesGetType, [ enums.ItemsItemIdRemoteImagesGetType? defaultValue, ]) { - return enums.ItemsItemIdRemoteImagesGetType.values - .firstWhereOrNull((e) => e.value == itemsItemIdRemoteImagesGetType) ?? + return enums.ItemsItemIdRemoteImagesGetType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdRemoteImagesGetType, + ) ?? defaultValue ?? enums.ItemsItemIdRemoteImagesGetType.swaggerGeneratedUnknown; } enums.ItemsItemIdRemoteImagesGetType? - itemsItemIdRemoteImagesGetTypeNullableFromJson( +itemsItemIdRemoteImagesGetTypeNullableFromJson( Object? itemsItemIdRemoteImagesGetType, [ enums.ItemsItemIdRemoteImagesGetType? defaultValue, ]) { if (itemsItemIdRemoteImagesGetType == null) { return null; } - return enums.ItemsItemIdRemoteImagesGetType.values - .firstWhereOrNull((e) => e.value == itemsItemIdRemoteImagesGetType) ?? + return enums.ItemsItemIdRemoteImagesGetType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdRemoteImagesGetType, + ) ?? defaultValue; } String itemsItemIdRemoteImagesGetTypeExplodedListToJson( - List? - itemsItemIdRemoteImagesGetType) { + List? itemsItemIdRemoteImagesGetType, +) { return itemsItemIdRemoteImagesGetType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdRemoteImagesGetTypeListToJson( - List? - itemsItemIdRemoteImagesGetType) { + List? itemsItemIdRemoteImagesGetType, +) { if (itemsItemIdRemoteImagesGetType == null) { return []; } @@ -62710,7 +69227,7 @@ List itemsItemIdRemoteImagesGetTypeListToJson( } List - itemsItemIdRemoteImagesGetTypeListFromJson( +itemsItemIdRemoteImagesGetTypeListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -62724,7 +69241,7 @@ List } List? - itemsItemIdRemoteImagesGetTypeNullableListFromJson( +itemsItemIdRemoteImagesGetTypeNullableListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -62738,30 +69255,33 @@ List? } 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( +itemsItemIdRemoteImagesDownloadPostTypeFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { return enums.ItemsItemIdRemoteImagesDownloadPostType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdRemoteImagesDownloadPostType) ?? + (e) => e.value == itemsItemIdRemoteImagesDownloadPostType, + ) ?? defaultValue ?? enums.ItemsItemIdRemoteImagesDownloadPostType.swaggerGeneratedUnknown; } enums.ItemsItemIdRemoteImagesDownloadPostType? - itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( +itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { @@ -62769,13 +69289,15 @@ enums.ItemsItemIdRemoteImagesDownloadPostType? return null; } return enums.ItemsItemIdRemoteImagesDownloadPostType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdRemoteImagesDownloadPostType) ?? + (e) => e.value == itemsItemIdRemoteImagesDownloadPostType, + ) ?? defaultValue; } String itemsItemIdRemoteImagesDownloadPostTypeExplodedListToJson( - List? - itemsItemIdRemoteImagesDownloadPostType) { + List? + itemsItemIdRemoteImagesDownloadPostType, +) { return itemsItemIdRemoteImagesDownloadPostType ?.map((e) => e.value!) .join(',') ?? @@ -62783,8 +69305,9 @@ String itemsItemIdRemoteImagesDownloadPostTypeExplodedListToJson( } List itemsItemIdRemoteImagesDownloadPostTypeListToJson( - List? - itemsItemIdRemoteImagesDownloadPostType) { + List? + itemsItemIdRemoteImagesDownloadPostType, +) { if (itemsItemIdRemoteImagesDownloadPostType == null) { return []; } @@ -62793,7 +69316,7 @@ List itemsItemIdRemoteImagesDownloadPostTypeListToJson( } List - itemsItemIdRemoteImagesDownloadPostTypeListFromJson( +itemsItemIdRemoteImagesDownloadPostTypeListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -62807,7 +69330,7 @@ List } List? - itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( +itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -62821,31 +69344,34 @@ List? } 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( +sessionsSessionIdCommandCommandPostCommandFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { return enums.SessionsSessionIdCommandCommandPostCommand.values .firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand) ?? + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdCommandCommandPostCommand.swaggerGeneratedUnknown; } enums.SessionsSessionIdCommandCommandPostCommand? - sessionsSessionIdCommandCommandPostCommandNullableFromJson( +sessionsSessionIdCommandCommandPostCommandNullableFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { @@ -62854,13 +69380,15 @@ enums.SessionsSessionIdCommandCommandPostCommand? } return enums.SessionsSessionIdCommandCommandPostCommand.values .firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand) ?? + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdCommandCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdCommandCommandPostCommand) { + List? + sessionsSessionIdCommandCommandPostCommand, +) { return sessionsSessionIdCommandCommandPostCommand ?.map((e) => e.value!) .join(',') ?? @@ -62868,8 +69396,9 @@ String sessionsSessionIdCommandCommandPostCommandExplodedListToJson( } List sessionsSessionIdCommandCommandPostCommandListToJson( - List? - sessionsSessionIdCommandCommandPostCommand) { + List? + sessionsSessionIdCommandCommandPostCommand, +) { if (sessionsSessionIdCommandCommandPostCommand == null) { return []; } @@ -62880,7 +69409,7 @@ List sessionsSessionIdCommandCommandPostCommandListToJson( } List - sessionsSessionIdCommandCommandPostCommandListFromJson( +sessionsSessionIdCommandCommandPostCommandListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -62889,13 +69418,14 @@ List } return sessionsSessionIdCommandCommandPostCommand - .map((e) => - sessionsSessionIdCommandCommandPostCommandFromJson(e.toString())) + .map( + (e) => sessionsSessionIdCommandCommandPostCommandFromJson(e.toString()), + ) .toList(); } List? - sessionsSessionIdCommandCommandPostCommandNullableListFromJson( +sessionsSessionIdCommandCommandPostCommandNullableListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -62904,36 +69434,40 @@ List? } return sessionsSessionIdCommandCommandPostCommand - .map((e) => - sessionsSessionIdCommandCommandPostCommandFromJson(e.toString())) + .map( + (e) => sessionsSessionIdCommandCommandPostCommandFromJson(e.toString()), + ) .toList(); } 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( +sessionsSessionIdPlayingPostPlayCommandFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { return enums.SessionsSessionIdPlayingPostPlayCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingPostPlayCommand) ?? + (e) => e.value == sessionsSessionIdPlayingPostPlayCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdPlayingPostPlayCommand.swaggerGeneratedUnknown; } enums.SessionsSessionIdPlayingPostPlayCommand? - sessionsSessionIdPlayingPostPlayCommandNullableFromJson( +sessionsSessionIdPlayingPostPlayCommandNullableFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { @@ -62941,13 +69475,15 @@ enums.SessionsSessionIdPlayingPostPlayCommand? return null; } return enums.SessionsSessionIdPlayingPostPlayCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingPostPlayCommand) ?? + (e) => e.value == sessionsSessionIdPlayingPostPlayCommand, + ) ?? defaultValue; } String sessionsSessionIdPlayingPostPlayCommandExplodedListToJson( - List? - sessionsSessionIdPlayingPostPlayCommand) { + List? + sessionsSessionIdPlayingPostPlayCommand, +) { return sessionsSessionIdPlayingPostPlayCommand ?.map((e) => e.value!) .join(',') ?? @@ -62955,8 +69491,9 @@ String sessionsSessionIdPlayingPostPlayCommandExplodedListToJson( } List sessionsSessionIdPlayingPostPlayCommandListToJson( - List? - sessionsSessionIdPlayingPostPlayCommand) { + List? + sessionsSessionIdPlayingPostPlayCommand, +) { if (sessionsSessionIdPlayingPostPlayCommand == null) { return []; } @@ -62965,7 +69502,7 @@ List sessionsSessionIdPlayingPostPlayCommandListToJson( } List - sessionsSessionIdPlayingPostPlayCommandListFromJson( +sessionsSessionIdPlayingPostPlayCommandListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -62979,7 +69516,7 @@ List } List? - sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( +sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -62993,31 +69530,34 @@ List? } 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( +sessionsSessionIdPlayingCommandPostCommandFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { return enums.SessionsSessionIdPlayingCommandPostCommand.values .firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand) ?? + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdPlayingCommandPostCommand.swaggerGeneratedUnknown; } enums.SessionsSessionIdPlayingCommandPostCommand? - sessionsSessionIdPlayingCommandPostCommandNullableFromJson( +sessionsSessionIdPlayingCommandPostCommandNullableFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { @@ -63026,13 +69566,15 @@ enums.SessionsSessionIdPlayingCommandPostCommand? } return enums.SessionsSessionIdPlayingCommandPostCommand.values .firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand) ?? + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdPlayingCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdPlayingCommandPostCommand) { + List? + sessionsSessionIdPlayingCommandPostCommand, +) { return sessionsSessionIdPlayingCommandPostCommand ?.map((e) => e.value!) .join(',') ?? @@ -63040,8 +69582,9 @@ String sessionsSessionIdPlayingCommandPostCommandExplodedListToJson( } List sessionsSessionIdPlayingCommandPostCommandListToJson( - List? - sessionsSessionIdPlayingCommandPostCommand) { + List? + sessionsSessionIdPlayingCommandPostCommand, +) { if (sessionsSessionIdPlayingCommandPostCommand == null) { return []; } @@ -63052,7 +69595,7 @@ List sessionsSessionIdPlayingCommandPostCommandListToJson( } List - sessionsSessionIdPlayingCommandPostCommandListFromJson( +sessionsSessionIdPlayingCommandPostCommandListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -63061,13 +69604,14 @@ List } return sessionsSessionIdPlayingCommandPostCommand - .map((e) => - sessionsSessionIdPlayingCommandPostCommandFromJson(e.toString())) + .map( + (e) => sessionsSessionIdPlayingCommandPostCommandFromJson(e.toString()), + ) .toList(); } List? - sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( +sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -63076,37 +69620,41 @@ List? } return sessionsSessionIdPlayingCommandPostCommand - .map((e) => - sessionsSessionIdPlayingCommandPostCommandFromJson(e.toString())) + .map( + (e) => sessionsSessionIdPlayingCommandPostCommandFromJson(e.toString()), + ) .toList(); } 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( +sessionsSessionIdSystemCommandPostCommandFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { return enums.SessionsSessionIdSystemCommandPostCommand.values .firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand) ?? + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdSystemCommandPostCommand.swaggerGeneratedUnknown; } enums.SessionsSessionIdSystemCommandPostCommand? - sessionsSessionIdSystemCommandPostCommandNullableFromJson( +sessionsSessionIdSystemCommandPostCommandNullableFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { @@ -63115,13 +69663,15 @@ enums.SessionsSessionIdSystemCommandPostCommand? } return enums.SessionsSessionIdSystemCommandPostCommand.values .firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand) ?? + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdSystemCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdSystemCommandPostCommand) { + List? + sessionsSessionIdSystemCommandPostCommand, +) { return sessionsSessionIdSystemCommandPostCommand ?.map((e) => e.value!) .join(',') ?? @@ -63129,8 +69679,9 @@ String sessionsSessionIdSystemCommandPostCommandExplodedListToJson( } List sessionsSessionIdSystemCommandPostCommandListToJson( - List? - sessionsSessionIdSystemCommandPostCommand) { + List? + sessionsSessionIdSystemCommandPostCommand, +) { if (sessionsSessionIdSystemCommandPostCommand == null) { return []; } @@ -63141,7 +69692,7 @@ List sessionsSessionIdSystemCommandPostCommandListToJson( } List - sessionsSessionIdSystemCommandPostCommandListFromJson( +sessionsSessionIdSystemCommandPostCommandListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -63150,13 +69701,14 @@ List } return sessionsSessionIdSystemCommandPostCommand - .map((e) => - sessionsSessionIdSystemCommandPostCommandFromJson(e.toString())) + .map( + (e) => sessionsSessionIdSystemCommandPostCommandFromJson(e.toString()), + ) .toList(); } List? - sessionsSessionIdSystemCommandPostCommandNullableListFromJson( +sessionsSessionIdSystemCommandPostCommandNullableListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -63165,36 +69717,40 @@ List? } return sessionsSessionIdSystemCommandPostCommand - .map((e) => - sessionsSessionIdSystemCommandPostCommandFromJson(e.toString())) + .map( + (e) => sessionsSessionIdSystemCommandPostCommandFromJson(e.toString()), + ) .toList(); } 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( +sessionsSessionIdViewingPostItemTypeFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { return enums.SessionsSessionIdViewingPostItemType.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdViewingPostItemType) ?? + (e) => e.value == sessionsSessionIdViewingPostItemType, + ) ?? defaultValue ?? enums.SessionsSessionIdViewingPostItemType.swaggerGeneratedUnknown; } enums.SessionsSessionIdViewingPostItemType? - sessionsSessionIdViewingPostItemTypeNullableFromJson( +sessionsSessionIdViewingPostItemTypeNullableFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { @@ -63202,20 +69758,23 @@ enums.SessionsSessionIdViewingPostItemType? return null; } return enums.SessionsSessionIdViewingPostItemType.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdViewingPostItemType) ?? + (e) => e.value == sessionsSessionIdViewingPostItemType, + ) ?? defaultValue; } String sessionsSessionIdViewingPostItemTypeExplodedListToJson( - List? - sessionsSessionIdViewingPostItemType) { + List? + sessionsSessionIdViewingPostItemType, +) { return sessionsSessionIdViewingPostItemType?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdViewingPostItemTypeListToJson( - List? - sessionsSessionIdViewingPostItemType) { + List? + sessionsSessionIdViewingPostItemType, +) { if (sessionsSessionIdViewingPostItemType == null) { return []; } @@ -63224,7 +69783,7 @@ List sessionsSessionIdViewingPostItemTypeListToJson( } List - sessionsSessionIdViewingPostItemTypeListFromJson( +sessionsSessionIdViewingPostItemTypeListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -63238,7 +69797,7 @@ List } List? - sessionsSessionIdViewingPostItemTypeNullableListFromJson( +sessionsSessionIdViewingPostItemTypeNullableListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -63252,12 +69811,14 @@ List? } String? showsSeriesIdEpisodesGetSortByNullableToJson( - enums.ShowsSeriesIdEpisodesGetSortBy? showsSeriesIdEpisodesGetSortBy) { + enums.ShowsSeriesIdEpisodesGetSortBy? showsSeriesIdEpisodesGetSortBy, +) { return showsSeriesIdEpisodesGetSortBy?.value; } String? showsSeriesIdEpisodesGetSortByToJson( - enums.ShowsSeriesIdEpisodesGetSortBy showsSeriesIdEpisodesGetSortBy) { + enums.ShowsSeriesIdEpisodesGetSortBy showsSeriesIdEpisodesGetSortBy, +) { return showsSeriesIdEpisodesGetSortBy.value; } @@ -63265,34 +69826,36 @@ enums.ShowsSeriesIdEpisodesGetSortBy showsSeriesIdEpisodesGetSortByFromJson( Object? showsSeriesIdEpisodesGetSortBy, [ enums.ShowsSeriesIdEpisodesGetSortBy? defaultValue, ]) { - return enums.ShowsSeriesIdEpisodesGetSortBy.values - .firstWhereOrNull((e) => e.value == showsSeriesIdEpisodesGetSortBy) ?? + return enums.ShowsSeriesIdEpisodesGetSortBy.values.firstWhereOrNull( + (e) => e.value == showsSeriesIdEpisodesGetSortBy, + ) ?? defaultValue ?? enums.ShowsSeriesIdEpisodesGetSortBy.swaggerGeneratedUnknown; } enums.ShowsSeriesIdEpisodesGetSortBy? - showsSeriesIdEpisodesGetSortByNullableFromJson( +showsSeriesIdEpisodesGetSortByNullableFromJson( Object? showsSeriesIdEpisodesGetSortBy, [ enums.ShowsSeriesIdEpisodesGetSortBy? defaultValue, ]) { if (showsSeriesIdEpisodesGetSortBy == null) { return null; } - return enums.ShowsSeriesIdEpisodesGetSortBy.values - .firstWhereOrNull((e) => e.value == showsSeriesIdEpisodesGetSortBy) ?? + return enums.ShowsSeriesIdEpisodesGetSortBy.values.firstWhereOrNull( + (e) => e.value == showsSeriesIdEpisodesGetSortBy, + ) ?? defaultValue; } String showsSeriesIdEpisodesGetSortByExplodedListToJson( - List? - showsSeriesIdEpisodesGetSortBy) { + List? showsSeriesIdEpisodesGetSortBy, +) { return showsSeriesIdEpisodesGetSortBy?.map((e) => e.value!).join(',') ?? ''; } List showsSeriesIdEpisodesGetSortByListToJson( - List? - showsSeriesIdEpisodesGetSortBy) { + List? showsSeriesIdEpisodesGetSortBy, +) { if (showsSeriesIdEpisodesGetSortBy == null) { return []; } @@ -63301,7 +69864,7 @@ List showsSeriesIdEpisodesGetSortByListToJson( } List - showsSeriesIdEpisodesGetSortByListFromJson( +showsSeriesIdEpisodesGetSortByListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -63315,7 +69878,7 @@ List } List? - showsSeriesIdEpisodesGetSortByNullableListFromJson( +showsSeriesIdEpisodesGetSortByNullableListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -63329,31 +69892,34 @@ List? } 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( +audioItemIdUniversalGetTranscodingProtocolFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { return enums.AudioItemIdUniversalGetTranscodingProtocol.values .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol) ?? + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalGetTranscodingProtocol.swaggerGeneratedUnknown; } enums.AudioItemIdUniversalGetTranscodingProtocol? - audioItemIdUniversalGetTranscodingProtocolNullableFromJson( +audioItemIdUniversalGetTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { @@ -63362,13 +69928,15 @@ enums.AudioItemIdUniversalGetTranscodingProtocol? } return enums.AudioItemIdUniversalGetTranscodingProtocol.values .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol) ?? + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalGetTranscodingProtocolExplodedListToJson( - List? - audioItemIdUniversalGetTranscodingProtocol) { + List? + audioItemIdUniversalGetTranscodingProtocol, +) { return audioItemIdUniversalGetTranscodingProtocol ?.map((e) => e.value!) .join(',') ?? @@ -63376,8 +69944,9 @@ String audioItemIdUniversalGetTranscodingProtocolExplodedListToJson( } List audioItemIdUniversalGetTranscodingProtocolListToJson( - List? - audioItemIdUniversalGetTranscodingProtocol) { + List? + audioItemIdUniversalGetTranscodingProtocol, +) { if (audioItemIdUniversalGetTranscodingProtocol == null) { return []; } @@ -63388,7 +69957,7 @@ List audioItemIdUniversalGetTranscodingProtocolListToJson( } List - audioItemIdUniversalGetTranscodingProtocolListFromJson( +audioItemIdUniversalGetTranscodingProtocolListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -63397,13 +69966,14 @@ List } return audioItemIdUniversalGetTranscodingProtocol - .map((e) => - audioItemIdUniversalGetTranscodingProtocolFromJson(e.toString())) + .map( + (e) => audioItemIdUniversalGetTranscodingProtocolFromJson(e.toString()), + ) .toList(); } List? - audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( +audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -63412,37 +69982,41 @@ List? } return audioItemIdUniversalGetTranscodingProtocol - .map((e) => - audioItemIdUniversalGetTranscodingProtocolFromJson(e.toString())) + .map( + (e) => audioItemIdUniversalGetTranscodingProtocolFromJson(e.toString()), + ) .toList(); } 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( +audioItemIdUniversalHeadTranscodingProtocolFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { return enums.AudioItemIdUniversalHeadTranscodingProtocol.values .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol) ?? + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalHeadTranscodingProtocol.swaggerGeneratedUnknown; } enums.AudioItemIdUniversalHeadTranscodingProtocol? - audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( +audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { @@ -63451,13 +70025,15 @@ enums.AudioItemIdUniversalHeadTranscodingProtocol? } return enums.AudioItemIdUniversalHeadTranscodingProtocol.values .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol) ?? + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalHeadTranscodingProtocolExplodedListToJson( - List? - audioItemIdUniversalHeadTranscodingProtocol) { + List? + audioItemIdUniversalHeadTranscodingProtocol, +) { return audioItemIdUniversalHeadTranscodingProtocol ?.map((e) => e.value!) .join(',') ?? @@ -63465,8 +70041,9 @@ String audioItemIdUniversalHeadTranscodingProtocolExplodedListToJson( } List audioItemIdUniversalHeadTranscodingProtocolListToJson( - List? - audioItemIdUniversalHeadTranscodingProtocol) { + List? + audioItemIdUniversalHeadTranscodingProtocol, +) { if (audioItemIdUniversalHeadTranscodingProtocol == null) { return []; } @@ -63477,7 +70054,7 @@ List audioItemIdUniversalHeadTranscodingProtocolListToJson( } List - audioItemIdUniversalHeadTranscodingProtocolListFromJson( +audioItemIdUniversalHeadTranscodingProtocolListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -63486,13 +70063,15 @@ List } return audioItemIdUniversalHeadTranscodingProtocol - .map((e) => - audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString())) + .map( + (e) => + audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + ) .toList(); } List? - audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( +audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -63501,36 +70080,40 @@ List? } return audioItemIdUniversalHeadTranscodingProtocol - .map((e) => - audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString())) + .map( + (e) => + audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + ) .toList(); } String? videosItemIdStreamGetSubtitleMethodNullableToJson( - enums.VideosItemIdStreamGetSubtitleMethod? - videosItemIdStreamGetSubtitleMethod) { + enums.VideosItemIdStreamGetSubtitleMethod? + videosItemIdStreamGetSubtitleMethod, +) { return videosItemIdStreamGetSubtitleMethod?.value; } String? videosItemIdStreamGetSubtitleMethodToJson( - enums.VideosItemIdStreamGetSubtitleMethod - videosItemIdStreamGetSubtitleMethod) { + enums.VideosItemIdStreamGetSubtitleMethod videosItemIdStreamGetSubtitleMethod, +) { return videosItemIdStreamGetSubtitleMethod.value; } enums.VideosItemIdStreamGetSubtitleMethod - videosItemIdStreamGetSubtitleMethodFromJson( +videosItemIdStreamGetSubtitleMethodFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdStreamGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamGetSubtitleMethod) ?? + (e) => e.value == videosItemIdStreamGetSubtitleMethod, + ) ?? defaultValue ?? enums.VideosItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdStreamGetSubtitleMethod? - videosItemIdStreamGetSubtitleMethodNullableFromJson( +videosItemIdStreamGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -63538,20 +70121,23 @@ enums.VideosItemIdStreamGetSubtitleMethod? return null; } return enums.VideosItemIdStreamGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamGetSubtitleMethod) ?? + (e) => e.value == videosItemIdStreamGetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamGetSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamGetSubtitleMethod) { + List? + videosItemIdStreamGetSubtitleMethod, +) { return videosItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamGetSubtitleMethodListToJson( - List? - videosItemIdStreamGetSubtitleMethod) { + List? + videosItemIdStreamGetSubtitleMethod, +) { if (videosItemIdStreamGetSubtitleMethod == null) { return []; } @@ -63560,7 +70146,7 @@ List videosItemIdStreamGetSubtitleMethodListToJson( } List - videosItemIdStreamGetSubtitleMethodListFromJson( +videosItemIdStreamGetSubtitleMethodListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -63574,7 +70160,7 @@ List } List? - videosItemIdStreamGetSubtitleMethodNullableListFromJson( +videosItemIdStreamGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -63588,12 +70174,14 @@ List? } String? videosItemIdStreamGetContextNullableToJson( - enums.VideosItemIdStreamGetContext? videosItemIdStreamGetContext) { + enums.VideosItemIdStreamGetContext? videosItemIdStreamGetContext, +) { return videosItemIdStreamGetContext?.value; } String? videosItemIdStreamGetContextToJson( - enums.VideosItemIdStreamGetContext videosItemIdStreamGetContext) { + enums.VideosItemIdStreamGetContext videosItemIdStreamGetContext, +) { return videosItemIdStreamGetContext.value; } @@ -63601,32 +70189,36 @@ enums.VideosItemIdStreamGetContext videosItemIdStreamGetContextFromJson( Object? videosItemIdStreamGetContext, [ enums.VideosItemIdStreamGetContext? defaultValue, ]) { - return enums.VideosItemIdStreamGetContext.values - .firstWhereOrNull((e) => e.value == videosItemIdStreamGetContext) ?? + return enums.VideosItemIdStreamGetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamGetContext, + ) ?? defaultValue ?? enums.VideosItemIdStreamGetContext.swaggerGeneratedUnknown; } enums.VideosItemIdStreamGetContext? - videosItemIdStreamGetContextNullableFromJson( +videosItemIdStreamGetContextNullableFromJson( Object? videosItemIdStreamGetContext, [ enums.VideosItemIdStreamGetContext? defaultValue, ]) { if (videosItemIdStreamGetContext == null) { return null; } - return enums.VideosItemIdStreamGetContext.values - .firstWhereOrNull((e) => e.value == videosItemIdStreamGetContext) ?? + return enums.VideosItemIdStreamGetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamGetContext, + ) ?? defaultValue; } String videosItemIdStreamGetContextExplodedListToJson( - List? videosItemIdStreamGetContext) { + List? videosItemIdStreamGetContext, +) { return videosItemIdStreamGetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamGetContextListToJson( - List? videosItemIdStreamGetContext) { + List? videosItemIdStreamGetContext, +) { if (videosItemIdStreamGetContext == null) { return []; } @@ -63635,7 +70227,7 @@ List videosItemIdStreamGetContextListToJson( } List - videosItemIdStreamGetContextListFromJson( +videosItemIdStreamGetContextListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -63649,7 +70241,7 @@ List } List? - videosItemIdStreamGetContextNullableListFromJson( +videosItemIdStreamGetContextNullableListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -63663,30 +70255,33 @@ List? } 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( +videosItemIdStreamHeadSubtitleMethodFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdStreamHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamHeadSubtitleMethod) ?? + (e) => e.value == videosItemIdStreamHeadSubtitleMethod, + ) ?? defaultValue ?? enums.VideosItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdStreamHeadSubtitleMethod? - videosItemIdStreamHeadSubtitleMethodNullableFromJson( +videosItemIdStreamHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -63694,20 +70289,23 @@ enums.VideosItemIdStreamHeadSubtitleMethod? return null; } return enums.VideosItemIdStreamHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamHeadSubtitleMethod) ?? + (e) => e.value == videosItemIdStreamHeadSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamHeadSubtitleMethod) { + List? + videosItemIdStreamHeadSubtitleMethod, +) { return videosItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamHeadSubtitleMethodListToJson( - List? - videosItemIdStreamHeadSubtitleMethod) { + List? + videosItemIdStreamHeadSubtitleMethod, +) { if (videosItemIdStreamHeadSubtitleMethod == null) { return []; } @@ -63716,7 +70314,7 @@ List videosItemIdStreamHeadSubtitleMethodListToJson( } List - videosItemIdStreamHeadSubtitleMethodListFromJson( +videosItemIdStreamHeadSubtitleMethodListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -63730,7 +70328,7 @@ List } List? - videosItemIdStreamHeadSubtitleMethodNullableListFromJson( +videosItemIdStreamHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -63744,12 +70342,14 @@ List? } String? videosItemIdStreamHeadContextNullableToJson( - enums.VideosItemIdStreamHeadContext? videosItemIdStreamHeadContext) { + enums.VideosItemIdStreamHeadContext? videosItemIdStreamHeadContext, +) { return videosItemIdStreamHeadContext?.value; } String? videosItemIdStreamHeadContextToJson( - enums.VideosItemIdStreamHeadContext videosItemIdStreamHeadContext) { + enums.VideosItemIdStreamHeadContext videosItemIdStreamHeadContext, +) { return videosItemIdStreamHeadContext.value; } @@ -63757,32 +70357,36 @@ enums.VideosItemIdStreamHeadContext videosItemIdStreamHeadContextFromJson( Object? videosItemIdStreamHeadContext, [ enums.VideosItemIdStreamHeadContext? defaultValue, ]) { - return enums.VideosItemIdStreamHeadContext.values - .firstWhereOrNull((e) => e.value == videosItemIdStreamHeadContext) ?? + return enums.VideosItemIdStreamHeadContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamHeadContext, + ) ?? defaultValue ?? enums.VideosItemIdStreamHeadContext.swaggerGeneratedUnknown; } enums.VideosItemIdStreamHeadContext? - videosItemIdStreamHeadContextNullableFromJson( +videosItemIdStreamHeadContextNullableFromJson( Object? videosItemIdStreamHeadContext, [ enums.VideosItemIdStreamHeadContext? defaultValue, ]) { if (videosItemIdStreamHeadContext == null) { return null; } - return enums.VideosItemIdStreamHeadContext.values - .firstWhereOrNull((e) => e.value == videosItemIdStreamHeadContext) ?? + return enums.VideosItemIdStreamHeadContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamHeadContext, + ) ?? defaultValue; } String videosItemIdStreamHeadContextExplodedListToJson( - List? videosItemIdStreamHeadContext) { + List? videosItemIdStreamHeadContext, +) { return videosItemIdStreamHeadContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamHeadContextListToJson( - List? videosItemIdStreamHeadContext) { + List? videosItemIdStreamHeadContext, +) { if (videosItemIdStreamHeadContext == null) { return []; } @@ -63791,7 +70395,7 @@ List videosItemIdStreamHeadContextListToJson( } List - videosItemIdStreamHeadContextListFromJson( +videosItemIdStreamHeadContextListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -63805,7 +70409,7 @@ List } List? - videosItemIdStreamHeadContextNullableListFromJson( +videosItemIdStreamHeadContextNullableListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -63819,32 +70423,36 @@ List? } 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( +videosItemIdStreamContainerGetSubtitleMethodFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdStreamContainerGetSubtitleMethod.values .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod) ?? + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? enums - .VideosItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; + .VideosItemIdStreamContainerGetSubtitleMethod + .swaggerGeneratedUnknown; } enums.VideosItemIdStreamContainerGetSubtitleMethod? - videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( +videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { @@ -63853,13 +70461,15 @@ enums.VideosItemIdStreamContainerGetSubtitleMethod? } return enums.VideosItemIdStreamContainerGetSubtitleMethod.values .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod) ?? + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamContainerGetSubtitleMethod) { + List? + videosItemIdStreamContainerGetSubtitleMethod, +) { return videosItemIdStreamContainerGetSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -63867,8 +70477,9 @@ String videosItemIdStreamContainerGetSubtitleMethodExplodedListToJson( } List videosItemIdStreamContainerGetSubtitleMethodListToJson( - List? - videosItemIdStreamContainerGetSubtitleMethod) { + List? + videosItemIdStreamContainerGetSubtitleMethod, +) { if (videosItemIdStreamContainerGetSubtitleMethod == null) { return []; } @@ -63879,7 +70490,7 @@ List videosItemIdStreamContainerGetSubtitleMethodListToJson( } List - videosItemIdStreamContainerGetSubtitleMethodListFromJson( +videosItemIdStreamContainerGetSubtitleMethodListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -63888,13 +70499,15 @@ List } return videosItemIdStreamContainerGetSubtitleMethod - .map((e) => - videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString())) + .map( + (e) => + videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + ) .toList(); } List? - videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( +videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -63903,36 +70516,41 @@ List? } return videosItemIdStreamContainerGetSubtitleMethod - .map((e) => - videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString())) + .map( + (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( +videosItemIdStreamContainerGetContextFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { return enums.VideosItemIdStreamContainerGetContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetContext) ?? + (e) => e.value == videosItemIdStreamContainerGetContext, + ) ?? defaultValue ?? enums.VideosItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } enums.VideosItemIdStreamContainerGetContext? - videosItemIdStreamContainerGetContextNullableFromJson( +videosItemIdStreamContainerGetContextNullableFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { @@ -63940,13 +70558,15 @@ enums.VideosItemIdStreamContainerGetContext? return null; } return enums.VideosItemIdStreamContainerGetContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetContext) ?? + (e) => e.value == videosItemIdStreamContainerGetContext, + ) ?? defaultValue; } String videosItemIdStreamContainerGetContextExplodedListToJson( - List? - videosItemIdStreamContainerGetContext) { + List? + videosItemIdStreamContainerGetContext, +) { return videosItemIdStreamContainerGetContext ?.map((e) => e.value!) .join(',') ?? @@ -63954,8 +70574,9 @@ String videosItemIdStreamContainerGetContextExplodedListToJson( } List videosItemIdStreamContainerGetContextListToJson( - List? - videosItemIdStreamContainerGetContext) { + List? + videosItemIdStreamContainerGetContext, +) { if (videosItemIdStreamContainerGetContext == null) { return []; } @@ -63964,7 +70585,7 @@ List videosItemIdStreamContainerGetContextListToJson( } List - videosItemIdStreamContainerGetContextListFromJson( +videosItemIdStreamContainerGetContextListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -63978,7 +70599,7 @@ List } List? - videosItemIdStreamContainerGetContextNullableListFromJson( +videosItemIdStreamContainerGetContextNullableListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -63992,32 +70613,36 @@ List? } 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( +videosItemIdStreamContainerHeadSubtitleMethodFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull((e) => - e.value == videosItemIdStreamContainerHeadSubtitleMethod) ?? + .firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? - enums.VideosItemIdStreamContainerHeadSubtitleMethod + enums + .VideosItemIdStreamContainerHeadSubtitleMethod .swaggerGeneratedUnknown; } enums.VideosItemIdStreamContainerHeadSubtitleMethod? - videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { @@ -64025,14 +70650,16 @@ enums.VideosItemIdStreamContainerHeadSubtitleMethod? return null; } return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull((e) => - e.value == videosItemIdStreamContainerHeadSubtitleMethod) ?? + .firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamContainerHeadSubtitleMethod) { + List? + videosItemIdStreamContainerHeadSubtitleMethod, +) { return videosItemIdStreamContainerHeadSubtitleMethod ?.map((e) => e.value!) .join(',') ?? @@ -64040,8 +70667,9 @@ String videosItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( } List videosItemIdStreamContainerHeadSubtitleMethodListToJson( - List? - videosItemIdStreamContainerHeadSubtitleMethod) { + List? + videosItemIdStreamContainerHeadSubtitleMethod, +) { if (videosItemIdStreamContainerHeadSubtitleMethod == null) { return []; } @@ -64052,7 +70680,7 @@ List videosItemIdStreamContainerHeadSubtitleMethodListToJson( } List - videosItemIdStreamContainerHeadSubtitleMethodListFromJson( +videosItemIdStreamContainerHeadSubtitleMethodListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -64061,13 +70689,15 @@ List } return videosItemIdStreamContainerHeadSubtitleMethod - .map((e) => - videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString())) + .map( + (e) => + videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + ) .toList(); } List? - videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( +videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -64076,36 +70706,41 @@ List? } return videosItemIdStreamContainerHeadSubtitleMethod - .map((e) => - videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString())) + .map( + (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( +videosItemIdStreamContainerHeadContextFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { return enums.VideosItemIdStreamContainerHeadContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadContext) ?? + (e) => e.value == videosItemIdStreamContainerHeadContext, + ) ?? defaultValue ?? enums.VideosItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } enums.VideosItemIdStreamContainerHeadContext? - videosItemIdStreamContainerHeadContextNullableFromJson( +videosItemIdStreamContainerHeadContextNullableFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -64113,13 +70748,15 @@ enums.VideosItemIdStreamContainerHeadContext? return null; } return enums.VideosItemIdStreamContainerHeadContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadContext) ?? + (e) => e.value == videosItemIdStreamContainerHeadContext, + ) ?? defaultValue; } String videosItemIdStreamContainerHeadContextExplodedListToJson( - List? - videosItemIdStreamContainerHeadContext) { + List? + videosItemIdStreamContainerHeadContext, +) { return videosItemIdStreamContainerHeadContext ?.map((e) => e.value!) .join(',') ?? @@ -64127,8 +70764,9 @@ String videosItemIdStreamContainerHeadContextExplodedListToJson( } List videosItemIdStreamContainerHeadContextListToJson( - List? - videosItemIdStreamContainerHeadContext) { + List? + videosItemIdStreamContainerHeadContext, +) { if (videosItemIdStreamContainerHeadContext == null) { return []; } @@ -64137,7 +70775,7 @@ List videosItemIdStreamContainerHeadContextListToJson( } List - videosItemIdStreamContainerHeadContextListFromJson( +videosItemIdStreamContainerHeadContextListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -64151,7 +70789,7 @@ List } List? - videosItemIdStreamContainerHeadContextNullableListFromJson( +videosItemIdStreamContainerHeadContextNullableListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -64211,7 +70849,8 @@ class $CustomJsonDecoder { class $JsonSerializableConverter extends chopper.JsonConverter { @override FutureOr> convertResponse( - chopper.Response response) async { + chopper.Response response, + ) async { if (response.bodyString.isEmpty) { // In rare cases, when let's say 204 (no content) is returned - // we cannot decode the missing json with the result type specified @@ -64224,13 +70863,16 @@ 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, + ); } final jsonRes = await super.convertResponse(response); return jsonRes.copyWith( - body: $jsonDecoder.decode(jsonRes.body) as ResultType); + body: $jsonDecoder.decode(jsonRes.body) as ResultType, + ); } } diff --git a/lib/models/account_model.dart b/lib/models/account_model.dart index d9e558a..ada9b28 100644 --- a/lib/models/account_model.dart +++ b/lib/models/account_model.dart @@ -17,7 +17,7 @@ part 'account_model.freezed.dart'; part 'account_model.g.dart'; @Freezed(copyWith: true) -class AccountModel with _$AccountModel { +abstract class AccountModel with _$AccountModel { const AccountModel._(); const factory AccountModel({ @@ -52,7 +52,7 @@ class AccountModel with _$AccountModel { } @Freezed(copyWith: true) -class UserSettings with _$UserSettings { +abstract class UserSettings with _$UserSettings { factory UserSettings({ @Default(Duration(seconds: 30)) Duration skipForwardDuration, @Default(Duration(seconds: 10)) Duration skipBackDuration, diff --git a/lib/models/account_model.freezed.dart b/lib/models/account_model.freezed.dart index a29ac5b..1ef860f 100644 --- a/lib/models/account_model.freezed.dart +++ b/lib/models/account_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,54 +9,73 @@ part of 'account_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -AccountModel _$AccountModelFromJson(Map json) { - return _AccountModel.fromJson(json); -} - /// @nodoc -mixin _$AccountModel { - String get name => throw _privateConstructorUsedError; - String get id => throw _privateConstructorUsedError; - String get avatar => throw _privateConstructorUsedError; - DateTime get lastUsed => throw _privateConstructorUsedError; - Authentication get authMethod => throw _privateConstructorUsedError; - String get localPin => throw _privateConstructorUsedError; - CredentialsModel get credentials => throw _privateConstructorUsedError; - List get latestItemsExcludes => throw _privateConstructorUsedError; - List get searchQueryHistory => throw _privateConstructorUsedError; - bool get quickConnectState => throw _privateConstructorUsedError; - List get savedFilters => - throw _privateConstructorUsedError; +mixin _$AccountModel implements DiagnosticableTreeMixin { + String get name; + String get id; + String get avatar; + DateTime get lastUsed; + Authentication get authMethod; + String get localPin; + CredentialsModel get credentials; + List get latestItemsExcludes; + List get searchQueryHistory; + bool get quickConnectState; + List get savedFilters; @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? get policy => throw _privateConstructorUsedError; + UserPolicy? get policy; @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? get serverConfiguration => - throw _privateConstructorUsedError; + ServerConfiguration? get serverConfiguration; @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? get userConfiguration => - throw _privateConstructorUsedError; - UserSettings? get userSettings => throw _privateConstructorUsedError; - - /// Serializes this AccountModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + UserConfiguration? get userConfiguration; + UserSettings? get userSettings; /// Create a copy of AccountModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') $AccountModelCopyWith get copyWith => - throw _privateConstructorUsedError; + _$AccountModelCopyWithImpl( + this as AccountModel, _$identity); + + /// Serializes this AccountModel to a JSON map. + Map toJson(); + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'AccountModel')) + ..add(DiagnosticsProperty('name', name)) + ..add(DiagnosticsProperty('id', id)) + ..add(DiagnosticsProperty('avatar', avatar)) + ..add(DiagnosticsProperty('lastUsed', lastUsed)) + ..add(DiagnosticsProperty('authMethod', authMethod)) + ..add(DiagnosticsProperty('localPin', localPin)) + ..add(DiagnosticsProperty('credentials', credentials)) + ..add(DiagnosticsProperty('latestItemsExcludes', latestItemsExcludes)) + ..add(DiagnosticsProperty('searchQueryHistory', searchQueryHistory)) + ..add(DiagnosticsProperty('quickConnectState', quickConnectState)) + ..add(DiagnosticsProperty('savedFilters', savedFilters)) + ..add(DiagnosticsProperty('policy', policy)) + ..add(DiagnosticsProperty('serverConfiguration', serverConfiguration)) + ..add(DiagnosticsProperty('userConfiguration', userConfiguration)) + ..add(DiagnosticsProperty('userSettings', userSettings)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'AccountModel(name: $name, id: $id, avatar: $avatar, lastUsed: $lastUsed, authMethod: $authMethod, localPin: $localPin, credentials: $credentials, latestItemsExcludes: $latestItemsExcludes, searchQueryHistory: $searchQueryHistory, quickConnectState: $quickConnectState, savedFilters: $savedFilters, policy: $policy, serverConfiguration: $serverConfiguration, userConfiguration: $userConfiguration, userSettings: $userSettings)'; + } } /// @nodoc -abstract class $AccountModelCopyWith<$Res> { +abstract mixin class $AccountModelCopyWith<$Res> { factory $AccountModelCopyWith( - AccountModel value, $Res Function(AccountModel) then) = - _$AccountModelCopyWithImpl<$Res, AccountModel>; + AccountModel value, $Res Function(AccountModel) _then) = + _$AccountModelCopyWithImpl; @useResult $Res call( {String name, @@ -81,14 +100,11 @@ abstract class $AccountModelCopyWith<$Res> { } /// @nodoc -class _$AccountModelCopyWithImpl<$Res, $Val extends AccountModel> - implements $AccountModelCopyWith<$Res> { - _$AccountModelCopyWithImpl(this._value, this._then); +class _$AccountModelCopyWithImpl<$Res> implements $AccountModelCopyWith<$Res> { + _$AccountModelCopyWithImpl(this._self, this._then); - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; + final AccountModel _self; + final $Res Function(AccountModel) _then; /// Create a copy of AccountModel /// with the given fields replaced by the non-null parameter values. @@ -111,68 +127,68 @@ class _$AccountModelCopyWithImpl<$Res, $Val extends AccountModel> Object? userConfiguration = freezed, Object? userSettings = freezed, }) { - return _then(_value.copyWith( + return _then(_self.copyWith( name: null == name - ? _value.name + ? _self.name : name // ignore: cast_nullable_to_non_nullable as String, id: null == id - ? _value.id + ? _self.id : id // ignore: cast_nullable_to_non_nullable as String, avatar: null == avatar - ? _value.avatar + ? _self.avatar : avatar // ignore: cast_nullable_to_non_nullable as String, lastUsed: null == lastUsed - ? _value.lastUsed + ? _self.lastUsed : lastUsed // ignore: cast_nullable_to_non_nullable as DateTime, authMethod: null == authMethod - ? _value.authMethod + ? _self.authMethod : authMethod // ignore: cast_nullable_to_non_nullable as Authentication, localPin: null == localPin - ? _value.localPin + ? _self.localPin : localPin // ignore: cast_nullable_to_non_nullable as String, credentials: null == credentials - ? _value.credentials + ? _self.credentials : credentials // ignore: cast_nullable_to_non_nullable as CredentialsModel, latestItemsExcludes: null == latestItemsExcludes - ? _value.latestItemsExcludes + ? _self.latestItemsExcludes : latestItemsExcludes // ignore: cast_nullable_to_non_nullable as List, searchQueryHistory: null == searchQueryHistory - ? _value.searchQueryHistory + ? _self.searchQueryHistory : searchQueryHistory // ignore: cast_nullable_to_non_nullable as List, quickConnectState: null == quickConnectState - ? _value.quickConnectState + ? _self.quickConnectState : quickConnectState // ignore: cast_nullable_to_non_nullable as bool, savedFilters: null == savedFilters - ? _value.savedFilters + ? _self.savedFilters : savedFilters // ignore: cast_nullable_to_non_nullable as List, policy: freezed == policy - ? _value.policy + ? _self.policy : policy // ignore: cast_nullable_to_non_nullable as UserPolicy?, serverConfiguration: freezed == serverConfiguration - ? _value.serverConfiguration + ? _self.serverConfiguration : serverConfiguration // ignore: cast_nullable_to_non_nullable as ServerConfiguration?, userConfiguration: freezed == userConfiguration - ? _value.userConfiguration + ? _self.userConfiguration : userConfiguration // ignore: cast_nullable_to_non_nullable as UserConfiguration?, userSettings: freezed == userSettings - ? _value.userSettings + ? _self.userSettings : userSettings // ignore: cast_nullable_to_non_nullable as UserSettings?, - ) as $Val); + )); } /// Create a copy of AccountModel @@ -180,145 +196,279 @@ class _$AccountModelCopyWithImpl<$Res, $Val extends AccountModel> @override @pragma('vm:prefer-inline') $UserSettingsCopyWith<$Res>? get userSettings { - if (_value.userSettings == null) { + if (_self.userSettings == null) { return null; } - return $UserSettingsCopyWith<$Res>(_value.userSettings!, (value) { - return _then(_value.copyWith(userSettings: value) as $Val); + return $UserSettingsCopyWith<$Res>(_self.userSettings!, (value) { + return _then(_self.copyWith(userSettings: value)); }); } } -/// @nodoc -abstract class _$$AccountModelImplCopyWith<$Res> - implements $AccountModelCopyWith<$Res> { - factory _$$AccountModelImplCopyWith( - _$AccountModelImpl value, $Res Function(_$AccountModelImpl) then) = - __$$AccountModelImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String name, - String id, - String avatar, - DateTime lastUsed, - Authentication authMethod, - String localPin, - CredentialsModel credentials, - List latestItemsExcludes, - List searchQueryHistory, - bool quickConnectState, - List savedFilters, - @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - UserSettings? userSettings}); +/// Adds pattern-matching-related methods to [AccountModel]. +extension AccountModelPatterns on AccountModel { + /// 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(); + /// } + /// ``` - @override - $UserSettingsCopyWith<$Res>? get userSettings; -} - -/// @nodoc -class __$$AccountModelImplCopyWithImpl<$Res> - extends _$AccountModelCopyWithImpl<$Res, _$AccountModelImpl> - implements _$$AccountModelImplCopyWith<$Res> { - __$$AccountModelImplCopyWithImpl( - _$AccountModelImpl _value, $Res Function(_$AccountModelImpl) _then) - : super(_value, _then); - - /// Create a copy of AccountModel - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? id = null, - Object? avatar = null, - Object? lastUsed = null, - Object? authMethod = null, - Object? localPin = null, - Object? credentials = null, - Object? latestItemsExcludes = null, - Object? searchQueryHistory = null, - Object? quickConnectState = null, - Object? savedFilters = null, - Object? policy = freezed, - Object? serverConfiguration = freezed, - Object? userConfiguration = freezed, - Object? userSettings = freezed, + @optionalTypeArgs + TResult maybeMap( + TResult Function(_AccountModel value)? $default, { + required TResult orElse(), }) { - return _then(_$AccountModelImpl( - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as String, - avatar: null == avatar - ? _value.avatar - : avatar // ignore: cast_nullable_to_non_nullable - as String, - lastUsed: null == lastUsed - ? _value.lastUsed - : lastUsed // ignore: cast_nullable_to_non_nullable - as DateTime, - authMethod: null == authMethod - ? _value.authMethod - : authMethod // ignore: cast_nullable_to_non_nullable - as Authentication, - localPin: null == localPin - ? _value.localPin - : localPin // ignore: cast_nullable_to_non_nullable - as String, - credentials: null == credentials - ? _value.credentials - : credentials // ignore: cast_nullable_to_non_nullable - as CredentialsModel, - latestItemsExcludes: null == latestItemsExcludes - ? _value._latestItemsExcludes - : latestItemsExcludes // ignore: cast_nullable_to_non_nullable - as List, - searchQueryHistory: null == searchQueryHistory - ? _value._searchQueryHistory - : searchQueryHistory // ignore: cast_nullable_to_non_nullable - as List, - quickConnectState: null == quickConnectState - ? _value.quickConnectState - : quickConnectState // ignore: cast_nullable_to_non_nullable - as bool, - savedFilters: null == savedFilters - ? _value._savedFilters - : savedFilters // ignore: cast_nullable_to_non_nullable - as List, - policy: freezed == policy - ? _value.policy - : policy // ignore: cast_nullable_to_non_nullable - as UserPolicy?, - serverConfiguration: freezed == serverConfiguration - ? _value.serverConfiguration - : serverConfiguration // ignore: cast_nullable_to_non_nullable - as ServerConfiguration?, - userConfiguration: freezed == userConfiguration - ? _value.userConfiguration - : userConfiguration // ignore: cast_nullable_to_non_nullable - as UserConfiguration?, - userSettings: freezed == userSettings - ? _value.userSettings - : userSettings // ignore: cast_nullable_to_non_nullable - as UserSettings?, - )); + final _that = this; + switch (_that) { + case _AccountModel() 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(_AccountModel value) $default, + ) { + final _that = this; + switch (_that) { + case _AccountModel(): + 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(_AccountModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _AccountModel() 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 name, + String id, + String avatar, + DateTime lastUsed, + Authentication authMethod, + String localPin, + CredentialsModel credentials, + List latestItemsExcludes, + List searchQueryHistory, + bool quickConnectState, + List savedFilters, + @JsonKey(includeFromJson: false, includeToJson: false) + UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, + UserSettings? userSettings)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _AccountModel() when $default != null: + return $default( + _that.name, + _that.id, + _that.avatar, + _that.lastUsed, + _that.authMethod, + _that.localPin, + _that.credentials, + _that.latestItemsExcludes, + _that.searchQueryHistory, + _that.quickConnectState, + _that.savedFilters, + _that.policy, + _that.serverConfiguration, + _that.userConfiguration, + _that.userSettings); + 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 name, + String id, + String avatar, + DateTime lastUsed, + Authentication authMethod, + String localPin, + CredentialsModel credentials, + List latestItemsExcludes, + List searchQueryHistory, + bool quickConnectState, + List savedFilters, + @JsonKey(includeFromJson: false, includeToJson: false) + UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, + UserSettings? userSettings) + $default, + ) { + final _that = this; + switch (_that) { + case _AccountModel(): + return $default( + _that.name, + _that.id, + _that.avatar, + _that.lastUsed, + _that.authMethod, + _that.localPin, + _that.credentials, + _that.latestItemsExcludes, + _that.searchQueryHistory, + _that.quickConnectState, + _that.savedFilters, + _that.policy, + _that.serverConfiguration, + _that.userConfiguration, + _that.userSettings); + 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 name, + String id, + String avatar, + DateTime lastUsed, + Authentication authMethod, + String localPin, + CredentialsModel credentials, + List latestItemsExcludes, + List searchQueryHistory, + bool quickConnectState, + List savedFilters, + @JsonKey(includeFromJson: false, includeToJson: false) + UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, + UserSettings? userSettings)? + $default, + ) { + final _that = this; + switch (_that) { + case _AccountModel() when $default != null: + return $default( + _that.name, + _that.id, + _that.avatar, + _that.lastUsed, + _that.authMethod, + _that.localPin, + _that.credentials, + _that.latestItemsExcludes, + _that.searchQueryHistory, + _that.quickConnectState, + _that.savedFilters, + _that.policy, + _that.serverConfiguration, + _that.userConfiguration, + _that.userSettings); + case _: + return null; + } } } /// @nodoc @JsonSerializable() -class _$AccountModelImpl extends _AccountModel with DiagnosticableTreeMixin { - const _$AccountModelImpl( +class _AccountModel extends AccountModel with DiagnosticableTreeMixin { + const _AccountModel( {required this.name, required this.id, required this.avatar, @@ -340,9 +490,8 @@ class _$AccountModelImpl extends _AccountModel with DiagnosticableTreeMixin { _searchQueryHistory = searchQueryHistory, _savedFilters = savedFilters, super._(); - - factory _$AccountModelImpl.fromJson(Map json) => - _$$AccountModelImplFromJson(json); + factory _AccountModel.fromJson(Map json) => + _$AccountModelFromJson(json); @override final String name; @@ -404,14 +553,23 @@ class _$AccountModelImpl extends _AccountModel with DiagnosticableTreeMixin { @override final UserSettings? userSettings; + /// Create a copy of AccountModel + /// with the given fields replaced by the non-null parameter values. @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'AccountModel(name: $name, id: $id, avatar: $avatar, lastUsed: $lastUsed, authMethod: $authMethod, localPin: $localPin, credentials: $credentials, latestItemsExcludes: $latestItemsExcludes, searchQueryHistory: $searchQueryHistory, quickConnectState: $quickConnectState, savedFilters: $savedFilters, policy: $policy, serverConfiguration: $serverConfiguration, userConfiguration: $userConfiguration, userSettings: $userSettings)'; + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$AccountModelCopyWith<_AccountModel> get copyWith => + __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); + + @override + Map toJson() { + return _$AccountModelToJson( + this, + ); } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'AccountModel')) ..add(DiagnosticsProperty('name', name)) @@ -431,166 +589,196 @@ class _$AccountModelImpl extends _AccountModel with DiagnosticableTreeMixin { ..add(DiagnosticsProperty('userSettings', userSettings)); } - /// Create a copy of AccountModel - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override - @pragma('vm:prefer-inline') - _$$AccountModelImplCopyWith<_$AccountModelImpl> get copyWith => - __$$AccountModelImplCopyWithImpl<_$AccountModelImpl>(this, _$identity); - - @override - Map toJson() { - return _$$AccountModelImplToJson( - this, - ); + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'AccountModel(name: $name, id: $id, avatar: $avatar, lastUsed: $lastUsed, authMethod: $authMethod, localPin: $localPin, credentials: $credentials, latestItemsExcludes: $latestItemsExcludes, searchQueryHistory: $searchQueryHistory, quickConnectState: $quickConnectState, savedFilters: $savedFilters, policy: $policy, serverConfiguration: $serverConfiguration, userConfiguration: $userConfiguration, userSettings: $userSettings)'; } } -abstract class _AccountModel extends AccountModel { - const factory _AccountModel( - {required final String name, - required final String id, - required final String avatar, - required final DateTime lastUsed, - final Authentication authMethod, - final String localPin, - required final CredentialsModel credentials, - final List latestItemsExcludes, - final List searchQueryHistory, - final bool quickConnectState, - final List savedFilters, +/// @nodoc +abstract mixin class _$AccountModelCopyWith<$Res> + implements $AccountModelCopyWith<$Res> { + factory _$AccountModelCopyWith( + _AccountModel value, $Res Function(_AccountModel) _then) = + __$AccountModelCopyWithImpl; + @override + @useResult + $Res call( + {String name, + String id, + String avatar, + DateTime lastUsed, + Authentication authMethod, + String localPin, + CredentialsModel credentials, + List latestItemsExcludes, + List searchQueryHistory, + bool quickConnectState, + List savedFilters, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, @JsonKey(includeFromJson: false, includeToJson: false) - final UserPolicy? policy, + ServerConfiguration? serverConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) - final ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - final UserConfiguration? userConfiguration, - final UserSettings? userSettings}) = _$AccountModelImpl; - const _AccountModel._() : super._(); - - factory _AccountModel.fromJson(Map json) = - _$AccountModelImpl.fromJson; + UserConfiguration? userConfiguration, + UserSettings? userSettings}); @override - String get name; - @override - String get id; - @override - String get avatar; - @override - DateTime get lastUsed; - @override - Authentication get authMethod; - @override - String get localPin; - @override - CredentialsModel get credentials; - @override - List get latestItemsExcludes; - @override - List get searchQueryHistory; - @override - bool get quickConnectState; - @override - List get savedFilters; - @override - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? get policy; - @override - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? get serverConfiguration; - @override - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? get userConfiguration; - @override - UserSettings? get userSettings; + $UserSettingsCopyWith<$Res>? get userSettings; +} + +/// @nodoc +class __$AccountModelCopyWithImpl<$Res> + implements _$AccountModelCopyWith<$Res> { + __$AccountModelCopyWithImpl(this._self, this._then); + + final _AccountModel _self; + final $Res Function(_AccountModel) _then; /// Create a copy of AccountModel /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AccountModelImplCopyWith<_$AccountModelImpl> get copyWith => - throw _privateConstructorUsedError; -} + @pragma('vm:prefer-inline') + $Res call({ + Object? name = null, + Object? id = null, + Object? avatar = null, + Object? lastUsed = null, + Object? authMethod = null, + Object? localPin = null, + Object? credentials = null, + Object? latestItemsExcludes = null, + Object? searchQueryHistory = null, + Object? quickConnectState = null, + Object? savedFilters = null, + Object? policy = freezed, + Object? serverConfiguration = freezed, + Object? userConfiguration = freezed, + Object? userSettings = freezed, + }) { + return _then(_AccountModel( + name: null == name + ? _self.name + : name // ignore: cast_nullable_to_non_nullable + as String, + id: null == id + ? _self.id + : id // ignore: cast_nullable_to_non_nullable + as String, + avatar: null == avatar + ? _self.avatar + : avatar // ignore: cast_nullable_to_non_nullable + as String, + lastUsed: null == lastUsed + ? _self.lastUsed + : lastUsed // ignore: cast_nullable_to_non_nullable + as DateTime, + authMethod: null == authMethod + ? _self.authMethod + : authMethod // ignore: cast_nullable_to_non_nullable + as Authentication, + localPin: null == localPin + ? _self.localPin + : localPin // ignore: cast_nullable_to_non_nullable + as String, + credentials: null == credentials + ? _self.credentials + : credentials // ignore: cast_nullable_to_non_nullable + as CredentialsModel, + latestItemsExcludes: null == latestItemsExcludes + ? _self._latestItemsExcludes + : latestItemsExcludes // ignore: cast_nullable_to_non_nullable + as List, + searchQueryHistory: null == searchQueryHistory + ? _self._searchQueryHistory + : searchQueryHistory // ignore: cast_nullable_to_non_nullable + as List, + quickConnectState: null == quickConnectState + ? _self.quickConnectState + : quickConnectState // ignore: cast_nullable_to_non_nullable + as bool, + savedFilters: null == savedFilters + ? _self._savedFilters + : savedFilters // ignore: cast_nullable_to_non_nullable + as List, + policy: freezed == policy + ? _self.policy + : policy // ignore: cast_nullable_to_non_nullable + as UserPolicy?, + serverConfiguration: freezed == serverConfiguration + ? _self.serverConfiguration + : serverConfiguration // ignore: cast_nullable_to_non_nullable + as ServerConfiguration?, + userConfiguration: freezed == userConfiguration + ? _self.userConfiguration + : userConfiguration // ignore: cast_nullable_to_non_nullable + as UserConfiguration?, + userSettings: freezed == userSettings + ? _self.userSettings + : userSettings // ignore: cast_nullable_to_non_nullable + as UserSettings?, + )); + } -UserSettings _$UserSettingsFromJson(Map json) { - return _UserSettings.fromJson(json); + /// Create a copy of AccountModel + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $UserSettingsCopyWith<$Res>? get userSettings { + if (_self.userSettings == null) { + return null; + } + + return $UserSettingsCopyWith<$Res>(_self.userSettings!, (value) { + return _then(_self.copyWith(userSettings: value)); + }); + } } /// @nodoc -mixin _$UserSettings { - Duration get skipForwardDuration => throw _privateConstructorUsedError; - Duration get skipBackDuration => throw _privateConstructorUsedError; +mixin _$UserSettings implements DiagnosticableTreeMixin { + Duration get skipForwardDuration; + Duration get skipBackDuration; + + /// Create a copy of UserSettings + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $UserSettingsCopyWith get copyWith => + _$UserSettingsCopyWithImpl( + this as UserSettings, _$identity); /// Serializes this UserSettings to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + Map toJson(); - /// Create a copy of UserSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $UserSettingsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $UserSettingsCopyWith<$Res> { - factory $UserSettingsCopyWith( - UserSettings value, $Res Function(UserSettings) then) = - _$UserSettingsCopyWithImpl<$Res, UserSettings>; - @useResult - $Res call({Duration skipForwardDuration, Duration skipBackDuration}); -} - -/// @nodoc -class _$UserSettingsCopyWithImpl<$Res, $Val extends UserSettings> - implements $UserSettingsCopyWith<$Res> { - _$UserSettingsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of UserSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') @override - $Res call({ - Object? skipForwardDuration = null, - Object? skipBackDuration = null, - }) { - return _then(_value.copyWith( - skipForwardDuration: null == skipForwardDuration - ? _value.skipForwardDuration - : skipForwardDuration // ignore: cast_nullable_to_non_nullable - as Duration, - skipBackDuration: null == skipBackDuration - ? _value.skipBackDuration - : skipBackDuration // ignore: cast_nullable_to_non_nullable - as Duration, - ) as $Val); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'UserSettings')) + ..add(DiagnosticsProperty('skipForwardDuration', skipForwardDuration)) + ..add(DiagnosticsProperty('skipBackDuration', skipBackDuration)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'UserSettings(skipForwardDuration: $skipForwardDuration, skipBackDuration: $skipBackDuration)'; } } /// @nodoc -abstract class _$$UserSettingsImplCopyWith<$Res> - implements $UserSettingsCopyWith<$Res> { - factory _$$UserSettingsImplCopyWith( - _$UserSettingsImpl value, $Res Function(_$UserSettingsImpl) then) = - __$$UserSettingsImplCopyWithImpl<$Res>; - @override +abstract mixin class $UserSettingsCopyWith<$Res> { + factory $UserSettingsCopyWith( + UserSettings value, $Res Function(UserSettings) _then) = + _$UserSettingsCopyWithImpl; @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } /// @nodoc -class __$$UserSettingsImplCopyWithImpl<$Res> - extends _$UserSettingsCopyWithImpl<$Res, _$UserSettingsImpl> - implements _$$UserSettingsImplCopyWith<$Res> { - __$$UserSettingsImplCopyWithImpl( - _$UserSettingsImpl _value, $Res Function(_$UserSettingsImpl) _then) - : super(_value, _then); +class _$UserSettingsCopyWithImpl<$Res> implements $UserSettingsCopyWith<$Res> { + _$UserSettingsCopyWithImpl(this._self, this._then); + + final UserSettings _self; + final $Res Function(UserSettings) _then; /// Create a copy of UserSettings /// with the given fields replaced by the non-null parameter values. @@ -600,28 +788,187 @@ class __$$UserSettingsImplCopyWithImpl<$Res> Object? skipForwardDuration = null, Object? skipBackDuration = null, }) { - return _then(_$UserSettingsImpl( + return _then(_self.copyWith( skipForwardDuration: null == skipForwardDuration - ? _value.skipForwardDuration + ? _self.skipForwardDuration : skipForwardDuration // ignore: cast_nullable_to_non_nullable as Duration, skipBackDuration: null == skipBackDuration - ? _value.skipBackDuration + ? _self.skipBackDuration : skipBackDuration // ignore: cast_nullable_to_non_nullable as Duration, )); } } +/// Adds pattern-matching-related methods to [UserSettings]. +extension UserSettingsPatterns on UserSettings { + /// 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(_UserSettings value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _UserSettings() 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(_UserSettings value) $default, + ) { + final _that = this; + switch (_that) { + case _UserSettings(): + 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(_UserSettings value)? $default, + ) { + final _that = this; + switch (_that) { + case _UserSettings() 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(Duration skipForwardDuration, Duration skipBackDuration)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _UserSettings() when $default != null: + return $default(_that.skipForwardDuration, _that.skipBackDuration); + 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(Duration skipForwardDuration, Duration skipBackDuration) + $default, + ) { + final _that = this; + switch (_that) { + case _UserSettings(): + return $default(_that.skipForwardDuration, _that.skipBackDuration); + 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(Duration skipForwardDuration, Duration skipBackDuration)? + $default, + ) { + final _that = this; + switch (_that) { + case _UserSettings() when $default != null: + return $default(_that.skipForwardDuration, _that.skipBackDuration); + case _: + return null; + } + } +} + /// @nodoc @JsonSerializable() -class _$UserSettingsImpl with DiagnosticableTreeMixin implements _UserSettings { - _$UserSettingsImpl( +class _UserSettings with DiagnosticableTreeMixin implements UserSettings { + _UserSettings( {this.skipForwardDuration = const Duration(seconds: 30), this.skipBackDuration = const Duration(seconds: 10)}); - - factory _$UserSettingsImpl.fromJson(Map json) => - _$$UserSettingsImplFromJson(json); + factory _UserSettings.fromJson(Map json) => + _$UserSettingsFromJson(json); @override @JsonKey() @@ -630,53 +977,73 @@ class _$UserSettingsImpl with DiagnosticableTreeMixin implements _UserSettings { @JsonKey() final Duration skipBackDuration; + /// Create a copy of UserSettings + /// with the given fields replaced by the non-null parameter values. @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'UserSettings(skipForwardDuration: $skipForwardDuration, skipBackDuration: $skipBackDuration)'; + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$UserSettingsCopyWith<_UserSettings> get copyWith => + __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); + + @override + Map toJson() { + return _$UserSettingsToJson( + this, + ); } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'UserSettings')) ..add(DiagnosticsProperty('skipForwardDuration', skipForwardDuration)) ..add(DiagnosticsProperty('skipBackDuration', skipBackDuration)); } - /// Create a copy of UserSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override - @pragma('vm:prefer-inline') - _$$UserSettingsImplCopyWith<_$UserSettingsImpl> get copyWith => - __$$UserSettingsImplCopyWithImpl<_$UserSettingsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$UserSettingsImplToJson( - this, - ); + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'UserSettings(skipForwardDuration: $skipForwardDuration, skipBackDuration: $skipBackDuration)'; } } -abstract class _UserSettings implements UserSettings { - factory _UserSettings( - {final Duration skipForwardDuration, - final Duration skipBackDuration}) = _$UserSettingsImpl; - - factory _UserSettings.fromJson(Map json) = - _$UserSettingsImpl.fromJson; - +/// @nodoc +abstract mixin class _$UserSettingsCopyWith<$Res> + implements $UserSettingsCopyWith<$Res> { + factory _$UserSettingsCopyWith( + _UserSettings value, $Res Function(_UserSettings) _then) = + __$UserSettingsCopyWithImpl; @override - Duration get skipForwardDuration; - @override - Duration get skipBackDuration; + @useResult + $Res call({Duration skipForwardDuration, Duration skipBackDuration}); +} + +/// @nodoc +class __$UserSettingsCopyWithImpl<$Res> + implements _$UserSettingsCopyWith<$Res> { + __$UserSettingsCopyWithImpl(this._self, this._then); + + final _UserSettings _self; + final $Res Function(_UserSettings) _then; /// Create a copy of UserSettings /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$UserSettingsImplCopyWith<_$UserSettingsImpl> get copyWith => - throw _privateConstructorUsedError; + @pragma('vm:prefer-inline') + $Res call({ + Object? skipForwardDuration = null, + Object? skipBackDuration = null, + }) { + return _then(_UserSettings( + skipForwardDuration: null == skipForwardDuration + ? _self.skipForwardDuration + : skipForwardDuration // ignore: cast_nullable_to_non_nullable + as Duration, + skipBackDuration: null == skipBackDuration + ? _self.skipBackDuration + : skipBackDuration // ignore: cast_nullable_to_non_nullable + as Duration, + )); + } } + +// dart format on diff --git a/lib/models/account_model.g.dart b/lib/models/account_model.g.dart index 316e0c8..b08538d 100644 --- a/lib/models/account_model.g.dart +++ b/lib/models/account_model.g.dart @@ -6,8 +6,8 @@ part of 'account_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$AccountModelImpl _$$AccountModelImplFromJson(Map json) => - _$AccountModelImpl( +_AccountModel _$AccountModelFromJson(Map json) => + _AccountModel( name: json['name'] as String, id: json['id'] as String, avatar: json['avatar'] as String, @@ -36,7 +36,7 @@ _$AccountModelImpl _$$AccountModelImplFromJson(Map json) => : UserSettings.fromJson(json['userSettings'] as Map), ); -Map _$$AccountModelImplToJson(_$AccountModelImpl instance) => +Map _$AccountModelToJson(_AccountModel instance) => { 'name': instance.name, 'id': instance.id, @@ -59,8 +59,8 @@ const _$AuthenticationEnumMap = { Authentication.none: 'none', }; -_$UserSettingsImpl _$$UserSettingsImplFromJson(Map json) => - _$UserSettingsImpl( +_UserSettings _$UserSettingsFromJson(Map json) => + _UserSettings( skipForwardDuration: json['skipForwardDuration'] == null ? const Duration(seconds: 30) : Duration( @@ -70,7 +70,7 @@ _$UserSettingsImpl _$$UserSettingsImplFromJson(Map json) => : Duration(microseconds: (json['skipBackDuration'] as num).toInt()), ); -Map _$$UserSettingsImplToJson(_$UserSettingsImpl 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 14ca869..9cc6cfc 100644 --- a/lib/models/boxset_model.mapper.dart +++ b/lib/models/boxset_model.mapper.dart @@ -112,13 +112,14 @@ 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> { BoxSetModelCopyWith<$R, BoxSetModel, $Out> get $asBoxSetModel => - $base.as((v, t, t2) => _BoxSetModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _BoxSetModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> @@ -215,5 +216,5 @@ class _BoxSetModelCopyWithImpl<$R, $Out> @override BoxSetModelCopyWith<$R2, BoxSetModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _BoxSetModelCopyWithImpl($value, $cast, t); + _BoxSetModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/item_base_model.mapper.dart b/lib/models/item_base_model.mapper.dart index e3a288f..98db7f0 100644 --- a/lib/models/item_base_model.mapper.dart +++ b/lib/models/item_base_model.mapper.dart @@ -97,14 +97,14 @@ class ItemBaseModelMapper extends ClassMapperBase { mixin ItemBaseModelMappable { ItemBaseModelCopyWith - get copyWith => _ItemBaseModelCopyWithImpl( + get copyWith => _ItemBaseModelCopyWithImpl( this as ItemBaseModel, $identity, $identity); } extension ItemBaseModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemBaseModel, $Out> { ItemBaseModelCopyWith<$R, ItemBaseModel, $Out> get $asItemBaseModel => - $base.as((v, t, t2) => _ItemBaseModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _ItemBaseModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> @@ -187,5 +187,5 @@ class _ItemBaseModelCopyWithImpl<$R, $Out> @override ItemBaseModelCopyWith<$R2, ItemBaseModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _ItemBaseModelCopyWithImpl($value, $cast, t); + _ItemBaseModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/episode_model.mapper.dart b/lib/models/items/episode_model.mapper.dart index 0b0bb48..b29f04a 100644 --- a/lib/models/items/episode_model.mapper.dart +++ b/lib/models/items/episode_model.mapper.dart @@ -150,13 +150,14 @@ 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> { EpisodeModelCopyWith<$R, EpisodeModel, $Out> get $asEpisodeModel => - $base.as((v, t, t2) => _EpisodeModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _EpisodeModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class EpisodeModelCopyWith<$R, $In extends EpisodeModel, $Out> @@ -283,5 +284,5 @@ class _EpisodeModelCopyWithImpl<$R, $Out> @override EpisodeModelCopyWith<$R2, EpisodeModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _EpisodeModelCopyWithImpl($value, $cast, 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 8dde469..fcdf4cd 100644 --- a/lib/models/items/folder_model.mapper.dart +++ b/lib/models/items/folder_model.mapper.dart @@ -112,13 +112,14 @@ 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> { FolderModelCopyWith<$R, FolderModel, $Out> get $asFolderModel => - $base.as((v, t, t2) => _FolderModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _FolderModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> @@ -215,5 +216,5 @@ class _FolderModelCopyWithImpl<$R, $Out> @override FolderModelCopyWith<$R2, FolderModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _FolderModelCopyWithImpl($value, $cast, t); + _FolderModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/item_properties_model.dart b/lib/models/items/item_properties_model.dart index ed5742c..fb0d4bb 100644 --- a/lib/models/items/item_properties_model.dart +++ b/lib/models/items/item_properties_model.dart @@ -1,10 +1,11 @@ -import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart' as dto; import 'package:freezed_annotation/freezed_annotation.dart'; +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart' as dto; + part 'item_properties_model.freezed.dart'; @Freezed(fromJson: false, toJson: false) -class ItemPropertiesModel with _$ItemPropertiesModel { +abstract class ItemPropertiesModel with _$ItemPropertiesModel { const ItemPropertiesModel._(); factory ItemPropertiesModel._internal({ diff --git a/lib/models/items/item_properties_model.freezed.dart b/lib/models/items/item_properties_model.freezed.dart index 1f775a8..2eea58b 100644 --- a/lib/models/items/item_properties_model.freezed.dart +++ b/lib/models/items/item_properties_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,22 +9,181 @@ part of 'item_properties_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - /// @nodoc mixin _$ItemPropertiesModel { - bool get canDelete => throw _privateConstructorUsedError; - bool get canDownload => throw _privateConstructorUsedError; + bool get canDelete; + bool get canDownload; + + @override + String toString() { + return 'ItemPropertiesModel(canDelete: $canDelete, canDownload: $canDownload)'; + } +} + +/// Adds pattern-matching-related methods to [ItemPropertiesModel]. +extension ItemPropertiesModelPatterns on ItemPropertiesModel { + /// 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(_ItemPropertiesModel value)? _internal, + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ItemPropertiesModel() when _internal != null: + return _internal(_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({ + required TResult Function(_ItemPropertiesModel value) _internal, + }) { + final _that = this; + switch (_that) { + case _ItemPropertiesModel(): + return _internal(_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(_ItemPropertiesModel value)? _internal, + }) { + final _that = this; + switch (_that) { + case _ItemPropertiesModel() when _internal != null: + return _internal(_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 canDelete, bool canDownload)? _internal, + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ItemPropertiesModel() when _internal != null: + return _internal(_that.canDelete, _that.canDownload); + 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({ + required TResult Function(bool canDelete, bool canDownload) _internal, + }) { + final _that = this; + switch (_that) { + case _ItemPropertiesModel(): + return _internal(_that.canDelete, _that.canDownload); + 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 canDelete, bool canDownload)? _internal, + }) { + final _that = this; + switch (_that) { + case _ItemPropertiesModel() when _internal != null: + return _internal(_that.canDelete, _that.canDownload); + case _: + return null; + } + } } /// @nodoc -class _$ItemPropertiesModelImpl extends _ItemPropertiesModel { - _$ItemPropertiesModelImpl( - {required this.canDelete, required this.canDownload}) +class _ItemPropertiesModel extends ItemPropertiesModel { + _ItemPropertiesModel({required this.canDelete, required this.canDownload}) : super._(); @override @@ -38,14 +197,4 @@ class _$ItemPropertiesModelImpl extends _ItemPropertiesModel { } } -abstract class _ItemPropertiesModel extends ItemPropertiesModel { - factory _ItemPropertiesModel( - {required final bool canDelete, - required final bool canDownload}) = _$ItemPropertiesModelImpl; - _ItemPropertiesModel._() : super._(); - - @override - bool get canDelete; - @override - bool get canDownload; -} +// dart format on diff --git a/lib/models/items/item_shared_models.mapper.dart b/lib/models/items/item_shared_models.mapper.dart index 34cde3e..8624ac2 100644 --- a/lib/models/items/item_shared_models.mapper.dart +++ b/lib/models/items/item_shared_models.mapper.dart @@ -91,12 +91,13 @@ mixin UserDataMappable { } UserDataCopyWith get copyWith => - _UserDataCopyWithImpl(this as UserData, $identity, $identity); + _UserDataCopyWithImpl( + this as UserData, $identity, $identity); } extension UserDataValueCopy<$R, $Out> on ObjectCopyWith<$R, UserData, $Out> { UserDataCopyWith<$R, UserData, $Out> get $asUserData => - $base.as((v, t, t2) => _UserDataCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _UserDataCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class UserDataCopyWith<$R, $In extends UserData, $Out> @@ -154,5 +155,5 @@ class _UserDataCopyWithImpl<$R, $Out> @override UserDataCopyWith<$R2, UserData, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _UserDataCopyWithImpl($value, $cast, 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 550275a..0c34fab 100644 --- a/lib/models/items/item_stream_model.mapper.dart +++ b/lib/models/items/item_stream_model.mapper.dart @@ -116,14 +116,15 @@ class ItemStreamModelMapper extends SubClassMapperBase { mixin ItemStreamModelMappable { ItemStreamModelCopyWith - get copyWith => _ItemStreamModelCopyWithImpl( - this as ItemStreamModel, $identity, $identity); + get copyWith => + _ItemStreamModelCopyWithImpl( + this as ItemStreamModel, $identity, $identity); } extension ItemStreamModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemStreamModel, $Out> { ItemStreamModelCopyWith<$R, ItemStreamModel, $Out> get $asItemStreamModel => - $base.as((v, t, t2) => _ItemStreamModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _ItemStreamModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class ItemStreamModelCopyWith<$R, $In extends ItemStreamModel, $Out> @@ -218,5 +219,5 @@ class _ItemStreamModelCopyWithImpl<$R, $Out> @override ItemStreamModelCopyWith<$R2, ItemStreamModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _ItemStreamModelCopyWithImpl($value, $cast, t); + _ItemStreamModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/media_segments_model.dart b/lib/models/items/media_segments_model.dart index b3e9284..cc67a14 100644 --- a/lib/models/items/media_segments_model.dart +++ b/lib/models/items/media_segments_model.dart @@ -11,7 +11,7 @@ part 'media_segments_model.freezed.dart'; part 'media_segments_model.g.dart'; @freezed -class MediaSegmentsModel with _$MediaSegmentsModel { +abstract class MediaSegmentsModel with _$MediaSegmentsModel { const MediaSegmentsModel._(); factory MediaSegmentsModel({ @@ -27,7 +27,7 @@ class MediaSegmentsModel with _$MediaSegmentsModel { } @freezed -class MediaSegment with _$MediaSegment { +abstract class MediaSegment with _$MediaSegment { const MediaSegment._(); factory MediaSegment({ diff --git a/lib/models/items/media_segments_model.freezed.dart b/lib/models/items/media_segments_model.freezed.dart index cae9d70..4e8bb03 100644 --- a/lib/models/items/media_segments_model.freezed.dart +++ b/lib/models/items/media_segments_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,32 +9,187 @@ part of 'media_segments_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) { - return _MediaSegmentsModel.fromJson(json); -} - /// @nodoc mixin _$MediaSegmentsModel { - List get segments => throw _privateConstructorUsedError; + List get segments; /// Serializes this MediaSegmentsModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + Map toJson(); + + @override + String toString() { + return 'MediaSegmentsModel(segments: $segments)'; + } +} + +/// Adds pattern-matching-related methods to [MediaSegmentsModel]. +extension MediaSegmentsModelPatterns on MediaSegmentsModel { + /// 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(_MediaSegmentsModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _MediaSegmentsModel() 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(_MediaSegmentsModel value) $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegmentsModel(): + 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(_MediaSegmentsModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegmentsModel() 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 segments)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _MediaSegmentsModel() when $default != null: + return $default(_that.segments); + 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 segments) $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegmentsModel(): + return $default(_that.segments); + 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 segments)? $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegmentsModel() when $default != null: + return $default(_that.segments); + case _: + return null; + } + } } /// @nodoc @JsonSerializable() -class _$MediaSegmentsModelImpl extends _MediaSegmentsModel { - _$MediaSegmentsModelImpl({final List segments = const []}) +class _MediaSegmentsModel extends MediaSegmentsModel { + _MediaSegmentsModel({final List segments = const []}) : _segments = segments, super._(); - - factory _$MediaSegmentsModelImpl.fromJson(Map json) => - _$$MediaSegmentsModelImplFromJson(json); + factory _MediaSegmentsModel.fromJson(Map json) => + _$MediaSegmentsModelFromJson(json); final List _segments; @override @@ -45,54 +200,201 @@ class _$MediaSegmentsModelImpl extends _MediaSegmentsModel { return EqualUnmodifiableListView(_segments); } - @override - String toString() { - return 'MediaSegmentsModel(segments: $segments)'; - } - @override Map toJson() { - return _$$MediaSegmentsModelImplToJson( + return _$MediaSegmentsModelToJson( this, ); } -} - -abstract class _MediaSegmentsModel extends MediaSegmentsModel { - factory _MediaSegmentsModel({final List segments}) = - _$MediaSegmentsModelImpl; - _MediaSegmentsModel._() : super._(); - - factory _MediaSegmentsModel.fromJson(Map json) = - _$MediaSegmentsModelImpl.fromJson; @override - List get segments; -} - -MediaSegment _$MediaSegmentFromJson(Map json) { - return _MediaSegment.fromJson(json); + String toString() { + return 'MediaSegmentsModel(segments: $segments)'; + } } /// @nodoc mixin _$MediaSegment { - MediaSegmentType get type => throw _privateConstructorUsedError; - Duration get start => throw _privateConstructorUsedError; - Duration get end => throw _privateConstructorUsedError; + MediaSegmentType get type; + Duration get start; + Duration get end; /// Serializes this MediaSegment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + Map toJson(); + + @override + String toString() { + return 'MediaSegment(type: $type, start: $start, end: $end)'; + } +} + +/// Adds pattern-matching-related methods to [MediaSegment]. +extension MediaSegmentPatterns on MediaSegment { + /// 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(_MediaSegment value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _MediaSegment() 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(_MediaSegment value) $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegment(): + 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(_MediaSegment value)? $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegment() 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(MediaSegmentType type, Duration start, Duration end)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _MediaSegment() when $default != null: + return $default(_that.type, _that.start, _that.end); + 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(MediaSegmentType type, Duration start, Duration end) + $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegment(): + return $default(_that.type, _that.start, _that.end); + 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(MediaSegmentType type, Duration start, Duration end)? + $default, + ) { + final _that = this; + switch (_that) { + case _MediaSegment() when $default != null: + return $default(_that.type, _that.start, _that.end); + case _: + return null; + } + } } /// @nodoc @JsonSerializable() -class _$MediaSegmentImpl extends _MediaSegment { - _$MediaSegmentImpl( - {required this.type, required this.start, required this.end}) +class _MediaSegment extends MediaSegment { + _MediaSegment({required this.type, required this.start, required this.end}) : super._(); - - factory _$MediaSegmentImpl.fromJson(Map json) => - _$$MediaSegmentImplFromJson(json); + factory _MediaSegment.fromJson(Map json) => + _$MediaSegmentFromJson(json); @override final MediaSegmentType type; @@ -101,33 +403,17 @@ class _$MediaSegmentImpl extends _MediaSegment { @override final Duration end; - @override - String toString() { - return 'MediaSegment(type: $type, start: $start, end: $end)'; - } - @override Map toJson() { - return _$$MediaSegmentImplToJson( + return _$MediaSegmentToJson( this, ); } + + @override + String toString() { + return 'MediaSegment(type: $type, start: $start, end: $end)'; + } } -abstract class _MediaSegment extends MediaSegment { - factory _MediaSegment( - {required final MediaSegmentType type, - required final Duration start, - required final Duration end}) = _$MediaSegmentImpl; - _MediaSegment._() : super._(); - - factory _MediaSegment.fromJson(Map json) = - _$MediaSegmentImpl.fromJson; - - @override - MediaSegmentType get type; - @override - Duration get start; - @override - Duration get end; -} +// dart format on diff --git a/lib/models/items/media_segments_model.g.dart b/lib/models/items/media_segments_model.g.dart index 609eac2..f7a7c65 100644 --- a/lib/models/items/media_segments_model.g.dart +++ b/lib/models/items/media_segments_model.g.dart @@ -6,29 +6,27 @@ part of 'media_segments_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$MediaSegmentsModelImpl _$$MediaSegmentsModelImplFromJson( - Map json) => - _$MediaSegmentsModelImpl( +_MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) => + _MediaSegmentsModel( segments: (json['segments'] as List?) ?.map((e) => MediaSegment.fromJson(e as Map)) .toList() ?? const [], ); -Map _$$MediaSegmentsModelImplToJson( - _$MediaSegmentsModelImpl instance) => +Map _$MediaSegmentsModelToJson(_MediaSegmentsModel instance) => { 'segments': instance.segments, }; -_$MediaSegmentImpl _$$MediaSegmentImplFromJson(Map json) => - _$MediaSegmentImpl( +_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 _$$MediaSegmentImplToJson(_$MediaSegmentImpl instance) => +Map _$MediaSegmentToJson(_MediaSegment instance) => { 'type': _$MediaSegmentTypeEnumMap[instance.type]!, 'start': instance.start.inMicroseconds, diff --git a/lib/models/items/movie_model.mapper.dart b/lib/models/items/movie_model.mapper.dart index 122798c..cd261bf 100644 --- a/lib/models/items/movie_model.mapper.dart +++ b/lib/models/items/movie_model.mapper.dart @@ -151,13 +151,14 @@ 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> { MovieModelCopyWith<$R, MovieModel, $Out> get $asMovieModel => - $base.as((v, t, t2) => _MovieModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _MovieModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> @@ -291,5 +292,5 @@ class _MovieModelCopyWithImpl<$R, $Out> @override MovieModelCopyWith<$R2, MovieModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _MovieModelCopyWithImpl($value, $cast, 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 c86fcdc..3289500 100644 --- a/lib/models/items/overview_model.mapper.dart +++ b/lib/models/items/overview_model.mapper.dart @@ -118,14 +118,14 @@ class OverviewModelMapper extends ClassMapperBase { mixin OverviewModelMappable { OverviewModelCopyWith - get copyWith => _OverviewModelCopyWithImpl( + get copyWith => _OverviewModelCopyWithImpl( this as OverviewModel, $identity, $identity); } extension OverviewModelValueCopy<$R, $Out> on ObjectCopyWith<$R, OverviewModel, $Out> { OverviewModelCopyWith<$R, OverviewModel, $Out> get $asOverviewModel => - $base.as((v, t, t2) => _OverviewModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _OverviewModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> @@ -275,5 +275,5 @@ class _OverviewModelCopyWithImpl<$R, $Out> @override OverviewModelCopyWith<$R2, OverviewModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _OverviewModelCopyWithImpl($value, $cast, t); + _OverviewModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/person_model.mapper.dart b/lib/models/items/person_model.mapper.dart index 8429fa2..c31b4dc 100644 --- a/lib/models/items/person_model.mapper.dart +++ b/lib/models/items/person_model.mapper.dart @@ -128,13 +128,14 @@ class PersonModelMapper extends SubClassMapperBase { mixin PersonModelMappable { PersonModelCopyWith get copyWith => - _PersonModelCopyWithImpl(this as PersonModel, $identity, $identity); + _PersonModelCopyWithImpl( + this as PersonModel, $identity, $identity); } extension PersonModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PersonModel, $Out> { PersonModelCopyWith<$R, PersonModel, $Out> get $asPersonModel => - $base.as((v, t, t2) => _PersonModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _PersonModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class PersonModelCopyWith<$R, $In extends PersonModel, $Out> @@ -254,5 +255,5 @@ class _PersonModelCopyWithImpl<$R, $Out> @override PersonModelCopyWith<$R2, PersonModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _PersonModelCopyWithImpl($value, $cast, t); + _PersonModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/photos_model.mapper.dart b/lib/models/items/photos_model.mapper.dart index 5810dd5..b2d2734 100644 --- a/lib/models/items/photos_model.mapper.dart +++ b/lib/models/items/photos_model.mapper.dart @@ -112,14 +112,15 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { mixin PhotoAlbumModelMappable { PhotoAlbumModelCopyWith - get copyWith => _PhotoAlbumModelCopyWithImpl( - this as PhotoAlbumModel, $identity, $identity); + get copyWith => + _PhotoAlbumModelCopyWithImpl( + this as PhotoAlbumModel, $identity, $identity); } extension PhotoAlbumModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PhotoAlbumModel, $Out> { PhotoAlbumModelCopyWith<$R, PhotoAlbumModel, $Out> get $asPhotoAlbumModel => - $base.as((v, t, t2) => _PhotoAlbumModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _PhotoAlbumModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class PhotoAlbumModelCopyWith<$R, $In extends PhotoAlbumModel, $Out> @@ -217,7 +218,7 @@ class _PhotoAlbumModelCopyWithImpl<$R, $Out> @override PhotoAlbumModelCopyWith<$R2, PhotoAlbumModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _PhotoAlbumModelCopyWithImpl($value, $cast, t); + _PhotoAlbumModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } class PhotoModelMapper extends SubClassMapperBase { @@ -340,13 +341,14 @@ 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> { PhotoModelCopyWith<$R, PhotoModel, $Out> get $asPhotoModel => - $base.as((v, t, t2) => _PhotoModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _PhotoModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> @@ -448,5 +450,5 @@ class _PhotoModelCopyWithImpl<$R, $Out> @override PhotoModelCopyWith<$R2, PhotoModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _PhotoModelCopyWithImpl($value, $cast, 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 733b10d..1f39bcb 100644 --- a/lib/models/items/season_model.mapper.dart +++ b/lib/models/items/season_model.mapper.dart @@ -141,13 +141,14 @@ 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> { SeasonModelCopyWith<$R, SeasonModel, $Out> get $asSeasonModel => - $base.as((v, t, t2) => _SeasonModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _SeasonModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> @@ -268,5 +269,5 @@ class _SeasonModelCopyWithImpl<$R, $Out> @override SeasonModelCopyWith<$R2, SeasonModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _SeasonModelCopyWithImpl($value, $cast, 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 44f2c80..e0903ee 100644 --- a/lib/models/items/series_model.mapper.dart +++ b/lib/models/items/series_model.mapper.dart @@ -139,13 +139,14 @@ 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> { SeriesModelCopyWith<$R, SeriesModel, $Out> get $asSeriesModel => - $base.as((v, t, t2) => _SeriesModelCopyWithImpl(v, t, t2)); + $base.as((v, t, t2) => _SeriesModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> @@ -282,5 +283,5 @@ class _SeriesModelCopyWithImpl<$R, $Out> @override SeriesModelCopyWith<$R2, SeriesModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _SeriesModelCopyWithImpl($value, $cast, t); + _SeriesModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/trick_play_model.dart b/lib/models/items/trick_play_model.dart index adc5ee4..1e47c0c 100644 --- a/lib/models/items/trick_play_model.dart +++ b/lib/models/items/trick_play_model.dart @@ -6,7 +6,7 @@ part 'trick_play_model.freezed.dart'; part 'trick_play_model.g.dart'; @Freezed(copyWith: true) -class TrickPlayModel with _$TrickPlayModel { +abstract class TrickPlayModel with _$TrickPlayModel { factory TrickPlayModel({ required int width, required int height, diff --git a/lib/models/items/trick_play_model.freezed.dart b/lib/models/items/trick_play_model.freezed.dart index 1b77683..b63efab 100644 --- a/lib/models/items/trick_play_model.freezed.dart +++ b/lib/models/items/trick_play_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,114 +9,41 @@ part of 'trick_play_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -TrickPlayModel _$TrickPlayModelFromJson(Map json) { - return _TrickPlayModel.fromJson(json); -} - /// @nodoc mixin _$TrickPlayModel { - int get width => throw _privateConstructorUsedError; - int get height => throw _privateConstructorUsedError; - int get tileWidth => throw _privateConstructorUsedError; - int get tileHeight => throw _privateConstructorUsedError; - int get thumbnailCount => throw _privateConstructorUsedError; - Duration get interval => throw _privateConstructorUsedError; - List get images => throw _privateConstructorUsedError; - - /// Serializes this TrickPlayModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + int get width; + int get height; + int get tileWidth; + int get tileHeight; + int get thumbnailCount; + Duration get interval; + List get images; /// Create a copy of TrickPlayModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $TrickPlayModelCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $TrickPlayModelCopyWith<$Res> { - factory $TrickPlayModelCopyWith( - TrickPlayModel value, $Res Function(TrickPlayModel) then) = - _$TrickPlayModelCopyWithImpl<$Res, TrickPlayModel>; - @useResult - $Res call( - {int width, - int height, - int tileWidth, - int tileHeight, - int thumbnailCount, - Duration interval, - List images}); -} - -/// @nodoc -class _$TrickPlayModelCopyWithImpl<$Res, $Val extends TrickPlayModel> - implements $TrickPlayModelCopyWith<$Res> { - _$TrickPlayModelCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of TrickPlayModel - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $TrickPlayModelCopyWith get copyWith => + _$TrickPlayModelCopyWithImpl( + this as TrickPlayModel, _$identity); + + /// Serializes this TrickPlayModel to a JSON map. + Map toJson(); + @override - $Res call({ - Object? width = null, - Object? height = null, - Object? tileWidth = null, - Object? tileHeight = null, - Object? thumbnailCount = null, - Object? interval = null, - Object? images = null, - }) { - return _then(_value.copyWith( - width: null == width - ? _value.width - : width // ignore: cast_nullable_to_non_nullable - as int, - height: null == height - ? _value.height - : height // ignore: cast_nullable_to_non_nullable - as int, - tileWidth: null == tileWidth - ? _value.tileWidth - : tileWidth // ignore: cast_nullable_to_non_nullable - as int, - tileHeight: null == tileHeight - ? _value.tileHeight - : tileHeight // ignore: cast_nullable_to_non_nullable - as int, - thumbnailCount: null == thumbnailCount - ? _value.thumbnailCount - : thumbnailCount // ignore: cast_nullable_to_non_nullable - as int, - interval: null == interval - ? _value.interval - : interval // ignore: cast_nullable_to_non_nullable - as Duration, - images: null == images - ? _value.images - : images // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); + String toString() { + return 'TrickPlayModel(width: $width, height: $height, tileWidth: $tileWidth, tileHeight: $tileHeight, thumbnailCount: $thumbnailCount, interval: $interval, images: $images)'; } } /// @nodoc -abstract class _$$TrickPlayModelImplCopyWith<$Res> - implements $TrickPlayModelCopyWith<$Res> { - factory _$$TrickPlayModelImplCopyWith(_$TrickPlayModelImpl value, - $Res Function(_$TrickPlayModelImpl) then) = - __$$TrickPlayModelImplCopyWithImpl<$Res>; - @override +abstract mixin class $TrickPlayModelCopyWith<$Res> { + factory $TrickPlayModelCopyWith( + TrickPlayModel value, $Res Function(TrickPlayModel) _then) = + _$TrickPlayModelCopyWithImpl; @useResult $Res call( {int width, @@ -129,12 +56,12 @@ abstract class _$$TrickPlayModelImplCopyWith<$Res> } /// @nodoc -class __$$TrickPlayModelImplCopyWithImpl<$Res> - extends _$TrickPlayModelCopyWithImpl<$Res, _$TrickPlayModelImpl> - implements _$$TrickPlayModelImplCopyWith<$Res> { - __$$TrickPlayModelImplCopyWithImpl( - _$TrickPlayModelImpl _value, $Res Function(_$TrickPlayModelImpl) _then) - : super(_value, _then); +class _$TrickPlayModelCopyWithImpl<$Res> + implements $TrickPlayModelCopyWith<$Res> { + _$TrickPlayModelCopyWithImpl(this._self, this._then); + + final TrickPlayModel _self; + final $Res Function(TrickPlayModel) _then; /// Create a copy of TrickPlayModel /// with the given fields replaced by the non-null parameter values. @@ -149,43 +76,227 @@ class __$$TrickPlayModelImplCopyWithImpl<$Res> Object? interval = null, Object? images = null, }) { - return _then(_$TrickPlayModelImpl( + return _then(_self.copyWith( width: null == width - ? _value.width + ? _self.width : width // ignore: cast_nullable_to_non_nullable as int, height: null == height - ? _value.height + ? _self.height : height // ignore: cast_nullable_to_non_nullable as int, tileWidth: null == tileWidth - ? _value.tileWidth + ? _self.tileWidth : tileWidth // ignore: cast_nullable_to_non_nullable as int, tileHeight: null == tileHeight - ? _value.tileHeight + ? _self.tileHeight : tileHeight // ignore: cast_nullable_to_non_nullable as int, thumbnailCount: null == thumbnailCount - ? _value.thumbnailCount + ? _self.thumbnailCount : thumbnailCount // ignore: cast_nullable_to_non_nullable as int, interval: null == interval - ? _value.interval + ? _self.interval : interval // ignore: cast_nullable_to_non_nullable as Duration, images: null == images - ? _value._images + ? _self.images : images // ignore: cast_nullable_to_non_nullable as List, )); } } +/// Adds pattern-matching-related methods to [TrickPlayModel]. +extension TrickPlayModelPatterns on TrickPlayModel { + /// 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(_TrickPlayModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _TrickPlayModel() 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(_TrickPlayModel value) $default, + ) { + final _that = this; + switch (_that) { + case _TrickPlayModel(): + 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(_TrickPlayModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _TrickPlayModel() 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(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); + 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(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); + 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(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); + case _: + return null; + } + } +} + /// @nodoc @JsonSerializable() -class _$TrickPlayModelImpl extends _TrickPlayModel { - _$TrickPlayModelImpl( +class _TrickPlayModel extends TrickPlayModel { + _TrickPlayModel( {required this.width, required this.height, required this.tileWidth, @@ -195,9 +306,8 @@ class _$TrickPlayModelImpl extends _TrickPlayModel { final List images = const []}) : _images = images, super._(); - - factory _$TrickPlayModelImpl.fromJson(Map json) => - _$$TrickPlayModelImplFromJson(json); + factory _TrickPlayModel.fromJson(Map json) => + _$TrickPlayModelFromJson(json); @override final int width; @@ -220,61 +330,97 @@ class _$TrickPlayModelImpl extends _TrickPlayModel { return EqualUnmodifiableListView(_images); } + /// Create a copy of TrickPlayModel + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$TrickPlayModelCopyWith<_TrickPlayModel> get copyWith => + __$TrickPlayModelCopyWithImpl<_TrickPlayModel>(this, _$identity); + + @override + Map toJson() { + return _$TrickPlayModelToJson( + this, + ); + } + @override String toString() { return 'TrickPlayModel(width: $width, height: $height, tileWidth: $tileWidth, tileHeight: $tileHeight, thumbnailCount: $thumbnailCount, interval: $interval, images: $images)'; } +} + +/// @nodoc +abstract mixin class _$TrickPlayModelCopyWith<$Res> + implements $TrickPlayModelCopyWith<$Res> { + factory _$TrickPlayModelCopyWith( + _TrickPlayModel value, $Res Function(_TrickPlayModel) _then) = + __$TrickPlayModelCopyWithImpl; + @override + @useResult + $Res call( + {int width, + int height, + int tileWidth, + int tileHeight, + int thumbnailCount, + Duration interval, + List images}); +} + +/// @nodoc +class __$TrickPlayModelCopyWithImpl<$Res> + implements _$TrickPlayModelCopyWith<$Res> { + __$TrickPlayModelCopyWithImpl(this._self, this._then); + + final _TrickPlayModel _self; + final $Res Function(_TrickPlayModel) _then; /// Create a copy of TrickPlayModel /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$TrickPlayModelImplCopyWith<_$TrickPlayModelImpl> get copyWith => - __$$TrickPlayModelImplCopyWithImpl<_$TrickPlayModelImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$TrickPlayModelImplToJson( - this, - ); + $Res call({ + Object? width = null, + Object? height = null, + Object? tileWidth = null, + Object? tileHeight = null, + Object? thumbnailCount = null, + Object? interval = null, + Object? images = null, + }) { + return _then(_TrickPlayModel( + width: null == width + ? _self.width + : width // ignore: cast_nullable_to_non_nullable + as int, + height: null == height + ? _self.height + : height // ignore: cast_nullable_to_non_nullable + as int, + tileWidth: null == tileWidth + ? _self.tileWidth + : tileWidth // ignore: cast_nullable_to_non_nullable + as int, + tileHeight: null == tileHeight + ? _self.tileHeight + : tileHeight // ignore: cast_nullable_to_non_nullable + as int, + thumbnailCount: null == thumbnailCount + ? _self.thumbnailCount + : thumbnailCount // ignore: cast_nullable_to_non_nullable + as int, + interval: null == interval + ? _self.interval + : interval // ignore: cast_nullable_to_non_nullable + as Duration, + images: null == images + ? _self._images + : images // ignore: cast_nullable_to_non_nullable + as List, + )); } } -abstract class _TrickPlayModel extends TrickPlayModel { - factory _TrickPlayModel( - {required final int width, - required final int height, - required final int tileWidth, - required final int tileHeight, - required final int thumbnailCount, - required final Duration interval, - final List images}) = _$TrickPlayModelImpl; - _TrickPlayModel._() : super._(); - - factory _TrickPlayModel.fromJson(Map json) = - _$TrickPlayModelImpl.fromJson; - - @override - int get width; - @override - int get height; - @override - int get tileWidth; - @override - int get tileHeight; - @override - int get thumbnailCount; - @override - Duration get interval; - @override - List get images; - - /// Create a copy of TrickPlayModel - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$TrickPlayModelImplCopyWith<_$TrickPlayModelImpl> get copyWith => - throw _privateConstructorUsedError; -} +// dart format on diff --git a/lib/models/items/trick_play_model.g.dart b/lib/models/items/trick_play_model.g.dart index fb17ee6..8490c17 100644 --- a/lib/models/items/trick_play_model.g.dart +++ b/lib/models/items/trick_play_model.g.dart @@ -6,8 +6,8 @@ part of 'trick_play_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$TrickPlayModelImpl _$$TrickPlayModelImplFromJson(Map json) => - _$TrickPlayModelImpl( +_TrickPlayModel _$TrickPlayModelFromJson(Map json) => + _TrickPlayModel( width: (json['width'] as num).toInt(), height: (json['height'] as num).toInt(), tileWidth: (json['tileWidth'] as num).toInt(), @@ -20,8 +20,7 @@ _$TrickPlayModelImpl _$$TrickPlayModelImplFromJson(Map json) => const [], ); -Map _$$TrickPlayModelImplToJson( - _$TrickPlayModelImpl instance) => +Map _$TrickPlayModelToJson(_TrickPlayModel instance) => { 'width': instance.width, 'height': instance.height, diff --git a/lib/models/library_filters_model.dart b/lib/models/library_filters_model.dart index 165cbc2..9ba2dcf 100644 --- a/lib/models/library_filters_model.dart +++ b/lib/models/library_filters_model.dart @@ -15,10 +15,10 @@ part 'library_filters_model.freezed.dart'; part 'library_filters_model.g.dart'; @Freezed(copyWith: true) -class LibraryFiltersModel with _$LibraryFiltersModel { +abstract class LibraryFiltersModel with _$LibraryFiltersModel { const LibraryFiltersModel._(); - factory LibraryFiltersModel._internal({ + factory LibraryFiltersModel({ required String id, required String name, required bool isFavourite, @@ -46,7 +46,7 @@ class LibraryFiltersModel with _$LibraryFiltersModel { bool? isFavourite, String? id, }) { - return LibraryFiltersModel._internal( + return LibraryFiltersModel( id: id ?? Xid().toString(), name: name, isFavourite: isFavourite ?? false, diff --git a/lib/models/library_filters_model.freezed.dart b/lib/models/library_filters_model.freezed.dart index e7a72a7..93bb215 100644 --- a/lib/models/library_filters_model.freezed.dart +++ b/lib/models/library_filters_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,185 +9,52 @@ part of 'library_filters_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) { - return _LibraryFiltersModel.fromJson(json); -} - /// @nodoc mixin _$LibraryFiltersModel { - String get id => throw _privateConstructorUsedError; - String get name => throw _privateConstructorUsedError; - bool get isFavourite => throw _privateConstructorUsedError; - List get ids => throw _privateConstructorUsedError; - Map get genres => throw _privateConstructorUsedError; - Map get filters => throw _privateConstructorUsedError; + String get id; + String get name; + bool get isFavourite; + List get ids; + Map get genres; + Map get filters; @StudioEncoder() - Map get studios => throw _privateConstructorUsedError; - Map get tags => throw _privateConstructorUsedError; - Map get years => throw _privateConstructorUsedError; - Map get officialRatings => throw _privateConstructorUsedError; - Map get types => throw _privateConstructorUsedError; - SortingOptions get sortingOption => throw _privateConstructorUsedError; - SortingOrder get sortOrder => throw _privateConstructorUsedError; - bool get favourites => throw _privateConstructorUsedError; - bool get hideEmptyShows => throw _privateConstructorUsedError; - bool get recursive => throw _privateConstructorUsedError; - GroupBy get groupBy => throw _privateConstructorUsedError; - - /// Serializes this LibraryFiltersModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + Map get studios; + Map get tags; + Map get years; + Map get officialRatings; + Map get types; + SortingOptions get sortingOption; + SortingOrder get sortOrder; + bool get favourites; + bool get hideEmptyShows; + bool get recursive; + GroupBy get groupBy; /// Create a copy of LibraryFiltersModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $LibraryFiltersModelCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LibraryFiltersModelCopyWith<$Res> { - factory $LibraryFiltersModelCopyWith( - LibraryFiltersModel value, $Res Function(LibraryFiltersModel) then) = - _$LibraryFiltersModelCopyWithImpl<$Res, LibraryFiltersModel>; - @useResult - $Res call( - {String id, - String name, - bool isFavourite, - List ids, - Map genres, - Map filters, - @StudioEncoder() Map studios, - Map tags, - Map years, - Map officialRatings, - Map types, - SortingOptions sortingOption, - SortingOrder sortOrder, - bool favourites, - bool hideEmptyShows, - bool recursive, - GroupBy groupBy}); -} - -/// @nodoc -class _$LibraryFiltersModelCopyWithImpl<$Res, $Val extends LibraryFiltersModel> - implements $LibraryFiltersModelCopyWith<$Res> { - _$LibraryFiltersModelCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LibraryFiltersModel - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $LibraryFiltersModelCopyWith get copyWith => + _$LibraryFiltersModelCopyWithImpl( + this as LibraryFiltersModel, _$identity); + + /// Serializes this LibraryFiltersModel to a JSON map. + Map toJson(); + @override - $Res call({ - Object? id = null, - Object? name = null, - Object? isFavourite = null, - Object? ids = null, - Object? genres = null, - Object? filters = null, - Object? studios = null, - Object? tags = null, - Object? years = null, - Object? officialRatings = null, - Object? types = null, - Object? sortingOption = null, - Object? sortOrder = null, - Object? favourites = null, - Object? hideEmptyShows = null, - Object? recursive = null, - Object? groupBy = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as String, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - isFavourite: null == isFavourite - ? _value.isFavourite - : isFavourite // ignore: cast_nullable_to_non_nullable - as bool, - ids: null == ids - ? _value.ids - : ids // ignore: cast_nullable_to_non_nullable - as List, - genres: null == genres - ? _value.genres - : genres // ignore: cast_nullable_to_non_nullable - as Map, - filters: null == filters - ? _value.filters - : filters // ignore: cast_nullable_to_non_nullable - as Map, - studios: null == studios - ? _value.studios - : studios // ignore: cast_nullable_to_non_nullable - as Map, - tags: null == tags - ? _value.tags - : tags // ignore: cast_nullable_to_non_nullable - as Map, - years: null == years - ? _value.years - : years // ignore: cast_nullable_to_non_nullable - as Map, - officialRatings: null == officialRatings - ? _value.officialRatings - : officialRatings // ignore: cast_nullable_to_non_nullable - as Map, - types: null == types - ? _value.types - : types // ignore: cast_nullable_to_non_nullable - as Map, - sortingOption: null == sortingOption - ? _value.sortingOption - : sortingOption // ignore: cast_nullable_to_non_nullable - as SortingOptions, - sortOrder: null == sortOrder - ? _value.sortOrder - : sortOrder // ignore: cast_nullable_to_non_nullable - as SortingOrder, - favourites: null == favourites - ? _value.favourites - : favourites // ignore: cast_nullable_to_non_nullable - as bool, - hideEmptyShows: null == hideEmptyShows - ? _value.hideEmptyShows - : hideEmptyShows // ignore: cast_nullable_to_non_nullable - as bool, - recursive: null == recursive - ? _value.recursive - : recursive // ignore: cast_nullable_to_non_nullable - as bool, - groupBy: null == groupBy - ? _value.groupBy - : groupBy // ignore: cast_nullable_to_non_nullable - as GroupBy, - ) as $Val); + String toString() { + return 'LibraryFiltersModel(id: $id, name: $name, isFavourite: $isFavourite, ids: $ids, genres: $genres, filters: $filters, studios: $studios, tags: $tags, years: $years, officialRatings: $officialRatings, types: $types, sortingOption: $sortingOption, sortOrder: $sortOrder, favourites: $favourites, hideEmptyShows: $hideEmptyShows, recursive: $recursive, groupBy: $groupBy)'; } } /// @nodoc -abstract class _$$LibraryFiltersModelImplCopyWith<$Res> - implements $LibraryFiltersModelCopyWith<$Res> { - factory _$$LibraryFiltersModelImplCopyWith(_$LibraryFiltersModelImpl value, - $Res Function(_$LibraryFiltersModelImpl) then) = - __$$LibraryFiltersModelImplCopyWithImpl<$Res>; - @override +abstract mixin class $LibraryFiltersModelCopyWith<$Res> { + factory $LibraryFiltersModelCopyWith( + LibraryFiltersModel value, $Res Function(LibraryFiltersModel) _then) = + _$LibraryFiltersModelCopyWithImpl; @useResult $Res call( {String id, @@ -210,12 +77,12 @@ abstract class _$$LibraryFiltersModelImplCopyWith<$Res> } /// @nodoc -class __$$LibraryFiltersModelImplCopyWithImpl<$Res> - extends _$LibraryFiltersModelCopyWithImpl<$Res, _$LibraryFiltersModelImpl> - implements _$$LibraryFiltersModelImplCopyWith<$Res> { - __$$LibraryFiltersModelImplCopyWithImpl(_$LibraryFiltersModelImpl _value, - $Res Function(_$LibraryFiltersModelImpl) _then) - : super(_value, _then); +class _$LibraryFiltersModelCopyWithImpl<$Res> + implements $LibraryFiltersModelCopyWith<$Res> { + _$LibraryFiltersModelCopyWithImpl(this._self, this._then); + + final LibraryFiltersModel _self; + final $Res Function(LibraryFiltersModel) _then; /// Create a copy of LibraryFiltersModel /// with the given fields replaced by the non-null parameter values. @@ -240,83 +107,345 @@ class __$$LibraryFiltersModelImplCopyWithImpl<$Res> Object? recursive = null, Object? groupBy = null, }) { - return _then(_$LibraryFiltersModelImpl( + return _then(_self.copyWith( id: null == id - ? _value.id + ? _self.id : id // ignore: cast_nullable_to_non_nullable as String, name: null == name - ? _value.name + ? _self.name : name // ignore: cast_nullable_to_non_nullable as String, isFavourite: null == isFavourite - ? _value.isFavourite + ? _self.isFavourite : isFavourite // ignore: cast_nullable_to_non_nullable as bool, ids: null == ids - ? _value._ids + ? _self.ids : ids // ignore: cast_nullable_to_non_nullable as List, genres: null == genres - ? _value._genres + ? _self.genres : genres // ignore: cast_nullable_to_non_nullable as Map, filters: null == filters - ? _value._filters + ? _self.filters : filters // ignore: cast_nullable_to_non_nullable as Map, studios: null == studios - ? _value._studios + ? _self.studios : studios // ignore: cast_nullable_to_non_nullable as Map, tags: null == tags - ? _value._tags + ? _self.tags : tags // ignore: cast_nullable_to_non_nullable as Map, years: null == years - ? _value._years + ? _self.years : years // ignore: cast_nullable_to_non_nullable as Map, officialRatings: null == officialRatings - ? _value._officialRatings + ? _self.officialRatings : officialRatings // ignore: cast_nullable_to_non_nullable as Map, types: null == types - ? _value._types + ? _self.types : types // ignore: cast_nullable_to_non_nullable as Map, sortingOption: null == sortingOption - ? _value.sortingOption + ? _self.sortingOption : sortingOption // ignore: cast_nullable_to_non_nullable as SortingOptions, sortOrder: null == sortOrder - ? _value.sortOrder + ? _self.sortOrder : sortOrder // ignore: cast_nullable_to_non_nullable as SortingOrder, favourites: null == favourites - ? _value.favourites + ? _self.favourites : favourites // ignore: cast_nullable_to_non_nullable as bool, hideEmptyShows: null == hideEmptyShows - ? _value.hideEmptyShows + ? _self.hideEmptyShows : hideEmptyShows // ignore: cast_nullable_to_non_nullable as bool, recursive: null == recursive - ? _value.recursive + ? _self.recursive : recursive // ignore: cast_nullable_to_non_nullable as bool, groupBy: null == groupBy - ? _value.groupBy + ? _self.groupBy : groupBy // ignore: cast_nullable_to_non_nullable as GroupBy, )); } } +/// Adds pattern-matching-related methods to [LibraryFiltersModel]. +extension LibraryFiltersModelPatterns on LibraryFiltersModel { + /// 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(_LibraryFiltersModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _LibraryFiltersModel() 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(_LibraryFiltersModel value) $default, + ) { + final _that = this; + switch (_that) { + case _LibraryFiltersModel(): + 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(_LibraryFiltersModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _LibraryFiltersModel() 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 id, + String name, + bool isFavourite, + List ids, + Map genres, + Map filters, + @StudioEncoder() Map studios, + Map tags, + Map years, + Map officialRatings, + Map types, + SortingOptions sortingOption, + SortingOrder sortOrder, + bool favourites, + bool hideEmptyShows, + bool recursive, + GroupBy groupBy)? + $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.genres, + _that.filters, + _that.studios, + _that.tags, + _that.years, + _that.officialRatings, + _that.types, + _that.sortingOption, + _that.sortOrder, + _that.favourites, + _that.hideEmptyShows, + _that.recursive, + _that.groupBy); + 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 id, + String name, + bool isFavourite, + List ids, + Map genres, + Map filters, + @StudioEncoder() Map studios, + Map tags, + Map years, + Map officialRatings, + Map types, + SortingOptions sortingOption, + SortingOrder sortOrder, + bool favourites, + bool hideEmptyShows, + bool recursive, + GroupBy groupBy) + $default, + ) { + final _that = this; + switch (_that) { + case _LibraryFiltersModel(): + return $default( + _that.id, + _that.name, + _that.isFavourite, + _that.ids, + _that.genres, + _that.filters, + _that.studios, + _that.tags, + _that.years, + _that.officialRatings, + _that.types, + _that.sortingOption, + _that.sortOrder, + _that.favourites, + _that.hideEmptyShows, + _that.recursive, + _that.groupBy); + 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 id, + String name, + bool isFavourite, + List ids, + Map genres, + Map filters, + @StudioEncoder() Map studios, + Map tags, + Map years, + Map officialRatings, + Map types, + SortingOptions sortingOption, + SortingOrder sortOrder, + bool favourites, + bool hideEmptyShows, + bool recursive, + GroupBy groupBy)? + $default, + ) { + final _that = this; + switch (_that) { + case _LibraryFiltersModel() when $default != null: + return $default( + _that.id, + _that.name, + _that.isFavourite, + _that.ids, + _that.genres, + _that.filters, + _that.studios, + _that.tags, + _that.years, + _that.officialRatings, + _that.types, + _that.sortingOption, + _that.sortOrder, + _that.favourites, + _that.hideEmptyShows, + _that.recursive, + _that.groupBy); + case _: + return null; + } + } +} + /// @nodoc @JsonSerializable() -class _$LibraryFiltersModelImpl extends _LibraryFiltersModel { - _$LibraryFiltersModelImpl( +class _LibraryFiltersModel extends LibraryFiltersModel { + _LibraryFiltersModel( {required this.id, required this.name, required this.isFavourite, @@ -343,9 +472,8 @@ class _$LibraryFiltersModelImpl extends _LibraryFiltersModel { _officialRatings = officialRatings, _types = types, super._(); - - factory _$LibraryFiltersModelImpl.fromJson(Map json) => - _$$LibraryFiltersModelImplFromJson(json); + factory _LibraryFiltersModel.fromJson(Map json) => + _$LibraryFiltersModelFromJson(json); @override final String id; @@ -431,92 +559,158 @@ class _$LibraryFiltersModelImpl extends _LibraryFiltersModel { @override final GroupBy groupBy; - @override - String toString() { - return 'LibraryFiltersModel._internal(id: $id, name: $name, isFavourite: $isFavourite, ids: $ids, genres: $genres, filters: $filters, studios: $studios, tags: $tags, years: $years, officialRatings: $officialRatings, types: $types, sortingOption: $sortingOption, sortOrder: $sortOrder, favourites: $favourites, hideEmptyShows: $hideEmptyShows, recursive: $recursive, groupBy: $groupBy)'; - } - /// Create a copy of LibraryFiltersModel /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override + @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$$LibraryFiltersModelImplCopyWith<_$LibraryFiltersModelImpl> get copyWith => - __$$LibraryFiltersModelImplCopyWithImpl<_$LibraryFiltersModelImpl>( + _$LibraryFiltersModelCopyWith<_LibraryFiltersModel> get copyWith => + __$LibraryFiltersModelCopyWithImpl<_LibraryFiltersModel>( this, _$identity); @override Map toJson() { - return _$$LibraryFiltersModelImplToJson( + return _$LibraryFiltersModelToJson( this, ); } + + @override + String toString() { + return 'LibraryFiltersModel(id: $id, name: $name, isFavourite: $isFavourite, ids: $ids, genres: $genres, filters: $filters, studios: $studios, tags: $tags, years: $years, officialRatings: $officialRatings, types: $types, sortingOption: $sortingOption, sortOrder: $sortOrder, favourites: $favourites, hideEmptyShows: $hideEmptyShows, recursive: $recursive, groupBy: $groupBy)'; + } } -abstract class _LibraryFiltersModel extends LibraryFiltersModel { - factory _LibraryFiltersModel( - {required final String id, - required final String name, - required final bool isFavourite, - required final List ids, - required final Map genres, - required final Map filters, - @StudioEncoder() required final Map studios, - required final Map tags, - required final Map years, - required final Map officialRatings, - required final Map types, - required final SortingOptions sortingOption, - required final SortingOrder sortOrder, - required final bool favourites, - required final bool hideEmptyShows, - required final bool recursive, - required final GroupBy groupBy}) = _$LibraryFiltersModelImpl; - _LibraryFiltersModel._() : super._(); +/// @nodoc +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, + Map genres, + Map filters, + @StudioEncoder() Map studios, + Map tags, + Map years, + Map officialRatings, + Map types, + SortingOptions sortingOption, + SortingOrder sortOrder, + bool favourites, + bool hideEmptyShows, + bool recursive, + GroupBy groupBy}); +} - factory _LibraryFiltersModel.fromJson(Map json) = - _$LibraryFiltersModelImpl.fromJson; +/// @nodoc +class __$LibraryFiltersModelCopyWithImpl<$Res> + implements _$LibraryFiltersModelCopyWith<$Res> { + __$LibraryFiltersModelCopyWithImpl(this._self, this._then); - @override - String get id; - @override - String get name; - @override - bool get isFavourite; - @override - List get ids; - @override - Map get genres; - @override - Map get filters; - @override - @StudioEncoder() - Map get studios; - @override - Map get tags; - @override - Map get years; - @override - Map get officialRatings; - @override - Map get types; - @override - SortingOptions get sortingOption; - @override - SortingOrder get sortOrder; - @override - bool get favourites; - @override - bool get hideEmptyShows; - @override - bool get recursive; - @override - GroupBy get groupBy; + final _LibraryFiltersModel _self; + final $Res Function(_LibraryFiltersModel) _then; /// Create a copy of LibraryFiltersModel /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LibraryFiltersModelImplCopyWith<_$LibraryFiltersModelImpl> get copyWith => - throw _privateConstructorUsedError; + @pragma('vm:prefer-inline') + $Res call({ + Object? id = null, + Object? name = null, + Object? isFavourite = null, + Object? ids = null, + Object? genres = null, + Object? filters = null, + Object? studios = null, + Object? tags = null, + Object? years = null, + Object? officialRatings = null, + Object? types = null, + Object? sortingOption = null, + Object? sortOrder = null, + Object? favourites = null, + Object? hideEmptyShows = null, + Object? recursive = null, + Object? groupBy = null, + }) { + return _then(_LibraryFiltersModel( + id: null == id + ? _self.id + : id // ignore: cast_nullable_to_non_nullable + as String, + name: null == name + ? _self.name + : name // ignore: cast_nullable_to_non_nullable + as String, + isFavourite: null == isFavourite + ? _self.isFavourite + : isFavourite // ignore: cast_nullable_to_non_nullable + as bool, + ids: null == ids + ? _self._ids + : ids // ignore: cast_nullable_to_non_nullable + as List, + genres: null == genres + ? _self._genres + : genres // ignore: cast_nullable_to_non_nullable + as Map, + filters: null == filters + ? _self._filters + : filters // ignore: cast_nullable_to_non_nullable + as Map, + studios: null == studios + ? _self._studios + : studios // ignore: cast_nullable_to_non_nullable + as Map, + tags: null == tags + ? _self._tags + : tags // ignore: cast_nullable_to_non_nullable + as Map, + years: null == years + ? _self._years + : years // ignore: cast_nullable_to_non_nullable + as Map, + officialRatings: null == officialRatings + ? _self._officialRatings + : officialRatings // ignore: cast_nullable_to_non_nullable + as Map, + types: null == types + ? _self._types + : types // ignore: cast_nullable_to_non_nullable + as Map, + sortingOption: null == sortingOption + ? _self.sortingOption + : sortingOption // ignore: cast_nullable_to_non_nullable + as SortingOptions, + sortOrder: null == sortOrder + ? _self.sortOrder + : sortOrder // ignore: cast_nullable_to_non_nullable + as SortingOrder, + favourites: null == favourites + ? _self.favourites + : favourites // ignore: cast_nullable_to_non_nullable + as bool, + hideEmptyShows: null == hideEmptyShows + ? _self.hideEmptyShows + : hideEmptyShows // ignore: cast_nullable_to_non_nullable + as bool, + recursive: null == recursive + ? _self.recursive + : recursive // ignore: cast_nullable_to_non_nullable + as bool, + groupBy: null == groupBy + ? _self.groupBy + : groupBy // ignore: cast_nullable_to_non_nullable + as GroupBy, + )); + } } + +// dart format on diff --git a/lib/models/library_filters_model.g.dart b/lib/models/library_filters_model.g.dart index 4f6e79a..cf63b26 100644 --- a/lib/models/library_filters_model.g.dart +++ b/lib/models/library_filters_model.g.dart @@ -6,9 +6,8 @@ part of 'library_filters_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$LibraryFiltersModelImpl _$$LibraryFiltersModelImplFromJson( - Map json) => - _$LibraryFiltersModelImpl( +_LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) => + _LibraryFiltersModel( id: json['id'] as String, name: json['name'] as String, isFavourite: json['isFavourite'] as bool, @@ -35,8 +34,8 @@ _$LibraryFiltersModelImpl _$$LibraryFiltersModelImplFromJson( groupBy: $enumDecode(_$GroupByEnumMap, json['groupBy']), ); -Map _$$LibraryFiltersModelImplToJson( - _$LibraryFiltersModelImpl instance) => +Map _$LibraryFiltersModelToJson( + _LibraryFiltersModel instance) => { 'id': instance.id, 'name': instance.name, diff --git a/lib/models/library_search/library_search_model.mapper.dart b/lib/models/library_search/library_search_model.mapper.dart index 33b6dac..c775159 100644 --- a/lib/models/library_search/library_search_model.mapper.dart +++ b/lib/models/library_search/library_search_model.mapper.dart @@ -182,15 +182,15 @@ class LibrarySearchModelMapper extends ClassMapperBase { mixin LibrarySearchModelMappable { LibrarySearchModelCopyWith - get copyWith => _LibrarySearchModelCopyWithImpl( - this as LibrarySearchModel, $identity, $identity); + get copyWith => _LibrarySearchModelCopyWithImpl(this as LibrarySearchModel, $identity, $identity); } extension LibrarySearchModelValueCopy<$R, $Out> on ObjectCopyWith<$R, LibrarySearchModel, $Out> { LibrarySearchModelCopyWith<$R, LibrarySearchModel, $Out> - get $asLibrarySearchModel => - $base.as((v, t, t2) => _LibrarySearchModelCopyWithImpl(v, t, t2)); + get $asLibrarySearchModel => $base.as( + (v, t, t2) => _LibrarySearchModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class LibrarySearchModelCopyWith<$R, $In extends LibrarySearchModel, @@ -391,5 +391,5 @@ class _LibrarySearchModelCopyWithImpl<$R, $Out> @override LibrarySearchModelCopyWith<$R2, LibrarySearchModel, $Out2> $chain<$R2, $Out2>( Then<$Out2, $R2> t) => - _LibrarySearchModelCopyWithImpl($value, $cast, t); + _LibrarySearchModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/settings/arguments_model.dart b/lib/models/settings/arguments_model.dart index d0cbe64..2331357 100644 --- a/lib/models/settings/arguments_model.dart +++ b/lib/models/settings/arguments_model.dart @@ -3,7 +3,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; part 'arguments_model.freezed.dart'; @freezed -class ArgumentsModel with _$ArgumentsModel { +abstract class ArgumentsModel with _$ArgumentsModel { const ArgumentsModel._(); factory ArgumentsModel({ diff --git a/lib/models/settings/arguments_model.freezed.dart b/lib/models/settings/arguments_model.freezed.dart index 881c561..2e81426 100644 --- a/lib/models/settings/arguments_model.freezed.dart +++ b/lib/models/settings/arguments_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,20 +9,180 @@ part of 'arguments_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - /// @nodoc mixin _$ArgumentsModel { - bool get htpcMode => throw _privateConstructorUsedError; + bool get htpcMode; + + @override + String toString() { + return 'ArgumentsModel(htpcMode: $htpcMode)'; + } +} + +/// Adds pattern-matching-related methods to [ArgumentsModel]. +extension ArgumentsModelPatterns on ArgumentsModel { + /// 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(_ArgumentsModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ArgumentsModel() 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(_ArgumentsModel value) $default, + ) { + final _that = this; + switch (_that) { + case _ArgumentsModel(): + 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(_ArgumentsModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _ArgumentsModel() 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 htpcMode)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ArgumentsModel() when $default != null: + return $default(_that.htpcMode); + 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 htpcMode) $default, + ) { + final _that = this; + switch (_that) { + case _ArgumentsModel(): + return $default(_that.htpcMode); + 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 htpcMode)? $default, + ) { + final _that = this; + switch (_that) { + case _ArgumentsModel() when $default != null: + return $default(_that.htpcMode); + case _: + return null; + } + } } /// @nodoc -class _$ArgumentsModelImpl extends _ArgumentsModel { - _$ArgumentsModelImpl({this.htpcMode = false}) : super._(); +class _ArgumentsModel extends ArgumentsModel { + _ArgumentsModel({this.htpcMode = false}) : super._(); @override @JsonKey() @@ -34,10 +194,4 @@ class _$ArgumentsModelImpl extends _ArgumentsModel { } } -abstract class _ArgumentsModel extends ArgumentsModel { - factory _ArgumentsModel({final bool htpcMode}) = _$ArgumentsModelImpl; - _ArgumentsModel._() : super._(); - - @override - bool get htpcMode; -} +// dart format on diff --git a/lib/models/settings/client_settings_model.dart b/lib/models/settings/client_settings_model.dart index 02d6698..98abd77 100644 --- a/lib/models/settings/client_settings_model.dart +++ b/lib/models/settings/client_settings_model.dart @@ -51,7 +51,7 @@ enum BackgroundType { } @Freezed(copyWith: true) -class ClientSettingsModel with _$ClientSettingsModel { +abstract class ClientSettingsModel with _$ClientSettingsModel { const ClientSettingsModel._(); factory ClientSettingsModel({ diff --git a/lib/models/settings/client_settings_model.freezed.dart b/lib/models/settings/client_settings_model.freezed.dart index f4d49bb..d3bb312 100644 --- a/lib/models/settings/client_settings_model.freezed.dart +++ b/lib/models/settings/client_settings_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,242 +9,93 @@ part of 'client_settings_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -ClientSettingsModel _$ClientSettingsModelFromJson(Map json) { - return _ClientSettingsModel.fromJson(json); -} - /// @nodoc -mixin _$ClientSettingsModel { - String? get syncPath => throw _privateConstructorUsedError; - Vector2 get position => throw _privateConstructorUsedError; - Vector2 get size => throw _privateConstructorUsedError; - Duration? get timeOut => throw _privateConstructorUsedError; - Duration? get nextUpDateCutoff => throw _privateConstructorUsedError; - ThemeMode get themeMode => throw _privateConstructorUsedError; - ColorThemes? get themeColor => throw _privateConstructorUsedError; - bool get amoledBlack => throw _privateConstructorUsedError; - bool get blurPlaceHolders => throw _privateConstructorUsedError; - bool get blurUpcomingEpisodes => throw _privateConstructorUsedError; +mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { + String? get syncPath; + Vector2 get position; + Vector2 get size; + Duration? get timeOut; + Duration? get nextUpDateCutoff; + ThemeMode get themeMode; + ColorThemes? get themeColor; + bool get amoledBlack; + bool get blurPlaceHolders; + bool get blurUpcomingEpisodes; @LocaleConvert() - Locale? get selectedLocale => throw _privateConstructorUsedError; - bool get enableMediaKeys => throw _privateConstructorUsedError; - double get posterSize => throw _privateConstructorUsedError; - bool get pinchPosterZoom => throw _privateConstructorUsedError; - bool get mouseDragSupport => throw _privateConstructorUsedError; - bool get requireWifi => throw _privateConstructorUsedError; - bool get showAllCollectionTypes => throw _privateConstructorUsedError; - int get maxConcurrentDownloads => throw _privateConstructorUsedError; - DynamicSchemeVariant get schemeVariant => throw _privateConstructorUsedError; - BackgroundType get backgroundImage => throw _privateConstructorUsedError; - bool get checkForUpdates => throw _privateConstructorUsedError; - bool get usePosterForLibrary => throw _privateConstructorUsedError; - String? get lastViewedUpdate => throw _privateConstructorUsedError; - int? get libraryPageSize => throw _privateConstructorUsedError; - Map get shortcuts => - throw _privateConstructorUsedError; - - /// Serializes this ClientSettingsModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + Locale? get selectedLocale; + bool get enableMediaKeys; + double get posterSize; + bool get pinchPosterZoom; + bool get mouseDragSupport; + bool get requireWifi; + bool get showAllCollectionTypes; + int get maxConcurrentDownloads; + DynamicSchemeVariant get schemeVariant; + BackgroundType get backgroundImage; + bool get checkForUpdates; + bool get usePosterForLibrary; + String? get lastViewedUpdate; + int? get libraryPageSize; + Map get shortcuts; /// Create a copy of ClientSettingsModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $ClientSettingsModelCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ClientSettingsModelCopyWith<$Res> { - factory $ClientSettingsModelCopyWith( - ClientSettingsModel value, $Res Function(ClientSettingsModel) then) = - _$ClientSettingsModelCopyWithImpl<$Res, ClientSettingsModel>; - @useResult - $Res call( - {String? syncPath, - Vector2 position, - Vector2 size, - Duration? timeOut, - Duration? nextUpDateCutoff, - ThemeMode themeMode, - ColorThemes? themeColor, - bool amoledBlack, - bool blurPlaceHolders, - bool blurUpcomingEpisodes, - @LocaleConvert() Locale? selectedLocale, - bool enableMediaKeys, - double posterSize, - bool pinchPosterZoom, - bool mouseDragSupport, - bool requireWifi, - bool showAllCollectionTypes, - int maxConcurrentDownloads, - DynamicSchemeVariant schemeVariant, - BackgroundType backgroundImage, - bool checkForUpdates, - bool usePosterForLibrary, - String? lastViewedUpdate, - int? libraryPageSize, - Map shortcuts}); -} - -/// @nodoc -class _$ClientSettingsModelCopyWithImpl<$Res, $Val extends ClientSettingsModel> - implements $ClientSettingsModelCopyWith<$Res> { - _$ClientSettingsModelCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ClientSettingsModel - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $ClientSettingsModelCopyWith get copyWith => + _$ClientSettingsModelCopyWithImpl( + this as ClientSettingsModel, _$identity); + + /// Serializes this ClientSettingsModel to a JSON map. + Map toJson(); + @override - $Res call({ - Object? syncPath = freezed, - Object? position = null, - Object? size = null, - Object? timeOut = freezed, - Object? nextUpDateCutoff = freezed, - Object? themeMode = null, - Object? themeColor = freezed, - Object? amoledBlack = null, - Object? blurPlaceHolders = null, - Object? blurUpcomingEpisodes = null, - Object? selectedLocale = freezed, - Object? enableMediaKeys = null, - Object? posterSize = null, - Object? pinchPosterZoom = null, - Object? mouseDragSupport = null, - Object? requireWifi = null, - Object? showAllCollectionTypes = null, - Object? maxConcurrentDownloads = null, - Object? schemeVariant = null, - Object? backgroundImage = null, - Object? checkForUpdates = null, - Object? usePosterForLibrary = null, - Object? lastViewedUpdate = freezed, - Object? libraryPageSize = freezed, - Object? shortcuts = null, - }) { - return _then(_value.copyWith( - syncPath: freezed == syncPath - ? _value.syncPath - : syncPath // ignore: cast_nullable_to_non_nullable - as String?, - position: null == position - ? _value.position - : position // ignore: cast_nullable_to_non_nullable - as Vector2, - size: null == size - ? _value.size - : size // ignore: cast_nullable_to_non_nullable - as Vector2, - timeOut: freezed == timeOut - ? _value.timeOut - : timeOut // ignore: cast_nullable_to_non_nullable - as Duration?, - nextUpDateCutoff: freezed == nextUpDateCutoff - ? _value.nextUpDateCutoff - : nextUpDateCutoff // ignore: cast_nullable_to_non_nullable - as Duration?, - themeMode: null == themeMode - ? _value.themeMode - : themeMode // ignore: cast_nullable_to_non_nullable - as ThemeMode, - themeColor: freezed == themeColor - ? _value.themeColor - : themeColor // ignore: cast_nullable_to_non_nullable - as ColorThemes?, - amoledBlack: null == amoledBlack - ? _value.amoledBlack - : amoledBlack // ignore: cast_nullable_to_non_nullable - as bool, - blurPlaceHolders: null == blurPlaceHolders - ? _value.blurPlaceHolders - : blurPlaceHolders // ignore: cast_nullable_to_non_nullable - as bool, - blurUpcomingEpisodes: null == blurUpcomingEpisodes - ? _value.blurUpcomingEpisodes - : blurUpcomingEpisodes // ignore: cast_nullable_to_non_nullable - as bool, - selectedLocale: freezed == selectedLocale - ? _value.selectedLocale - : selectedLocale // ignore: cast_nullable_to_non_nullable - as Locale?, - enableMediaKeys: null == enableMediaKeys - ? _value.enableMediaKeys - : enableMediaKeys // ignore: cast_nullable_to_non_nullable - as bool, - posterSize: null == posterSize - ? _value.posterSize - : posterSize // ignore: cast_nullable_to_non_nullable - as double, - pinchPosterZoom: null == pinchPosterZoom - ? _value.pinchPosterZoom - : pinchPosterZoom // ignore: cast_nullable_to_non_nullable - as bool, - mouseDragSupport: null == mouseDragSupport - ? _value.mouseDragSupport - : mouseDragSupport // ignore: cast_nullable_to_non_nullable - as bool, - requireWifi: null == requireWifi - ? _value.requireWifi - : requireWifi // ignore: cast_nullable_to_non_nullable - as bool, - showAllCollectionTypes: null == showAllCollectionTypes - ? _value.showAllCollectionTypes - : showAllCollectionTypes // ignore: cast_nullable_to_non_nullable - as bool, - maxConcurrentDownloads: null == maxConcurrentDownloads - ? _value.maxConcurrentDownloads - : maxConcurrentDownloads // ignore: cast_nullable_to_non_nullable - as int, - schemeVariant: null == schemeVariant - ? _value.schemeVariant - : schemeVariant // ignore: cast_nullable_to_non_nullable - as DynamicSchemeVariant, - backgroundImage: null == backgroundImage - ? _value.backgroundImage - : backgroundImage // ignore: cast_nullable_to_non_nullable - as BackgroundType, - checkForUpdates: null == checkForUpdates - ? _value.checkForUpdates - : checkForUpdates // ignore: cast_nullable_to_non_nullable - as bool, - usePosterForLibrary: null == usePosterForLibrary - ? _value.usePosterForLibrary - : usePosterForLibrary // ignore: cast_nullable_to_non_nullable - as bool, - lastViewedUpdate: freezed == lastViewedUpdate - ? _value.lastViewedUpdate - : lastViewedUpdate // ignore: cast_nullable_to_non_nullable - as String?, - libraryPageSize: freezed == libraryPageSize - ? _value.libraryPageSize - : libraryPageSize // ignore: cast_nullable_to_non_nullable - as int?, - shortcuts: null == shortcuts - ? _value.shortcuts - : shortcuts // ignore: cast_nullable_to_non_nullable - as Map, - ) as $Val); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'ClientSettingsModel')) + ..add(DiagnosticsProperty('syncPath', syncPath)) + ..add(DiagnosticsProperty('position', position)) + ..add(DiagnosticsProperty('size', size)) + ..add(DiagnosticsProperty('timeOut', timeOut)) + ..add(DiagnosticsProperty('nextUpDateCutoff', nextUpDateCutoff)) + ..add(DiagnosticsProperty('themeMode', themeMode)) + ..add(DiagnosticsProperty('themeColor', themeColor)) + ..add(DiagnosticsProperty('amoledBlack', amoledBlack)) + ..add(DiagnosticsProperty('blurPlaceHolders', blurPlaceHolders)) + ..add(DiagnosticsProperty('blurUpcomingEpisodes', blurUpcomingEpisodes)) + ..add(DiagnosticsProperty('selectedLocale', selectedLocale)) + ..add(DiagnosticsProperty('enableMediaKeys', enableMediaKeys)) + ..add(DiagnosticsProperty('posterSize', posterSize)) + ..add(DiagnosticsProperty('pinchPosterZoom', pinchPosterZoom)) + ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) + ..add(DiagnosticsProperty('requireWifi', requireWifi)) + ..add( + DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add( + DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) + ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) + ..add(DiagnosticsProperty('checkForUpdates', checkForUpdates)) + ..add(DiagnosticsProperty('usePosterForLibrary', usePosterForLibrary)) + ..add(DiagnosticsProperty('lastViewedUpdate', lastViewedUpdate)) + ..add(DiagnosticsProperty('libraryPageSize', libraryPageSize)) + ..add(DiagnosticsProperty('shortcuts', shortcuts)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'ClientSettingsModel(syncPath: $syncPath, position: $position, size: $size, timeOut: $timeOut, nextUpDateCutoff: $nextUpDateCutoff, themeMode: $themeMode, themeColor: $themeColor, amoledBlack: $amoledBlack, blurPlaceHolders: $blurPlaceHolders, blurUpcomingEpisodes: $blurUpcomingEpisodes, selectedLocale: $selectedLocale, enableMediaKeys: $enableMediaKeys, posterSize: $posterSize, pinchPosterZoom: $pinchPosterZoom, mouseDragSupport: $mouseDragSupport, requireWifi: $requireWifi, showAllCollectionTypes: $showAllCollectionTypes, maxConcurrentDownloads: $maxConcurrentDownloads, schemeVariant: $schemeVariant, backgroundImage: $backgroundImage, checkForUpdates: $checkForUpdates, usePosterForLibrary: $usePosterForLibrary, lastViewedUpdate: $lastViewedUpdate, libraryPageSize: $libraryPageSize, shortcuts: $shortcuts)'; } } /// @nodoc -abstract class _$$ClientSettingsModelImplCopyWith<$Res> - implements $ClientSettingsModelCopyWith<$Res> { - factory _$$ClientSettingsModelImplCopyWith(_$ClientSettingsModelImpl value, - $Res Function(_$ClientSettingsModelImpl) then) = - __$$ClientSettingsModelImplCopyWithImpl<$Res>; - @override +abstract mixin class $ClientSettingsModelCopyWith<$Res> { + factory $ClientSettingsModelCopyWith( + ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = + _$ClientSettingsModelCopyWithImpl; @useResult $Res call( {String? syncPath, @@ -275,12 +126,12 @@ abstract class _$$ClientSettingsModelImplCopyWith<$Res> } /// @nodoc -class __$$ClientSettingsModelImplCopyWithImpl<$Res> - extends _$ClientSettingsModelCopyWithImpl<$Res, _$ClientSettingsModelImpl> - implements _$$ClientSettingsModelImplCopyWith<$Res> { - __$$ClientSettingsModelImplCopyWithImpl(_$ClientSettingsModelImpl _value, - $Res Function(_$ClientSettingsModelImpl) _then) - : super(_value, _then); +class _$ClientSettingsModelCopyWithImpl<$Res> + implements $ClientSettingsModelCopyWith<$Res> { + _$ClientSettingsModelCopyWithImpl(this._self, this._then); + + final ClientSettingsModel _self; + final $Res Function(ClientSettingsModel) _then; /// Create a copy of ClientSettingsModel /// with the given fields replaced by the non-null parameter values. @@ -313,116 +164,426 @@ class __$$ClientSettingsModelImplCopyWithImpl<$Res> Object? libraryPageSize = freezed, Object? shortcuts = null, }) { - return _then(_$ClientSettingsModelImpl( + return _then(_self.copyWith( syncPath: freezed == syncPath - ? _value.syncPath + ? _self.syncPath : syncPath // ignore: cast_nullable_to_non_nullable as String?, position: null == position - ? _value.position + ? _self.position : position // ignore: cast_nullable_to_non_nullable as Vector2, size: null == size - ? _value.size + ? _self.size : size // ignore: cast_nullable_to_non_nullable as Vector2, timeOut: freezed == timeOut - ? _value.timeOut + ? _self.timeOut : timeOut // ignore: cast_nullable_to_non_nullable as Duration?, nextUpDateCutoff: freezed == nextUpDateCutoff - ? _value.nextUpDateCutoff + ? _self.nextUpDateCutoff : nextUpDateCutoff // ignore: cast_nullable_to_non_nullable as Duration?, themeMode: null == themeMode - ? _value.themeMode + ? _self.themeMode : themeMode // ignore: cast_nullable_to_non_nullable as ThemeMode, themeColor: freezed == themeColor - ? _value.themeColor + ? _self.themeColor : themeColor // ignore: cast_nullable_to_non_nullable as ColorThemes?, amoledBlack: null == amoledBlack - ? _value.amoledBlack + ? _self.amoledBlack : amoledBlack // ignore: cast_nullable_to_non_nullable as bool, blurPlaceHolders: null == blurPlaceHolders - ? _value.blurPlaceHolders + ? _self.blurPlaceHolders : blurPlaceHolders // ignore: cast_nullable_to_non_nullable as bool, blurUpcomingEpisodes: null == blurUpcomingEpisodes - ? _value.blurUpcomingEpisodes + ? _self.blurUpcomingEpisodes : blurUpcomingEpisodes // ignore: cast_nullable_to_non_nullable as bool, selectedLocale: freezed == selectedLocale - ? _value.selectedLocale + ? _self.selectedLocale : selectedLocale // ignore: cast_nullable_to_non_nullable as Locale?, enableMediaKeys: null == enableMediaKeys - ? _value.enableMediaKeys + ? _self.enableMediaKeys : enableMediaKeys // ignore: cast_nullable_to_non_nullable as bool, posterSize: null == posterSize - ? _value.posterSize + ? _self.posterSize : posterSize // ignore: cast_nullable_to_non_nullable as double, pinchPosterZoom: null == pinchPosterZoom - ? _value.pinchPosterZoom + ? _self.pinchPosterZoom : pinchPosterZoom // ignore: cast_nullable_to_non_nullable as bool, mouseDragSupport: null == mouseDragSupport - ? _value.mouseDragSupport + ? _self.mouseDragSupport : mouseDragSupport // ignore: cast_nullable_to_non_nullable as bool, requireWifi: null == requireWifi - ? _value.requireWifi + ? _self.requireWifi : requireWifi // ignore: cast_nullable_to_non_nullable as bool, showAllCollectionTypes: null == showAllCollectionTypes - ? _value.showAllCollectionTypes + ? _self.showAllCollectionTypes : showAllCollectionTypes // ignore: cast_nullable_to_non_nullable as bool, maxConcurrentDownloads: null == maxConcurrentDownloads - ? _value.maxConcurrentDownloads + ? _self.maxConcurrentDownloads : maxConcurrentDownloads // ignore: cast_nullable_to_non_nullable as int, schemeVariant: null == schemeVariant - ? _value.schemeVariant + ? _self.schemeVariant : schemeVariant // ignore: cast_nullable_to_non_nullable as DynamicSchemeVariant, backgroundImage: null == backgroundImage - ? _value.backgroundImage + ? _self.backgroundImage : backgroundImage // ignore: cast_nullable_to_non_nullable as BackgroundType, checkForUpdates: null == checkForUpdates - ? _value.checkForUpdates + ? _self.checkForUpdates : checkForUpdates // ignore: cast_nullable_to_non_nullable as bool, usePosterForLibrary: null == usePosterForLibrary - ? _value.usePosterForLibrary + ? _self.usePosterForLibrary : usePosterForLibrary // ignore: cast_nullable_to_non_nullable as bool, lastViewedUpdate: freezed == lastViewedUpdate - ? _value.lastViewedUpdate + ? _self.lastViewedUpdate : lastViewedUpdate // ignore: cast_nullable_to_non_nullable as String?, libraryPageSize: freezed == libraryPageSize - ? _value.libraryPageSize + ? _self.libraryPageSize : libraryPageSize // ignore: cast_nullable_to_non_nullable as int?, shortcuts: null == shortcuts - ? _value._shortcuts + ? _self.shortcuts : shortcuts // ignore: cast_nullable_to_non_nullable as Map, )); } } +/// Adds pattern-matching-related methods to [ClientSettingsModel]. +extension ClientSettingsModelPatterns on ClientSettingsModel { + /// 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(_ClientSettingsModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ClientSettingsModel() 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(_ClientSettingsModel value) $default, + ) { + final _that = this; + switch (_that) { + case _ClientSettingsModel(): + 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(_ClientSettingsModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _ClientSettingsModel() 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? syncPath, + Vector2 position, + Vector2 size, + Duration? timeOut, + Duration? nextUpDateCutoff, + ThemeMode themeMode, + ColorThemes? themeColor, + bool amoledBlack, + bool blurPlaceHolders, + bool blurUpcomingEpisodes, + @LocaleConvert() Locale? selectedLocale, + bool enableMediaKeys, + double posterSize, + bool pinchPosterZoom, + bool mouseDragSupport, + bool requireWifi, + bool showAllCollectionTypes, + int maxConcurrentDownloads, + DynamicSchemeVariant schemeVariant, + BackgroundType backgroundImage, + bool checkForUpdates, + bool usePosterForLibrary, + String? lastViewedUpdate, + int? libraryPageSize, + Map shortcuts)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ClientSettingsModel() when $default != null: + return $default( + _that.syncPath, + _that.position, + _that.size, + _that.timeOut, + _that.nextUpDateCutoff, + _that.themeMode, + _that.themeColor, + _that.amoledBlack, + _that.blurPlaceHolders, + _that.blurUpcomingEpisodes, + _that.selectedLocale, + _that.enableMediaKeys, + _that.posterSize, + _that.pinchPosterZoom, + _that.mouseDragSupport, + _that.requireWifi, + _that.showAllCollectionTypes, + _that.maxConcurrentDownloads, + _that.schemeVariant, + _that.backgroundImage, + _that.checkForUpdates, + _that.usePosterForLibrary, + _that.lastViewedUpdate, + _that.libraryPageSize, + _that.shortcuts); + 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? syncPath, + Vector2 position, + Vector2 size, + Duration? timeOut, + Duration? nextUpDateCutoff, + ThemeMode themeMode, + ColorThemes? themeColor, + bool amoledBlack, + bool blurPlaceHolders, + bool blurUpcomingEpisodes, + @LocaleConvert() Locale? selectedLocale, + bool enableMediaKeys, + double posterSize, + bool pinchPosterZoom, + bool mouseDragSupport, + bool requireWifi, + bool showAllCollectionTypes, + int maxConcurrentDownloads, + DynamicSchemeVariant schemeVariant, + BackgroundType backgroundImage, + bool checkForUpdates, + bool usePosterForLibrary, + String? lastViewedUpdate, + int? libraryPageSize, + Map shortcuts) + $default, + ) { + final _that = this; + switch (_that) { + case _ClientSettingsModel(): + return $default( + _that.syncPath, + _that.position, + _that.size, + _that.timeOut, + _that.nextUpDateCutoff, + _that.themeMode, + _that.themeColor, + _that.amoledBlack, + _that.blurPlaceHolders, + _that.blurUpcomingEpisodes, + _that.selectedLocale, + _that.enableMediaKeys, + _that.posterSize, + _that.pinchPosterZoom, + _that.mouseDragSupport, + _that.requireWifi, + _that.showAllCollectionTypes, + _that.maxConcurrentDownloads, + _that.schemeVariant, + _that.backgroundImage, + _that.checkForUpdates, + _that.usePosterForLibrary, + _that.lastViewedUpdate, + _that.libraryPageSize, + _that.shortcuts); + 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? syncPath, + Vector2 position, + Vector2 size, + Duration? timeOut, + Duration? nextUpDateCutoff, + ThemeMode themeMode, + ColorThemes? themeColor, + bool amoledBlack, + bool blurPlaceHolders, + bool blurUpcomingEpisodes, + @LocaleConvert() Locale? selectedLocale, + bool enableMediaKeys, + double posterSize, + bool pinchPosterZoom, + bool mouseDragSupport, + bool requireWifi, + bool showAllCollectionTypes, + int maxConcurrentDownloads, + DynamicSchemeVariant schemeVariant, + BackgroundType backgroundImage, + bool checkForUpdates, + bool usePosterForLibrary, + String? lastViewedUpdate, + int? libraryPageSize, + Map shortcuts)? + $default, + ) { + final _that = this; + switch (_that) { + case _ClientSettingsModel() when $default != null: + return $default( + _that.syncPath, + _that.position, + _that.size, + _that.timeOut, + _that.nextUpDateCutoff, + _that.themeMode, + _that.themeColor, + _that.amoledBlack, + _that.blurPlaceHolders, + _that.blurUpcomingEpisodes, + _that.selectedLocale, + _that.enableMediaKeys, + _that.posterSize, + _that.pinchPosterZoom, + _that.mouseDragSupport, + _that.requireWifi, + _that.showAllCollectionTypes, + _that.maxConcurrentDownloads, + _that.schemeVariant, + _that.backgroundImage, + _that.checkForUpdates, + _that.usePosterForLibrary, + _that.lastViewedUpdate, + _that.libraryPageSize, + _that.shortcuts); + case _: + return null; + } + } +} + /// @nodoc @JsonSerializable() -class _$ClientSettingsModelImpl extends _ClientSettingsModel +class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMixin { - _$ClientSettingsModelImpl( + _ClientSettingsModel( {this.syncPath, this.position = const Vector2(x: 0, y: 0), this.size = const Vector2(x: 1280, y: 720), @@ -450,9 +611,8 @@ class _$ClientSettingsModelImpl extends _ClientSettingsModel final Map shortcuts = const {}}) : _shortcuts = shortcuts, super._(); - - factory _$ClientSettingsModelImpl.fromJson(Map json) => - _$$ClientSettingsModelImplFromJson(json); + factory _ClientSettingsModel.fromJson(Map json) => + _$ClientSettingsModelFromJson(json); @override final String? syncPath; @@ -530,14 +690,24 @@ class _$ClientSettingsModelImpl extends _ClientSettingsModel return EqualUnmodifiableMapView(_shortcuts); } + /// Create a copy of ClientSettingsModel + /// with the given fields replaced by the non-null parameter values. @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'ClientSettingsModel(syncPath: $syncPath, position: $position, size: $size, timeOut: $timeOut, nextUpDateCutoff: $nextUpDateCutoff, themeMode: $themeMode, themeColor: $themeColor, amoledBlack: $amoledBlack, blurPlaceHolders: $blurPlaceHolders, blurUpcomingEpisodes: $blurUpcomingEpisodes, selectedLocale: $selectedLocale, enableMediaKeys: $enableMediaKeys, posterSize: $posterSize, pinchPosterZoom: $pinchPosterZoom, mouseDragSupport: $mouseDragSupport, requireWifi: $requireWifi, showAllCollectionTypes: $showAllCollectionTypes, maxConcurrentDownloads: $maxConcurrentDownloads, schemeVariant: $schemeVariant, backgroundImage: $backgroundImage, checkForUpdates: $checkForUpdates, usePosterForLibrary: $usePosterForLibrary, lastViewedUpdate: $lastViewedUpdate, libraryPageSize: $libraryPageSize, shortcuts: $shortcuts)'; + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$ClientSettingsModelCopyWith<_ClientSettingsModel> get copyWith => + __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>( + this, _$identity); + + @override + Map toJson() { + return _$ClientSettingsModelToJson( + this, + ); } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'ClientSettingsModel')) ..add(DiagnosticsProperty('syncPath', syncPath)) @@ -569,112 +739,190 @@ class _$ClientSettingsModelImpl extends _ClientSettingsModel ..add(DiagnosticsProperty('shortcuts', shortcuts)); } - /// Create a copy of ClientSettingsModel - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override - @pragma('vm:prefer-inline') - _$$ClientSettingsModelImplCopyWith<_$ClientSettingsModelImpl> get copyWith => - __$$ClientSettingsModelImplCopyWithImpl<_$ClientSettingsModelImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ClientSettingsModelImplToJson( - this, - ); + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'ClientSettingsModel(syncPath: $syncPath, position: $position, size: $size, timeOut: $timeOut, nextUpDateCutoff: $nextUpDateCutoff, themeMode: $themeMode, themeColor: $themeColor, amoledBlack: $amoledBlack, blurPlaceHolders: $blurPlaceHolders, blurUpcomingEpisodes: $blurUpcomingEpisodes, selectedLocale: $selectedLocale, enableMediaKeys: $enableMediaKeys, posterSize: $posterSize, pinchPosterZoom: $pinchPosterZoom, mouseDragSupport: $mouseDragSupport, requireWifi: $requireWifi, showAllCollectionTypes: $showAllCollectionTypes, maxConcurrentDownloads: $maxConcurrentDownloads, schemeVariant: $schemeVariant, backgroundImage: $backgroundImage, checkForUpdates: $checkForUpdates, usePosterForLibrary: $usePosterForLibrary, lastViewedUpdate: $lastViewedUpdate, libraryPageSize: $libraryPageSize, shortcuts: $shortcuts)'; } } -abstract class _ClientSettingsModel extends ClientSettingsModel { - factory _ClientSettingsModel( - {final String? syncPath, - final Vector2 position, - final Vector2 size, - final Duration? timeOut, - final Duration? nextUpDateCutoff, - final ThemeMode themeMode, - final ColorThemes? themeColor, - final bool amoledBlack, - final bool blurPlaceHolders, - final bool blurUpcomingEpisodes, - @LocaleConvert() final Locale? selectedLocale, - final bool enableMediaKeys, - final double posterSize, - final bool pinchPosterZoom, - final bool mouseDragSupport, - final bool requireWifi, - final bool showAllCollectionTypes, - final int maxConcurrentDownloads, - final DynamicSchemeVariant schemeVariant, - final BackgroundType backgroundImage, - final bool checkForUpdates, - final bool usePosterForLibrary, - final String? lastViewedUpdate, - final int? libraryPageSize, - final Map shortcuts}) = - _$ClientSettingsModelImpl; - _ClientSettingsModel._() : super._(); +/// @nodoc +abstract mixin class _$ClientSettingsModelCopyWith<$Res> + implements $ClientSettingsModelCopyWith<$Res> { + factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, + $Res Function(_ClientSettingsModel) _then) = + __$ClientSettingsModelCopyWithImpl; + @override + @useResult + $Res call( + {String? syncPath, + Vector2 position, + Vector2 size, + Duration? timeOut, + Duration? nextUpDateCutoff, + ThemeMode themeMode, + ColorThemes? themeColor, + bool amoledBlack, + bool blurPlaceHolders, + bool blurUpcomingEpisodes, + @LocaleConvert() Locale? selectedLocale, + bool enableMediaKeys, + double posterSize, + bool pinchPosterZoom, + bool mouseDragSupport, + bool requireWifi, + bool showAllCollectionTypes, + int maxConcurrentDownloads, + DynamicSchemeVariant schemeVariant, + BackgroundType backgroundImage, + bool checkForUpdates, + bool usePosterForLibrary, + String? lastViewedUpdate, + int? libraryPageSize, + Map shortcuts}); +} - factory _ClientSettingsModel.fromJson(Map json) = - _$ClientSettingsModelImpl.fromJson; +/// @nodoc +class __$ClientSettingsModelCopyWithImpl<$Res> + implements _$ClientSettingsModelCopyWith<$Res> { + __$ClientSettingsModelCopyWithImpl(this._self, this._then); - @override - String? get syncPath; - @override - Vector2 get position; - @override - Vector2 get size; - @override - Duration? get timeOut; - @override - Duration? get nextUpDateCutoff; - @override - ThemeMode get themeMode; - @override - ColorThemes? get themeColor; - @override - bool get amoledBlack; - @override - bool get blurPlaceHolders; - @override - bool get blurUpcomingEpisodes; - @override - @LocaleConvert() - Locale? get selectedLocale; - @override - bool get enableMediaKeys; - @override - double get posterSize; - @override - bool get pinchPosterZoom; - @override - bool get mouseDragSupport; - @override - bool get requireWifi; - @override - bool get showAllCollectionTypes; - @override - int get maxConcurrentDownloads; - @override - DynamicSchemeVariant get schemeVariant; - @override - BackgroundType get backgroundImage; - @override - bool get checkForUpdates; - @override - bool get usePosterForLibrary; - @override - String? get lastViewedUpdate; - @override - int? get libraryPageSize; - @override - Map get shortcuts; + final _ClientSettingsModel _self; + final $Res Function(_ClientSettingsModel) _then; /// Create a copy of ClientSettingsModel /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ClientSettingsModelImplCopyWith<_$ClientSettingsModelImpl> get copyWith => - throw _privateConstructorUsedError; + @pragma('vm:prefer-inline') + $Res call({ + Object? syncPath = freezed, + Object? position = null, + Object? size = null, + Object? timeOut = freezed, + Object? nextUpDateCutoff = freezed, + Object? themeMode = null, + Object? themeColor = freezed, + Object? amoledBlack = null, + Object? blurPlaceHolders = null, + Object? blurUpcomingEpisodes = null, + Object? selectedLocale = freezed, + Object? enableMediaKeys = null, + Object? posterSize = null, + Object? pinchPosterZoom = null, + Object? mouseDragSupport = null, + Object? requireWifi = null, + Object? showAllCollectionTypes = null, + Object? maxConcurrentDownloads = null, + Object? schemeVariant = null, + Object? backgroundImage = null, + Object? checkForUpdates = null, + Object? usePosterForLibrary = null, + Object? lastViewedUpdate = freezed, + Object? libraryPageSize = freezed, + Object? shortcuts = null, + }) { + return _then(_ClientSettingsModel( + syncPath: freezed == syncPath + ? _self.syncPath + : syncPath // ignore: cast_nullable_to_non_nullable + as String?, + position: null == position + ? _self.position + : position // ignore: cast_nullable_to_non_nullable + as Vector2, + size: null == size + ? _self.size + : size // ignore: cast_nullable_to_non_nullable + as Vector2, + timeOut: freezed == timeOut + ? _self.timeOut + : timeOut // ignore: cast_nullable_to_non_nullable + as Duration?, + nextUpDateCutoff: freezed == nextUpDateCutoff + ? _self.nextUpDateCutoff + : nextUpDateCutoff // ignore: cast_nullable_to_non_nullable + as Duration?, + themeMode: null == themeMode + ? _self.themeMode + : themeMode // ignore: cast_nullable_to_non_nullable + as ThemeMode, + themeColor: freezed == themeColor + ? _self.themeColor + : themeColor // ignore: cast_nullable_to_non_nullable + as ColorThemes?, + amoledBlack: null == amoledBlack + ? _self.amoledBlack + : amoledBlack // ignore: cast_nullable_to_non_nullable + as bool, + blurPlaceHolders: null == blurPlaceHolders + ? _self.blurPlaceHolders + : blurPlaceHolders // ignore: cast_nullable_to_non_nullable + as bool, + blurUpcomingEpisodes: null == blurUpcomingEpisodes + ? _self.blurUpcomingEpisodes + : blurUpcomingEpisodes // ignore: cast_nullable_to_non_nullable + as bool, + selectedLocale: freezed == selectedLocale + ? _self.selectedLocale + : selectedLocale // ignore: cast_nullable_to_non_nullable + as Locale?, + enableMediaKeys: null == enableMediaKeys + ? _self.enableMediaKeys + : enableMediaKeys // ignore: cast_nullable_to_non_nullable + as bool, + posterSize: null == posterSize + ? _self.posterSize + : posterSize // ignore: cast_nullable_to_non_nullable + as double, + pinchPosterZoom: null == pinchPosterZoom + ? _self.pinchPosterZoom + : pinchPosterZoom // ignore: cast_nullable_to_non_nullable + as bool, + mouseDragSupport: null == mouseDragSupport + ? _self.mouseDragSupport + : mouseDragSupport // ignore: cast_nullable_to_non_nullable + as bool, + requireWifi: null == requireWifi + ? _self.requireWifi + : requireWifi // ignore: cast_nullable_to_non_nullable + as bool, + showAllCollectionTypes: null == showAllCollectionTypes + ? _self.showAllCollectionTypes + : showAllCollectionTypes // ignore: cast_nullable_to_non_nullable + as bool, + maxConcurrentDownloads: null == maxConcurrentDownloads + ? _self.maxConcurrentDownloads + : maxConcurrentDownloads // ignore: cast_nullable_to_non_nullable + as int, + schemeVariant: null == schemeVariant + ? _self.schemeVariant + : schemeVariant // ignore: cast_nullable_to_non_nullable + as DynamicSchemeVariant, + backgroundImage: null == backgroundImage + ? _self.backgroundImage + : backgroundImage // ignore: cast_nullable_to_non_nullable + as BackgroundType, + checkForUpdates: null == checkForUpdates + ? _self.checkForUpdates + : checkForUpdates // ignore: cast_nullable_to_non_nullable + as bool, + usePosterForLibrary: null == usePosterForLibrary + ? _self.usePosterForLibrary + : usePosterForLibrary // ignore: cast_nullable_to_non_nullable + as bool, + lastViewedUpdate: freezed == lastViewedUpdate + ? _self.lastViewedUpdate + : lastViewedUpdate // ignore: cast_nullable_to_non_nullable + as String?, + libraryPageSize: freezed == libraryPageSize + ? _self.libraryPageSize + : libraryPageSize // ignore: cast_nullable_to_non_nullable + as int?, + shortcuts: null == shortcuts + ? _self._shortcuts + : shortcuts // ignore: cast_nullable_to_non_nullable + as Map, + )); + } } + +// dart format on diff --git a/lib/models/settings/client_settings_model.g.dart b/lib/models/settings/client_settings_model.g.dart index e71b796..7c8cb4e 100644 --- a/lib/models/settings/client_settings_model.g.dart +++ b/lib/models/settings/client_settings_model.g.dart @@ -6,9 +6,8 @@ part of 'client_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$ClientSettingsModelImpl _$$ClientSettingsModelImplFromJson( - Map json) => - _$ClientSettingsModelImpl( +_ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => + _ClientSettingsModel( syncPath: json['syncPath'] as String?, position: json['position'] == null ? const Vector2(x: 0, y: 0) @@ -55,8 +54,8 @@ _$ClientSettingsModelImpl _$$ClientSettingsModelImplFromJson( const {}, ); -Map _$$ClientSettingsModelImplToJson( - _$ClientSettingsModelImpl instance) => +Map _$ClientSettingsModelToJson( + _ClientSettingsModel instance) => { 'syncPath': instance.syncPath, 'position': instance.position, diff --git a/lib/models/settings/home_settings_model.dart b/lib/models/settings/home_settings_model.dart index 790a6b4..0f2de4b 100644 --- a/lib/models/settings/home_settings_model.dart +++ b/lib/models/settings/home_settings_model.dart @@ -9,7 +9,7 @@ part 'home_settings_model.freezed.dart'; part 'home_settings_model.g.dart'; @Freezed(copyWith: true) -class HomeSettingsModel with _$HomeSettingsModel { +abstract class HomeSettingsModel with _$HomeSettingsModel { factory HomeSettingsModel({ @Default({...LayoutMode.values}) Set screenLayouts, @Default({...ViewSize.values}) Set layoutStates, diff --git a/lib/models/settings/home_settings_model.freezed.dart b/lib/models/settings/home_settings_model.freezed.dart index 35666b9..e94b30b 100644 --- a/lib/models/settings/home_settings_model.freezed.dart +++ b/lib/models/settings/home_settings_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,101 +9,39 @@ part of 'home_settings_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -HomeSettingsModel _$HomeSettingsModelFromJson(Map json) { - return _HomeSettingsModel.fromJson(json); -} - /// @nodoc mixin _$HomeSettingsModel { - Set get screenLayouts => throw _privateConstructorUsedError; - Set get layoutStates => throw _privateConstructorUsedError; - HomeBanner get homeBanner => throw _privateConstructorUsedError; - HomeCarouselSettings get carouselSettings => - throw _privateConstructorUsedError; - HomeNextUp get nextUp => throw _privateConstructorUsedError; - - /// Serializes this HomeSettingsModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + Set get screenLayouts; + Set get layoutStates; + HomeBanner get homeBanner; + HomeCarouselSettings get carouselSettings; + HomeNextUp get nextUp; /// Create a copy of HomeSettingsModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $HomeSettingsModelCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $HomeSettingsModelCopyWith<$Res> { - factory $HomeSettingsModelCopyWith( - HomeSettingsModel value, $Res Function(HomeSettingsModel) then) = - _$HomeSettingsModelCopyWithImpl<$Res, HomeSettingsModel>; - @useResult - $Res call( - {Set screenLayouts, - Set layoutStates, - HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, - HomeNextUp nextUp}); -} - -/// @nodoc -class _$HomeSettingsModelCopyWithImpl<$Res, $Val extends HomeSettingsModel> - implements $HomeSettingsModelCopyWith<$Res> { - _$HomeSettingsModelCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of HomeSettingsModel - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $HomeSettingsModelCopyWith get copyWith => + _$HomeSettingsModelCopyWithImpl( + this as HomeSettingsModel, _$identity); + + /// Serializes this HomeSettingsModel to a JSON map. + Map toJson(); + @override - $Res call({ - Object? screenLayouts = null, - Object? layoutStates = null, - Object? homeBanner = null, - Object? carouselSettings = null, - Object? nextUp = null, - }) { - return _then(_value.copyWith( - screenLayouts: null == screenLayouts - ? _value.screenLayouts - : screenLayouts // ignore: cast_nullable_to_non_nullable - as Set, - layoutStates: null == layoutStates - ? _value.layoutStates - : layoutStates // ignore: cast_nullable_to_non_nullable - as Set, - homeBanner: null == homeBanner - ? _value.homeBanner - : homeBanner // ignore: cast_nullable_to_non_nullable - as HomeBanner, - carouselSettings: null == carouselSettings - ? _value.carouselSettings - : carouselSettings // ignore: cast_nullable_to_non_nullable - as HomeCarouselSettings, - nextUp: null == nextUp - ? _value.nextUp - : nextUp // ignore: cast_nullable_to_non_nullable - as HomeNextUp, - ) as $Val); + String toString() { + return 'HomeSettingsModel(screenLayouts: $screenLayouts, layoutStates: $layoutStates, homeBanner: $homeBanner, carouselSettings: $carouselSettings, nextUp: $nextUp)'; } } /// @nodoc -abstract class _$$HomeSettingsModelImplCopyWith<$Res> - implements $HomeSettingsModelCopyWith<$Res> { - factory _$$HomeSettingsModelImplCopyWith(_$HomeSettingsModelImpl value, - $Res Function(_$HomeSettingsModelImpl) then) = - __$$HomeSettingsModelImplCopyWithImpl<$Res>; - @override +abstract mixin class $HomeSettingsModelCopyWith<$Res> { + factory $HomeSettingsModelCopyWith( + HomeSettingsModel value, $Res Function(HomeSettingsModel) _then) = + _$HomeSettingsModelCopyWithImpl; @useResult $Res call( {Set screenLayouts, @@ -114,12 +52,12 @@ abstract class _$$HomeSettingsModelImplCopyWith<$Res> } /// @nodoc -class __$$HomeSettingsModelImplCopyWithImpl<$Res> - extends _$HomeSettingsModelCopyWithImpl<$Res, _$HomeSettingsModelImpl> - implements _$$HomeSettingsModelImplCopyWith<$Res> { - __$$HomeSettingsModelImplCopyWithImpl(_$HomeSettingsModelImpl _value, - $Res Function(_$HomeSettingsModelImpl) _then) - : super(_value, _then); +class _$HomeSettingsModelCopyWithImpl<$Res> + implements $HomeSettingsModelCopyWith<$Res> { + _$HomeSettingsModelCopyWithImpl(this._self, this._then); + + final HomeSettingsModel _self; + final $Res Function(HomeSettingsModel) _then; /// Create a copy of HomeSettingsModel /// with the given fields replaced by the non-null parameter values. @@ -132,35 +70,213 @@ class __$$HomeSettingsModelImplCopyWithImpl<$Res> Object? carouselSettings = null, Object? nextUp = null, }) { - return _then(_$HomeSettingsModelImpl( + return _then(_self.copyWith( screenLayouts: null == screenLayouts - ? _value._screenLayouts + ? _self.screenLayouts : screenLayouts // ignore: cast_nullable_to_non_nullable as Set, layoutStates: null == layoutStates - ? _value._layoutStates + ? _self.layoutStates : layoutStates // ignore: cast_nullable_to_non_nullable as Set, homeBanner: null == homeBanner - ? _value.homeBanner + ? _self.homeBanner : homeBanner // ignore: cast_nullable_to_non_nullable as HomeBanner, carouselSettings: null == carouselSettings - ? _value.carouselSettings + ? _self.carouselSettings : carouselSettings // ignore: cast_nullable_to_non_nullable as HomeCarouselSettings, nextUp: null == nextUp - ? _value.nextUp + ? _self.nextUp : nextUp // ignore: cast_nullable_to_non_nullable as HomeNextUp, )); } } +/// Adds pattern-matching-related methods to [HomeSettingsModel]. +extension HomeSettingsModelPatterns on HomeSettingsModel { + /// 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(_HomeSettingsModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _HomeSettingsModel() 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(_HomeSettingsModel value) $default, + ) { + final _that = this; + switch (_that) { + case _HomeSettingsModel(): + 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(_HomeSettingsModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _HomeSettingsModel() 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( + 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); + 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( + 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); + 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( + 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); + case _: + return null; + } + } +} + /// @nodoc @JsonSerializable() -class _$HomeSettingsModelImpl implements _HomeSettingsModel { - _$HomeSettingsModelImpl( +class _HomeSettingsModel implements HomeSettingsModel { + _HomeSettingsModel( {final Set screenLayouts = const {...LayoutMode.values}, final Set layoutStates = const {...ViewSize.values}, this.homeBanner = HomeBanner.carousel, @@ -168,9 +284,8 @@ class _$HomeSettingsModelImpl implements _HomeSettingsModel { this.nextUp = HomeNextUp.separate}) : _screenLayouts = screenLayouts, _layoutStates = layoutStates; - - factory _$HomeSettingsModelImpl.fromJson(Map json) => - _$$HomeSettingsModelImplFromJson(json); + factory _HomeSettingsModel.fromJson(Map json) => + _$HomeSettingsModelFromJson(json); final Set _screenLayouts; @override @@ -200,54 +315,85 @@ class _$HomeSettingsModelImpl implements _HomeSettingsModel { @JsonKey() final HomeNextUp nextUp; + /// Create a copy of HomeSettingsModel + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$HomeSettingsModelCopyWith<_HomeSettingsModel> get copyWith => + __$HomeSettingsModelCopyWithImpl<_HomeSettingsModel>(this, _$identity); + + @override + Map toJson() { + return _$HomeSettingsModelToJson( + this, + ); + } + @override String toString() { return 'HomeSettingsModel(screenLayouts: $screenLayouts, layoutStates: $layoutStates, homeBanner: $homeBanner, carouselSettings: $carouselSettings, nextUp: $nextUp)'; } +} + +/// @nodoc +abstract mixin class _$HomeSettingsModelCopyWith<$Res> + implements $HomeSettingsModelCopyWith<$Res> { + factory _$HomeSettingsModelCopyWith( + _HomeSettingsModel value, $Res Function(_HomeSettingsModel) _then) = + __$HomeSettingsModelCopyWithImpl; + @override + @useResult + $Res call( + {Set screenLayouts, + Set layoutStates, + HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, + HomeNextUp nextUp}); +} + +/// @nodoc +class __$HomeSettingsModelCopyWithImpl<$Res> + implements _$HomeSettingsModelCopyWith<$Res> { + __$HomeSettingsModelCopyWithImpl(this._self, this._then); + + final _HomeSettingsModel _self; + final $Res Function(_HomeSettingsModel) _then; /// Create a copy of HomeSettingsModel /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$HomeSettingsModelImplCopyWith<_$HomeSettingsModelImpl> get copyWith => - __$$HomeSettingsModelImplCopyWithImpl<_$HomeSettingsModelImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$HomeSettingsModelImplToJson( - this, - ); + $Res call({ + Object? screenLayouts = null, + Object? layoutStates = null, + Object? homeBanner = null, + Object? carouselSettings = null, + Object? nextUp = null, + }) { + return _then(_HomeSettingsModel( + screenLayouts: null == screenLayouts + ? _self._screenLayouts + : screenLayouts // ignore: cast_nullable_to_non_nullable + as Set, + layoutStates: null == layoutStates + ? _self._layoutStates + : layoutStates // ignore: cast_nullable_to_non_nullable + as Set, + homeBanner: null == homeBanner + ? _self.homeBanner + : homeBanner // ignore: cast_nullable_to_non_nullable + as HomeBanner, + carouselSettings: null == carouselSettings + ? _self.carouselSettings + : carouselSettings // ignore: cast_nullable_to_non_nullable + as HomeCarouselSettings, + nextUp: null == nextUp + ? _self.nextUp + : nextUp // ignore: cast_nullable_to_non_nullable + as HomeNextUp, + )); } } -abstract class _HomeSettingsModel implements HomeSettingsModel { - factory _HomeSettingsModel( - {final Set screenLayouts, - final Set layoutStates, - final HomeBanner homeBanner, - final HomeCarouselSettings carouselSettings, - final HomeNextUp nextUp}) = _$HomeSettingsModelImpl; - - factory _HomeSettingsModel.fromJson(Map json) = - _$HomeSettingsModelImpl.fromJson; - - @override - Set get screenLayouts; - @override - Set get layoutStates; - @override - HomeBanner get homeBanner; - @override - HomeCarouselSettings get carouselSettings; - @override - HomeNextUp get nextUp; - - /// Create a copy of HomeSettingsModel - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$HomeSettingsModelImplCopyWith<_$HomeSettingsModelImpl> get copyWith => - throw _privateConstructorUsedError; -} +// dart format on diff --git a/lib/models/settings/home_settings_model.g.dart b/lib/models/settings/home_settings_model.g.dart index d6d3041..6307c72 100644 --- a/lib/models/settings/home_settings_model.g.dart +++ b/lib/models/settings/home_settings_model.g.dart @@ -6,9 +6,8 @@ part of 'home_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$HomeSettingsModelImpl _$$HomeSettingsModelImplFromJson( - Map json) => - _$HomeSettingsModelImpl( +_HomeSettingsModel _$HomeSettingsModelFromJson(Map json) => + _HomeSettingsModel( screenLayouts: (json['screenLayouts'] as List?) ?.map((e) => $enumDecode(_$LayoutModeEnumMap, e)) .toSet() ?? @@ -27,8 +26,7 @@ _$HomeSettingsModelImpl _$$HomeSettingsModelImplFromJson( HomeNextUp.separate, ); -Map _$$HomeSettingsModelImplToJson( - _$HomeSettingsModelImpl instance) => +Map _$HomeSettingsModelToJson(_HomeSettingsModel instance) => { 'screenLayouts': instance.screenLayouts.map((e) => _$LayoutModeEnumMap[e]!).toList(), diff --git a/lib/models/settings/key_combinations.dart b/lib/models/settings/key_combinations.dart index 8bcd5b7..a21b23e 100644 --- a/lib/models/settings/key_combinations.dart +++ b/lib/models/settings/key_combinations.dart @@ -8,7 +8,7 @@ part 'key_combinations.freezed.dart'; part 'key_combinations.g.dart'; @Freezed(toJson: true, fromJson: true, copyWith: true) -class KeyCombination with _$KeyCombination { +abstract class KeyCombination with _$KeyCombination { const KeyCombination._(); factory KeyCombination({ diff --git a/lib/models/settings/key_combinations.freezed.dart b/lib/models/settings/key_combinations.freezed.dart index 718b348..48ae91d 100644 --- a/lib/models/settings/key_combinations.freezed.dart +++ b/lib/models/settings/key_combinations.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,97 +9,42 @@ part of 'key_combinations.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -KeyCombination _$KeyCombinationFromJson(Map json) { - return _KeyCombination.fromJson(json); -} - /// @nodoc mixin _$KeyCombination { @LogicalKeyboardSerializer() - LogicalKeyboardKey? get key => throw _privateConstructorUsedError; + LogicalKeyboardKey? get key; @LogicalKeyboardSerializer() - LogicalKeyboardKey? get modifier => throw _privateConstructorUsedError; + LogicalKeyboardKey? get modifier; @LogicalKeyboardSerializer() - LogicalKeyboardKey? get altKey => throw _privateConstructorUsedError; + LogicalKeyboardKey? get altKey; @LogicalKeyboardSerializer() - LogicalKeyboardKey? get altModifier => throw _privateConstructorUsedError; - - /// Serializes this KeyCombination to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + LogicalKeyboardKey? get altModifier; /// Create a copy of KeyCombination /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $KeyCombinationCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $KeyCombinationCopyWith<$Res> { - factory $KeyCombinationCopyWith( - KeyCombination value, $Res Function(KeyCombination) then) = - _$KeyCombinationCopyWithImpl<$Res, KeyCombination>; - @useResult - $Res call( - {@LogicalKeyboardSerializer() LogicalKeyboardKey? key, - @LogicalKeyboardSerializer() LogicalKeyboardKey? modifier, - @LogicalKeyboardSerializer() LogicalKeyboardKey? altKey, - @LogicalKeyboardSerializer() LogicalKeyboardKey? altModifier}); -} - -/// @nodoc -class _$KeyCombinationCopyWithImpl<$Res, $Val extends KeyCombination> - implements $KeyCombinationCopyWith<$Res> { - _$KeyCombinationCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of KeyCombination - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $KeyCombinationCopyWith get copyWith => + _$KeyCombinationCopyWithImpl( + this as KeyCombination, _$identity); + + /// Serializes this KeyCombination to a JSON map. + Map toJson(); + @override - $Res call({ - Object? key = freezed, - Object? modifier = freezed, - Object? altKey = freezed, - Object? altModifier = freezed, - }) { - return _then(_value.copyWith( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as LogicalKeyboardKey?, - modifier: freezed == modifier - ? _value.modifier - : modifier // ignore: cast_nullable_to_non_nullable - as LogicalKeyboardKey?, - altKey: freezed == altKey - ? _value.altKey - : altKey // ignore: cast_nullable_to_non_nullable - as LogicalKeyboardKey?, - altModifier: freezed == altModifier - ? _value.altModifier - : altModifier // ignore: cast_nullable_to_non_nullable - as LogicalKeyboardKey?, - ) as $Val); + String toString() { + return 'KeyCombination(key: $key, modifier: $modifier, altKey: $altKey, altModifier: $altModifier)'; } } /// @nodoc -abstract class _$$KeyCombinationImplCopyWith<$Res> - implements $KeyCombinationCopyWith<$Res> { - factory _$$KeyCombinationImplCopyWith(_$KeyCombinationImpl value, - $Res Function(_$KeyCombinationImpl) then) = - __$$KeyCombinationImplCopyWithImpl<$Res>; - @override +abstract mixin class $KeyCombinationCopyWith<$Res> { + factory $KeyCombinationCopyWith( + KeyCombination value, $Res Function(KeyCombination) _then) = + _$KeyCombinationCopyWithImpl; @useResult $Res call( {@LogicalKeyboardSerializer() LogicalKeyboardKey? key, @@ -109,12 +54,12 @@ abstract class _$$KeyCombinationImplCopyWith<$Res> } /// @nodoc -class __$$KeyCombinationImplCopyWithImpl<$Res> - extends _$KeyCombinationCopyWithImpl<$Res, _$KeyCombinationImpl> - implements _$$KeyCombinationImplCopyWith<$Res> { - __$$KeyCombinationImplCopyWithImpl( - _$KeyCombinationImpl _value, $Res Function(_$KeyCombinationImpl) _then) - : super(_value, _then); +class _$KeyCombinationCopyWithImpl<$Res> + implements $KeyCombinationCopyWith<$Res> { + _$KeyCombinationCopyWithImpl(this._self, this._then); + + final KeyCombination _self; + final $Res Function(KeyCombination) _then; /// Create a copy of KeyCombination /// with the given fields replaced by the non-null parameter values. @@ -126,39 +71,213 @@ class __$$KeyCombinationImplCopyWithImpl<$Res> Object? altKey = freezed, Object? altModifier = freezed, }) { - return _then(_$KeyCombinationImpl( + return _then(_self.copyWith( key: freezed == key - ? _value.key + ? _self.key : key // ignore: cast_nullable_to_non_nullable as LogicalKeyboardKey?, modifier: freezed == modifier - ? _value.modifier + ? _self.modifier : modifier // ignore: cast_nullable_to_non_nullable as LogicalKeyboardKey?, altKey: freezed == altKey - ? _value.altKey + ? _self.altKey : altKey // ignore: cast_nullable_to_non_nullable as LogicalKeyboardKey?, altModifier: freezed == altModifier - ? _value.altModifier + ? _self.altModifier : altModifier // ignore: cast_nullable_to_non_nullable as LogicalKeyboardKey?, )); } } +/// Adds pattern-matching-related methods to [KeyCombination]. +extension KeyCombinationPatterns on KeyCombination { + /// 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(_KeyCombination value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _KeyCombination() 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(_KeyCombination value) $default, + ) { + final _that = this; + switch (_that) { + case _KeyCombination(): + 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(_KeyCombination value)? $default, + ) { + final _that = this; + switch (_that) { + case _KeyCombination() 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( + @LogicalKeyboardSerializer() LogicalKeyboardKey? key, + @LogicalKeyboardSerializer() LogicalKeyboardKey? modifier, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altKey, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altModifier)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _KeyCombination() when $default != null: + return $default( + _that.key, _that.modifier, _that.altKey, _that.altModifier); + 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( + @LogicalKeyboardSerializer() LogicalKeyboardKey? key, + @LogicalKeyboardSerializer() LogicalKeyboardKey? modifier, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altKey, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altModifier) + $default, + ) { + final _that = this; + switch (_that) { + case _KeyCombination(): + return $default( + _that.key, _that.modifier, _that.altKey, _that.altModifier); + 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( + @LogicalKeyboardSerializer() LogicalKeyboardKey? key, + @LogicalKeyboardSerializer() LogicalKeyboardKey? modifier, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altKey, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altModifier)? + $default, + ) { + final _that = this; + switch (_that) { + case _KeyCombination() when $default != null: + return $default( + _that.key, _that.modifier, _that.altKey, _that.altModifier); + case _: + return null; + } + } +} + /// @nodoc @JsonSerializable() -class _$KeyCombinationImpl extends _KeyCombination { - _$KeyCombinationImpl( +class _KeyCombination extends KeyCombination { + _KeyCombination( {@LogicalKeyboardSerializer() this.key, @LogicalKeyboardSerializer() this.modifier, @LogicalKeyboardSerializer() this.altKey, @LogicalKeyboardSerializer() this.altModifier}) : super._(); - - factory _$KeyCombinationImpl.fromJson(Map json) => - _$$KeyCombinationImplFromJson(json); + factory _KeyCombination.fromJson(Map json) => + _$KeyCombinationFromJson(json); @override @LogicalKeyboardSerializer() @@ -173,57 +292,79 @@ class _$KeyCombinationImpl extends _KeyCombination { @LogicalKeyboardSerializer() final LogicalKeyboardKey? altModifier; + /// Create a copy of KeyCombination + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$KeyCombinationCopyWith<_KeyCombination> get copyWith => + __$KeyCombinationCopyWithImpl<_KeyCombination>(this, _$identity); + + @override + Map toJson() { + return _$KeyCombinationToJson( + this, + ); + } + @override String toString() { 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) = + __$KeyCombinationCopyWithImpl; + @override + @useResult + $Res call( + {@LogicalKeyboardSerializer() LogicalKeyboardKey? key, + @LogicalKeyboardSerializer() LogicalKeyboardKey? modifier, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altKey, + @LogicalKeyboardSerializer() LogicalKeyboardKey? altModifier}); +} + +/// @nodoc +class __$KeyCombinationCopyWithImpl<$Res> + implements _$KeyCombinationCopyWith<$Res> { + __$KeyCombinationCopyWithImpl(this._self, this._then); + + final _KeyCombination _self; + final $Res Function(_KeyCombination) _then; /// Create a copy of KeyCombination /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$KeyCombinationImplCopyWith<_$KeyCombinationImpl> get copyWith => - __$$KeyCombinationImplCopyWithImpl<_$KeyCombinationImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$KeyCombinationImplToJson( - this, - ); + $Res call({ + Object? key = freezed, + Object? modifier = freezed, + Object? altKey = freezed, + Object? altModifier = freezed, + }) { + return _then(_KeyCombination( + key: freezed == key + ? _self.key + : key // ignore: cast_nullable_to_non_nullable + as LogicalKeyboardKey?, + modifier: freezed == modifier + ? _self.modifier + : modifier // ignore: cast_nullable_to_non_nullable + as LogicalKeyboardKey?, + altKey: freezed == altKey + ? _self.altKey + : altKey // ignore: cast_nullable_to_non_nullable + as LogicalKeyboardKey?, + altModifier: freezed == altModifier + ? _self.altModifier + : altModifier // ignore: cast_nullable_to_non_nullable + as LogicalKeyboardKey?, + )); } } -abstract class _KeyCombination extends KeyCombination { - factory _KeyCombination( - {@LogicalKeyboardSerializer() final LogicalKeyboardKey? key, - @LogicalKeyboardSerializer() final LogicalKeyboardKey? modifier, - @LogicalKeyboardSerializer() final LogicalKeyboardKey? altKey, - @LogicalKeyboardSerializer() final LogicalKeyboardKey? altModifier}) = - _$KeyCombinationImpl; - _KeyCombination._() : super._(); - - factory _KeyCombination.fromJson(Map json) = - _$KeyCombinationImpl.fromJson; - - @override - @LogicalKeyboardSerializer() - LogicalKeyboardKey? get key; - @override - @LogicalKeyboardSerializer() - LogicalKeyboardKey? get modifier; - @override - @LogicalKeyboardSerializer() - LogicalKeyboardKey? get altKey; - @override - @LogicalKeyboardSerializer() - LogicalKeyboardKey? get altModifier; - - /// Create a copy of KeyCombination - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$KeyCombinationImplCopyWith<_$KeyCombinationImpl> get copyWith => - throw _privateConstructorUsedError; -} +// dart format on diff --git a/lib/models/settings/key_combinations.g.dart b/lib/models/settings/key_combinations.g.dart index 2f420dd..45e5712 100644 --- a/lib/models/settings/key_combinations.g.dart +++ b/lib/models/settings/key_combinations.g.dart @@ -6,8 +6,8 @@ part of 'key_combinations.dart'; // JsonSerializableGenerator // ************************************************************************** -_$KeyCombinationImpl _$$KeyCombinationImplFromJson(Map json) => - _$KeyCombinationImpl( +_KeyCombination _$KeyCombinationFromJson(Map json) => + _KeyCombination( key: _$JsonConverterFromJson( json['key'], const LogicalKeyboardSerializer().fromJson), modifier: _$JsonConverterFromJson( @@ -18,8 +18,7 @@ _$KeyCombinationImpl _$$KeyCombinationImplFromJson(Map json) => json['altModifier'], const LogicalKeyboardSerializer().fromJson), ); -Map _$$KeyCombinationImplToJson( - _$KeyCombinationImpl instance) => +Map _$KeyCombinationToJson(_KeyCombination instance) => { 'key': _$JsonConverterToJson( instance.key, const LogicalKeyboardSerializer().toJson), diff --git a/lib/models/settings/video_player_settings.dart b/lib/models/settings/video_player_settings.dart index 30dfc6e..fbe2d52 100644 --- a/lib/models/settings/video_player_settings.dart +++ b/lib/models/settings/video_player_settings.dart @@ -50,7 +50,7 @@ enum VideoHotKeys { } @Freezed(copyWith: true) -class VideoPlayerSettingsModel with _$VideoPlayerSettingsModel { +abstract class VideoPlayerSettingsModel with _$VideoPlayerSettingsModel { const VideoPlayerSettingsModel._(); factory VideoPlayerSettingsModel({ diff --git a/lib/models/settings/video_player_settings.freezed.dart b/lib/models/settings/video_player_settings.freezed.dart index 9709551..ffb488f 100644 --- a/lib/models/settings/video_player_settings.freezed.dart +++ b/lib/models/settings/video_player_settings.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,176 +9,70 @@ part of 'video_player_settings.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson( - Map json) { - return _VideoPlayerSettingsModel.fromJson(json); -} - /// @nodoc -mixin _$VideoPlayerSettingsModel { - double? get screenBrightness => throw _privateConstructorUsedError; - BoxFit get videoFit => throw _privateConstructorUsedError; - bool get fillScreen => throw _privateConstructorUsedError; - bool get hardwareAccel => throw _privateConstructorUsedError; - bool get useLibass => throw _privateConstructorUsedError; - int get bufferSize => throw _privateConstructorUsedError; - PlayerOptions? get playerOptions => throw _privateConstructorUsedError; - double get internalVolume => throw _privateConstructorUsedError; - Set? get allowedOrientations => - throw _privateConstructorUsedError; - AutoNextType get nextVideoType => throw _privateConstructorUsedError; - Bitrate get maxHomeBitrate => throw _privateConstructorUsedError; - Bitrate get maxInternetBitrate => throw _privateConstructorUsedError; - String? get audioDevice => throw _privateConstructorUsedError; - Map get segmentSkipSettings => - throw _privateConstructorUsedError; - Map get hotKeys => - throw _privateConstructorUsedError; - - /// Serializes this VideoPlayerSettingsModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; +mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { + double? get screenBrightness; + BoxFit get videoFit; + bool get fillScreen; + bool get hardwareAccel; + bool get useLibass; + int get bufferSize; + PlayerOptions? get playerOptions; + double get internalVolume; + Set? get allowedOrientations; + AutoNextType get nextVideoType; + Bitrate get maxHomeBitrate; + Bitrate get maxInternetBitrate; + String? get audioDevice; + Map get segmentSkipSettings; + Map get hotKeys; /// Create a copy of VideoPlayerSettingsModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $VideoPlayerSettingsModelCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $VideoPlayerSettingsModelCopyWith<$Res> { - factory $VideoPlayerSettingsModelCopyWith(VideoPlayerSettingsModel value, - $Res Function(VideoPlayerSettingsModel) then) = - _$VideoPlayerSettingsModelCopyWithImpl<$Res, VideoPlayerSettingsModel>; - @useResult - $Res call( - {double? screenBrightness, - BoxFit videoFit, - bool fillScreen, - bool hardwareAccel, - bool useLibass, - int bufferSize, - PlayerOptions? playerOptions, - double internalVolume, - Set? allowedOrientations, - AutoNextType nextVideoType, - Bitrate maxHomeBitrate, - Bitrate maxInternetBitrate, - String? audioDevice, - Map segmentSkipSettings, - Map hotKeys}); -} - -/// @nodoc -class _$VideoPlayerSettingsModelCopyWithImpl<$Res, - $Val extends VideoPlayerSettingsModel> - implements $VideoPlayerSettingsModelCopyWith<$Res> { - _$VideoPlayerSettingsModelCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of VideoPlayerSettingsModel - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $VideoPlayerSettingsModelCopyWith get copyWith => + _$VideoPlayerSettingsModelCopyWithImpl( + this as VideoPlayerSettingsModel, _$identity); + + /// Serializes this VideoPlayerSettingsModel to a JSON map. + Map toJson(); + @override - $Res call({ - Object? screenBrightness = freezed, - Object? videoFit = null, - Object? fillScreen = null, - Object? hardwareAccel = null, - Object? useLibass = null, - Object? bufferSize = null, - Object? playerOptions = freezed, - Object? internalVolume = null, - Object? allowedOrientations = freezed, - Object? nextVideoType = null, - Object? maxHomeBitrate = null, - Object? maxInternetBitrate = null, - Object? audioDevice = freezed, - Object? segmentSkipSettings = null, - Object? hotKeys = null, - }) { - return _then(_value.copyWith( - screenBrightness: freezed == screenBrightness - ? _value.screenBrightness - : screenBrightness // ignore: cast_nullable_to_non_nullable - as double?, - videoFit: null == videoFit - ? _value.videoFit - : videoFit // ignore: cast_nullable_to_non_nullable - as BoxFit, - fillScreen: null == fillScreen - ? _value.fillScreen - : fillScreen // ignore: cast_nullable_to_non_nullable - as bool, - hardwareAccel: null == hardwareAccel - ? _value.hardwareAccel - : hardwareAccel // ignore: cast_nullable_to_non_nullable - as bool, - useLibass: null == useLibass - ? _value.useLibass - : useLibass // ignore: cast_nullable_to_non_nullable - as bool, - bufferSize: null == bufferSize - ? _value.bufferSize - : bufferSize // ignore: cast_nullable_to_non_nullable - as int, - playerOptions: freezed == playerOptions - ? _value.playerOptions - : playerOptions // ignore: cast_nullable_to_non_nullable - as PlayerOptions?, - internalVolume: null == internalVolume - ? _value.internalVolume - : internalVolume // ignore: cast_nullable_to_non_nullable - as double, - allowedOrientations: freezed == allowedOrientations - ? _value.allowedOrientations - : allowedOrientations // ignore: cast_nullable_to_non_nullable - as Set?, - nextVideoType: null == nextVideoType - ? _value.nextVideoType - : nextVideoType // ignore: cast_nullable_to_non_nullable - as AutoNextType, - maxHomeBitrate: null == maxHomeBitrate - ? _value.maxHomeBitrate - : maxHomeBitrate // ignore: cast_nullable_to_non_nullable - as Bitrate, - maxInternetBitrate: null == maxInternetBitrate - ? _value.maxInternetBitrate - : maxInternetBitrate // ignore: cast_nullable_to_non_nullable - as Bitrate, - audioDevice: freezed == audioDevice - ? _value.audioDevice - : audioDevice // ignore: cast_nullable_to_non_nullable - as String?, - segmentSkipSettings: null == segmentSkipSettings - ? _value.segmentSkipSettings - : segmentSkipSettings // ignore: cast_nullable_to_non_nullable - as Map, - hotKeys: null == hotKeys - ? _value.hotKeys - : hotKeys // ignore: cast_nullable_to_non_nullable - as Map, - ) as $Val); + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'VideoPlayerSettingsModel')) + ..add(DiagnosticsProperty('screenBrightness', screenBrightness)) + ..add(DiagnosticsProperty('videoFit', videoFit)) + ..add(DiagnosticsProperty('fillScreen', fillScreen)) + ..add(DiagnosticsProperty('hardwareAccel', hardwareAccel)) + ..add(DiagnosticsProperty('useLibass', useLibass)) + ..add(DiagnosticsProperty('bufferSize', bufferSize)) + ..add(DiagnosticsProperty('playerOptions', playerOptions)) + ..add(DiagnosticsProperty('internalVolume', internalVolume)) + ..add(DiagnosticsProperty('allowedOrientations', allowedOrientations)) + ..add(DiagnosticsProperty('nextVideoType', nextVideoType)) + ..add(DiagnosticsProperty('maxHomeBitrate', maxHomeBitrate)) + ..add(DiagnosticsProperty('maxInternetBitrate', maxInternetBitrate)) + ..add(DiagnosticsProperty('audioDevice', audioDevice)) + ..add(DiagnosticsProperty('segmentSkipSettings', segmentSkipSettings)) + ..add(DiagnosticsProperty('hotKeys', hotKeys)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'VideoPlayerSettingsModel(screenBrightness: $screenBrightness, videoFit: $videoFit, fillScreen: $fillScreen, hardwareAccel: $hardwareAccel, useLibass: $useLibass, bufferSize: $bufferSize, playerOptions: $playerOptions, internalVolume: $internalVolume, allowedOrientations: $allowedOrientations, nextVideoType: $nextVideoType, maxHomeBitrate: $maxHomeBitrate, maxInternetBitrate: $maxInternetBitrate, audioDevice: $audioDevice, segmentSkipSettings: $segmentSkipSettings, hotKeys: $hotKeys)'; } } /// @nodoc -abstract class _$$VideoPlayerSettingsModelImplCopyWith<$Res> - implements $VideoPlayerSettingsModelCopyWith<$Res> { - factory _$$VideoPlayerSettingsModelImplCopyWith( - _$VideoPlayerSettingsModelImpl value, - $Res Function(_$VideoPlayerSettingsModelImpl) then) = - __$$VideoPlayerSettingsModelImplCopyWithImpl<$Res>; - @override +abstract mixin class $VideoPlayerSettingsModelCopyWith<$Res> { + factory $VideoPlayerSettingsModelCopyWith(VideoPlayerSettingsModel value, + $Res Function(VideoPlayerSettingsModel) _then) = + _$VideoPlayerSettingsModelCopyWithImpl; @useResult $Res call( {double? screenBrightness, @@ -199,14 +93,12 @@ abstract class _$$VideoPlayerSettingsModelImplCopyWith<$Res> } /// @nodoc -class __$$VideoPlayerSettingsModelImplCopyWithImpl<$Res> - extends _$VideoPlayerSettingsModelCopyWithImpl<$Res, - _$VideoPlayerSettingsModelImpl> - implements _$$VideoPlayerSettingsModelImplCopyWith<$Res> { - __$$VideoPlayerSettingsModelImplCopyWithImpl( - _$VideoPlayerSettingsModelImpl _value, - $Res Function(_$VideoPlayerSettingsModelImpl) _then) - : super(_value, _then); +class _$VideoPlayerSettingsModelCopyWithImpl<$Res> + implements $VideoPlayerSettingsModelCopyWith<$Res> { + _$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); + + final VideoPlayerSettingsModel _self; + final $Res Function(VideoPlayerSettingsModel) _then; /// Create a copy of VideoPlayerSettingsModel /// with the given fields replaced by the non-null parameter values. @@ -229,76 +121,326 @@ class __$$VideoPlayerSettingsModelImplCopyWithImpl<$Res> Object? segmentSkipSettings = null, Object? hotKeys = null, }) { - return _then(_$VideoPlayerSettingsModelImpl( + return _then(_self.copyWith( screenBrightness: freezed == screenBrightness - ? _value.screenBrightness + ? _self.screenBrightness : screenBrightness // ignore: cast_nullable_to_non_nullable as double?, videoFit: null == videoFit - ? _value.videoFit + ? _self.videoFit : videoFit // ignore: cast_nullable_to_non_nullable as BoxFit, fillScreen: null == fillScreen - ? _value.fillScreen + ? _self.fillScreen : fillScreen // ignore: cast_nullable_to_non_nullable as bool, hardwareAccel: null == hardwareAccel - ? _value.hardwareAccel + ? _self.hardwareAccel : hardwareAccel // ignore: cast_nullable_to_non_nullable as bool, useLibass: null == useLibass - ? _value.useLibass + ? _self.useLibass : useLibass // ignore: cast_nullable_to_non_nullable as bool, bufferSize: null == bufferSize - ? _value.bufferSize + ? _self.bufferSize : bufferSize // ignore: cast_nullable_to_non_nullable as int, playerOptions: freezed == playerOptions - ? _value.playerOptions + ? _self.playerOptions : playerOptions // ignore: cast_nullable_to_non_nullable as PlayerOptions?, internalVolume: null == internalVolume - ? _value.internalVolume + ? _self.internalVolume : internalVolume // ignore: cast_nullable_to_non_nullable as double, allowedOrientations: freezed == allowedOrientations - ? _value._allowedOrientations + ? _self.allowedOrientations : allowedOrientations // ignore: cast_nullable_to_non_nullable as Set?, nextVideoType: null == nextVideoType - ? _value.nextVideoType + ? _self.nextVideoType : nextVideoType // ignore: cast_nullable_to_non_nullable as AutoNextType, maxHomeBitrate: null == maxHomeBitrate - ? _value.maxHomeBitrate + ? _self.maxHomeBitrate : maxHomeBitrate // ignore: cast_nullable_to_non_nullable as Bitrate, maxInternetBitrate: null == maxInternetBitrate - ? _value.maxInternetBitrate + ? _self.maxInternetBitrate : maxInternetBitrate // ignore: cast_nullable_to_non_nullable as Bitrate, audioDevice: freezed == audioDevice - ? _value.audioDevice + ? _self.audioDevice : audioDevice // ignore: cast_nullable_to_non_nullable as String?, segmentSkipSettings: null == segmentSkipSettings - ? _value._segmentSkipSettings + ? _self.segmentSkipSettings : segmentSkipSettings // ignore: cast_nullable_to_non_nullable as Map, hotKeys: null == hotKeys - ? _value._hotKeys + ? _self.hotKeys : hotKeys // ignore: cast_nullable_to_non_nullable as Map, )); } } +/// Adds pattern-matching-related methods to [VideoPlayerSettingsModel]. +extension VideoPlayerSettingsModelPatterns on VideoPlayerSettingsModel { + /// 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(_VideoPlayerSettingsModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _VideoPlayerSettingsModel() 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(_VideoPlayerSettingsModel value) $default, + ) { + final _that = this; + switch (_that) { + case _VideoPlayerSettingsModel(): + 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(_VideoPlayerSettingsModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _VideoPlayerSettingsModel() 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( + double? screenBrightness, + BoxFit videoFit, + bool fillScreen, + bool hardwareAccel, + bool useLibass, + int bufferSize, + PlayerOptions? playerOptions, + double internalVolume, + Set? allowedOrientations, + AutoNextType nextVideoType, + Bitrate maxHomeBitrate, + Bitrate maxInternetBitrate, + String? audioDevice, + Map segmentSkipSettings, + Map hotKeys)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _VideoPlayerSettingsModel() when $default != null: + return $default( + _that.screenBrightness, + _that.videoFit, + _that.fillScreen, + _that.hardwareAccel, + _that.useLibass, + _that.bufferSize, + _that.playerOptions, + _that.internalVolume, + _that.allowedOrientations, + _that.nextVideoType, + _that.maxHomeBitrate, + _that.maxInternetBitrate, + _that.audioDevice, + _that.segmentSkipSettings, + _that.hotKeys); + 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( + double? screenBrightness, + BoxFit videoFit, + bool fillScreen, + bool hardwareAccel, + bool useLibass, + int bufferSize, + PlayerOptions? playerOptions, + double internalVolume, + Set? allowedOrientations, + AutoNextType nextVideoType, + Bitrate maxHomeBitrate, + Bitrate maxInternetBitrate, + String? audioDevice, + Map segmentSkipSettings, + Map hotKeys) + $default, + ) { + final _that = this; + switch (_that) { + case _VideoPlayerSettingsModel(): + return $default( + _that.screenBrightness, + _that.videoFit, + _that.fillScreen, + _that.hardwareAccel, + _that.useLibass, + _that.bufferSize, + _that.playerOptions, + _that.internalVolume, + _that.allowedOrientations, + _that.nextVideoType, + _that.maxHomeBitrate, + _that.maxInternetBitrate, + _that.audioDevice, + _that.segmentSkipSettings, + _that.hotKeys); + 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( + double? screenBrightness, + BoxFit videoFit, + bool fillScreen, + bool hardwareAccel, + bool useLibass, + int bufferSize, + PlayerOptions? playerOptions, + double internalVolume, + Set? allowedOrientations, + AutoNextType nextVideoType, + Bitrate maxHomeBitrate, + Bitrate maxInternetBitrate, + String? audioDevice, + Map segmentSkipSettings, + Map hotKeys)? + $default, + ) { + final _that = this; + switch (_that) { + case _VideoPlayerSettingsModel() when $default != null: + return $default( + _that.screenBrightness, + _that.videoFit, + _that.fillScreen, + _that.hardwareAccel, + _that.useLibass, + _that.bufferSize, + _that.playerOptions, + _that.internalVolume, + _that.allowedOrientations, + _that.nextVideoType, + _that.maxHomeBitrate, + _that.maxInternetBitrate, + _that.audioDevice, + _that.segmentSkipSettings, + _that.hotKeys); + case _: + return null; + } + } +} + /// @nodoc @JsonSerializable() -class _$VideoPlayerSettingsModelImpl extends _VideoPlayerSettingsModel +class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with DiagnosticableTreeMixin { - _$VideoPlayerSettingsModelImpl( + _VideoPlayerSettingsModel( {this.screenBrightness, this.videoFit = BoxFit.contain, this.fillScreen = false, @@ -319,9 +461,8 @@ class _$VideoPlayerSettingsModelImpl extends _VideoPlayerSettingsModel _segmentSkipSettings = segmentSkipSettings, _hotKeys = hotKeys, super._(); - - factory _$VideoPlayerSettingsModelImpl.fromJson(Map json) => - _$$VideoPlayerSettingsModelImplFromJson(json); + factory _VideoPlayerSettingsModel.fromJson(Map json) => + _$VideoPlayerSettingsModelFromJson(json); @override final double? screenBrightness; @@ -386,14 +527,24 @@ class _$VideoPlayerSettingsModelImpl extends _VideoPlayerSettingsModel return EqualUnmodifiableMapView(_hotKeys); } + /// Create a copy of VideoPlayerSettingsModel + /// with the given fields replaced by the non-null parameter values. @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'VideoPlayerSettingsModel(screenBrightness: $screenBrightness, videoFit: $videoFit, fillScreen: $fillScreen, hardwareAccel: $hardwareAccel, useLibass: $useLibass, bufferSize: $bufferSize, playerOptions: $playerOptions, internalVolume: $internalVolume, allowedOrientations: $allowedOrientations, nextVideoType: $nextVideoType, maxHomeBitrate: $maxHomeBitrate, maxInternetBitrate: $maxInternetBitrate, audioDevice: $audioDevice, segmentSkipSettings: $segmentSkipSettings, hotKeys: $hotKeys)'; + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$VideoPlayerSettingsModelCopyWith<_VideoPlayerSettingsModel> get copyWith => + __$VideoPlayerSettingsModelCopyWithImpl<_VideoPlayerSettingsModel>( + this, _$identity); + + @override + Map toJson() { + return _$VideoPlayerSettingsModelToJson( + this, + ); } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'VideoPlayerSettingsModel')) ..add(DiagnosticsProperty('screenBrightness', screenBrightness)) @@ -413,81 +564,130 @@ class _$VideoPlayerSettingsModelImpl extends _VideoPlayerSettingsModel ..add(DiagnosticsProperty('hotKeys', hotKeys)); } - /// Create a copy of VideoPlayerSettingsModel - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override - @pragma('vm:prefer-inline') - _$$VideoPlayerSettingsModelImplCopyWith<_$VideoPlayerSettingsModelImpl> - get copyWith => __$$VideoPlayerSettingsModelImplCopyWithImpl< - _$VideoPlayerSettingsModelImpl>(this, _$identity); - - @override - Map toJson() { - return _$$VideoPlayerSettingsModelImplToJson( - this, - ); + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'VideoPlayerSettingsModel(screenBrightness: $screenBrightness, videoFit: $videoFit, fillScreen: $fillScreen, hardwareAccel: $hardwareAccel, useLibass: $useLibass, bufferSize: $bufferSize, playerOptions: $playerOptions, internalVolume: $internalVolume, allowedOrientations: $allowedOrientations, nextVideoType: $nextVideoType, maxHomeBitrate: $maxHomeBitrate, maxInternetBitrate: $maxInternetBitrate, audioDevice: $audioDevice, segmentSkipSettings: $segmentSkipSettings, hotKeys: $hotKeys)'; } } -abstract class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel { - factory _VideoPlayerSettingsModel( - {final double? screenBrightness, - final BoxFit videoFit, - final bool fillScreen, - final bool hardwareAccel, - final bool useLibass, - final int bufferSize, - final PlayerOptions? playerOptions, - final double internalVolume, - final Set? allowedOrientations, - final AutoNextType nextVideoType, - final Bitrate maxHomeBitrate, - final Bitrate maxInternetBitrate, - final String? audioDevice, - final Map segmentSkipSettings, - final Map hotKeys}) = - _$VideoPlayerSettingsModelImpl; - _VideoPlayerSettingsModel._() : super._(); +/// @nodoc +abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> + implements $VideoPlayerSettingsModelCopyWith<$Res> { + factory _$VideoPlayerSettingsModelCopyWith(_VideoPlayerSettingsModel value, + $Res Function(_VideoPlayerSettingsModel) _then) = + __$VideoPlayerSettingsModelCopyWithImpl; + @override + @useResult + $Res call( + {double? screenBrightness, + BoxFit videoFit, + bool fillScreen, + bool hardwareAccel, + bool useLibass, + int bufferSize, + PlayerOptions? playerOptions, + double internalVolume, + Set? allowedOrientations, + AutoNextType nextVideoType, + Bitrate maxHomeBitrate, + Bitrate maxInternetBitrate, + String? audioDevice, + Map segmentSkipSettings, + Map hotKeys}); +} - factory _VideoPlayerSettingsModel.fromJson(Map json) = - _$VideoPlayerSettingsModelImpl.fromJson; +/// @nodoc +class __$VideoPlayerSettingsModelCopyWithImpl<$Res> + implements _$VideoPlayerSettingsModelCopyWith<$Res> { + __$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); - @override - double? get screenBrightness; - @override - BoxFit get videoFit; - @override - bool get fillScreen; - @override - bool get hardwareAccel; - @override - bool get useLibass; - @override - int get bufferSize; - @override - PlayerOptions? get playerOptions; - @override - double get internalVolume; - @override - Set? get allowedOrientations; - @override - AutoNextType get nextVideoType; - @override - Bitrate get maxHomeBitrate; - @override - Bitrate get maxInternetBitrate; - @override - String? get audioDevice; - @override - Map get segmentSkipSettings; - @override - Map get hotKeys; + final _VideoPlayerSettingsModel _self; + final $Res Function(_VideoPlayerSettingsModel) _then; /// Create a copy of VideoPlayerSettingsModel /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$VideoPlayerSettingsModelImplCopyWith<_$VideoPlayerSettingsModelImpl> - get copyWith => throw _privateConstructorUsedError; + @pragma('vm:prefer-inline') + $Res call({ + Object? screenBrightness = freezed, + Object? videoFit = null, + Object? fillScreen = null, + Object? hardwareAccel = null, + Object? useLibass = null, + Object? bufferSize = null, + Object? playerOptions = freezed, + Object? internalVolume = null, + Object? allowedOrientations = freezed, + Object? nextVideoType = null, + Object? maxHomeBitrate = null, + Object? maxInternetBitrate = null, + Object? audioDevice = freezed, + Object? segmentSkipSettings = null, + Object? hotKeys = null, + }) { + return _then(_VideoPlayerSettingsModel( + screenBrightness: freezed == screenBrightness + ? _self.screenBrightness + : screenBrightness // ignore: cast_nullable_to_non_nullable + as double?, + videoFit: null == videoFit + ? _self.videoFit + : videoFit // ignore: cast_nullable_to_non_nullable + as BoxFit, + fillScreen: null == fillScreen + ? _self.fillScreen + : fillScreen // ignore: cast_nullable_to_non_nullable + as bool, + hardwareAccel: null == hardwareAccel + ? _self.hardwareAccel + : hardwareAccel // ignore: cast_nullable_to_non_nullable + as bool, + useLibass: null == useLibass + ? _self.useLibass + : useLibass // ignore: cast_nullable_to_non_nullable + as bool, + bufferSize: null == bufferSize + ? _self.bufferSize + : bufferSize // ignore: cast_nullable_to_non_nullable + as int, + playerOptions: freezed == playerOptions + ? _self.playerOptions + : playerOptions // ignore: cast_nullable_to_non_nullable + as PlayerOptions?, + internalVolume: null == internalVolume + ? _self.internalVolume + : internalVolume // ignore: cast_nullable_to_non_nullable + as double, + allowedOrientations: freezed == allowedOrientations + ? _self._allowedOrientations + : allowedOrientations // ignore: cast_nullable_to_non_nullable + as Set?, + nextVideoType: null == nextVideoType + ? _self.nextVideoType + : nextVideoType // ignore: cast_nullable_to_non_nullable + as AutoNextType, + maxHomeBitrate: null == maxHomeBitrate + ? _self.maxHomeBitrate + : maxHomeBitrate // ignore: cast_nullable_to_non_nullable + as Bitrate, + maxInternetBitrate: null == maxInternetBitrate + ? _self.maxInternetBitrate + : maxInternetBitrate // ignore: cast_nullable_to_non_nullable + as Bitrate, + audioDevice: freezed == audioDevice + ? _self.audioDevice + : audioDevice // ignore: cast_nullable_to_non_nullable + as String?, + segmentSkipSettings: null == segmentSkipSettings + ? _self._segmentSkipSettings + : segmentSkipSettings // ignore: cast_nullable_to_non_nullable + as Map, + hotKeys: null == hotKeys + ? _self._hotKeys + : hotKeys // ignore: cast_nullable_to_non_nullable + as Map, + )); + } } + +// dart format on diff --git a/lib/models/settings/video_player_settings.g.dart b/lib/models/settings/video_player_settings.g.dart index 365aef5..c44b4ee 100644 --- a/lib/models/settings/video_player_settings.g.dart +++ b/lib/models/settings/video_player_settings.g.dart @@ -6,9 +6,9 @@ part of 'video_player_settings.dart'; // JsonSerializableGenerator // ************************************************************************** -_$VideoPlayerSettingsModelImpl _$$VideoPlayerSettingsModelImplFromJson( +_VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson( Map json) => - _$VideoPlayerSettingsModelImpl( + _VideoPlayerSettingsModel( screenBrightness: (json['screenBrightness'] as num?)?.toDouble(), videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? BoxFit.contain, @@ -45,8 +45,8 @@ _$VideoPlayerSettingsModelImpl _$$VideoPlayerSettingsModelImplFromJson( const {}, ); -Map _$$VideoPlayerSettingsModelImplToJson( - _$VideoPlayerSettingsModelImpl instance) => +Map _$VideoPlayerSettingsModelToJson( + _VideoPlayerSettingsModel instance) => { 'screenBrightness': instance.screenBrightness, 'videoFit': _$BoxFitEnumMap[instance.videoFit]!, diff --git a/lib/models/syncing/i_synced_item.dart b/lib/models/syncing/i_synced_item.dart deleted file mode 100644 index b612a86..0000000 --- a/lib/models/syncing/i_synced_item.dart +++ /dev/null @@ -1,61 +0,0 @@ -import 'dart:convert'; - -import 'package:isar/isar.dart'; - -import 'package:fladder/models/syncing/sync_item.dart'; - -part 'i_synced_item.g.dart'; - -@collection -class ISyncedItem { - String? userId; - String id; - bool syncing; - String? sortName; - @Index() - String? parentId; - String? path; - int? fileSize; - String? videoFileName; - String? trickPlayModel; - String? mediaSegments; - String? images; - List? chapters; - List? subtitles; - String? userData; - ISyncedItem({ - this.userId, - required this.id, - required this.syncing, - this.sortName, - this.parentId, - this.path, - this.fileSize, - this.videoFileName, - this.trickPlayModel, - this.mediaSegments, - this.images, - this.chapters, - this.subtitles, - this.userData, - }); - - factory ISyncedItem.fromSynced(SyncedItem syncedItem, String? path) { - return ISyncedItem( - id: syncedItem.id, - parentId: syncedItem.parentId, - syncing: syncedItem.syncing, - userId: syncedItem.userId, - path: syncedItem.path?.replaceAll(path ?? "", '').substring(1), - fileSize: syncedItem.fileSize, - sortName: syncedItem.sortName, - videoFileName: syncedItem.videoFileName, - trickPlayModel: syncedItem.fTrickPlayModel != null ? jsonEncode(syncedItem.fTrickPlayModel?.toJson()) : null, - mediaSegments: syncedItem.mediaSegments != null ? jsonEncode(syncedItem.mediaSegments?.toJson()) : null, - images: syncedItem.fImages != null ? jsonEncode(syncedItem.fImages?.toJson()) : null, - chapters: syncedItem.fChapters.map((e) => jsonEncode(e.toJson())).toList(), - subtitles: syncedItem.subtitles.map((e) => jsonEncode(e.toJson())).toList(), - userData: syncedItem.userData != null ? jsonEncode(syncedItem.userData?.toJson()) : null, - ); - } -} diff --git a/lib/models/syncing/i_synced_item.g.dart b/lib/models/syncing/i_synced_item.g.dart deleted file mode 100644 index ad46c6d..0000000 --- a/lib/models/syncing/i_synced_item.g.dart +++ /dev/null @@ -1,3791 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'i_synced_item.dart'; - -// ************************************************************************** -// _IsarCollectionGenerator -// ************************************************************************** - -// coverage:ignore-file -// ignore_for_file: duplicate_ignore, invalid_use_of_protected_member, lines_longer_than_80_chars, constant_identifier_names, avoid_js_rounded_ints, no_leading_underscores_for_local_identifiers, require_trailing_commas, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_in_if_null_operators, library_private_types_in_public_api, prefer_const_constructors -// ignore_for_file: type=lint - -extension GetISyncedItemCollection on Isar { - IsarCollection get iSyncedItems => this.collection(); -} - -const ISyncedItemSchema = IsarGeneratedSchema( - schema: IsarSchema( - name: 'ISyncedItem', - idName: 'id', - embedded: false, - properties: [ - IsarPropertySchema( - name: 'userId', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'id', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'syncing', - type: IsarType.bool, - ), - IsarPropertySchema( - name: 'sortName', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'parentId', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'path', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'fileSize', - type: IsarType.long, - ), - IsarPropertySchema( - name: 'videoFileName', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'trickPlayModel', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'mediaSegments', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'images', - type: IsarType.string, - ), - IsarPropertySchema( - name: 'chapters', - type: IsarType.stringList, - ), - IsarPropertySchema( - name: 'subtitles', - type: IsarType.stringList, - ), - IsarPropertySchema( - name: 'userData', - type: IsarType.string, - ), - ], - indexes: [ - IsarIndexSchema( - name: 'parentId', - properties: [ - "parentId", - ], - unique: false, - hash: false, - ), - ], - ), - converter: IsarObjectConverter( - serialize: serializeISyncedItem, - deserialize: deserializeISyncedItem, - deserializeProperty: deserializeISyncedItemProp, - ), - embeddedSchemas: [], -); - -@isarProtected -int serializeISyncedItem(IsarWriter writer, ISyncedItem object) { - { - final value = object.userId; - if (value == null) { - IsarCore.writeNull(writer, 1); - } else { - IsarCore.writeString(writer, 1, value); - } - } - IsarCore.writeString(writer, 2, object.id); - IsarCore.writeBool(writer, 3, object.syncing); - { - final value = object.sortName; - if (value == null) { - IsarCore.writeNull(writer, 4); - } else { - IsarCore.writeString(writer, 4, value); - } - } - { - final value = object.parentId; - if (value == null) { - IsarCore.writeNull(writer, 5); - } else { - IsarCore.writeString(writer, 5, value); - } - } - { - final value = object.path; - if (value == null) { - IsarCore.writeNull(writer, 6); - } else { - IsarCore.writeString(writer, 6, value); - } - } - IsarCore.writeLong(writer, 7, object.fileSize ?? -9223372036854775808); - { - final value = object.videoFileName; - if (value == null) { - IsarCore.writeNull(writer, 8); - } else { - IsarCore.writeString(writer, 8, value); - } - } - { - final value = object.trickPlayModel; - if (value == null) { - IsarCore.writeNull(writer, 9); - } else { - IsarCore.writeString(writer, 9, value); - } - } - { - final value = object.mediaSegments; - if (value == null) { - IsarCore.writeNull(writer, 10); - } else { - IsarCore.writeString(writer, 10, value); - } - } - { - final value = object.images; - if (value == null) { - IsarCore.writeNull(writer, 11); - } else { - IsarCore.writeString(writer, 11, value); - } - } - { - final list = object.chapters; - if (list == null) { - IsarCore.writeNull(writer, 12); - } else { - final listWriter = IsarCore.beginList(writer, 12, list.length); - for (var i = 0; i < list.length; i++) { - IsarCore.writeString(listWriter, i, list[i]); - } - IsarCore.endList(writer, listWriter); - } - } - { - final list = object.subtitles; - if (list == null) { - IsarCore.writeNull(writer, 13); - } else { - final listWriter = IsarCore.beginList(writer, 13, list.length); - for (var i = 0; i < list.length; i++) { - IsarCore.writeString(listWriter, i, list[i]); - } - IsarCore.endList(writer, listWriter); - } - } - { - final value = object.userData; - if (value == null) { - IsarCore.writeNull(writer, 14); - } else { - IsarCore.writeString(writer, 14, value); - } - } - return Isar.fastHash(object.id); -} - -@isarProtected -ISyncedItem deserializeISyncedItem(IsarReader reader) { - final String? _userId; - _userId = IsarCore.readString(reader, 1); - final String _id; - _id = IsarCore.readString(reader, 2) ?? ''; - final bool _syncing; - _syncing = IsarCore.readBool(reader, 3); - final String? _sortName; - _sortName = IsarCore.readString(reader, 4); - final String? _parentId; - _parentId = IsarCore.readString(reader, 5); - final String? _path; - _path = IsarCore.readString(reader, 6); - final int? _fileSize; - { - final value = IsarCore.readLong(reader, 7); - if (value == -9223372036854775808) { - _fileSize = null; - } else { - _fileSize = value; - } - } - final String? _videoFileName; - _videoFileName = IsarCore.readString(reader, 8); - final String? _trickPlayModel; - _trickPlayModel = IsarCore.readString(reader, 9); - final String? _mediaSegments; - _mediaSegments = IsarCore.readString(reader, 10); - final String? _images; - _images = IsarCore.readString(reader, 11); - final List? _chapters; - { - final length = IsarCore.readList(reader, 12, IsarCore.readerPtrPtr); - { - final reader = IsarCore.readerPtr; - if (reader.isNull) { - _chapters = null; - } else { - final list = List.filled(length, '', growable: true); - for (var i = 0; i < length; i++) { - list[i] = IsarCore.readString(reader, i) ?? ''; - } - IsarCore.freeReader(reader); - _chapters = list; - } - } - } - final List? _subtitles; - { - final length = IsarCore.readList(reader, 13, IsarCore.readerPtrPtr); - { - final reader = IsarCore.readerPtr; - if (reader.isNull) { - _subtitles = null; - } else { - final list = List.filled(length, '', growable: true); - for (var i = 0; i < length; i++) { - list[i] = IsarCore.readString(reader, i) ?? ''; - } - IsarCore.freeReader(reader); - _subtitles = list; - } - } - } - final String? _userData; - _userData = IsarCore.readString(reader, 14); - final object = ISyncedItem( - userId: _userId, - id: _id, - syncing: _syncing, - sortName: _sortName, - parentId: _parentId, - path: _path, - fileSize: _fileSize, - videoFileName: _videoFileName, - trickPlayModel: _trickPlayModel, - mediaSegments: _mediaSegments, - images: _images, - chapters: _chapters, - subtitles: _subtitles, - userData: _userData, - ); - return object; -} - -@isarProtected -dynamic deserializeISyncedItemProp(IsarReader reader, int property) { - switch (property) { - case 1: - return IsarCore.readString(reader, 1); - case 2: - return IsarCore.readString(reader, 2) ?? ''; - case 3: - return IsarCore.readBool(reader, 3); - case 4: - return IsarCore.readString(reader, 4); - case 5: - return IsarCore.readString(reader, 5); - case 6: - return IsarCore.readString(reader, 6); - case 7: - { - final value = IsarCore.readLong(reader, 7); - if (value == -9223372036854775808) { - return null; - } else { - return value; - } - } - case 8: - return IsarCore.readString(reader, 8); - case 9: - return IsarCore.readString(reader, 9); - case 10: - return IsarCore.readString(reader, 10); - case 11: - return IsarCore.readString(reader, 11); - case 12: - { - final length = IsarCore.readList(reader, 12, IsarCore.readerPtrPtr); - { - final reader = IsarCore.readerPtr; - if (reader.isNull) { - return null; - } else { - final list = List.filled(length, '', growable: true); - for (var i = 0; i < length; i++) { - list[i] = IsarCore.readString(reader, i) ?? ''; - } - IsarCore.freeReader(reader); - return list; - } - } - } - case 13: - { - final length = IsarCore.readList(reader, 13, IsarCore.readerPtrPtr); - { - final reader = IsarCore.readerPtr; - if (reader.isNull) { - return null; - } else { - final list = List.filled(length, '', growable: true); - for (var i = 0; i < length; i++) { - list[i] = IsarCore.readString(reader, i) ?? ''; - } - IsarCore.freeReader(reader); - return list; - } - } - } - case 14: - return IsarCore.readString(reader, 14); - default: - throw ArgumentError('Unknown property: $property'); - } -} - -sealed class _ISyncedItemUpdate { - bool call({ - required String id, - String? userId, - bool? syncing, - String? sortName, - String? parentId, - String? path, - int? fileSize, - String? videoFileName, - String? trickPlayModel, - String? mediaSegments, - String? images, - String? userData, - }); -} - -class _ISyncedItemUpdateImpl implements _ISyncedItemUpdate { - const _ISyncedItemUpdateImpl(this.collection); - - final IsarCollection collection; - - @override - bool call({ - required String id, - Object? userId = ignore, - Object? syncing = ignore, - Object? sortName = ignore, - Object? parentId = ignore, - Object? path = ignore, - Object? fileSize = ignore, - Object? videoFileName = ignore, - Object? trickPlayModel = ignore, - Object? mediaSegments = ignore, - Object? images = ignore, - Object? userData = ignore, - }) { - return collection.updateProperties([ - id - ], { - if (userId != ignore) 1: userId as String?, - if (syncing != ignore) 3: syncing as bool?, - if (sortName != ignore) 4: sortName as String?, - if (parentId != ignore) 5: parentId as String?, - if (path != ignore) 6: path as String?, - if (fileSize != ignore) 7: fileSize as int?, - if (videoFileName != ignore) 8: videoFileName as String?, - if (trickPlayModel != ignore) 9: trickPlayModel as String?, - if (mediaSegments != ignore) 10: mediaSegments as String?, - if (images != ignore) 11: images as String?, - if (userData != ignore) 14: userData as String?, - }) > - 0; - } -} - -sealed class _ISyncedItemUpdateAll { - int call({ - required List id, - String? userId, - bool? syncing, - String? sortName, - String? parentId, - String? path, - int? fileSize, - String? videoFileName, - String? trickPlayModel, - String? mediaSegments, - String? images, - String? userData, - }); -} - -class _ISyncedItemUpdateAllImpl implements _ISyncedItemUpdateAll { - const _ISyncedItemUpdateAllImpl(this.collection); - - final IsarCollection collection; - - @override - int call({ - required List id, - Object? userId = ignore, - Object? syncing = ignore, - Object? sortName = ignore, - Object? parentId = ignore, - Object? path = ignore, - Object? fileSize = ignore, - Object? videoFileName = ignore, - Object? trickPlayModel = ignore, - Object? mediaSegments = ignore, - Object? images = ignore, - Object? userData = ignore, - }) { - return collection.updateProperties(id, { - if (userId != ignore) 1: userId as String?, - if (syncing != ignore) 3: syncing as bool?, - if (sortName != ignore) 4: sortName as String?, - if (parentId != ignore) 5: parentId as String?, - if (path != ignore) 6: path as String?, - if (fileSize != ignore) 7: fileSize as int?, - if (videoFileName != ignore) 8: videoFileName as String?, - if (trickPlayModel != ignore) 9: trickPlayModel as String?, - if (mediaSegments != ignore) 10: mediaSegments as String?, - if (images != ignore) 11: images as String?, - if (userData != ignore) 14: userData as String?, - }); - } -} - -extension ISyncedItemUpdate on IsarCollection { - _ISyncedItemUpdate get update => _ISyncedItemUpdateImpl(this); - - _ISyncedItemUpdateAll get updateAll => _ISyncedItemUpdateAllImpl(this); -} - -sealed class _ISyncedItemQueryUpdate { - int call({ - String? userId, - bool? syncing, - String? sortName, - String? parentId, - String? path, - int? fileSize, - String? videoFileName, - String? trickPlayModel, - String? mediaSegments, - String? images, - String? userData, - }); -} - -class _ISyncedItemQueryUpdateImpl implements _ISyncedItemQueryUpdate { - const _ISyncedItemQueryUpdateImpl(this.query, {this.limit}); - - final IsarQuery query; - final int? limit; - - @override - int call({ - Object? userId = ignore, - Object? syncing = ignore, - Object? sortName = ignore, - Object? parentId = ignore, - Object? path = ignore, - Object? fileSize = ignore, - Object? videoFileName = ignore, - Object? trickPlayModel = ignore, - Object? mediaSegments = ignore, - Object? images = ignore, - Object? userData = ignore, - }) { - return query.updateProperties(limit: limit, { - if (userId != ignore) 1: userId as String?, - if (syncing != ignore) 3: syncing as bool?, - if (sortName != ignore) 4: sortName as String?, - if (parentId != ignore) 5: parentId as String?, - if (path != ignore) 6: path as String?, - if (fileSize != ignore) 7: fileSize as int?, - if (videoFileName != ignore) 8: videoFileName as String?, - if (trickPlayModel != ignore) 9: trickPlayModel as String?, - if (mediaSegments != ignore) 10: mediaSegments as String?, - if (images != ignore) 11: images as String?, - if (userData != ignore) 14: userData as String?, - }); - } -} - -extension ISyncedItemQueryUpdate on IsarQuery { - _ISyncedItemQueryUpdate get updateFirst => - _ISyncedItemQueryUpdateImpl(this, limit: 1); - - _ISyncedItemQueryUpdate get updateAll => _ISyncedItemQueryUpdateImpl(this); -} - -class _ISyncedItemQueryBuilderUpdateImpl implements _ISyncedItemQueryUpdate { - const _ISyncedItemQueryBuilderUpdateImpl(this.query, {this.limit}); - - final QueryBuilder query; - final int? limit; - - @override - int call({ - Object? userId = ignore, - Object? syncing = ignore, - Object? sortName = ignore, - Object? parentId = ignore, - Object? path = ignore, - Object? fileSize = ignore, - Object? videoFileName = ignore, - Object? trickPlayModel = ignore, - Object? mediaSegments = ignore, - Object? images = ignore, - Object? userData = ignore, - }) { - final q = query.build(); - try { - return q.updateProperties(limit: limit, { - if (userId != ignore) 1: userId as String?, - if (syncing != ignore) 3: syncing as bool?, - if (sortName != ignore) 4: sortName as String?, - if (parentId != ignore) 5: parentId as String?, - if (path != ignore) 6: path as String?, - if (fileSize != ignore) 7: fileSize as int?, - if (videoFileName != ignore) 8: videoFileName as String?, - if (trickPlayModel != ignore) 9: trickPlayModel as String?, - if (mediaSegments != ignore) 10: mediaSegments as String?, - if (images != ignore) 11: images as String?, - if (userData != ignore) 14: userData as String?, - }); - } finally { - q.close(); - } - } -} - -extension ISyncedItemQueryBuilderUpdate - on QueryBuilder { - _ISyncedItemQueryUpdate get updateFirst => - _ISyncedItemQueryBuilderUpdateImpl(this, limit: 1); - - _ISyncedItemQueryUpdate get updateAll => - _ISyncedItemQueryBuilderUpdateImpl(this); -} - -extension ISyncedItemQueryFilter - on QueryBuilder { - QueryBuilder userIdIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 1)); - }); - } - - QueryBuilder - userIdIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 1)); - }); - } - - QueryBuilder userIdEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userIdGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userIdGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder userIdLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userIdLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder userIdBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 1, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userIdStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder userIdEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder userIdContains( - String value, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 1, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder userIdMatches( - String pattern, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 1, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userIdIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 1, - value: '', - ), - ); - }); - } - - QueryBuilder - userIdIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 1, - value: '', - ), - ); - }); - } - - QueryBuilder idEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idGreaterThan( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - idGreaterThanOrEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idLessThan( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - idLessThanOrEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idBetween( - String lower, - String upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 2, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idContains( - String value, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 2, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idMatches( - String pattern, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 2, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder idIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 2, - value: '', - ), - ); - }); - } - - QueryBuilder idIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 2, - value: '', - ), - ); - }); - } - - QueryBuilder syncingEqualTo( - bool value, - ) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 3, - value: value, - ), - ); - }); - } - - QueryBuilder - sortNameIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 4)); - }); - } - - QueryBuilder - sortNameIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 4)); - }); - } - - QueryBuilder sortNameEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder sortNameBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 4, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 4, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder sortNameMatches( - String pattern, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 4, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - sortNameIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 4, - value: '', - ), - ); - }); - } - - QueryBuilder - sortNameIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 4, - value: '', - ), - ); - }); - } - - QueryBuilder - parentIdIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 5)); - }); - } - - QueryBuilder - parentIdIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 5)); - }); - } - - QueryBuilder parentIdEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder parentIdBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 5, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 5, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder parentIdMatches( - String pattern, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 5, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - parentIdIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 5, - value: '', - ), - ); - }); - } - - QueryBuilder - parentIdIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 5, - value: '', - ), - ); - }); - } - - QueryBuilder pathIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 6)); - }); - } - - QueryBuilder - pathIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 6)); - }); - } - - QueryBuilder pathEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - pathGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - pathLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 6, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathContains( - String value, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 6, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathMatches( - String pattern, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 6, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder pathIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 6, - value: '', - ), - ); - }); - } - - QueryBuilder - pathIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 6, - value: '', - ), - ); - }); - } - - QueryBuilder - fileSizeIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 7)); - }); - } - - QueryBuilder - fileSizeIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 7)); - }); - } - - QueryBuilder fileSizeEqualTo( - int? value, - ) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 7, - value: value, - ), - ); - }); - } - - QueryBuilder - fileSizeGreaterThan( - int? value, - ) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 7, - value: value, - ), - ); - }); - } - - QueryBuilder - fileSizeGreaterThanOrEqualTo( - int? value, - ) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 7, - value: value, - ), - ); - }); - } - - QueryBuilder - fileSizeLessThan( - int? value, - ) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 7, - value: value, - ), - ); - }); - } - - QueryBuilder - fileSizeLessThanOrEqualTo( - int? value, - ) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 7, - value: value, - ), - ); - }); - } - - QueryBuilder fileSizeBetween( - int? lower, - int? upper, - ) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 7, - lower: lower, - upper: upper, - ), - ); - }); - } - - QueryBuilder - videoFileNameIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 8)); - }); - } - - QueryBuilder - videoFileNameIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 8)); - }); - } - - QueryBuilder - videoFileNameEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 8, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 8, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameMatches(String pattern, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 8, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - videoFileNameIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 8, - value: '', - ), - ); - }); - } - - QueryBuilder - videoFileNameIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 8, - value: '', - ), - ); - }); - } - - QueryBuilder - trickPlayModelIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 9)); - }); - } - - QueryBuilder - trickPlayModelIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 9)); - }); - } - - QueryBuilder - trickPlayModelEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 9, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 9, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelMatches(String pattern, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 9, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - trickPlayModelIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 9, - value: '', - ), - ); - }); - } - - QueryBuilder - trickPlayModelIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 9, - value: '', - ), - ); - }); - } - - QueryBuilder - mediaSegmentsIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 10)); - }); - } - - QueryBuilder - mediaSegmentsIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 10)); - }); - } - - QueryBuilder - mediaSegmentsEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 10, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 10, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsMatches(String pattern, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 10, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - mediaSegmentsIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 10, - value: '', - ), - ); - }); - } - - QueryBuilder - mediaSegmentsIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 10, - value: '', - ), - ); - }); - } - - QueryBuilder imagesIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 11)); - }); - } - - QueryBuilder - imagesIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 11)); - }); - } - - QueryBuilder imagesEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - imagesGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - imagesGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder imagesLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - imagesLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder imagesBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 11, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - imagesStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder imagesEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder imagesContains( - String value, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 11, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder imagesMatches( - String pattern, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 11, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - imagesIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 11, - value: '', - ), - ); - }); - } - - QueryBuilder - imagesIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 11, - value: '', - ), - ); - }); - } - - QueryBuilder - chaptersIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 12)); - }); - } - - QueryBuilder - chaptersIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 12)); - }); - } - - QueryBuilder - chaptersElementEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementGreaterThan( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementGreaterThanOrEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementLessThan( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementLessThanOrEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementBetween( - String lower, - String upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 12, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 12, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementMatches(String pattern, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 12, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - chaptersElementIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 12, - value: '', - ), - ); - }); - } - - QueryBuilder - chaptersElementIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 12, - value: '', - ), - ); - }); - } - - QueryBuilder - chaptersIsEmpty() { - return not().group( - (q) => q.chaptersIsNull().or().chaptersIsNotEmpty(), - ); - } - - QueryBuilder - chaptersIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterOrEqualCondition(property: 12, value: null), - ); - }); - } - - QueryBuilder - subtitlesIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 13)); - }); - } - - QueryBuilder - subtitlesIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 13)); - }); - } - - QueryBuilder - subtitlesElementEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementGreaterThan( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementGreaterThanOrEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementLessThan( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementLessThanOrEqualTo( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementBetween( - String lower, - String upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 13, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 13, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementMatches(String pattern, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 13, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - subtitlesElementIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 13, - value: '', - ), - ); - }); - } - - QueryBuilder - subtitlesElementIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 13, - value: '', - ), - ); - }); - } - - QueryBuilder - subtitlesIsEmpty() { - return not().group( - (q) => q.subtitlesIsNull().or().subtitlesIsNotEmpty(), - ); - } - - QueryBuilder - subtitlesIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterOrEqualCondition(property: 13, value: null), - ); - }); - } - - QueryBuilder - userDataIsNull() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition(const IsNullCondition(property: 14)); - }); - } - - QueryBuilder - userDataIsNotNull() { - return QueryBuilder.apply(not(), (query) { - return query.addFilterCondition(const IsNullCondition(property: 14)); - }); - } - - QueryBuilder userDataEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EqualCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataGreaterThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataGreaterThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - GreaterOrEqualCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataLessThan( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataLessThanOrEqualTo( - String? value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - LessOrEqualCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder userDataBetween( - String? lower, - String? upper, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - BetweenCondition( - property: 14, - lower: lower, - upper: upper, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataStartsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - StartsWithCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataEndsWith( - String value, { - bool caseSensitive = true, - }) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - EndsWithCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataContains(String value, {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - ContainsCondition( - property: 14, - value: value, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder userDataMatches( - String pattern, - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - MatchesCondition( - property: 14, - wildcard: pattern, - caseSensitive: caseSensitive, - ), - ); - }); - } - - QueryBuilder - userDataIsEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const EqualCondition( - property: 14, - value: '', - ), - ); - }); - } - - QueryBuilder - userDataIsNotEmpty() { - return QueryBuilder.apply(this, (query) { - return query.addFilterCondition( - const GreaterCondition( - property: 14, - value: '', - ), - ); - }); - } -} - -extension ISyncedItemQueryObject - on QueryBuilder {} - -extension ISyncedItemQuerySortBy - on QueryBuilder { - QueryBuilder sortByUserId( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 1, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByUserIdDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 1, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortById( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 2, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByIdDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 2, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortBySyncing() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(3); - }); - } - - QueryBuilder sortBySyncingDesc() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(3, sort: Sort.desc); - }); - } - - QueryBuilder sortBySortName( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 4, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortBySortNameDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 4, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByParentId( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 5, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByParentIdDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 5, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByPath( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 6, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByPathDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 6, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByFileSize() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(7); - }); - } - - QueryBuilder sortByFileSizeDesc() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(7, sort: Sort.desc); - }); - } - - QueryBuilder sortByVideoFileName( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 8, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByVideoFileNameDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 8, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByTrickPlayModel( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 9, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByTrickPlayModelDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 9, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByMediaSegments( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 10, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByMediaSegmentsDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 10, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByImages( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 11, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByImagesDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 11, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByUserData( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 14, - caseSensitive: caseSensitive, - ); - }); - } - - QueryBuilder sortByUserDataDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy( - 14, - sort: Sort.desc, - caseSensitive: caseSensitive, - ); - }); - } -} - -extension ISyncedItemQuerySortThenBy - on QueryBuilder { - QueryBuilder thenByUserId( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(1, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByUserIdDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(1, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenById( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(2, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByIdDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(2, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenBySyncing() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(3); - }); - } - - QueryBuilder thenBySyncingDesc() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(3, sort: Sort.desc); - }); - } - - QueryBuilder thenBySortName( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(4, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenBySortNameDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(4, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByParentId( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(5, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByParentIdDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(5, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByPath( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(6, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByPathDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(6, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByFileSize() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(7); - }); - } - - QueryBuilder thenByFileSizeDesc() { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(7, sort: Sort.desc); - }); - } - - QueryBuilder thenByVideoFileName( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(8, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByVideoFileNameDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(8, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByTrickPlayModel( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(9, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByTrickPlayModelDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(9, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByMediaSegments( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(10, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByMediaSegmentsDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(10, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByImages( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(11, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByImagesDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(11, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByUserData( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(14, caseSensitive: caseSensitive); - }); - } - - QueryBuilder thenByUserDataDesc( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addSortBy(14, sort: Sort.desc, caseSensitive: caseSensitive); - }); - } -} - -extension ISyncedItemQueryWhereDistinct - on QueryBuilder { - QueryBuilder distinctByUserId( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(1, caseSensitive: caseSensitive); - }); - } - - QueryBuilder distinctBySyncing() { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(3); - }); - } - - QueryBuilder distinctBySortName( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(4, caseSensitive: caseSensitive); - }); - } - - QueryBuilder distinctByParentId( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(5, caseSensitive: caseSensitive); - }); - } - - QueryBuilder distinctByPath( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(6, caseSensitive: caseSensitive); - }); - } - - QueryBuilder distinctByFileSize() { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(7); - }); - } - - QueryBuilder - distinctByVideoFileName({bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(8, caseSensitive: caseSensitive); - }); - } - - QueryBuilder - distinctByTrickPlayModel({bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(9, caseSensitive: caseSensitive); - }); - } - - QueryBuilder - distinctByMediaSegments({bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(10, caseSensitive: caseSensitive); - }); - } - - QueryBuilder distinctByImages( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(11, caseSensitive: caseSensitive); - }); - } - - QueryBuilder distinctByChapters() { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(12); - }); - } - - QueryBuilder distinctBySubtitles() { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(13); - }); - } - - QueryBuilder distinctByUserData( - {bool caseSensitive = true}) { - return QueryBuilder.apply(this, (query) { - return query.addDistinctBy(14, caseSensitive: caseSensitive); - }); - } -} - -extension ISyncedItemQueryProperty1 - on QueryBuilder { - QueryBuilder userIdProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(1); - }); - } - - QueryBuilder idProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(2); - }); - } - - QueryBuilder syncingProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(3); - }); - } - - QueryBuilder sortNameProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(4); - }); - } - - QueryBuilder parentIdProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(5); - }); - } - - QueryBuilder pathProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(6); - }); - } - - QueryBuilder fileSizeProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(7); - }); - } - - QueryBuilder videoFileNameProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(8); - }); - } - - QueryBuilder trickPlayModelProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(9); - }); - } - - QueryBuilder mediaSegmentsProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(10); - }); - } - - QueryBuilder imagesProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(11); - }); - } - - QueryBuilder?, QAfterProperty> chaptersProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(12); - }); - } - - QueryBuilder?, QAfterProperty> subtitlesProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(13); - }); - } - - QueryBuilder userDataProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(14); - }); - } -} - -extension ISyncedItemQueryProperty2 - on QueryBuilder { - QueryBuilder userIdProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(1); - }); - } - - QueryBuilder idProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(2); - }); - } - - QueryBuilder syncingProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(3); - }); - } - - QueryBuilder sortNameProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(4); - }); - } - - QueryBuilder parentIdProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(5); - }); - } - - QueryBuilder pathProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(6); - }); - } - - QueryBuilder fileSizeProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(7); - }); - } - - QueryBuilder - videoFileNameProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(8); - }); - } - - QueryBuilder - trickPlayModelProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(9); - }); - } - - QueryBuilder - mediaSegmentsProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(10); - }); - } - - QueryBuilder imagesProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(11); - }); - } - - QueryBuilder?), QAfterProperty> - chaptersProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(12); - }); - } - - QueryBuilder?), QAfterProperty> - subtitlesProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(13); - }); - } - - QueryBuilder userDataProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(14); - }); - } -} - -extension ISyncedItemQueryProperty3 - on QueryBuilder { - QueryBuilder userIdProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(1); - }); - } - - QueryBuilder idProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(2); - }); - } - - QueryBuilder syncingProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(3); - }); - } - - QueryBuilder sortNameProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(4); - }); - } - - QueryBuilder parentIdProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(5); - }); - } - - QueryBuilder pathProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(6); - }); - } - - QueryBuilder fileSizeProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(7); - }); - } - - QueryBuilder - videoFileNameProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(8); - }); - } - - QueryBuilder - trickPlayModelProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(9); - }); - } - - QueryBuilder - mediaSegmentsProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(10); - }); - } - - QueryBuilder imagesProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(11); - }); - } - - QueryBuilder?), QOperations> - chaptersProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(12); - }); - } - - QueryBuilder?), QOperations> - subtitlesProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(13); - }); - } - - QueryBuilder userDataProperty() { - return QueryBuilder.apply(this, (query) { - return query.addProperty(14); - }); - } -} diff --git a/lib/models/syncing/sync_item.dart b/lib/models/syncing/sync_item.dart index 442a97a..8cf31d4 100644 --- a/lib/models/syncing/sync_item.dart +++ b/lib/models/syncing/sync_item.dart @@ -17,13 +17,12 @@ import 'package:fladder/models/items/item_shared_models.dart'; import 'package:fladder/models/items/media_segments_model.dart'; import 'package:fladder/models/items/media_streams_model.dart'; import 'package:fladder/models/items/trick_play_model.dart'; -import 'package:fladder/models/syncing/i_synced_item.dart'; import 'package:fladder/util/localization_helper.dart'; part 'sync_item.freezed.dart'; @Freezed(copyWith: true) -class SyncedItem with _$SyncedItem { +abstract class SyncedItem with _$SyncedItem { const SyncedItem._(); factory SyncedItem({ @@ -126,39 +125,6 @@ class SyncedItem with _$SyncedItem { userData: userData, ); } - - factory SyncedItem.fromIsar(ISyncedItem isarSyncedItem, String savePath) { - return SyncedItem( - id: isarSyncedItem.id, - parentId: isarSyncedItem.parentId, - userId: isarSyncedItem.userId ?? "", - sortName: isarSyncedItem.sortName, - syncing: isarSyncedItem.syncing, - path: joinAll([savePath, isarSyncedItem.path ?? ""]), - fileSize: isarSyncedItem.fileSize, - videoFileName: isarSyncedItem.videoFileName, - mediaSegments: isarSyncedItem.mediaSegments != null - ? MediaSegmentsModel.fromJson(jsonDecode(isarSyncedItem.mediaSegments!)) - : null, - fTrickPlayModel: isarSyncedItem.trickPlayModel != null - ? TrickPlayModel.fromJson(jsonDecode(isarSyncedItem.trickPlayModel!)) - : null, - fImages: isarSyncedItem.images != null ? ImagesData.fromJson(jsonDecode(isarSyncedItem.images!)) : null, - fChapters: isarSyncedItem.chapters - ?.map( - (e) => Chapter.fromJson(jsonDecode(e)), - ) - .toList() ?? - [], - subtitles: isarSyncedItem.subtitles - ?.map( - (e) => SubStreamModel.fromJson(jsonDecode(e)), - ) - .toList() ?? - [], - userData: isarSyncedItem.userData != null ? UserData.fromJson(jsonDecode(isarSyncedItem.userData!)) : null, - ); - } } extension StatusExtension on TaskStatus { diff --git a/lib/models/syncing/sync_item.freezed.dart b/lib/models/syncing/sync_item.freezed.dart index 2be0bd9..57064b2 100644 --- a/lib/models/syncing/sync_item.freezed.dart +++ b/lib/models/syncing/sync_item.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,46 +9,49 @@ part of 'sync_item.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - /// @nodoc mixin _$SyncedItem { - String get id => throw _privateConstructorUsedError; - bool get syncing => throw _privateConstructorUsedError; - String? get parentId => throw _privateConstructorUsedError; - String get userId => throw _privateConstructorUsedError; - String? get path => throw _privateConstructorUsedError; - bool get markedForDelete => throw _privateConstructorUsedError; - String? get sortName => throw _privateConstructorUsedError; - int? get fileSize => throw _privateConstructorUsedError; - String? get videoFileName => throw _privateConstructorUsedError; - MediaSegmentsModel? get mediaSegments => throw _privateConstructorUsedError; - TrickPlayModel? get fTrickPlayModel => throw _privateConstructorUsedError; - ImagesData? get fImages => throw _privateConstructorUsedError; - List get fChapters => throw _privateConstructorUsedError; - List get subtitles => throw _privateConstructorUsedError; - bool get unSyncedData => throw _privateConstructorUsedError; + String get id; + bool get syncing; + String? get parentId; + String get userId; + String? get path; + bool get markedForDelete; + String? get sortName; + int? get fileSize; + String? get videoFileName; + MediaSegmentsModel? get mediaSegments; + TrickPlayModel? get fTrickPlayModel; + ImagesData? get fImages; + List get fChapters; + List get subtitles; + bool get unSyncedData; @UserDataJsonSerializer() - UserData? get userData => - throw _privateConstructorUsedError; // ignore: invalid_annotation_target + UserData? get userData; // ignore: invalid_annotation_target @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? get itemModel => throw _privateConstructorUsedError; + ItemBaseModel? get itemModel; /// Create a copy of SyncedItem /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') $SyncedItemCopyWith get copyWith => - throw _privateConstructorUsedError; + _$SyncedItemCopyWithImpl(this as SyncedItem, _$identity); + + @override + String toString() { + return 'SyncedItem(id: $id, syncing: $syncing, parentId: $parentId, userId: $userId, path: $path, markedForDelete: $markedForDelete, sortName: $sortName, fileSize: $fileSize, videoFileName: $videoFileName, mediaSegments: $mediaSegments, fTrickPlayModel: $fTrickPlayModel, fImages: $fImages, fChapters: $fChapters, subtitles: $subtitles, unSyncedData: $unSyncedData, userData: $userData, itemModel: $itemModel)'; + } } /// @nodoc -abstract class $SyncedItemCopyWith<$Res> { +abstract mixin class $SyncedItemCopyWith<$Res> { factory $SyncedItemCopyWith( - SyncedItem value, $Res Function(SyncedItem) then) = - _$SyncedItemCopyWithImpl<$Res, SyncedItem>; + SyncedItem value, $Res Function(SyncedItem) _then) = + _$SyncedItemCopyWithImpl; @useResult $Res call( {String id, @@ -74,14 +77,11 @@ abstract class $SyncedItemCopyWith<$Res> { } /// @nodoc -class _$SyncedItemCopyWithImpl<$Res, $Val extends SyncedItem> - implements $SyncedItemCopyWith<$Res> { - _$SyncedItemCopyWithImpl(this._value, this._then); +class _$SyncedItemCopyWithImpl<$Res> implements $SyncedItemCopyWith<$Res> { + _$SyncedItemCopyWithImpl(this._self, this._then); - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; + final SyncedItem _self; + final $Res Function(SyncedItem) _then; /// Create a copy of SyncedItem /// with the given fields replaced by the non-null parameter values. @@ -106,76 +106,76 @@ class _$SyncedItemCopyWithImpl<$Res, $Val extends SyncedItem> Object? userData = freezed, Object? itemModel = freezed, }) { - return _then(_value.copyWith( + return _then(_self.copyWith( id: null == id - ? _value.id + ? _self.id : id // ignore: cast_nullable_to_non_nullable as String, syncing: null == syncing - ? _value.syncing + ? _self.syncing : syncing // ignore: cast_nullable_to_non_nullable as bool, parentId: freezed == parentId - ? _value.parentId + ? _self.parentId : parentId // ignore: cast_nullable_to_non_nullable as String?, userId: null == userId - ? _value.userId + ? _self.userId : userId // ignore: cast_nullable_to_non_nullable as String, path: freezed == path - ? _value.path + ? _self.path : path // ignore: cast_nullable_to_non_nullable as String?, markedForDelete: null == markedForDelete - ? _value.markedForDelete + ? _self.markedForDelete : markedForDelete // ignore: cast_nullable_to_non_nullable as bool, sortName: freezed == sortName - ? _value.sortName + ? _self.sortName : sortName // ignore: cast_nullable_to_non_nullable as String?, fileSize: freezed == fileSize - ? _value.fileSize + ? _self.fileSize : fileSize // ignore: cast_nullable_to_non_nullable as int?, videoFileName: freezed == videoFileName - ? _value.videoFileName + ? _self.videoFileName : videoFileName // ignore: cast_nullable_to_non_nullable as String?, mediaSegments: freezed == mediaSegments - ? _value.mediaSegments + ? _self.mediaSegments : mediaSegments // ignore: cast_nullable_to_non_nullable as MediaSegmentsModel?, fTrickPlayModel: freezed == fTrickPlayModel - ? _value.fTrickPlayModel + ? _self.fTrickPlayModel : fTrickPlayModel // ignore: cast_nullable_to_non_nullable as TrickPlayModel?, fImages: freezed == fImages - ? _value.fImages + ? _self.fImages : fImages // ignore: cast_nullable_to_non_nullable as ImagesData?, fChapters: null == fChapters - ? _value.fChapters + ? _self.fChapters : fChapters // ignore: cast_nullable_to_non_nullable as List, subtitles: null == subtitles - ? _value.subtitles + ? _self.subtitles : subtitles // ignore: cast_nullable_to_non_nullable as List, unSyncedData: null == unSyncedData - ? _value.unSyncedData + ? _self.unSyncedData : unSyncedData // ignore: cast_nullable_to_non_nullable as bool, userData: freezed == userData - ? _value.userData + ? _self.userData : userData // ignore: cast_nullable_to_non_nullable as UserData?, itemModel: freezed == itemModel - ? _value.itemModel + ? _self.itemModel : itemModel // ignore: cast_nullable_to_non_nullable as ItemBaseModel?, - ) as $Val); + )); } /// Create a copy of SyncedItem @@ -183,156 +183,285 @@ class _$SyncedItemCopyWithImpl<$Res, $Val extends SyncedItem> @override @pragma('vm:prefer-inline') $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel { - if (_value.fTrickPlayModel == null) { + if (_self.fTrickPlayModel == null) { return null; } - return $TrickPlayModelCopyWith<$Res>(_value.fTrickPlayModel!, (value) { - return _then(_value.copyWith(fTrickPlayModel: value) as $Val); + return $TrickPlayModelCopyWith<$Res>(_self.fTrickPlayModel!, (value) { + return _then(_self.copyWith(fTrickPlayModel: value)); }); } } -/// @nodoc -abstract class _$$SyncItemImplCopyWith<$Res> - implements $SyncedItemCopyWith<$Res> { - factory _$$SyncItemImplCopyWith( - _$SyncItemImpl value, $Res Function(_$SyncItemImpl) then) = - __$$SyncItemImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String id, - bool syncing, - String? parentId, - String userId, - String? path, - bool markedForDelete, - String? sortName, - int? fileSize, - String? videoFileName, - MediaSegmentsModel? mediaSegments, - TrickPlayModel? fTrickPlayModel, - ImagesData? fImages, - List fChapters, - List subtitles, - bool unSyncedData, - @UserDataJsonSerializer() UserData? userData, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel}); +/// Adds pattern-matching-related methods to [SyncedItem]. +extension SyncedItemPatterns on SyncedItem { + /// 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(); + /// } + /// ``` - @override - $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel; -} - -/// @nodoc -class __$$SyncItemImplCopyWithImpl<$Res> - extends _$SyncedItemCopyWithImpl<$Res, _$SyncItemImpl> - implements _$$SyncItemImplCopyWith<$Res> { - __$$SyncItemImplCopyWithImpl( - _$SyncItemImpl _value, $Res Function(_$SyncItemImpl) _then) - : super(_value, _then); - - /// Create a copy of SyncedItem - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? syncing = null, - Object? parentId = freezed, - Object? userId = null, - Object? path = freezed, - Object? markedForDelete = null, - Object? sortName = freezed, - Object? fileSize = freezed, - Object? videoFileName = freezed, - Object? mediaSegments = freezed, - Object? fTrickPlayModel = freezed, - Object? fImages = freezed, - Object? fChapters = null, - Object? subtitles = null, - Object? unSyncedData = null, - Object? userData = freezed, - Object? itemModel = freezed, + @optionalTypeArgs + TResult maybeMap( + TResult Function(_SyncItem value)? $default, { + required TResult orElse(), }) { - return _then(_$SyncItemImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as String, - syncing: null == syncing - ? _value.syncing - : syncing // ignore: cast_nullable_to_non_nullable - as bool, - parentId: freezed == parentId - ? _value.parentId - : parentId // ignore: cast_nullable_to_non_nullable - as String?, - userId: null == userId - ? _value.userId - : userId // ignore: cast_nullable_to_non_nullable - as String, - path: freezed == path - ? _value.path - : path // ignore: cast_nullable_to_non_nullable - as String?, - markedForDelete: null == markedForDelete - ? _value.markedForDelete - : markedForDelete // ignore: cast_nullable_to_non_nullable - as bool, - sortName: freezed == sortName - ? _value.sortName - : sortName // ignore: cast_nullable_to_non_nullable - as String?, - fileSize: freezed == fileSize - ? _value.fileSize - : fileSize // ignore: cast_nullable_to_non_nullable - as int?, - videoFileName: freezed == videoFileName - ? _value.videoFileName - : videoFileName // ignore: cast_nullable_to_non_nullable - as String?, - mediaSegments: freezed == mediaSegments - ? _value.mediaSegments - : mediaSegments // ignore: cast_nullable_to_non_nullable - as MediaSegmentsModel?, - fTrickPlayModel: freezed == fTrickPlayModel - ? _value.fTrickPlayModel - : fTrickPlayModel // ignore: cast_nullable_to_non_nullable - as TrickPlayModel?, - fImages: freezed == fImages - ? _value.fImages - : fImages // ignore: cast_nullable_to_non_nullable - as ImagesData?, - fChapters: null == fChapters - ? _value._fChapters - : fChapters // ignore: cast_nullable_to_non_nullable - as List, - subtitles: null == subtitles - ? _value._subtitles - : subtitles // ignore: cast_nullable_to_non_nullable - as List, - unSyncedData: null == unSyncedData - ? _value.unSyncedData - : unSyncedData // ignore: cast_nullable_to_non_nullable - as bool, - userData: freezed == userData - ? _value.userData - : userData // ignore: cast_nullable_to_non_nullable - as UserData?, - itemModel: freezed == itemModel - ? _value.itemModel - : itemModel // ignore: cast_nullable_to_non_nullable - as ItemBaseModel?, - )); + final _that = this; + switch (_that) { + case _SyncItem() 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(_SyncItem value) $default, + ) { + final _that = this; + switch (_that) { + case _SyncItem(): + 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(_SyncItem value)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncItem() 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 id, + bool syncing, + String? parentId, + String userId, + String? path, + bool markedForDelete, + String? sortName, + int? fileSize, + String? videoFileName, + MediaSegmentsModel? mediaSegments, + TrickPlayModel? fTrickPlayModel, + ImagesData? fImages, + List fChapters, + List subtitles, + bool unSyncedData, + @UserDataJsonSerializer() UserData? userData, + @JsonKey(includeFromJson: false, includeToJson: false) + ItemBaseModel? itemModel)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncItem() when $default != null: + return $default( + _that.id, + _that.syncing, + _that.parentId, + _that.userId, + _that.path, + _that.markedForDelete, + _that.sortName, + _that.fileSize, + _that.videoFileName, + _that.mediaSegments, + _that.fTrickPlayModel, + _that.fImages, + _that.fChapters, + _that.subtitles, + _that.unSyncedData, + _that.userData, + _that.itemModel); + 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 id, + bool syncing, + String? parentId, + String userId, + String? path, + bool markedForDelete, + String? sortName, + int? fileSize, + String? videoFileName, + MediaSegmentsModel? mediaSegments, + TrickPlayModel? fTrickPlayModel, + ImagesData? fImages, + List fChapters, + List subtitles, + bool unSyncedData, + @UserDataJsonSerializer() UserData? userData, + @JsonKey(includeFromJson: false, includeToJson: false) + ItemBaseModel? itemModel) + $default, + ) { + final _that = this; + switch (_that) { + case _SyncItem(): + return $default( + _that.id, + _that.syncing, + _that.parentId, + _that.userId, + _that.path, + _that.markedForDelete, + _that.sortName, + _that.fileSize, + _that.videoFileName, + _that.mediaSegments, + _that.fTrickPlayModel, + _that.fImages, + _that.fChapters, + _that.subtitles, + _that.unSyncedData, + _that.userData, + _that.itemModel); + 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 id, + bool syncing, + String? parentId, + String userId, + String? path, + bool markedForDelete, + String? sortName, + int? fileSize, + String? videoFileName, + MediaSegmentsModel? mediaSegments, + TrickPlayModel? fTrickPlayModel, + ImagesData? fImages, + List fChapters, + List subtitles, + bool unSyncedData, + @UserDataJsonSerializer() UserData? userData, + @JsonKey(includeFromJson: false, includeToJson: false) + ItemBaseModel? itemModel)? + $default, + ) { + final _that = this; + switch (_that) { + case _SyncItem() when $default != null: + return $default( + _that.id, + _that.syncing, + _that.parentId, + _that.userId, + _that.path, + _that.markedForDelete, + _that.sortName, + _that.fileSize, + _that.videoFileName, + _that.mediaSegments, + _that.fTrickPlayModel, + _that.fImages, + _that.fChapters, + _that.subtitles, + _that.unSyncedData, + _that.userData, + _that.itemModel); + case _: + return null; + } } } /// @nodoc -class _$SyncItemImpl extends _SyncItem { - _$SyncItemImpl( +class _SyncItem extends SyncedItem { + _SyncItem( {required this.id, this.syncing = false, this.parentId, @@ -409,83 +538,166 @@ class _$SyncItemImpl extends _SyncItem { @JsonKey(includeFromJson: false, includeToJson: false) final ItemBaseModel? itemModel; + /// Create a copy of SyncedItem + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$SyncItemCopyWith<_SyncItem> get copyWith => + __$SyncItemCopyWithImpl<_SyncItem>(this, _$identity); + @override String toString() { return 'SyncedItem(id: $id, syncing: $syncing, parentId: $parentId, userId: $userId, path: $path, markedForDelete: $markedForDelete, sortName: $sortName, fileSize: $fileSize, videoFileName: $videoFileName, mediaSegments: $mediaSegments, fTrickPlayModel: $fTrickPlayModel, fImages: $fImages, fChapters: $fChapters, subtitles: $subtitles, unSyncedData: $unSyncedData, userData: $userData, itemModel: $itemModel)'; } +} + +/// @nodoc +abstract mixin class _$SyncItemCopyWith<$Res> + implements $SyncedItemCopyWith<$Res> { + factory _$SyncItemCopyWith(_SyncItem value, $Res Function(_SyncItem) _then) = + __$SyncItemCopyWithImpl; + @override + @useResult + $Res call( + {String id, + bool syncing, + String? parentId, + String userId, + String? path, + bool markedForDelete, + String? sortName, + int? fileSize, + String? videoFileName, + MediaSegmentsModel? mediaSegments, + TrickPlayModel? fTrickPlayModel, + ImagesData? fImages, + List fChapters, + List subtitles, + bool unSyncedData, + @UserDataJsonSerializer() UserData? userData, + @JsonKey(includeFromJson: false, includeToJson: false) + ItemBaseModel? itemModel}); + + @override + $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel; +} + +/// @nodoc +class __$SyncItemCopyWithImpl<$Res> implements _$SyncItemCopyWith<$Res> { + __$SyncItemCopyWithImpl(this._self, this._then); + + final _SyncItem _self; + final $Res Function(_SyncItem) _then; /// Create a copy of SyncedItem /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$SyncItemImplCopyWith<_$SyncItemImpl> get copyWith => - __$$SyncItemImplCopyWithImpl<_$SyncItemImpl>(this, _$identity); -} - -abstract class _SyncItem extends SyncedItem { - factory _SyncItem( - {required final String id, - final bool syncing, - final String? parentId, - required final String userId, - final String? path, - final bool markedForDelete, - final String? sortName, - final int? fileSize, - final String? videoFileName, - final MediaSegmentsModel? mediaSegments, - final TrickPlayModel? fTrickPlayModel, - final ImagesData? fImages, - final List fChapters, - final List subtitles, - final bool unSyncedData, - @UserDataJsonSerializer() final UserData? userData, - @JsonKey(includeFromJson: false, includeToJson: false) - final ItemBaseModel? itemModel}) = _$SyncItemImpl; - _SyncItem._() : super._(); - - @override - String get id; - @override - bool get syncing; - @override - String? get parentId; - @override - String get userId; - @override - String? get path; - @override - bool get markedForDelete; - @override - String? get sortName; - @override - int? get fileSize; - @override - String? get videoFileName; - @override - MediaSegmentsModel? get mediaSegments; - @override - TrickPlayModel? get fTrickPlayModel; - @override - ImagesData? get fImages; - @override - List get fChapters; - @override - List get subtitles; - @override - bool get unSyncedData; - @override - @UserDataJsonSerializer() - UserData? get userData; // ignore: invalid_annotation_target - @override - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? get itemModel; + $Res call({ + Object? id = null, + Object? syncing = null, + Object? parentId = freezed, + Object? userId = null, + Object? path = freezed, + Object? markedForDelete = null, + Object? sortName = freezed, + Object? fileSize = freezed, + Object? videoFileName = freezed, + Object? mediaSegments = freezed, + Object? fTrickPlayModel = freezed, + Object? fImages = freezed, + Object? fChapters = null, + Object? subtitles = null, + Object? unSyncedData = null, + Object? userData = freezed, + Object? itemModel = freezed, + }) { + return _then(_SyncItem( + id: null == id + ? _self.id + : id // ignore: cast_nullable_to_non_nullable + as String, + syncing: null == syncing + ? _self.syncing + : syncing // ignore: cast_nullable_to_non_nullable + as bool, + parentId: freezed == parentId + ? _self.parentId + : parentId // ignore: cast_nullable_to_non_nullable + as String?, + userId: null == userId + ? _self.userId + : userId // ignore: cast_nullable_to_non_nullable + as String, + path: freezed == path + ? _self.path + : path // ignore: cast_nullable_to_non_nullable + as String?, + markedForDelete: null == markedForDelete + ? _self.markedForDelete + : markedForDelete // ignore: cast_nullable_to_non_nullable + as bool, + sortName: freezed == sortName + ? _self.sortName + : sortName // ignore: cast_nullable_to_non_nullable + as String?, + fileSize: freezed == fileSize + ? _self.fileSize + : fileSize // ignore: cast_nullable_to_non_nullable + as int?, + videoFileName: freezed == videoFileName + ? _self.videoFileName + : videoFileName // ignore: cast_nullable_to_non_nullable + as String?, + mediaSegments: freezed == mediaSegments + ? _self.mediaSegments + : mediaSegments // ignore: cast_nullable_to_non_nullable + as MediaSegmentsModel?, + fTrickPlayModel: freezed == fTrickPlayModel + ? _self.fTrickPlayModel + : fTrickPlayModel // ignore: cast_nullable_to_non_nullable + as TrickPlayModel?, + fImages: freezed == fImages + ? _self.fImages + : fImages // ignore: cast_nullable_to_non_nullable + as ImagesData?, + fChapters: null == fChapters + ? _self._fChapters + : fChapters // ignore: cast_nullable_to_non_nullable + as List, + subtitles: null == subtitles + ? _self._subtitles + : subtitles // ignore: cast_nullable_to_non_nullable + as List, + unSyncedData: null == unSyncedData + ? _self.unSyncedData + : unSyncedData // ignore: cast_nullable_to_non_nullable + as bool, + userData: freezed == userData + ? _self.userData + : userData // ignore: cast_nullable_to_non_nullable + as UserData?, + itemModel: freezed == itemModel + ? _self.itemModel + : itemModel // ignore: cast_nullable_to_non_nullable + as ItemBaseModel?, + )); + } /// Create a copy of SyncedItem /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SyncItemImplCopyWith<_$SyncItemImpl> get copyWith => - throw _privateConstructorUsedError; + @pragma('vm:prefer-inline') + $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel { + if (_self.fTrickPlayModel == null) { + return null; + } + + return $TrickPlayModelCopyWith<$Res>(_self.fTrickPlayModel!, (value) { + return _then(_self.copyWith(fTrickPlayModel: value)); + }); + } } + +// dart format on diff --git a/lib/models/syncing/sync_settings_model.dart b/lib/models/syncing/sync_settings_model.dart index 5ce7aa4..018f2bb 100644 --- a/lib/models/syncing/sync_settings_model.dart +++ b/lib/models/syncing/sync_settings_model.dart @@ -7,7 +7,7 @@ import 'package:fladder/models/syncing/sync_item.dart'; part 'sync_settings_model.freezed.dart'; @Freezed(toJson: false, fromJson: false, copyWith: true) -class SyncSettingsModel with _$SyncSettingsModel { +abstract class SyncSettingsModel with _$SyncSettingsModel { const SyncSettingsModel._(); factory SyncSettingsModel({ diff --git a/lib/models/syncing/sync_settings_model.freezed.dart b/lib/models/syncing/sync_settings_model.freezed.dart index 7370ac2..b70eeca 100644 --- a/lib/models/syncing/sync_settings_model.freezed.dart +++ b/lib/models/syncing/sync_settings_model.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,75 +9,43 @@ part of 'sync_settings_model.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - /// @nodoc mixin _$SyncSettingsModel { - List get items => throw _privateConstructorUsedError; + List get items; /// Create a copy of SyncSettingsModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $SyncSettingsModelCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SyncSettingsModelCopyWith<$Res> { - factory $SyncSettingsModelCopyWith( - SyncSettingsModel value, $Res Function(SyncSettingsModel) then) = - _$SyncSettingsModelCopyWithImpl<$Res, SyncSettingsModel>; - @useResult - $Res call({List items}); -} - -/// @nodoc -class _$SyncSettingsModelCopyWithImpl<$Res, $Val extends SyncSettingsModel> - implements $SyncSettingsModelCopyWith<$Res> { - _$SyncSettingsModelCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SyncSettingsModel - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $SyncSettingsModelCopyWith get copyWith => + _$SyncSettingsModelCopyWithImpl( + this as SyncSettingsModel, _$identity); + @override - $Res call({ - Object? items = null, - }) { - return _then(_value.copyWith( - items: null == items - ? _value.items - : items // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); + String toString() { + return 'SyncSettingsModel(items: $items)'; } } /// @nodoc -abstract class _$$SyncSettignsModelImplCopyWith<$Res> - implements $SyncSettingsModelCopyWith<$Res> { - factory _$$SyncSettignsModelImplCopyWith(_$SyncSettignsModelImpl value, - $Res Function(_$SyncSettignsModelImpl) then) = - __$$SyncSettignsModelImplCopyWithImpl<$Res>; - @override +abstract mixin class $SyncSettingsModelCopyWith<$Res> { + factory $SyncSettingsModelCopyWith( + SyncSettingsModel value, $Res Function(SyncSettingsModel) _then) = + _$SyncSettingsModelCopyWithImpl; @useResult $Res call({List items}); } /// @nodoc -class __$$SyncSettignsModelImplCopyWithImpl<$Res> - extends _$SyncSettingsModelCopyWithImpl<$Res, _$SyncSettignsModelImpl> - implements _$$SyncSettignsModelImplCopyWith<$Res> { - __$$SyncSettignsModelImplCopyWithImpl(_$SyncSettignsModelImpl _value, - $Res Function(_$SyncSettignsModelImpl) _then) - : super(_value, _then); +class _$SyncSettingsModelCopyWithImpl<$Res> + implements $SyncSettingsModelCopyWith<$Res> { + _$SyncSettingsModelCopyWithImpl(this._self, this._then); + + final SyncSettingsModel _self; + final $Res Function(SyncSettingsModel) _then; /// Create a copy of SyncSettingsModel /// with the given fields replaced by the non-null parameter values. @@ -86,19 +54,176 @@ class __$$SyncSettignsModelImplCopyWithImpl<$Res> $Res call({ Object? items = null, }) { - return _then(_$SyncSettignsModelImpl( + return _then(_self.copyWith( items: null == items - ? _value._items + ? _self.items : items // ignore: cast_nullable_to_non_nullable as List, )); } } +/// Adds pattern-matching-related methods to [SyncSettingsModel]. +extension SyncSettingsModelPatterns on SyncSettingsModel { + /// 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(_SyncSettignsModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncSettignsModel() 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(_SyncSettignsModel value) $default, + ) { + final _that = this; + switch (_that) { + case _SyncSettignsModel(): + 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(_SyncSettignsModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncSettignsModel() 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 items)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncSettignsModel() when $default != null: + return $default(_that.items); + 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 items) $default, + ) { + final _that = this; + switch (_that) { + case _SyncSettignsModel(): + return $default(_that.items); + 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 items)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncSettignsModel() when $default != null: + return $default(_that.items); + case _: + return null; + } + } +} + /// @nodoc -class _$SyncSettignsModelImpl extends _SyncSettignsModel { - _$SyncSettignsModelImpl({final List items = const []}) +class _SyncSettignsModel extends SyncSettingsModel { + _SyncSettignsModel({final List items = const []}) : _items = items, super._(); @@ -111,33 +236,53 @@ class _$SyncSettignsModelImpl extends _SyncSettignsModel { return EqualUnmodifiableListView(_items); } + /// Create a copy of SyncSettingsModel + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$SyncSettignsModelCopyWith<_SyncSettignsModel> get copyWith => + __$SyncSettignsModelCopyWithImpl<_SyncSettignsModel>(this, _$identity); + @override String toString() { return 'SyncSettingsModel(items: $items)'; } +} + +/// @nodoc +abstract mixin class _$SyncSettignsModelCopyWith<$Res> + implements $SyncSettingsModelCopyWith<$Res> { + factory _$SyncSettignsModelCopyWith( + _SyncSettignsModel value, $Res Function(_SyncSettignsModel) _then) = + __$SyncSettignsModelCopyWithImpl; + @override + @useResult + $Res call({List items}); +} + +/// @nodoc +class __$SyncSettignsModelCopyWithImpl<$Res> + implements _$SyncSettignsModelCopyWith<$Res> { + __$SyncSettignsModelCopyWithImpl(this._self, this._then); + + final _SyncSettignsModel _self; + final $Res Function(_SyncSettignsModel) _then; /// Create a copy of SyncSettingsModel /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$SyncSettignsModelImplCopyWith<_$SyncSettignsModelImpl> get copyWith => - __$$SyncSettignsModelImplCopyWithImpl<_$SyncSettignsModelImpl>( - this, _$identity); + $Res call({ + Object? items = null, + }) { + return _then(_SyncSettignsModel( + items: null == items + ? _self._items + : items // ignore: cast_nullable_to_non_nullable + as List, + )); + } } -abstract class _SyncSettignsModel extends SyncSettingsModel { - factory _SyncSettignsModel({final List items}) = - _$SyncSettignsModelImpl; - _SyncSettignsModel._() : super._(); - - @override - List get items; - - /// Create a copy of SyncSettingsModel - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SyncSettignsModelImplCopyWith<_$SyncSettignsModelImpl> get copyWith => - throw _privateConstructorUsedError; -} +// dart format on diff --git a/lib/providers/library_screen_provider.dart b/lib/providers/library_screen_provider.dart index e6a0329..676c46e 100644 --- a/lib/providers/library_screen_provider.dart +++ b/lib/providers/library_screen_provider.dart @@ -46,7 +46,7 @@ enum LibraryViewType { } @Freezed(fromJson: false, toJson: false, copyWith: true) -class LibraryScreenModel with _$LibraryScreenModel { +abstract class LibraryScreenModel with _$LibraryScreenModel { factory LibraryScreenModel({ @Default([]) List views, ViewModel? selectedViewModel, diff --git a/lib/providers/library_screen_provider.freezed.dart b/lib/providers/library_screen_provider.freezed.dart index 6fdf317..7fb9a63 100644 --- a/lib/providers/library_screen_provider.freezed.dart +++ b/lib/providers/library_screen_provider.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,101 +9,37 @@ part of 'library_screen_provider.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - /// @nodoc mixin _$LibraryScreenModel { - List get views => throw _privateConstructorUsedError; - ViewModel? get selectedViewModel => throw _privateConstructorUsedError; - Set get viewType => throw _privateConstructorUsedError; - List get recommendations => - throw _privateConstructorUsedError; - List get genres => throw _privateConstructorUsedError; - List get favourites => throw _privateConstructorUsedError; + List get views; + ViewModel? get selectedViewModel; + Set get viewType; + List get recommendations; + List get genres; + List get favourites; /// Create a copy of LibraryScreenModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - $LibraryScreenModelCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LibraryScreenModelCopyWith<$Res> { - factory $LibraryScreenModelCopyWith( - LibraryScreenModel value, $Res Function(LibraryScreenModel) then) = - _$LibraryScreenModelCopyWithImpl<$Res, LibraryScreenModel>; - @useResult - $Res call( - {List views, - ViewModel? selectedViewModel, - Set viewType, - List recommendations, - List genres, - List favourites}); -} - -/// @nodoc -class _$LibraryScreenModelCopyWithImpl<$Res, $Val extends LibraryScreenModel> - implements $LibraryScreenModelCopyWith<$Res> { - _$LibraryScreenModelCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LibraryScreenModel - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') + $LibraryScreenModelCopyWith get copyWith => + _$LibraryScreenModelCopyWithImpl( + this as LibraryScreenModel, _$identity); + @override - $Res call({ - Object? views = null, - Object? selectedViewModel = freezed, - Object? viewType = null, - Object? recommendations = null, - Object? genres = null, - Object? favourites = null, - }) { - return _then(_value.copyWith( - views: null == views - ? _value.views - : views // ignore: cast_nullable_to_non_nullable - as List, - selectedViewModel: freezed == selectedViewModel - ? _value.selectedViewModel - : selectedViewModel // ignore: cast_nullable_to_non_nullable - as ViewModel?, - viewType: null == viewType - ? _value.viewType - : viewType // ignore: cast_nullable_to_non_nullable - as Set, - recommendations: null == recommendations - ? _value.recommendations - : recommendations // ignore: cast_nullable_to_non_nullable - as List, - genres: null == genres - ? _value.genres - : genres // ignore: cast_nullable_to_non_nullable - as List, - favourites: null == favourites - ? _value.favourites - : favourites // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); + String toString() { + return 'LibraryScreenModel(views: $views, selectedViewModel: $selectedViewModel, viewType: $viewType, recommendations: $recommendations, genres: $genres, favourites: $favourites)'; } } /// @nodoc -abstract class _$$LibraryScreenModelImplCopyWith<$Res> - implements $LibraryScreenModelCopyWith<$Res> { - factory _$$LibraryScreenModelImplCopyWith(_$LibraryScreenModelImpl value, - $Res Function(_$LibraryScreenModelImpl) then) = - __$$LibraryScreenModelImplCopyWithImpl<$Res>; - @override +abstract mixin class $LibraryScreenModelCopyWith<$Res> { + factory $LibraryScreenModelCopyWith( + LibraryScreenModel value, $Res Function(LibraryScreenModel) _then) = + _$LibraryScreenModelCopyWithImpl; @useResult $Res call( {List views, @@ -115,12 +51,12 @@ abstract class _$$LibraryScreenModelImplCopyWith<$Res> } /// @nodoc -class __$$LibraryScreenModelImplCopyWithImpl<$Res> - extends _$LibraryScreenModelCopyWithImpl<$Res, _$LibraryScreenModelImpl> - implements _$$LibraryScreenModelImplCopyWith<$Res> { - __$$LibraryScreenModelImplCopyWithImpl(_$LibraryScreenModelImpl _value, - $Res Function(_$LibraryScreenModelImpl) _then) - : super(_value, _then); +class _$LibraryScreenModelCopyWithImpl<$Res> + implements $LibraryScreenModelCopyWith<$Res> { + _$LibraryScreenModelCopyWithImpl(this._self, this._then); + + final LibraryScreenModel _self; + final $Res Function(LibraryScreenModel) _then; /// Create a copy of LibraryScreenModel /// with the given fields replaced by the non-null parameter values. @@ -134,39 +70,220 @@ class __$$LibraryScreenModelImplCopyWithImpl<$Res> Object? genres = null, Object? favourites = null, }) { - return _then(_$LibraryScreenModelImpl( + return _then(_self.copyWith( views: null == views - ? _value._views + ? _self.views : views // ignore: cast_nullable_to_non_nullable as List, selectedViewModel: freezed == selectedViewModel - ? _value.selectedViewModel + ? _self.selectedViewModel : selectedViewModel // ignore: cast_nullable_to_non_nullable as ViewModel?, viewType: null == viewType - ? _value._viewType + ? _self.viewType : viewType // ignore: cast_nullable_to_non_nullable as Set, recommendations: null == recommendations - ? _value._recommendations + ? _self.recommendations : recommendations // ignore: cast_nullable_to_non_nullable as List, genres: null == genres - ? _value._genres + ? _self.genres : genres // ignore: cast_nullable_to_non_nullable as List, favourites: null == favourites - ? _value._favourites + ? _self.favourites : favourites // ignore: cast_nullable_to_non_nullable as List, )); } } +/// Adds pattern-matching-related methods to [LibraryScreenModel]. +extension LibraryScreenModelPatterns on LibraryScreenModel { + /// 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(_LibraryScreenModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _LibraryScreenModel() 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(_LibraryScreenModel value) $default, + ) { + final _that = this; + switch (_that) { + case _LibraryScreenModel(): + 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(_LibraryScreenModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _LibraryScreenModel() 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 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); + 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 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); + 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 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); + case _: + return null; + } + } +} + /// @nodoc -class _$LibraryScreenModelImpl implements _LibraryScreenModel { - _$LibraryScreenModelImpl( +class _LibraryScreenModel implements LibraryScreenModel { + _LibraryScreenModel( {final List views = const [], this.selectedViewModel, final Set viewType = const { @@ -229,47 +346,84 @@ class _$LibraryScreenModelImpl implements _LibraryScreenModel { return EqualUnmodifiableListView(_favourites); } + /// Create a copy of LibraryScreenModel + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$LibraryScreenModelCopyWith<_LibraryScreenModel> get copyWith => + __$LibraryScreenModelCopyWithImpl<_LibraryScreenModel>(this, _$identity); + @override String toString() { return 'LibraryScreenModel(views: $views, selectedViewModel: $selectedViewModel, viewType: $viewType, recommendations: $recommendations, genres: $genres, favourites: $favourites)'; } +} + +/// @nodoc +abstract mixin class _$LibraryScreenModelCopyWith<$Res> + implements $LibraryScreenModelCopyWith<$Res> { + factory _$LibraryScreenModelCopyWith( + _LibraryScreenModel value, $Res Function(_LibraryScreenModel) _then) = + __$LibraryScreenModelCopyWithImpl; + @override + @useResult + $Res call( + {List views, + ViewModel? selectedViewModel, + Set viewType, + List recommendations, + List genres, + List favourites}); +} + +/// @nodoc +class __$LibraryScreenModelCopyWithImpl<$Res> + implements _$LibraryScreenModelCopyWith<$Res> { + __$LibraryScreenModelCopyWithImpl(this._self, this._then); + + final _LibraryScreenModel _self; + final $Res Function(_LibraryScreenModel) _then; /// Create a copy of LibraryScreenModel /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$LibraryScreenModelImplCopyWith<_$LibraryScreenModelImpl> get copyWith => - __$$LibraryScreenModelImplCopyWithImpl<_$LibraryScreenModelImpl>( - this, _$identity); + $Res call({ + Object? views = null, + Object? selectedViewModel = freezed, + Object? viewType = null, + Object? recommendations = null, + Object? genres = null, + Object? favourites = null, + }) { + return _then(_LibraryScreenModel( + views: null == views + ? _self._views + : views // ignore: cast_nullable_to_non_nullable + as List, + selectedViewModel: freezed == selectedViewModel + ? _self.selectedViewModel + : selectedViewModel // ignore: cast_nullable_to_non_nullable + as ViewModel?, + viewType: null == viewType + ? _self._viewType + : viewType // ignore: cast_nullable_to_non_nullable + as Set, + recommendations: null == recommendations + ? _self._recommendations + : recommendations // ignore: cast_nullable_to_non_nullable + as List, + genres: null == genres + ? _self._genres + : genres // ignore: cast_nullable_to_non_nullable + as List, + favourites: null == favourites + ? _self._favourites + : favourites // ignore: cast_nullable_to_non_nullable + as List, + )); + } } -abstract class _LibraryScreenModel implements LibraryScreenModel { - factory _LibraryScreenModel( - {final List views, - final ViewModel? selectedViewModel, - final Set viewType, - final List recommendations, - final List genres, - final List favourites}) = _$LibraryScreenModelImpl; - - @override - List get views; - @override - ViewModel? get selectedViewModel; - @override - Set get viewType; - @override - List get recommendations; - @override - List get genres; - @override - List get favourites; - - /// Create a copy of LibraryScreenModel - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LibraryScreenModelImplCopyWith<_$LibraryScreenModelImpl> get copyWith => - throw _privateConstructorUsedError; -} +// dart format on diff --git a/lib/providers/session_info_provider.dart b/lib/providers/session_info_provider.dart index 4a36ed6..11cbe6a 100644 --- a/lib/providers/session_info_provider.dart +++ b/lib/providers/session_info_provider.dart @@ -52,7 +52,7 @@ class SessionInfo extends _$SessionInfo { } @freezed -class SessionInfoModel with _$SessionInfoModel { +abstract class SessionInfoModel with _$SessionInfoModel { const SessionInfoModel._(); factory SessionInfoModel({ diff --git a/lib/providers/session_info_provider.freezed.dart b/lib/providers/session_info_provider.freezed.dart index 1f91c0c..04e9ee0 100644 --- a/lib/providers/session_info_provider.freezed.dart +++ b/lib/providers/session_info_provider.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,61 +9,206 @@ part of 'session_info_provider.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -SessionInfoModel _$SessionInfoModelFromJson(Map json) { - return _SessionInfoModel.fromJson(json); -} - /// @nodoc mixin _$SessionInfoModel { - String? get playbackModel => throw _privateConstructorUsedError; - TranscodingInfo? get transCodeInfo => throw _privateConstructorUsedError; + String? get playbackModel; + TranscodingInfo? get transCodeInfo; /// Serializes this SessionInfoModel to a JSON map. - Map toJson() => throw _privateConstructorUsedError; + Map toJson(); + + @override + String toString() { + return 'SessionInfoModel(playbackModel: $playbackModel, transCodeInfo: $transCodeInfo)'; + } +} + +/// Adds pattern-matching-related methods to [SessionInfoModel]. +extension SessionInfoModelPatterns on SessionInfoModel { + /// 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(_SessionInfoModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SessionInfoModel() 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(_SessionInfoModel value) $default, + ) { + final _that = this; + switch (_that) { + case _SessionInfoModel(): + 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(_SessionInfoModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _SessionInfoModel() 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? playbackModel, TranscodingInfo? transCodeInfo)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SessionInfoModel() when $default != null: + return $default(_that.playbackModel, _that.transCodeInfo); + 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? playbackModel, TranscodingInfo? transCodeInfo) + $default, + ) { + final _that = this; + switch (_that) { + case _SessionInfoModel(): + return $default(_that.playbackModel, _that.transCodeInfo); + 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? playbackModel, TranscodingInfo? transCodeInfo)? + $default, + ) { + final _that = this; + switch (_that) { + case _SessionInfoModel() when $default != null: + return $default(_that.playbackModel, _that.transCodeInfo); + case _: + return null; + } + } } /// @nodoc @JsonSerializable() -class _$SessionInfoModelImpl extends _SessionInfoModel { - _$SessionInfoModelImpl({this.playbackModel, this.transCodeInfo}) : super._(); - - factory _$SessionInfoModelImpl.fromJson(Map json) => - _$$SessionInfoModelImplFromJson(json); +class _SessionInfoModel extends SessionInfoModel { + _SessionInfoModel({this.playbackModel, this.transCodeInfo}) : super._(); + factory _SessionInfoModel.fromJson(Map json) => + _$SessionInfoModelFromJson(json); @override final String? playbackModel; @override final TranscodingInfo? transCodeInfo; - @override - String toString() { - return 'SessionInfoModel(playbackModel: $playbackModel, transCodeInfo: $transCodeInfo)'; - } - @override Map toJson() { - return _$$SessionInfoModelImplToJson( + return _$SessionInfoModelToJson( this, ); } -} - -abstract class _SessionInfoModel extends SessionInfoModel { - factory _SessionInfoModel( - {final String? playbackModel, - final TranscodingInfo? transCodeInfo}) = _$SessionInfoModelImpl; - _SessionInfoModel._() : super._(); - - factory _SessionInfoModel.fromJson(Map json) = - _$SessionInfoModelImpl.fromJson; @override - String? get playbackModel; - @override - TranscodingInfo? get transCodeInfo; + String toString() { + return 'SessionInfoModel(playbackModel: $playbackModel, transCodeInfo: $transCodeInfo)'; + } } + +// dart format on diff --git a/lib/providers/session_info_provider.g.dart b/lib/providers/session_info_provider.g.dart index fc0616e..0043207 100644 --- a/lib/providers/session_info_provider.g.dart +++ b/lib/providers/session_info_provider.g.dart @@ -6,9 +6,8 @@ part of 'session_info_provider.dart'; // JsonSerializableGenerator // ************************************************************************** -_$SessionInfoModelImpl _$$SessionInfoModelImplFromJson( - Map json) => - _$SessionInfoModelImpl( +_SessionInfoModel _$SessionInfoModelFromJson(Map json) => + _SessionInfoModel( playbackModel: json['playbackModel'] as String?, transCodeInfo: json['transCodeInfo'] == null ? null @@ -16,8 +15,7 @@ _$SessionInfoModelImpl _$$SessionInfoModelImplFromJson( json['transCodeInfo'] as Map), ); -Map _$$SessionInfoModelImplToJson( - _$SessionInfoModelImpl instance) => +Map _$SessionInfoModelToJson(_SessionInfoModel instance) => { 'playbackModel': instance.playbackModel, 'transCodeInfo': instance.transCodeInfo, diff --git a/lib/providers/sync_provider.dart b/lib/providers/sync_provider.dart index 031897e..f537e72 100644 --- a/lib/providers/sync_provider.dart +++ b/lib/providers/sync_provider.dart @@ -41,7 +41,6 @@ import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/screens/shared/fladder_snackbar.dart'; import 'package:fladder/util/duration_extensions.dart'; import 'package:fladder/util/localization_helper.dart'; -import 'package:fladder/util/migration/isar_drift_migration.dart'; final syncProvider = StateNotifierProvider((ref) => throw UnimplementedError()); @@ -67,11 +66,6 @@ class SyncNotifier extends StateNotifier { updateSyncStates(); } - void migrateFromIsar() async { - await isarMigration(ref, _db, mainDirectory.path); - _initializeQueryStream(); - } - Future updateSyncStates() async { final lastState = (await _db.getAllItems.get()).where((item) => item.unSyncedData && item.userData != null).toList(); @@ -114,7 +108,7 @@ class SyncNotifier extends StateNotifier { updateSyncStates(); } }); - migrateFromIsar(); + _initializeQueryStream(); } void _initializeQueryStream({String? id}) async { diff --git a/lib/providers/sync_provider_web.dart b/lib/providers/sync_provider_web.dart deleted file mode 100644 index 78789de..0000000 --- a/lib/providers/sync_provider_web.dart +++ /dev/null @@ -1,13 +0,0 @@ -import 'dart:io'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:isar/isar.dart'; - -class AbstractSyncNotifier { - final Ref ref; - final Isar? isar; - final Directory mobileDirectory; - final String subPath = "Synced"; - - AbstractSyncNotifier(this.ref, this.isar, this.mobileDirectory); -} diff --git a/lib/providers/update_provider.dart b/lib/providers/update_provider.dart index cc775fa..4101094 100644 --- a/lib/providers/update_provider.dart +++ b/lib/providers/update_provider.dart @@ -77,7 +77,7 @@ class Update extends _$Update { } @Freezed(toJson: false, fromJson: false) -class UpdatesModel with _$UpdatesModel { +abstract class UpdatesModel with _$UpdatesModel { const UpdatesModel._(); factory UpdatesModel({ diff --git a/lib/providers/update_provider.freezed.dart b/lib/providers/update_provider.freezed.dart index 9b5131a..0726057 100644 --- a/lib/providers/update_provider.freezed.dart +++ b/lib/providers/update_provider.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,20 +9,187 @@ part of 'update_provider.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - /// @nodoc -mixin _$UpdatesModel { - List get lastRelease => throw _privateConstructorUsedError; +mixin _$UpdatesModel implements DiagnosticableTreeMixin { + List get lastRelease; + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'UpdatesModel')) + ..add(DiagnosticsProperty('lastRelease', lastRelease)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'UpdatesModel(lastRelease: $lastRelease)'; + } +} + +/// Adds pattern-matching-related methods to [UpdatesModel]. +extension UpdatesModelPatterns on UpdatesModel { + /// 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(_UpdatesModel value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _UpdatesModel() 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(_UpdatesModel value) $default, + ) { + final _that = this; + switch (_that) { + case _UpdatesModel(): + 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(_UpdatesModel value)? $default, + ) { + final _that = this; + switch (_that) { + case _UpdatesModel() 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 lastRelease)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _UpdatesModel() when $default != null: + return $default(_that.lastRelease); + 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 lastRelease) $default, + ) { + final _that = this; + switch (_that) { + case _UpdatesModel(): + return $default(_that.lastRelease); + 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 lastRelease)? $default, + ) { + final _that = this; + switch (_that) { + case _UpdatesModel() when $default != null: + return $default(_that.lastRelease); + case _: + return null; + } + } } /// @nodoc -class _$UpdatesModelImpl extends _UpdatesModel with DiagnosticableTreeMixin { - _$UpdatesModelImpl({final List lastRelease = const []}) +class _UpdatesModel extends UpdatesModel with DiagnosticableTreeMixin { + _UpdatesModel({final List lastRelease = const []}) : _lastRelease = lastRelease, super._(); @@ -35,25 +202,17 @@ class _$UpdatesModelImpl extends _UpdatesModel with DiagnosticableTreeMixin { return EqualUnmodifiableListView(_lastRelease); } - @override - String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'UpdatesModel(lastRelease: $lastRelease)'; - } - @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { - super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'UpdatesModel')) ..add(DiagnosticsProperty('lastRelease', lastRelease)); } -} - -abstract class _UpdatesModel extends UpdatesModel { - factory _UpdatesModel({final List lastRelease}) = - _$UpdatesModelImpl; - _UpdatesModel._() : super._(); @override - List get lastRelease; + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'UpdatesModel(lastRelease: $lastRelease)'; + } } + +// dart format on diff --git a/lib/routes/auto_router.dart b/lib/routes/auto_router.dart index bd4359d..5f24c99 100644 --- a/lib/routes/auto_router.dart +++ b/lib/routes/auto_router.dart @@ -136,7 +136,7 @@ class AuthGuard extends AutoRouteGuard { return resolver.next(true); } - resolver.redirect(SplashRoute(loggedIn: (value) { + resolver.redirectUntil(SplashRoute(loggedIn: (value) { if (value) { resolver.next(true); } else { diff --git a/lib/routes/auto_router.gr.dart b/lib/routes/auto_router.gr.dart index ba2be2b..840e506 100644 --- a/lib/routes/auto_router.gr.dart +++ b/lib/routes/auto_router.gr.dart @@ -1,3 +1,4 @@ +// dart format width=80 // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** @@ -8,9 +9,10 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i23; +import 'dart:async' as _i24; import 'package:auto_route/auto_route.dart' as _i18; +import 'package:collection/collection.dart' as _i23; import 'package:fladder/models/item_base_model.dart' as _i19; import 'package:fladder/models/items/photos_model.dart' as _i22; import 'package:fladder/models/library_search/library_search_options.dart' @@ -35,16 +37,13 @@ import 'package:fladder/screens/settings/settings_selection_screen.dart' import 'package:fladder/screens/splash_screen.dart' as _i16; import 'package:fladder/screens/syncing/synced_screen.dart' as _i17; import 'package:flutter/foundation.dart' as _i20; -import 'package:flutter/material.dart' as _i24; +import 'package:flutter/material.dart' as _i25; /// generated route for /// [_i1.AboutSettingsPage] class AboutSettingsRoute extends _i18.PageRouteInfo { const AboutSettingsRoute({List<_i18.PageRouteInfo>? children}) - : super( - AboutSettingsRoute.name, - initialChildren: children, - ); + : super(AboutSettingsRoute.name, initialChildren: children); static const String name = 'AboutSettingsRoute'; @@ -60,10 +59,7 @@ class AboutSettingsRoute extends _i18.PageRouteInfo { /// [_i2.ClientSettingsPage] class ClientSettingsRoute extends _i18.PageRouteInfo { const ClientSettingsRoute({List<_i18.PageRouteInfo>? children}) - : super( - ClientSettingsRoute.name, - initialChildren: children, - ); + : super(ClientSettingsRoute.name, initialChildren: children); static const String name = 'ClientSettingsRoute'; @@ -79,10 +75,7 @@ class ClientSettingsRoute extends _i18.PageRouteInfo { /// [_i3.DashboardScreen] class DashboardRoute extends _i18.PageRouteInfo { const DashboardRoute({List<_i18.PageRouteInfo>? children}) - : super( - DashboardRoute.name, - initialChildren: children, - ); + : super(DashboardRoute.name, initialChildren: children); static const String name = 'DashboardRoute'; @@ -104,11 +97,7 @@ class DetailsRoute extends _i18.PageRouteInfo { List<_i18.PageRouteInfo>? children, }) : super( DetailsRoute.name, - args: DetailsRouteArgs( - id: id, - item: item, - key: key, - ), + args: DetailsRouteArgs(id: id, item: item, key: key), rawQueryParams: {'id': id}, initialChildren: children, ); @@ -120,26 +109,15 @@ class DetailsRoute extends _i18.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => DetailsRouteArgs( - id: queryParams.getString( - 'id', - '', - ))); - return _i4.DetailsScreen( - id: args.id, - item: args.item, - key: args.key, + orElse: () => DetailsRouteArgs(id: queryParams.getString('id', '')), ); + return _i4.DetailsScreen(id: args.id, item: args.item, key: args.key); }, ); } class DetailsRouteArgs { - const DetailsRouteArgs({ - this.id = '', - this.item, - this.key, - }); + const DetailsRouteArgs({this.id = '', this.item, this.key}); final String id; @@ -151,16 +129,23 @@ class DetailsRouteArgs { String toString() { return 'DetailsRouteArgs{id: $id, item: $item, key: $key}'; } + + @override + bool operator ==(Object other) { + if (identical(this, other)) return true; + if (other is! DetailsRouteArgs) return false; + return id == other.id && item == other.item && key == other.key; + } + + @override + int get hashCode => id.hashCode ^ item.hashCode ^ key.hashCode; } /// generated route for /// [_i5.FavouritesScreen] class FavouritesRoute extends _i18.PageRouteInfo { const FavouritesRoute({List<_i18.PageRouteInfo>? children}) - : super( - FavouritesRoute.name, - initialChildren: children, - ); + : super(FavouritesRoute.name, initialChildren: children); static const String name = 'FavouritesRoute'; @@ -176,10 +161,7 @@ class FavouritesRoute extends _i18.PageRouteInfo { /// [_i6.HomeScreen] class HomeRoute extends _i18.PageRouteInfo { const HomeRoute({List<_i18.PageRouteInfo>? children}) - : super( - HomeRoute.name, - initialChildren: children, - ); + : super(HomeRoute.name, initialChildren: children); static const String name = 'HomeRoute'; @@ -195,10 +177,7 @@ class HomeRoute extends _i18.PageRouteInfo { /// [_i7.LibraryScreen] class LibraryRoute extends _i18.PageRouteInfo { const LibraryRoute({List<_i18.PageRouteInfo>? children}) - : super( - LibraryRoute.name, - initialChildren: children, - ); + : super(LibraryRoute.name, initialChildren: children); static const String name = 'LibraryRoute'; @@ -250,13 +229,14 @@ class LibrarySearchRoute extends _i18.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => LibrarySearchRouteArgs( - viewModelId: queryParams.optString('parentId'), - folderId: queryParams.optList('folderId'), - favourites: queryParams.optBool('favourites'), - sortOrder: queryParams.get('sortOrder'), - sortingOptions: queryParams.get('sortOptions'), - )); + orElse: () => LibrarySearchRouteArgs( + viewModelId: queryParams.optString('parentId'), + folderId: queryParams.optList('folderId'), + favourites: queryParams.optBool('favourites'), + sortOrder: queryParams.get('sortOrder'), + sortingOptions: queryParams.get('sortOptions'), + ), + ); return _i8.LibrarySearchScreen( viewModelId: args.viewModelId, folderId: args.folderId, @@ -299,16 +279,36 @@ class LibrarySearchRouteArgs { String toString() { return 'LibrarySearchRouteArgs{viewModelId: $viewModelId, folderId: $folderId, favourites: $favourites, sortOrder: $sortOrder, sortingOptions: $sortingOptions, photoToView: $photoToView, key: $key}'; } + + @override + bool operator ==(Object other) { + if (identical(this, other)) return true; + if (other is! LibrarySearchRouteArgs) return false; + return viewModelId == other.viewModelId && + const _i23.ListEquality().equals(folderId, other.folderId) && + favourites == other.favourites && + sortOrder == other.sortOrder && + sortingOptions == other.sortingOptions && + photoToView == other.photoToView && + key == other.key; + } + + @override + int get hashCode => + viewModelId.hashCode ^ + const _i23.ListEquality().hash(folderId) ^ + favourites.hashCode ^ + sortOrder.hashCode ^ + sortingOptions.hashCode ^ + photoToView.hashCode ^ + key.hashCode; } /// generated route for /// [_i9.LockScreen] class LockRoute extends _i18.PageRouteInfo { const LockRoute({List<_i18.PageRouteInfo>? children}) - : super( - LockRoute.name, - initialChildren: children, - ); + : super(LockRoute.name, initialChildren: children); static const String name = 'LockRoute'; @@ -324,10 +324,7 @@ class LockRoute extends _i18.PageRouteInfo { /// [_i10.LoginScreen] class LoginRoute extends _i18.PageRouteInfo { const LoginRoute({List<_i18.PageRouteInfo>? children}) - : super( - LoginRoute.name, - initialChildren: children, - ); + : super(LoginRoute.name, initialChildren: children); static const String name = 'LoginRoute'; @@ -345,8 +342,8 @@ class PhotoViewerRoute extends _i18.PageRouteInfo { PhotoViewerRoute({ List<_i22.PhotoModel>? items, String? selected, - _i23.Future>? loadingItems, - _i24.Key? key, + _i24.Future>? loadingItems, + _i25.Key? key, List<_i18.PageRouteInfo>? children, }) : super( PhotoViewerRoute.name, @@ -367,8 +364,9 @@ class PhotoViewerRoute extends _i18.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => PhotoViewerRouteArgs( - selected: queryParams.optString('selectedId'))); + orElse: () => + PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')), + ); return _i11.PhotoViewerScreen( items: args.items, selected: args.selected, @@ -391,24 +389,38 @@ class PhotoViewerRouteArgs { final String? selected; - final _i23.Future>? loadingItems; + final _i24.Future>? loadingItems; - final _i24.Key? key; + final _i25.Key? key; @override String toString() { return 'PhotoViewerRouteArgs{items: $items, selected: $selected, loadingItems: $loadingItems, key: $key}'; } + + @override + bool operator ==(Object other) { + if (identical(this, other)) return true; + if (other is! PhotoViewerRouteArgs) return false; + return const _i23.ListEquality().equals(items, other.items) && + selected == other.selected && + loadingItems == other.loadingItems && + key == other.key; + } + + @override + int get hashCode => + const _i23.ListEquality().hash(items) ^ + selected.hashCode ^ + loadingItems.hashCode ^ + key.hashCode; } /// generated route for /// [_i12.PlayerSettingsPage] class PlayerSettingsRoute extends _i18.PageRouteInfo { const PlayerSettingsRoute({List<_i18.PageRouteInfo>? children}) - : super( - PlayerSettingsRoute.name, - initialChildren: children, - ); + : super(PlayerSettingsRoute.name, initialChildren: children); static const String name = 'PlayerSettingsRoute'; @@ -424,10 +436,7 @@ class PlayerSettingsRoute extends _i18.PageRouteInfo { /// [_i13.SecuritySettingsPage] class SecuritySettingsRoute extends _i18.PageRouteInfo { const SecuritySettingsRoute({List<_i18.PageRouteInfo>? children}) - : super( - SecuritySettingsRoute.name, - initialChildren: children, - ); + : super(SecuritySettingsRoute.name, initialChildren: children); static const String name = 'SecuritySettingsRoute'; @@ -443,10 +452,7 @@ class SecuritySettingsRoute extends _i18.PageRouteInfo { /// [_i14.SettingsScreen] class SettingsRoute extends _i18.PageRouteInfo { const SettingsRoute({List<_i18.PageRouteInfo>? children}) - : super( - SettingsRoute.name, - initialChildren: children, - ); + : super(SettingsRoute.name, initialChildren: children); static const String name = 'SettingsRoute'; @@ -462,10 +468,7 @@ class SettingsRoute extends _i18.PageRouteInfo { /// [_i15.SettingsSelectionScreen] class SettingsSelectionRoute extends _i18.PageRouteInfo { const SettingsSelectionRoute({List<_i18.PageRouteInfo>? children}) - : super( - SettingsSelectionRoute.name, - initialChildren: children, - ); + : super(SettingsSelectionRoute.name, initialChildren: children); static const String name = 'SettingsSelectionRoute'; @@ -482,14 +485,11 @@ class SettingsSelectionRoute extends _i18.PageRouteInfo { class SplashRoute extends _i18.PageRouteInfo { SplashRoute({ dynamic Function(bool)? loggedIn, - _i24.Key? key, + _i25.Key? key, List<_i18.PageRouteInfo>? children, }) : super( SplashRoute.name, - args: SplashRouteArgs( - loggedIn: loggedIn, - key: key, - ), + args: SplashRouteArgs(loggedIn: loggedIn, key: key), initialChildren: children, ); @@ -498,37 +498,42 @@ class SplashRoute extends _i18.PageRouteInfo { static _i18.PageInfo page = _i18.PageInfo( name, builder: (data) { - final args = - data.argsAs(orElse: () => const SplashRouteArgs()); - return _i16.SplashScreen( - loggedIn: args.loggedIn, - key: args.key, + final args = data.argsAs( + orElse: () => const SplashRouteArgs(), ); + return _i16.SplashScreen(loggedIn: args.loggedIn, key: args.key); }, ); } class SplashRouteArgs { - const SplashRouteArgs({ - this.loggedIn, - this.key, - }); + const SplashRouteArgs({this.loggedIn, this.key}); final dynamic Function(bool)? loggedIn; - final _i24.Key? key; + final _i25.Key? key; @override String toString() { return 'SplashRouteArgs{loggedIn: $loggedIn, key: $key}'; } + + @override + bool operator ==(Object other) { + if (identical(this, other)) return true; + if (other is! SplashRouteArgs) return false; + return key == other.key; + } + + @override + int get hashCode => key.hashCode; } /// generated route for /// [_i17.SyncedScreen] class SyncedRoute extends _i18.PageRouteInfo { SyncedRoute({ - _i24.ScrollController? navigationScrollController, + _i25.ScrollController? navigationScrollController, _i20.Key? key, List<_i18.PageRouteInfo>? children, }) : super( @@ -545,8 +550,9 @@ class SyncedRoute extends _i18.PageRouteInfo { static _i18.PageInfo page = _i18.PageInfo( name, builder: (data) { - final args = - data.argsAs(orElse: () => const SyncedRouteArgs()); + final args = data.argsAs( + orElse: () => const SyncedRouteArgs(), + ); return _i17.SyncedScreen( navigationScrollController: args.navigationScrollController, key: args.key, @@ -556,12 +562,9 @@ class SyncedRoute extends _i18.PageRouteInfo { } class SyncedRouteArgs { - const SyncedRouteArgs({ - this.navigationScrollController, - this.key, - }); + const SyncedRouteArgs({this.navigationScrollController, this.key}); - final _i24.ScrollController? navigationScrollController; + final _i25.ScrollController? navigationScrollController; final _i20.Key? key; @@ -569,4 +572,15 @@ class SyncedRouteArgs { String toString() { return 'SyncedRouteArgs{navigationScrollController: $navigationScrollController, key: $key}'; } + + @override + bool operator ==(Object other) { + if (identical(this, other)) return true; + if (other is! SyncedRouteArgs) return false; + return navigationScrollController == other.navigationScrollController && + key == other.key; + } + + @override + int get hashCode => navigationScrollController.hashCode ^ key.hashCode; } diff --git a/lib/screens/library_search/widgets/library_filter_chips.dart b/lib/screens/library_search/widgets/library_filter_chips.dart index 94cf3bb..07487b0 100644 --- a/lib/screens/library_search/widgets/library_filter_chips.dart +++ b/lib/screens/library_search/widgets/library_filter_chips.dart @@ -173,14 +173,16 @@ class _LibraryFilterChipsState extends ConsumerState { children: [ Text(context.localized.groupBy), ...GroupBy.values.map( - (group) => RadioListTile.adaptive( - value: group, + (group) => RadioGroup( groupValue: groupBy, - title: Text(group.value(context)), onChanged: (_) { provider.setGroupBy(group); Navigator.pop(context); }, + child: RadioListTile.adaptive( + value: group, + title: Text(group.value(context)), + ), ), ), ], diff --git a/lib/screens/library_search/widgets/library_sort_dialogue.dart b/lib/screens/library_search/widgets/library_sort_dialogue.dart index 4dc4604..d404a0d 100644 --- a/lib/screens/library_search/widgets/library_sort_dialogue.dart +++ b/lib/screens/library_search/widgets/library_sort_dialogue.dart @@ -1,7 +1,8 @@ +import 'package:flutter/material.dart'; + import 'package:fladder/models/library_search/library_search_options.dart'; import 'package:fladder/providers/library_search_provider.dart'; import 'package:fladder/util/localization_helper.dart'; -import 'package:flutter/material.dart'; Future<(SortingOptions? sortOptions, SortingOrder? sortingOrder)?> openSortByDialogue( BuildContext context, { @@ -27,9 +28,7 @@ Future<(SortingOptions? sortOptions, SortingOrder? sortingOrder)?> openSortByDia child: Text(context.localized.sortBy, style: Theme.of(context).textTheme.titleLarge), ), const SizedBox(height: 8), - ...SortingOptions.values.map((e) => RadioListTile.adaptive( - value: e, - title: Text(e.label(context)), + ...SortingOptions.values.map((e) => RadioGroup( groupValue: newSortingOptions, onChanged: (value) { state( @@ -38,6 +37,10 @@ Future<(SortingOptions? sortOptions, SortingOrder? sortingOrder)?> openSortByDia }, ); }, + child: RadioListTile.adaptive( + value: e, + title: Text(e.label(context)), + ), )), const Padding( padding: EdgeInsets.symmetric(vertical: 8), @@ -49,9 +52,7 @@ Future<(SortingOptions? sortOptions, SortingOrder? sortingOrder)?> openSortByDia ), const SizedBox(height: 8), ...SortingOrder.values.map( - (e) => RadioListTile.adaptive( - value: e, - title: Text(e.label(context)), + (e) => RadioGroup( groupValue: newSortOrder, onChanged: (value) { state( @@ -60,6 +61,10 @@ Future<(SortingOptions? sortOptions, SortingOrder? sortingOrder)?> openSortByDia }, ); }, + child: RadioListTile.adaptive( + value: e, + title: Text(e.label(context)), + ), ), ), ], diff --git a/lib/screens/login/lock_screen.dart b/lib/screens/login/lock_screen.dart index 970de2e..8413c25 100644 --- a/lib/screens/login/lock_screen.dart +++ b/lib/screens/login/lock_screen.dart @@ -59,7 +59,7 @@ class _LockScreenState extends ConsumerState with WidgetsBindingObse void handleLogin(AccountModel user) { ref.read(lockScreenActiveProvider.notifier).update((state) => false); poppingLockScreen = true; - context.router.popForced(); + context.router.pop(); } void tapLoggedInAccount(AccountModel user) async { diff --git a/lib/screens/settings/client_sections/client_settings_theme.dart b/lib/screens/settings/client_sections/client_settings_theme.dart index cbef7c3..5b69e27 100644 --- a/lib/screens/settings/client_sections/client_settings_theme.dart +++ b/lib/screens/settings/client_sections/client_settings_theme.dart @@ -24,13 +24,15 @@ List buildClientSettingsTheme(BuildContext context, WidgetRef ref) { items: ThemeMode.values, selected: [ref.read(clientSettingsProvider.select((value) => value.themeMode))], onChanged: (values) => ref.read(clientSettingsProvider.notifier).setThemeMode(values.first), - itemBuilder: (type, selected, tap) => RadioListTile( - value: type, - title: Text(type.label(context)), - contentPadding: EdgeInsets.zero, - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)), + itemBuilder: (type, selected, tap) => RadioGroup( groupValue: ref.read(clientSettingsProvider.select((value) => value.themeMode)), onChanged: (value) => tap(), + child: RadioListTile( + value: type, + title: Text(type.label(context)), + contentPadding: EdgeInsets.zero, + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)), + ), ), ), ), @@ -43,37 +45,39 @@ List buildClientSettingsTheme(BuildContext context, WidgetRef ref) { items: [null, ...ColorThemes.values], selected: [(ref.read(clientSettingsProvider.select((value) => value.themeColor)))], onChanged: (values) => ref.read(clientSettingsProvider.notifier).setThemeColor(values.first), - itemBuilder: (type, selected, tap) => RadioListTile( - groupValue: ref.read(clientSettingsProvider.select((value) => value.themeColor)), - contentPadding: EdgeInsets.zero, - value: type, + itemBuilder: (type, selected, tap) => RadioGroup( onChanged: (value) => tap(), - title: Row( - children: [ - Container( - height: 24, - width: 24, - decoration: BoxDecoration( - gradient: type == null - ? const SweepGradient( - center: FractionalOffset.center, - colors: [ - Color(0xFF4285F4), // blue - Color(0xFF34A853), // green - Color(0xFFFBBC05), // yellow - Color(0xFFEA4335), // red - Color(0xFF4285F4), // blue again to seamlessly transition to the start - ], - stops: [0.0, 0.25, 0.5, 0.75, 1.0], - ) - : null, - color: type?.color, - borderRadius: BorderRadius.circular(4), + groupValue: ref.read(clientSettingsProvider.select((value) => value.themeColor)), + child: RadioListTile( + contentPadding: EdgeInsets.zero, + value: type, + title: Row( + children: [ + Container( + height: 24, + width: 24, + decoration: BoxDecoration( + gradient: type == null + ? const SweepGradient( + center: FractionalOffset.center, + colors: [ + Color(0xFF4285F4), // blue + Color(0xFF34A853), // green + Color(0xFFFBBC05), // yellow + Color(0xFFEA4335), // red + Color(0xFF4285F4), // blue again to seamlessly transition to the start + ], + stops: [0.0, 0.25, 0.5, 0.75, 1.0], + ) + : null, + color: type?.color, + borderRadius: BorderRadius.circular(4), + ), ), - ), - const SizedBox(width: 8), - Text(type?.name ?? context.localized.dynamicText), - ], + const SizedBox(width: 8), + Text(type?.name ?? context.localized.dynamicText), + ], + ), ), ), ), @@ -88,12 +92,14 @@ List buildClientSettingsTheme(BuildContext context, WidgetRef ref) { items: DynamicSchemeVariant.values, selected: [(ref.read(clientSettingsProvider.select((value) => value.schemeVariant)))], onChanged: (values) => ref.read(clientSettingsProvider.notifier).setSchemeVariant(values.first), - itemBuilder: (type, selected, tap) => RadioListTile( - groupValue: selected ? type : null, - contentPadding: EdgeInsets.zero, - value: type, + itemBuilder: (type, selected, tap) => RadioGroup( onChanged: (value) => tap(), - title: Text(type.label(context)), + groupValue: selected ? type : null, + child: RadioListTile( + contentPadding: EdgeInsets.zero, + value: type, + title: Text(type.label(context)), + ), ), ); }, diff --git a/lib/screens/settings/settings_scaffold.dart b/lib/screens/settings/settings_scaffold.dart index bc73784..bfcc437 100644 --- a/lib/screens/settings/settings_scaffold.dart +++ b/lib/screens/settings/settings_scaffold.dart @@ -117,7 +117,7 @@ class SettingsScaffold extends ConsumerWidget { if (AdaptiveLayout.layoutModeOf(context) == LayoutMode.single && context.tabsRouter.activeIndex != 0) { context.tabsRouter.setActiveIndex(0); } else { - context.router.popForced(); + context.router.pop(); } } else { context.router.popBack(); diff --git a/lib/screens/syncing/synced_screen.dart b/lib/screens/syncing/synced_screen.dart index a8331cf..0f08e2f 100644 --- a/lib/screens/syncing/synced_screen.dart +++ b/lib/screens/syncing/synced_screen.dart @@ -70,10 +70,6 @@ class _SyncedScreenState extends ConsumerState { onPressed: () => ref.read(syncProvider.notifier).removeAllSyncedData(), child: const Text("Clear drift database"), ), - ElevatedButton( - onPressed: () => ref.read(syncProvider.notifier).migrateFromIsar(), - child: const Text("Migrate Isar to Drift"), - ), ], ), ), diff --git a/lib/screens/video_player/components/video_player_quality_controls.dart b/lib/screens/video_player/components/video_player_quality_controls.dart index 8d883bc..66ad1e9 100644 --- a/lib/screens/video_player/components/video_player_quality_controls.dart +++ b/lib/screens/video_player/components/video_player_quality_controls.dart @@ -42,23 +42,24 @@ class _QualityOptionsDialogue extends ConsumerWidget { shrinkWrap: true, children: qualityOptions?.entries .map( - (entry) => RadioListTile( - value: entry.value, - groupValue: true, - onChanged: (value) async { - final newModel = await playbackModel?.setQualityOption( - qualityOptions.map( - (key, value) => MapEntry(key, key == entry.key ? true : false), - ), - ); - ref.read(playBackModel.notifier).update((state) => newModel); - if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); - } - context.router.maybePop(); - }, - title: Text(entry.key.label(context)), - ), + (entry) => RadioGroup( + groupValue: true, + onChanged: (value) async { + final newModel = await playbackModel?.setQualityOption( + qualityOptions.map( + (key, value) => MapEntry(key, key == entry.key ? true : false), + ), + ); + ref.read(playBackModel.notifier).update((state) => newModel); + if (newModel != null) { + await ref.read(playbackModelHelper).shouldReload(newModel); + } + context.router.maybePop(); + }, + child: RadioListTile( + value: entry.value, + title: Text(entry.key.label(context)), + )), ) .toList() ?? [], diff --git a/lib/util/application_info.dart b/lib/util/application_info.dart index b3ccfa7..9e49d2a 100644 --- a/lib/util/application_info.dart +++ b/lib/util/application_info.dart @@ -14,7 +14,7 @@ final applicationInfoProvider = StateProvider((ref) { }); @Freezed(toJson: false, fromJson: false) -class ApplicationInfo with _$ApplicationInfo { +abstract class ApplicationInfo with _$ApplicationInfo { const ApplicationInfo._(); factory ApplicationInfo({ diff --git a/lib/util/application_info.freezed.dart b/lib/util/application_info.freezed.dart index fd153dd..cd3ecd4 100644 --- a/lib/util/application_info.freezed.dart +++ b/lib/util/application_info.freezed.dart @@ -1,5 +1,5 @@ -// coverage:ignore-file // 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 @@ -9,23 +9,183 @@ part of 'application_info.dart'; // FreezedGenerator // ************************************************************************** +// dart format off T _$identity(T value) => value; -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - /// @nodoc mixin _$ApplicationInfo { - String get name => throw _privateConstructorUsedError; - String get version => throw _privateConstructorUsedError; - String get buildNumber => throw _privateConstructorUsedError; - String get os => throw _privateConstructorUsedError; + String get name; + String get version; + String get buildNumber; + String get os; +} + +/// Adds pattern-matching-related methods to [ApplicationInfo]. +extension ApplicationInfoPatterns on ApplicationInfo { + /// 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(_ApplicationInfo value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ApplicationInfo() 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(_ApplicationInfo value) $default, + ) { + final _that = this; + switch (_that) { + case _ApplicationInfo(): + 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(_ApplicationInfo value)? $default, + ) { + final _that = this; + switch (_that) { + case _ApplicationInfo() 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 name, String version, String buildNumber, String os)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _ApplicationInfo() when $default != null: + return $default(_that.name, _that.version, _that.buildNumber, _that.os); + 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 name, String version, String buildNumber, String os) + $default, + ) { + final _that = this; + switch (_that) { + case _ApplicationInfo(): + return $default(_that.name, _that.version, _that.buildNumber, _that.os); + 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 name, String version, String buildNumber, String os)? + $default, + ) { + final _that = this; + switch (_that) { + case _ApplicationInfo() when $default != null: + return $default(_that.name, _that.version, _that.buildNumber, _that.os); + case _: + return null; + } + } } /// @nodoc -class _$ApplicationInfoImpl extends _ApplicationInfo { - _$ApplicationInfoImpl( +class _ApplicationInfo extends ApplicationInfo { + _ApplicationInfo( {required this.name, required this.version, required this.buildNumber, @@ -42,20 +202,4 @@ class _$ApplicationInfoImpl extends _ApplicationInfo { final String os; } -abstract class _ApplicationInfo extends ApplicationInfo { - factory _ApplicationInfo( - {required final String name, - required final String version, - required final String buildNumber, - required final String os}) = _$ApplicationInfoImpl; - _ApplicationInfo._() : super._(); - - @override - String get name; - @override - String get version; - @override - String get buildNumber; - @override - String get os; -} +// dart format on diff --git a/lib/util/migration/isar_drift_migration.dart b/lib/util/migration/isar_drift_migration.dart deleted file mode 100644 index 2a346cd..0000000 --- a/lib/util/migration/isar_drift_migration.dart +++ /dev/null @@ -1,82 +0,0 @@ -import 'dart:convert'; -import 'dart:developer'; -import 'dart:io'; - -import 'package:flutter/foundation.dart'; - -import 'package:drift/drift.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:isar/isar.dart'; -import 'package:path/path.dart' as path; -import 'package:path_provider/path_provider.dart'; - -import 'package:fladder/models/syncing/database_item.dart'; -import 'package:fladder/models/syncing/i_synced_item.dart'; -import 'package:fladder/models/syncing/sync_item.dart'; - -Future isarMigration(Ref ref, AppDatabase db, String savePath) async { - if (kIsWeb) return; - - //Return if the database is already migrated or not empty - final isNotEmtpy = await db.select(db.databaseItems).get().then((value) => value.isNotEmpty); - if (isNotEmtpy) { - log('Drift database is not empty, skipping migration'); - return; - } - - //Open isar database - final applicationDirectory = await getApplicationDocumentsDirectory(); - final isarPath = Directory(path.joinAll([applicationDirectory.path, 'Fladder', 'Database'])); - await isarPath.create(recursive: true); - final isar = Isar.open( - schemas: [ISyncedItemSchema], - directory: isarPath.path, - ); - - //Fetch all synced items from the old database - List items = isar.iSyncedItems - .where() - .findAll() - .map((e) => SyncedItem.fromIsar(e, path.joinAll([savePath, e.userId ?? "Unkown User"]))) - .toList(); - - //Clear any missing paths - items = items.where((e) => e.path != null ? Directory(e.path!).existsSync() : false).toList(); - - //Convert to drift database items - final driftItems = items.map( - (item) => DatabaseItemsCompanion( - id: Value(item.id), - parentId: Value(item.parentId), - syncing: Value(item.syncing), - userId: Value(item.userId), - path: Value(item.path), - fileSize: Value(item.fileSize), - sortName: Value(item.sortName), - videoFileName: Value(item.videoFileName), - trickPlayModel: Value(item.fTrickPlayModel != null ? jsonEncode(item.fTrickPlayModel?.toJson()) : null), - mediaSegments: Value(item.mediaSegments != null ? jsonEncode(item.mediaSegments?.toJson()) : null), - images: Value(item.fImages != null ? jsonEncode(item.fImages?.toJson()) : null), - chapters: Value(jsonEncode(item.fChapters.map((e) => e.toJson()).toList())), - subtitles: Value(jsonEncode(item.subtitles.map((e) => e.toJson()).toList())), - userData: Value(item.userData != null ? jsonEncode(item.userData?.toJson()) : null), - ), - ); - - await db.batch((batch) { - batch.insertAll( - db.databaseItems, - driftItems, - mode: InsertMode.insertOrReplace, - ); - }); - - isar.close(); - - //Delete isar database after a few versions? - // await Future.delayed(const Duration(seconds: 1)); - // if (await isarPath.exists()) { - // log('Deleting old Fladder base folder: ${isarPath.path}'); - // await isarPath.delete(recursive: true); - // } -} diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index 838baf4..6d7d8c2 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -28,9 +27,6 @@ void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) fvp_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "FvpPlugin"); fvp_plugin_register_with_registrar(fvp_registrar); - g_autoptr(FlPluginRegistrar) isar_flutter_libs_registrar = - fl_plugin_registry_get_registrar_for_plugin(registry, "IsarFlutterLibsPlugin"); - isar_flutter_libs_plugin_register_with_registrar(isar_flutter_libs_registrar); g_autoptr(FlPluginRegistrar) media_kit_libs_linux_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "MediaKitLibsLinuxPlugin"); media_kit_libs_linux_plugin_register_with_registrar(media_kit_libs_linux_registrar); diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake index 7d4f5d8..c631222 100644 --- a/linux/flutter/generated_plugins.cmake +++ b/linux/flutter/generated_plugins.cmake @@ -6,7 +6,6 @@ list(APPEND FLUTTER_PLUGIN_LIST desktop_drop dynamic_color fvp - isar_flutter_libs media_kit_libs_linux media_kit_video screen_retriever_linux diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 467bfbc..5ead603 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -12,7 +12,6 @@ import desktop_drop import dynamic_color import file_picker import fvp -import isar_flutter_libs import just_audio import local_auth_darwin import media_kit_libs_macos_video @@ -40,7 +39,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { DynamicColorPlugin.register(with: registry.registrar(forPlugin: "DynamicColorPlugin")) FilePickerPlugin.register(with: registry.registrar(forPlugin: "FilePickerPlugin")) FvpPlugin.register(with: registry.registrar(forPlugin: "FvpPlugin")) - IsarFlutterLibsPlugin.register(with: registry.registrar(forPlugin: "IsarFlutterLibsPlugin")) JustAudioPlugin.register(with: registry.registrar(forPlugin: "JustAudioPlugin")) LocalAuthPlugin.register(with: registry.registrar(forPlugin: "LocalAuthPlugin")) MediaKitLibsMacosVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitLibsMacosVideoPlugin")) diff --git a/pubspec.lock b/pubspec.lock index a05881a..01c2cd8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,31 +5,26 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab" + sha256: da0d9209ca76bde579f2da330aeb9df62b6319c834fa7baae052021b0462401f url: "https://pub.dev" source: hosted - version: "76.0.0" - _macros: - dependency: transitive - description: dart - source: sdk - version: "0.3.3" + version: "85.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e" + sha256: f4ad0fea5f102201015c9aae9d93bc02f75dd9491529a8c21f88d17a8523d44c url: "https://pub.dev" source: hosted - version: "6.11.0" + version: "7.6.0" analyzer_plugin: dependency: transitive description: name: analyzer_plugin - sha256: "9661b30b13a685efaee9f02e5d01ed9f2b423bd889d28a304d02d704aee69161" + sha256: a5ab7590c27b779f3d4de67f31c4109dbe13dd7339f86461a6f2a8ab2594d8ce url: "https://pub.dev" source: hosted - version: "0.11.3" + version: "0.13.4" animations: dependency: "direct main" description: @@ -106,18 +101,18 @@ packages: dependency: "direct main" description: name: auto_route - sha256: "1d1bd908a1fec327719326d5d0791edd37f16caff6493c01003689fb03315ad7" + sha256: c820e918863a03544aac68eaf61e17c8a6126b663d7cad24a8fd3657a1e6be61 url: "https://pub.dev" source: hosted - version: "9.3.0+1" + version: "10.1.2" auto_route_generator: dependency: "direct dev" description: name: auto_route_generator - sha256: c9086eb07271e51b44071ad5cff34e889f3156710b964a308c2ab590769e79e6 + sha256: "2a5b5bf9c55d4a2098931037dac90921a4663808aed494bb4f134d82d46cb8ec" url: "https://pub.dev" source: hosted - version: "9.0.0" + version: "10.2.3" automatic_animated_list: dependency: "direct main" description: @@ -210,10 +205,10 @@ packages: dependency: transitive description: name: built_value - sha256: "0b1b12a0a549605e5f04476031cd0bc91ead1d7c8e830773a18ee54179b3cb62" + sha256: ba95c961bafcd8686d1cf63be864eb59447e795e124d98d6a27d91fcd13602fb url: "https://pub.dev" source: hosted - version: "8.11.0" + version: "8.11.1" cached_network_image: dependency: "direct main" description: @@ -274,10 +269,10 @@ packages: dependency: "direct main" description: name: chopper - sha256: f366529b450d0fd91931b08339c7c1d09c746d0d20e5ffb8c8641a79b6114dc2 + sha256: "35cde96292178809ca4290f42dbb83d832551333c2b18a2226a2538103ab40d3" url: "https://pub.dev" source: hosted - version: "8.2.0" + version: "8.3.0" chopper_generator: dependency: "direct dev" description: @@ -294,6 +289,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.1.0" + cli_config: + dependency: transitive + description: + name: cli_config + sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec + url: "https://pub.dev" + source: hosted + version: "0.2.0" cli_util: dependency: transitive description: @@ -330,10 +333,10 @@ packages: dependency: "direct main" description: name: connectivity_plus - sha256: "051849e2bd7c7b3bc5844ea0d096609ddc3a859890ec3a9ac4a65a2620cc1f99" + sha256: b5e72753cf63becce2c61fd04dfe0f1c430cc5278b53a1342dc5ad839eab29ec url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "6.1.5" connectivity_plus_platform_interface: dependency: transitive description: @@ -350,6 +353,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.2" + coverage: + dependency: transitive + description: + name: coverage + sha256: "5da775aa218eaf2151c721b16c01c7676fbfdd99cebba2bf64e8b807a28ff94d" + url: "https://pub.dev" + source: hosted + version: "1.15.0" cross_file: dependency: transitive description: @@ -386,50 +397,50 @@ packages: dependency: "direct dev" description: name: custom_lint - sha256: "3486c470bb93313a9417f926c7dd694a2e349220992d7b9d14534dc49c15bba9" + sha256: "9656925637516c5cf0f5da018b33df94025af2088fe09c8ae2ca54c53f2d9a84" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.6" custom_lint_core: dependency: transitive description: name: custom_lint_core - sha256: "02450c3e45e2a6e8b26c4d16687596ab3c4644dd5792e3313aa9ceba5a49b7f5" + sha256: "31110af3dde9d29fb10828ca33f1dce24d2798477b167675543ce3d208dee8be" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.5" custom_lint_visitor: dependency: transitive description: name: custom_lint_visitor - sha256: bfe9b7a09c4775a587b58d10ebb871d4fe618237639b1e84d5ec62d7dfef25f9 + sha256: "4a86a0d8415a91fbb8298d6ef03e9034dc8e323a599ddc4120a0e36c433983a2" url: "https://pub.dev" source: hosted - version: "1.0.0+6.11.0" + version: "1.0.0+7.7.0" dart_mappable: dependency: "direct main" description: name: dart_mappable - sha256: "2255b2c00e328a65fef5a8df2dabfc0dc9c2e518c33a50051a4519b1c7a28c48" + sha256: "15f41a35da8ee690bbfa0059fa241edeeaea73f89a2ba685b354ece07cd8ada6" url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.6.0" dart_mappable_builder: dependency: "direct dev" description: name: dart_mappable_builder - sha256: b3673a6d190f2ea766b39ea298d4c55d1caca9382a536cf164ffe7e2f955c501 + sha256: adea8c55aac73c8254aa14a8272b788eb0f72799dd8e4810a9b664ec9b4e353c url: "https://pub.dev" source: hosted - version: "4.3.1+1" + version: "4.5.0" dart_style: dependency: transitive description: name: dart_style - sha256: "7306ab8a2359a48d22310ad823521d723acfed60ee1f7e37388e8986853b6820" + sha256: "8a0e5fba27e8ee025d2ffb4ee820b4e6e2cf5e4246a6b1a477eb66866947e0bb" url: "https://pub.dev" source: hosted - version: "2.3.8" + version: "3.1.1" db_viewer: dependency: transitive description: @@ -474,10 +485,10 @@ packages: dependency: "direct main" description: name: drift - sha256: b584ddeb2b74436735dd2cf746d2d021e19a9a6770f409212fd5cbc2814ada85 + sha256: "6aaea757f53bb035e8a3baedf3d1d53a79d6549a6c13d84f7546509da9372c7c" url: "https://pub.dev" source: hosted - version: "2.26.1" + version: "2.28.1" drift_db_viewer: dependency: "direct main" description: @@ -490,10 +501,10 @@ packages: dependency: "direct dev" description: name: drift_dev - sha256: "0d3f8b33b76cf1c6a82ee34d9511c40957549c4674b8f1688609e6d6c7306588" + sha256: "68c138e884527d2bd61df2ade276c3a144df84d1adeb0ab8f3196b5afe021bd4" url: "https://pub.dev" source: hosted - version: "2.26.0" + version: "2.28.0" drift_flutter: dependency: "direct main" description: @@ -514,10 +525,10 @@ packages: dependency: "direct main" description: name: dynamic_color - sha256: eae98052fa6e2826bdac3dd2e921c6ce2903be15c6b7f8b6d8a5d49b5086298d + sha256: "43a5a6679649a7731ab860334a5812f2067c2d9ce6452cf069c5e0c25336c17c" url: "https://pub.dev" source: hosted - version: "1.7.0" + version: "1.8.1" equatable: dependency: transitive description: @@ -570,10 +581,10 @@ packages: dependency: "direct main" description: name: file_picker - sha256: ef9908739bdd9c476353d6adff72e88fd00c625f5b959ae23f7567bd5137db0a + sha256: e7e16c9d15c36330b94ca0e2ad8cb61f93cd5282d0158c09805aed13b5452f22 url: "https://pub.dev" source: hosted - version: "10.2.0" + version: "10.3.2" fixnum: dependency: transitive description: @@ -724,10 +735,10 @@ packages: dependency: transitive description: name: flutter_plugin_android_lifecycle - sha256: f948e346c12f8d5480d2825e03de228d0eb8c3a737e4cdaa122267b89c022b5e + sha256: "6382ce712ff69b0f719640ce957559dde459e55ecd433c767e06d139ddf16cab" url: "https://pub.dev" source: hosted - version: "2.0.28" + version: "2.0.29" flutter_riverpod: dependency: "direct main" description: @@ -740,10 +751,10 @@ packages: dependency: transitive description: name: flutter_rust_bridge - sha256: "0ad5079de35d317650fec59b26cb4d0c116ebc2ce703a29f9367513b8a91c287" + sha256: "37ef40bc6f863652e865f0b2563ea07f0d3c58d8efad803cc01933a4b2ee067e" url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.11.1" flutter_staggered_grid_view: dependency: "direct main" description: @@ -806,26 +817,26 @@ packages: dependency: "direct main" description: name: font_awesome_flutter - sha256: d3a89184101baec7f4600d58840a764d2ef760fe1c5a20ef9e6b0e9b24a07a3a + sha256: "27af5982e6c510dec1ba038eff634fa284676ee84e3fd807225c80c4ad869177" url: "https://pub.dev" source: hosted - version: "10.8.0" + version: "10.10.0" freezed: dependency: "direct dev" description: name: freezed - sha256: "44c19278dd9d89292cf46e97dc0c1e52ce03275f40a97c5a348e802a924bf40e" + sha256: "2d399f823b8849663744d2a9ddcce01c49268fb4170d0442a655bf6a2f47be22" url: "https://pub.dev" source: hosted - version: "2.5.7" + version: "3.1.0" freezed_annotation: dependency: "direct main" description: name: freezed_annotation - sha256: c2e2d632dd9b8a2b7751117abcfc2b4888ecfe181bd9fca7170d9ef02e595fe2 + sha256: "7294967ff0a6d98638e7acb774aac3af2550777accd8149c90af5b014e6d44d8" url: "https://pub.dev" source: hosted - version: "2.4.4" + version: "3.1.0" frontend_server_client: dependency: transitive description: @@ -938,6 +949,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.7.0" + hotreloader: + dependency: transitive + description: + name: hotreloader + sha256: bc167a1163807b03bada490bfe2df25b0d744df359227880220a5cbd04e5734b + url: "https://pub.dev" + source: hosted + version: "4.3.0" html: dependency: transitive description: @@ -950,10 +969,10 @@ packages: dependency: "direct main" description: name: http - sha256: "2c11f3f94c687ee9bad77c171151672986360b2b001d109814ee7140b2cf261b" + sha256: bb2ce4590bc2667c96f318d68cac1b5a7987ec819351d32b1c987239a815e007 url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.5.0" http2: dependency: transitive description: @@ -990,10 +1009,10 @@ packages: dependency: "direct dev" description: name: icons_launcher - sha256: "2949eef3d336028d89133f69ef221d877e09deed04ebd8e738ab4a427850a7a2" + sha256: e6d806458fac6d3b1126ad757b4208a314ba775b3c8119cd88877091379edc7a url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" iconsax_plus: dependency: "direct main" description: @@ -1026,30 +1045,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.5" - isar: - dependency: "direct main" - description: - name: isar - sha256: e987032e5d007a03ba4415cbf4d47add17b57ac664db8705db90fbfeb6a16737 - url: "https://pub.isar-community.dev" - source: hosted - version: "4.0.3" - isar_flutter_libs: - dependency: "direct main" - description: - name: isar_flutter_libs - sha256: a6b86d8618fe2d7d0e2ac6aa7a7f21c0c8ae912ccbef94a45d9f6e1e519ef610 - url: "https://pub.isar-community.dev" - source: hosted - version: "4.0.3" js: dependency: transitive description: name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc" url: "https://pub.dev" source: hosted - version: "0.6.7" + version: "0.7.2" json_annotation: dependency: "direct main" description: @@ -1062,10 +1065,10 @@ packages: dependency: "direct dev" description: name: json_serializable - sha256: c2fcb3920cf2b6ae6845954186420fca40bc0a8abcc84903b7801f17d7050d7c + sha256: c50ef5fc083d5b5e12eef489503ba3bf5ccc899e487d691584699b4bdefeea8c url: "https://pub.dev" source: hosted - version: "6.9.0" + version: "6.9.5" just_audio: dependency: transitive description: @@ -1078,10 +1081,10 @@ packages: dependency: transitive description: name: just_audio_platform_interface - sha256: "4cd94536af0219fa306205a58e78d67e02b0555283c1c094ee41e402a14a5c4a" + sha256: "2532c8d6702528824445921c5ff10548b518b13f808c2e34c2fd54793b999a6a" url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.6.0" just_audio_web: dependency: transitive description: @@ -1094,26 +1097,34 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" + sha256: "8dcda04c3fc16c14f48a7bb586d4be1f0d1572731b6d81d51772ef47c02081e0" url: "https://pub.dev" source: hosted - version: "10.0.9" + version: "11.0.1" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" url: "https://pub.dev" source: hosted - version: "3.0.9" + version: "3.0.10" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" + lean_builder: + dependency: transitive + description: + name: lean_builder + sha256: "3d3a04c9dda8ced6b2a48d23aaf98ef5aa32f68f9c62da1b6c6d45bf03aa8164" + url: "https://pub.dev" + source: hosted + version: "0.1.1" lints: dependency: transitive description: @@ -1134,18 +1145,18 @@ packages: dependency: transitive description: name: local_auth_android - sha256: "82b2bdeee2199a510d3b7716121e96a6609da86693bb0863edd8566355406b79" + sha256: "316503f6772dea9c0c038bb7aac4f68ab00112d707d258c770f7fc3c250a2d88" url: "https://pub.dev" source: hosted - version: "1.0.50" + version: "1.0.51" local_auth_darwin: dependency: transitive description: name: local_auth_darwin - sha256: "25163ce60a5a6c468cf7a0e3dc8a165f824cabc2aa9e39a5e9fc5c2311b7686f" + sha256: "0e9706a8543a4a2eee60346294d6a633dd7c3ee60fae6b752570457c4ff32055" url: "https://pub.dev" source: hosted - version: "1.5.0" + version: "1.6.0" local_auth_platform_interface: dependency: transitive description: @@ -1170,14 +1181,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" - macros: - dependency: transitive - description: - name: macros - sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656" - url: "https://pub.dev" - source: hosted - version: "0.1.3-main.0" markdown: dependency: transitive description: @@ -1306,6 +1309,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.0" + node_preamble: + dependency: transitive + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" octo_image: dependency: transitive description: @@ -1334,18 +1345,18 @@ packages: dependency: "direct main" description: name: package_info_plus - sha256: "7976bfe4c583170d6cdc7077e3237560b364149fcd268b5f53d95a991963b191" + sha256: "16eee997588c60225bda0488b6dcfac69280a6b7a3cf02c741895dd370a02968" url: "https://pub.dev" source: hosted - version: "8.3.0" + version: "8.3.1" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: "6c935fb612dff8e3cc9632c2b301720c77450a126114126ffaafe28d2e87956c" + sha256: "202a487f08836a592a6bd4f901ac69b3a8f146af552bbd14407b6b41e1c3f086" url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "3.2.1" page_transition: dependency: "direct main" description: @@ -1390,10 +1401,10 @@ packages: dependency: transitive description: name: path_provider_foundation - sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942" + sha256: "16eef174aacb07e09c351502740fa6254c165757638eba1e9116b0a781201bbd" url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" path_provider_linux: dependency: transitive description: @@ -1494,18 +1505,18 @@ packages: dependency: transitive description: name: protobuf - sha256: "6153efcc92a06910918f3db8231fd2cf828ac81e50ebd87adc8f8a8cb3caff0e" + sha256: de9c9eb2c33f8e933a42932fe1dc504800ca45ebc3d673e6ed7f39754ee4053e url: "https://pub.dev" source: hosted - version: "4.1.1" + version: "4.2.0" provider: dependency: transitive description: name: provider - sha256: "4abbd070a04e9ddc287673bf5a030c7ca8b685ff70218720abab8b092f53dd84" + sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272" url: "https://pub.dev" source: hosted - version: "6.1.5" + version: "6.1.5+1" pub_semver: dependency: transitive description: @@ -1526,10 +1537,10 @@ packages: dependency: transitive description: name: qs_dart - sha256: "42a7ca80f965786d8d0730633b7cf05c132ebcb9558e04dbc8752f2865caa705" + sha256: ffeb30c6a0999a9b62ab372d4780437339d75036e6eedb9685727cca70d72bca url: "https://pub.dev" source: hosted - version: "1.3.9" + version: "1.5.4" rational: dependency: transitive description: @@ -1546,22 +1557,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.1.0" - recursive_regex: - dependency: transitive - description: - name: recursive_regex - sha256: f7252e3d3dfd1665e594d9fe035eca6bc54139b1f2fee38256fa427ea41adc60 - url: "https://pub.dev" - source: hosted - version: "1.0.0" reorderable_grid: dependency: "direct main" description: name: reorderable_grid - sha256: "0b9cd95ef0f070ef99f92affe9cf85a4aa127099cd1334e5940950ce58cd981d" + sha256: c7d2e1f2e032a8fffe121f9da828546ee58db35c9c7d19d7a2d189dea2f9939d url: "https://pub.dev" source: hosted - version: "1.0.10" + version: "1.0.12" riverpod: dependency: transitive description: @@ -1574,10 +1577,10 @@ packages: dependency: transitive description: name: riverpod_analyzer_utils - sha256: c6b8222b2b483cb87ae77ad147d6408f400c64f060df7a225b127f4afef4f8c8 + sha256: "03a17170088c63aab6c54c44456f5ab78876a1ddb6032ffde1662ddab4959611" url: "https://pub.dev" source: hosted - version: "0.5.8" + version: "0.5.10" riverpod_annotation: dependency: "direct main" description: @@ -1590,10 +1593,10 @@ packages: dependency: "direct dev" description: name: riverpod_generator - sha256: "63546d70952015f0981361636bf8f356d9cfd9d7f6f0815e3c07789a41233188" + sha256: "44a0992d54473eb199ede00e2260bd3c262a86560e3c6f6374503d86d0580e36" url: "https://pub.dev" source: hosted - version: "2.6.3" + version: "2.6.5" rxdart: dependency: transitive description: @@ -1614,18 +1617,18 @@ packages: dependency: "direct main" description: name: screen_brightness - sha256: f9bcfd7029d81aa2ba960f8c67a51427c721796f7f4eea02bc2bb84c41205ad7 + sha256: "5f70754028f169f059fdc61112a19dcbee152f8b293c42c848317854d650cba3" url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.1.7" screen_brightness_android: dependency: transitive description: name: screen_brightness_android - sha256: fb5fa43cb89d0c9b8534556c427db1e97e46594ac5d66ebdcf16063b773d54ed + sha256: d34f5321abd03bc3474f4c381f53d189117eba0b039eac1916aa92cca5fd0a96 url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" screen_brightness_ios: dependency: transitive description: @@ -1646,10 +1649,10 @@ packages: dependency: transitive description: name: screen_brightness_ohos - sha256: "61e313e46eaee3f83dd4e85a2a91f8a81be02c154bc9e60830a7c0fd76dac286" + sha256: a93a263dcd39b5c56e589eb495bcd001ce65cdd96ff12ab1350683559d5c5bb7 url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" screen_brightness_platform_interface: dependency: transitive description: @@ -1718,18 +1721,18 @@ packages: dependency: "direct main" description: name: share_plus - sha256: b2961506569e28948d75ec346c28775bb111986bb69dc6a20754a457e3d97fa0 + sha256: d7dc0630a923883c6328ca31b89aa682bacbf2f8304162d29f7c6aaff03a27a1 url: "https://pub.dev" source: hosted - version: "11.0.0" + version: "11.1.0" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface - sha256: "1032d392bc5d2095a77447a805aa3f804d2ae6a4d5eef5e6ebb3bd94c1bc19ef" + sha256: "88023e53a13429bd65d8e85e11a9b484f49d4c190abbd96c7932b74d6927cc9a" url: "https://pub.dev" source: hosted - version: "6.0.0" + version: "6.1.0" shared_preferences: dependency: "direct main" description: @@ -1742,10 +1745,10 @@ packages: dependency: transitive description: name: shared_preferences_android - sha256: "20cbd561f743a342c76c151d6ddb93a9ce6005751e7aa458baad3858bfbfb6ac" + sha256: "5bcf0772a761b04f8c6bf814721713de6f3e5d9d89caf8d3fe031b02a342379e" url: "https://pub.dev" source: hosted - version: "2.4.10" + version: "2.4.11" shared_preferences_foundation: dependency: transitive description: @@ -1794,6 +1797,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.4.2" + shelf_packages_handler: + dependency: transitive + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: transitive + description: + name: shelf_static + sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 + url: "https://pub.dev" + source: hosted + version: "1.1.3" shelf_web_socket: dependency: transitive description: @@ -1819,26 +1838,42 @@ packages: dependency: "direct main" description: name: smtc_windows - sha256: "80f7c10867da485ffdf87f842bf27e6763589933c18c11af5dc1cd1e158c3154" + sha256: dee279b0ddf663c4c729a88bca4e57fb4861aa1b3d01e230bdbf1277b8bfe664 url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.1.0" source_gen: dependency: transitive description: name: source_gen - sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" + sha256: "35c8150ece9e8c8d263337a265153c3329667640850b9304861faea59fc98f6b" url: "https://pub.dev" source: hosted - version: "1.5.0" + version: "2.0.0" source_helper: dependency: transitive description: name: source_helper - sha256: "86d247119aedce8e63f4751bd9626fc9613255935558447569ad42f9f5b48b3c" + sha256: a447acb083d3a5ef17f983dd36201aeea33fedadb3228fa831f2f0c92f0f3aca url: "https://pub.dev" source: hosted - version: "1.3.5" + version: "1.3.7" + source_map_stack_trace: + dependency: transitive + description: + name: source_map_stack_trace + sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b + url: "https://pub.dev" + source: hosted + version: "2.1.2" + source_maps: + dependency: transitive + description: + name: source_maps + sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812" + url: "https://pub.dev" + source: hosted + version: "0.10.13" source_span: dependency: transitive description: @@ -1867,18 +1902,18 @@ packages: dependency: transitive description: name: sqflite_android - sha256: "2b3070c5fa881839f8b402ee4a39c1b4d561704d4ebbbcfb808a119bc2a1701b" + sha256: ecd684501ebc2ae9a83536e8b15731642b9570dc8623e0073d227d0ee2bfea88 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2+2" sqflite_common: dependency: transitive description: name: sqflite_common - sha256: "84731e8bfd8303a3389903e01fb2141b6e59b5973cacbb0929021df08dddbe8b" + sha256: "6ef422a4525ecc601db6c0a2233ff448c731307906e92cabc9ba292afaae16a6" url: "https://pub.dev" source: hosted - version: "2.5.5" + version: "2.5.6" sqflite_darwin: dependency: transitive description: @@ -1899,18 +1934,18 @@ packages: dependency: transitive description: name: sqlite3 - sha256: "608b56d594e4c8498c972c8f1507209f9fd74939971b948ddbbfbfd1c9cb3c15" + sha256: f393d92c71bdcc118d6203d07c991b9be0f84b1a6f89dd4f7eed348131329924 url: "https://pub.dev" source: hosted - version: "2.7.7" + version: "2.9.0" sqlite3_flutter_libs: dependency: transitive description: name: sqlite3_flutter_libs - sha256: "60464aa06f3f6f6fba9abd7564e315526c1fee6d6a77d6ee52a1f7f48a9107f6" + sha256: "2b03273e71867a8a4d030861fc21706200debe5c5858a4b9e58f4a1c129586a4" url: "https://pub.dev" source: hosted - version: "0.5.37" + version: "0.5.39" sqlparser: dependency: transitive description: @@ -1979,10 +2014,10 @@ packages: dependency: "direct dev" description: name: swagger_dart_code_generator - sha256: e6fab279c2adb3f91aa170c9126601d22e1485217dddc1443cf3c05eb6480d45 + sha256: "64f10f8e2f38c2139b394d00381d69eae55d3bb42b6f524eb21f27145e60c671" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.3" synchronized: dependency: transitive description: @@ -1999,14 +2034,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.2" + test: + dependency: transitive + description: + name: test + sha256: "65e29d831719be0591f7b3b1a32a3cda258ec98c58c7b25f7b84241bc31215bb" + url: "https://pub.dev" + source: hosted + version: "1.26.2" test_api: dependency: transitive description: name: test_api - sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd + sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00" url: "https://pub.dev" source: hosted - version: "0.7.4" + version: "0.7.6" + test_core: + dependency: transitive + description: + name: test_core + sha256: "80bf5a02b60af04b09e14f6fe68b921aad119493e26e490deaca5993fef1b05a" + url: "https://pub.dev" + source: hosted + version: "0.6.11" timing: dependency: transitive description: @@ -2083,18 +2134,18 @@ packages: dependency: transitive description: name: url_launcher_android - sha256: "8582d7f6fe14d2652b4c45c9b6c14c0b678c2af2d083a11b604caeba51930d79" + sha256: "0aedad096a85b49df2e4725fa32118f9fa580f3b14af7a2d2221896a02cd5656" url: "https://pub.dev" source: hosted - version: "6.3.16" + version: "6.3.17" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "7f2022359d4c099eea7df3fdf739f7d3d3b9faf3166fb1dd390775176e0b76cb" + sha256: d80b3f567a617cb923546034cc94bfe44eb15f989fe670b37f26abdb9d939cb7 url: "https://pub.dev" source: hosted - version: "6.3.3" + version: "6.3.4" url_launcher_linux: dependency: transitive description: @@ -2107,10 +2158,10 @@ packages: dependency: transitive description: name: url_launcher_macos - sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2" + sha256: c043a77d6600ac9c38300567f33ef12b0ef4f4783a2c1f00231d2b1941fea13f url: "https://pub.dev" source: hosted - version: "3.2.2" + version: "3.2.3" url_launcher_platform_interface: dependency: transitive description: @@ -2171,18 +2222,18 @@ packages: dependency: transitive description: name: vector_graphics_compiler - sha256: "557a315b7d2a6dbb0aaaff84d857967ce6bdc96a63dc6ee2a57ce5a6ee5d3331" + sha256: ca81fdfaf62a5ab45d7296614aea108d2c7d0efca8393e96174bf4d51e6725b0 url: "https://pub.dev" source: hosted - version: "1.1.17" + version: "1.1.18" vector_math: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.0" video_player: dependency: "direct main" description: @@ -2195,18 +2246,18 @@ packages: dependency: transitive description: name: video_player_android - sha256: "9d5af2d233ba69df803dcf2f31e66d9a4c6206f2d96178df06b09b0ec3056b39" + sha256: "53f3b57c7ac88c18e6074d0f94c7146e128c515f0a4503c3061b8e71dea3a0f2" url: "https://pub.dev" source: hosted - version: "2.8.9" + version: "2.8.12" video_player_avfoundation: dependency: transitive description: name: video_player_avfoundation - sha256: "9fedd55023249f3a02738c195c906b4e530956191febf0838e37d0dac912f953" + sha256: f9a780aac57802b2892f93787e5ea53b5f43cc57dc107bee9436458365be71cd url: "https://pub.dev" source: hosted - version: "2.8.0" + version: "2.8.4" video_player_platform_interface: dependency: transitive description: @@ -2235,10 +2286,10 @@ packages: dependency: transitive description: name: vm_service - sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 + sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" url: "https://pub.dev" source: hosted - version: "15.0.0" + version: "15.0.2" volume_controller: dependency: transitive description: @@ -2303,6 +2354,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.3" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" webview_flutter: dependency: transitive description: @@ -2315,26 +2374,26 @@ packages: dependency: transitive description: name: webview_flutter_android - sha256: "9573ad97890d199ac3ab32399aa33a5412163b37feb573eb5b0a76b35e9ffe41" + sha256: "0a42444056b24ed832bdf3442d65c5194f6416f7e782152384944053c2ecc9a3" url: "https://pub.dev" source: hosted - version: "4.8.2" + version: "4.10.0" webview_flutter_platform_interface: dependency: transitive description: name: webview_flutter_platform_interface - sha256: f0dc2dc3a2b1e3a6abdd6801b9355ebfeb3b8f6cde6b9dc7c9235909c4a1f147 + sha256: "63d26ee3aca7256a83ccb576a50272edd7cfc80573a4305caa98985feb493ee0" url: "https://pub.dev" source: hosted - version: "2.13.1" + version: "2.14.0" webview_flutter_wkwebview: dependency: transitive description: name: webview_flutter_wkwebview - sha256: "71523b9048cf510cfa1fd4e0a3fa5e476a66e0884d5df51d59d5023dba237107" + sha256: fb46db8216131a3e55bcf44040ca808423539bc6732e7ed34fb6d8044e3d512f url: "https://pub.dev" source: hosted - version: "3.22.1" + version: "3.23.0" win32: dependency: transitive description: @@ -2375,6 +2434,14 @@ packages: url: "https://pub.dev" source: hosted version: "6.5.0" + xxh3: + dependency: transitive + description: + name: xxh3 + sha256: "399a0438f5d426785723c99da6b16e136f4953fb1e9db0bf270bd41dd4619916" + url: "https://pub.dev" + source: hosted + version: "1.2.0" yaml: dependency: transitive description: @@ -2384,5 +2451,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.8.0 <4.0.0" + dart: ">=3.9.0 <4.0.0" flutter: ">=3.32.0" diff --git a/pubspec.yaml b/pubspec.yaml index 1a74aab..81d5d33 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,11 +40,11 @@ dependencies: iconsax_plus: ^1.0.0 # Network and HTTP - chopper: ^8.1.0 + chopper: ^8.3.0 cached_network_image: ^3.4.1 - http: ^1.4.0 + http: ^1.5.0 flutter_cache_manager: ^3.4.1 - connectivity_plus: ^6.1.4 + connectivity_plus: ^6.1.5 # State Management flutter_riverpod: ^2.6.1 @@ -52,7 +52,7 @@ dependencies: # JSON and Serialization json_annotation: ^4.9.0 - freezed_annotation: ^2.4.4 + freezed_annotation: ^3.1.0 # Logging logging: ^1.3.0 @@ -73,8 +73,8 @@ dependencies: video_player: ^2.10.0 # UI Components - dynamic_color: ^1.7.0 - flutter_svg: ^2.1.0 + dynamic_color: ^1.8.1 + flutter_svg: ^2.2.0 animations: ^2.0.11 automatic_animated_list: ^1.1.0 page_transition: ^2.2.1 @@ -85,55 +85,49 @@ dependencies: flutter_blurhash: ^0.9.1 extended_image: ^10.0.1 flutter_widget_from_html: ^0.17.0 - font_awesome_flutter: ^10.8.0 - reorderable_grid: ^1.0.10 + font_awesome_flutter: ^10.9.1 + reorderable_grid: ^1.0.12 overflow_view: ^0.5.0 flutter_sticky_header: ^0.8.0 markdown_widget: ^2.3.2+8 # Navigation - auto_route: ^9.3.0+1 - url_launcher: ^6.3.1 + auto_route: ^10.1.2 + url_launcher: ^6.3.2 flutter_custom_tabs: ^2.4.0 # Utility path: ^1.9.1 - file_picker: ^10.2.0 + file_picker: ^10.3.2 transparent_image: ^2.0.1 universal_html: ^2.2.4 collection: ^1.19.1 # Device and System local_auth: ^2.3.0 - package_info_plus: ^8.3.0 + package_info_plus: ^8.3.1 wakelock_plus: ^1.3.2 - screen_brightness: ^2.1.4 - window_manager: ^0.5.0 - smtc_windows: ^1.0.0 - background_downloader: ^9.2.2 + screen_brightness: ^2.1.7 + window_manager: ^0.5.1 + smtc_windows: ^1.1.0 + background_downloader: ^9.2.3 screen_retriever: ^0.2.0 # Data - isar: - version: ^4.0.3 - hosted: https://pub.isar-community.dev/ - isar_flutter_libs: # contains Isar Core - version: ^4.0.3 - hosted: https://pub.isar-community.dev/ + drift: ^2.28.1 + drift_flutter: ^0.2.5 + drift_sync: ^0.13.0 + drift_db_viewer: ^2.1.0 # Other async: ^2.13.0 xid: ^1.2.1 - desktop_drop: ^0.6.0 + desktop_drop: ^0.6.1 flexible_scrollbar: ^0.1.3 flutter_typeahead: ^5.2.0 - share_plus: ^11.0.0 + share_plus: ^11.1.0 archive: ^4.0.7 - dart_mappable: ^4.5.0 - drift: ^2.26.1 - drift_flutter: ^0.2.5 - drift_sync: ^0.13.0 - drift_db_viewer: ^2.1.0 + dart_mappable: ^4.6.0 dev_dependencies: flutter_test: @@ -144,18 +138,18 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - drift_dev: ^2.26.0 + drift_dev: ^2.28.0 flutter_lints: ^6.0.0 build_runner: ^2.5.4 - chopper_generator: ^8.1.0 - json_serializable: ^6.9.0 - custom_lint: ^0.7.0 - freezed: ^2.5.7 - swagger_dart_code_generator: ^3.0.1 - riverpod_generator: ^2.6.3 - dart_mappable_builder: ^4.3.1+1 - auto_route_generator: ^9.0.0 - icons_launcher: ^3.0.1 + chopper_generator: ^8.2.0 + json_serializable: ^6.9.5 + custom_lint: ^0.7.6 + freezed: ^3.1.0 + swagger_dart_code_generator: ^3.0.3 + riverpod_generator: ^2.6.5 + dart_mappable_builder: ^4.5.0 + auto_route_generator: ^10.2.3 + icons_launcher: ^3.0.2 flutter: # The following line ensures that the Material Icons font is diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index f29af16..b4cbbb0 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -31,8 +30,6 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { registry->GetRegistrarForPlugin("DynamicColorPluginCApi")); FvpPluginCApiRegisterWithRegistrar( registry->GetRegistrarForPlugin("FvpPluginCApi")); - IsarFlutterLibsPluginRegisterWithRegistrar( - registry->GetRegistrarForPlugin("IsarFlutterLibsPlugin")); LocalAuthPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("LocalAuthPlugin")); MediaKitLibsWindowsVideoPluginCApiRegisterWithRegistrar( diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index a0c5900..9fc08a7 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -7,7 +7,6 @@ list(APPEND FLUTTER_PLUGIN_LIST desktop_drop dynamic_color fvp - isar_flutter_libs local_auth_windows media_kit_libs_windows_video media_kit_video